Hi, Paul

Thanks your response, yes. I used ee 7, 
would you share with me some examples?

Thanks

Mike


Sent from my iPhone

> 在 2016年3月8日,23:50,Paul Benedict <pbened...@apache.org> 写道:
> 
> Are you using an EE 7 server? I believe 7 integrates CDI and EJB so you can
> @Inject your remote bean interfaces. This may also be available in 6, but
> you'd have to research that.
> 
> PS: @EJB is a specialized injection annotation that only deals with EJB.
> Obviously, but just wanted to point that out.
> 
> Cheers,
> Paul
> 
>> On Tue, Mar 8, 2016 at 9:44 AM, Mike Guo <hongw...@163.com> wrote:
>> 
>> Hello, everyone.
>> 
>> I suppose this is very old question to struts user list.
>> 
>> how to use EJB 3.1/3.2 in struts2?
>> 
>> I did some research on google.  but I totally no idea what’s the exactly
>> solution for this.
>> 
>> some one said use cdi plugin. but if I use cdi plugin,  I guess it can be
>> @inject a ebb into action class. but if I want to inject a remote EJB
>> interface, I think it is not work.
>> 
>> also, some one said use JNDI lookup , I suppose it can get it done.  but I
>> think it is very ugly way for it.
>> 
>> 
>> is there any better solution for this?
>> 
>> any comments?
>> 
>> 
>> Many many thanks
>> 
>> 
>> Mike
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to