aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Stub and Skeleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stub and Skeleton" Watch "Stub and Skeleton" New topic
Author

Stub and Skeleton

Renata fonseca
Ranch Hand

Joined: Mar 15, 2002
Posts: 48
I have a Component Interface, a bean class and a home interface for Session Bean.
I read that it's necessary to generate stub and skeleton. How can I generate these? The EJB Container automatically generates these for me?
Moorthi Ramasamy
Greenhorn

Joined: Jan 02, 2004
Posts: 15
Run the following command to generate the stub & skeleton.
java weblogic.ejbc [options] <source directory or jar file><target directory or jar file>
Ryan Fernandes
Ranch Hand

Joined: Dec 11, 2003
Posts: 86
Hi Renata,
Yes, the contract with an EJB container is that it creates the stubs, skeletons and the concrete implementations of your classes.
Mr. Moorthy has given you an example of how you can do this manually, but for most EJB containers, this gets done when you deploy the bean.
Hope that helped,
Ryan
Renata fonseca
Ranch Hand

Joined: Mar 15, 2002
Posts: 48
thanks...
I've noticed that WSAD generates the STUBs and SKELETONs...
Maybe WSAD put some otimization inside these classes.
Sadanand Murthy
Ranch Hand

Joined: Nov 26, 2003
Posts: 382
Originally posted by Renata fonseca:
thanks...
I've noticed that WSAD generates the STUBs and SKELETONs...
Maybe WSAD put some otimization inside these classes.

There is the step ejbc which "compiles" the EJBs. By compile I don't mean the compilation that javac does. You still need to compile your home, remote & implementation classes of the EJB via javac. ejbc builds the stubs/skeletons and also validates the deployment descriptors. Each application server that provides the EJB container provides its ejbc (each app server has its own enhancements to the deployment descriptors: for example, for session beans weblogic requires weblogic-ejb-jar.xml in addition to ejb-jar.xml).
If you use an IDE, then it may do the ejbc for you. If not, then you will need to add this to the build script.


Ever Existing, Ever Conscious, Ever-new Bliss
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
WorldCitizen,
First, welcome to JavaRanch!
Second, unfortunately your name doesn't comply with our naming policy. Please change your display name to comply with it. Thanks in advance, and we look forward to seeing you around the Ranch.


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stub and Skeleton