[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Looking for Simple EJB Tutorial

I am looking for a tutoria similar to "WTP Tutorials - Building a Simple EJB Application". Unfortunately this tutorial does not track with the current versions of Eclipse and JBoss. I am trying to learn JBoss 5.0.1 and Eclipse 3.4.2 (both of which I have just installed). (I followed instructions elsewhere for adding WTP tools from callisto).

When I tried using this tutorial despite the inconsistencies the first trouble comes when I create a new EJB Project. At first I could not get xdoclet to create my home, local, etc. files; I found that if I use EJB Module Version = 2.0, I could then modify the configuration to check the "EJB Doclet" facet.

Well, the tutorial tells me to uncheck the "Add Project to an EAR", but if I do this I cannot check the "Create EJB Client JAR" module. So, I go ahead and check the Add Project to EAR, and set the name to ZooBeansEAR. I can then set my client name=ZooBeansClient and JAR=ZooBeansClient.jar.

So now the challence: The project explorer does not track with the tutorial. I now have root folders ZooBeansClient, ZooBeansEAR, and ZooBeansProject. The tutorial tells me to add TigerBean to the folder ejbModule; however, I find this folder in multiple locations. I take a guess and add the TigerBean class to the ejbModule under ZooBeansProject. When I save (after removing all the "@Override"'s) xdoclet completes and under ZooBeansClient/ejbModules I now have Tiger, TigerHome, TigerLocal, TigerLocalHome and TigerUtil.

SO far I am thinking I have made this work. But alas, I try to deploy to JBoss and jBoss gags: I added my JBoss installation under servers, then right-click to "Add and remove projects". My only choice is ZooBeansEAR which lists under it ZooBeansClient (which I found is an empty .jar and likely what is broken) and ZooBeansProject. JBoss gives an error indicating it cannot find/load the TigerSession.class.

I would like to fix the deployment, but even more I would like to know how to use eclipse properly. Is there an updated version of this tutorial somewhere, or has someone run into this before?

TIA,

Steve B.