geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forrest Xia <forres...@gmail.com>
Subject Re: Using @EJB annotation instead of looking up for EJB
Date Tue, 26 Jun 2012 14:13:27 GMT
On Mon, Jun 25, 2012 at 1:34 PM, nemesis_sun <nemesis_sun@yahoo.com> 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 ->
https://svn.apache.org/repos/asf/geronimo/samples/branches/3.0/samples/javaee5/bank/

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:
> http://apache-geronimo.328035.n3.nabble.com/Using-EJB-annotation-instead-of-looking-up-for-EJB-tp3985253p3985255.html
> Sent from the Users mailing list archive at Nabble.com.
>



-- 
Thanks!

Regards, Forrest

Mime
View raw message