geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <>
Subject Re: Using @EJB annotation instead of looking up for EJB
Date Wed, 27 Jun 2012 01:53:42 GMT
Hi, just have a close look at your sample application, with the changes
below, I could invoke the application client and the @EJB also works.

a. Add Class-Path: HRManager-EJB.jar in the MANIFEST.MF file in the client

>From the spec side, client application may have access to other components
in the same EAR application, that is not must. The changes above is just to
make sure that it could see the classes from the EJB application. Another
possible solution is to add those ejb client API in the client application

b. Update the client deployment plan with below, the server-environment
does NOT mean the dependency configuration, think you could find more
description for that in the wiki.


2012/6/26 Forrest Xia <>

> On Mon, Jun 25, 2012 at 1:34 PM, nemesis_sun <>wrote:
>> Hi Forrest,
>> I couldn't find an example in the given link on how to use @EJB instead of
>> InitialContext.lookup()
>> The client there still uses lookup() to get EJB.
> Just made some updates to bank sample in the 3.0 branch ->
> You can compile it and run against 3.0.0-SNAPSHOT build, for app client
> run, just execute a command like this:
> $GEORNIMO_HOME/bin/client
> org.apache.geronimo.samples.javaee5/bank-tomcat_bank-client-3.0.0-SNAPSHOT.jar/3.0.0-SNAPSHOT/car
>> --
>> View this message in context:
>> Sent from the Users mailing list archive at
> --
> Thanks!
> Regards, Forrest


View raw message