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?
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
Joined: Mar 15, 2002
thanks... I've noticed that WSAD generates the STUBs and SKELETONs... Maybe WSAD put some otimization inside these classes.
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.
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.