• Post Reply Bookmark Topic Watch Topic
  • New Topic

how create stub and skeleton ?  RSS feed

 
M_tognoni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
with J2EE, how can I create manually (without deploymentool ) stub and skeleton classes of my files ?
Thank you very much
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. J2EE isn't a totally monolithic and standard system. Each Vendor has their own little quirks on the generation of stubs and skeletons. Your only option is to use the deployment tool provided by the container vendor. If you're using Sun's Reference Implementation, then that's deploytool. However, remember that deploytool is a Java application -- that means you can actually manage to call it's code (even the main() method) programatically from your programs...
Kyle
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you should also remember that the specification does not require that the class you write is the class that is actually implemented by the container. It could create a new class with your class as its parent or it could simply instantiate your class and invoke its methods from the container's class. Your class is really nothing more than a model for the container to use.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M_tognoni
This name does not meet the JavaRanch naming standard. Please re-register using your real first name - space - your real last name.
Thanks.
Tom - moderator of this forum
 
shai koren
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kyle
refereing to :
" Your only option is to use the deployment tool provided by the container vendor."
isn't Ant an opposite example, where even though you do need to change the script according to different vendors, you still don't use the vendor's deploytool?
Thanks
Shai
 
M_tognoni
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shai,
I also thought with Ant it could be possible deploy a application, without using deploytool provided from vendor.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M_tognoni
This name does not meet the JavaRanch naming standard. Please re-register using your real first name - space - your real last name.
Thanks.
Tom - moderator of this forum
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!