aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes where to throw the stub ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "where to throw the stub ..." Watch "where to throw the stub ..." New topic
Author

where to throw the stub ...

aadhi agathi
Ranch Hand

Joined: Apr 29, 2002
Posts: 263
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!


Aadhi
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
aadhi agathi
Ranch Hand

Joined: Apr 29, 2002
Posts: 263
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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where to throw the stub ...