Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to throw the stub ...

 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
i am currently putting the stub into the client package.
so i am having a structure
suncertify/db/client/suncertify/db/server/Stub
is this a sensible approach related to the stub
any thoughts will be very much appreciated!
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by aadhi agathi:
so i am having a structure
suncertify/db/client/suncertify/db/server/Stub

I'm a little wary of this package structure. I would keep yours similar to what Sun already gave you with suncertify.db.
-BJ
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't put the stub into the package. You put it in with your jar.
meaning
you won't do this

your stub is still part of the suncertify/server.
Actually now that I am looking at it. Are you sure your package naming is best. is the client part of db as you have in suncertify/db/client, or would it better to be suncertify/client, with db classes being in suncertify/db, and server classes in suncertify/server package.
You stub classes will only need to be included into the jar file, client.jar and server.jar
Hope that helps
Mark
 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
You shouldn't put the stub into the package. You put it in with your jar.

Actually now that I am looking at it. Are you sure your package naming is best. is the client part of db as you have in suncertify/db/client, or would it better to be suncertify/client

Mark
My God! its really an eye Opener! yes,
suncertify/client is 100 times better than
suncertify/db/client. worse suncertify/db/client
is wrong. Thanks a zillion for pointing this out.


You stub classes will only need to be included into the jar file, client.jar and server.jar

i got it , atlast!

Hope that helps

nothing ever helped me more than this.
thanks a lot Mark for being with us, java fools
[ March 19, 2003: Message edited by: aadhi agathi ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot Mark for being with us, java fools

Yes, I am a Java fool too. Just look at my posts in the j2ME forum. learning alot there and finding it really cool too.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic