Skip to main content



      Home
Home » Newcomers » Newcomers » Looking for Simple EJB Tutorial
Looking for Simple EJB Tutorial [message #269554] Wed, 18 March 2009 17:27
Eclipse UserFriend
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.
Previous Topic:How to view AutomatedTests and Examples code?
Next Topic:${filecomment}
Goto Forum:
  


Current Time: Mon Jul 21 07:19:28 EDT 2025

Powered by FUDForum. Page generated in 0.07610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top