geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Web App Servlet calling EJB
Date Mon, 26 Feb 2007 21:41:20 GMT
Got it on my own finally after four days of effort!  I needed the
appropriate geronimo-web.xml syntax and info for the <ejb-ref>.  I also
needed a dependency for the EJB module in the WAR environment.

I enjoy learning this and appreciate the amount of flexibility offered,
but this really needs defined a whole lot better for developers to
actually use the product.  It's taken me two weeks of learning curve to
deploy a simple stateless session EJB and manage to call it from a
remote a client and a JSP on the same server.  I'd hate to be
justifying that to a Project Manager.  Granted, the first time I did
this in WebSphere 4 and Visual Age for Java and an AS400, it took six
weeks and we had better documentation and support.  Most of this effort
involves deployment descriptor learning whose information appears rather
distibuted at this time.

I've documented my learning curve and am willing to share, along with
doing screen shots to guide others through the learning curve of basic
JEE Eclipse and Geronimo development.

Does someone monitoring this list work on project documentation and
willing to tutor me on putting together a tutorial on building apps in
Eclipse and deploying them on Geronimo for the documentation section?

I'm using MyEclipse right now, but plan on playing with the geronimo
eclipse plug-in and WTP/JST.

> -------- Original Message --------
> Subject: Web App Servlet calling EJB
> From:
> Date: Mon, February 26, 2007 10:16 am
> To:
> Hello Everyone,
> After a good peice of information last week, I was able to get my stand
> alone application call to a remote HelloWorld Session EJB. Thanks to
> Richard Carragher, Jr for defining the required client libraries.  I'm
> documenting my learning experence, and that has definetly made it into
> my outline.
> I'm now attempting to make the same call from a JSP.  I have a few
> questions that I would appreciate someone clarifying for me.
> 1. I presume that in the absence of an EAR definition, that a
> Servlet/JSP call to the EJB is still considered to be "Remote". I
> should use the same JNDI context lookup and will require the same
> library jars in the WAR that were needed for the stand alone client. 
> Is this correct?  If not, then how should I accomplish it?
> 2.  Do I need to define the ejb-ref or ejb-local-ref in the web.xml to
> acess the EJB in this manner?  I've attempted this and keep getting a
> "Could not find an EJB reference..." error mesage with more info about
> not finding my EJB classes from the deployer.  I've been over the EJB
> deployments in the ejb.xml and the openejb-jar.xml, as well as the
> web.xml and the geronimo-web.xml.  I just need to find what I'm missing
> in tying the WAR deploment to the EJB, and the code to the WAR
> deployment.
> Thanks all,
> Mark Aufdencamp

View raw message