Re: Struts and EJB 3

2009-04-12 Thread Stefano Tranquillini
accepter > aucune responsabilité pour le contenu fourni. > > > > > > >> From: stefano.tranquill...@gmail.com >> Date: Sun, 12 Apr 2009 18:04:44 +0200 >> Subject: Re: Struts and EJB 3 >> To: user@struts.apache.org >> >> this

RE: Struts and EJB 3

2009-04-12 Thread Martin Gainty
tion, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: stefano.tranquill...@gmail.com > Date: Sun, 12 Apr 2009 18:04:44 +0200 > Subject: Re: Struts and EJB 3 > To: user@struts.apache.org > > this is the error: > > 2

Re: Struts and EJB 3

2009-04-12 Thread Stefano Tranquillini
iven the context >>>>> and recall the remote object. is not so bad as solution but using >>>>> ejb3.0 i loose something like the auto-jndi. >>>>> >>>>> well, i take a look about google guice anyway. >>>>> >>>&g

Re: Struts and EJB 3

2009-04-11 Thread Stefano Tranquillini
gt;>> @EJB annotation can be used only with container managed components like >>>>> Servlet and JSF beans. Other than that either you have to use spring or >>>>> right a customized EJB3 interceptor for struts 2 or modify request >>>>> processing command chains

Re: Struts and EJB 3

2009-04-11 Thread Ignacio de Córdoba
;> right a customized EJB3 interceptor for struts 2 or modify request >>>> processing command chains for struts 1.3 to inject EJB 3 beans. >>>> >>>> Keep in mind you can also use Google Guice to do that as well [if you >>>> are >>>> not using any o

Re: Struts and EJB 3

2009-04-11 Thread Stefano Tranquillini
ruts 2 or modify request >>> processing command chains for struts 1.3 to inject EJB 3 beans. >>> >>> Keep in mind you can also use Google Guice to do that as well [if you are >>> not using any other spring goodies, Guice should very easy to set up] >>> &

Re: Struts and EJB 3

2009-04-10 Thread Ignacio de Córdoba
gle Guice to do that as well [if you are >> not using any other spring goodies, Guice should very easy to set up] >> >> >> >> --- On Fri, 4/10/09, Stefano Tranquillini >> wrote: >> >>> From: Stefano Tranquillini >>> Subject: Re: Struts and

Re: Struts and EJB 3

2009-04-10 Thread Stefano Tranquillini
odies, Guice should very easy to set up] > > > > --- On Fri, 4/10/09, Stefano Tranquillini > wrote: > >> From: Stefano Tranquillini >> Subject: Re: Struts and EJB 3 >> To: "Struts Users Mailing List" >> Received: Friday, April 10, 2009, 2:39

Re: Struts and EJB 3

2009-04-10 Thread Struts Two
can also use Google Guice to do that as well [if you are not using any other spring goodies, Guice should very easy to set up] --- On Fri, 4/10/09, Stefano Tranquillini wrote: > From: Stefano Tranquillini > Subject: Re: Struts and EJB 3 > To: "Struts Users Mailing List"

Re: Struts and EJB 3

2009-04-10 Thread Stefano Tranquillini
Yes, i'll try to use, but the ejb with annotation gives me a nullpointer exception. i've to call the ejb using the old style jndi call. On Fri, Apr 10, 2009 at 15:25, Lukasz Lenart wrote: > 2009/4/10 Stefano : >> in struts1 what's the way to use EJB3.0? >> >> there's no possibility to use annotat

Re: Struts and EJB 3

2009-04-10 Thread Lukasz Lenart
2009/4/10 Stefano : > in struts1 what's the way to use EJB3.0? > > there's no possibility to use annotation? > i need to use classical jndi? why? You can use annotations with Struts1, is not a problem with framework but with Java platform you're using. THe best solution is to use Spring to connect

Re: Struts and EJB 3

2009-04-10 Thread Stefano
in struts1 what's the way to use EJB3.0? there's no possibility to use annotation? i need to use classical jndi? why? thanks On Fri, Mar 6, 2009 at 13:24, Ignacio de Córdoba wrote: > > Hi, > I'm us¡ng JBoss and @EJB doesn't work either. Are you using Struts1 or > Struts2? If Struts2, You can us

Re: Struts and EJB 3

2009-03-06 Thread Ignacio de Córdoba
Hi, I'm us¡ng JBoss and @EJB doesn't work either. Are you using Struts1 or Struts2? If Struts2, You can use the extension for EJB3 for Struts2. It works OK (interceptor). senderj wrote: > > My env is Netbean with Glassfish. I am able to create a servlet to call > EJB with this code: > > public