Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
On Today at 2:02pm, HR=>Haroon Rafique wrote: HR> [..snip..] HR> HR> Nope. Its not mentioned anywhere else in the app. Its just packaged in HR> the .war file (which is inside the .ear). Glassfish "does the right thing" HR> when it sees a servlet marked with the @EJB annotations. You can use th

Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
Hi Robin, see comments inline: On Today at 7:25pm, RM=>Robin Mannering wrote: RM> [..snip..] RM> RM> Can I just ask two further small questions to Haroon? RM> RM> Is the EJBInvokerServlet set to initialise at app startup via the RM> web.xml definition? RM> Nope. Its not mentioned anywhere e

Re: EJB Injection in Interceptor

2009-07-31 Thread Robin Mannering
Wow! Thanks for all this great feedback and ideas regards this problem. I'm sorry I cannot add any useful prompts to help you develop a plugin Wes as Spring and it's methods for injection are something I know nothing about. I have to admit, injection is not something I fully understand and a

Re: EJB Injection in Interceptor

2009-07-30 Thread Nathan Schulte
Robin Mannering mtndesigns.co.uk> writes: > http://cwiki.apache.org/S2PLUGINS/ejb3-plugin.html Are you using that plugin, or the following? http://cwiki.apache.org/S2PLUGINS/ejb3-jboss-plugin.html With the "JBoss" plugin, I am able to use Local interfaces rather than remote. I can show an exampl

Re: EJB Injection in Interceptor

2009-07-30 Thread David Blevins
Just to note, there has been some work in OpenEJB to make it so Struts objects can use Java EE injection like Servlets or JSF components can. Karan did the work, he might be able to give more detail. -David On Jul 30, 2009, at 6:16 AM, Wes Wannemacher wrote: Sorry Robin, this is on my to-

Re: EJB Injection in Interceptor

2009-07-30 Thread Wes Wannemacher
On Thu, Jul 30, 2009 at 10:34 AM, Haroon Rafique wrote: > Hi Wes, > > I don't know much of the details about the JEE spec, however, I can share > my implementation with you. The code is not in production yet, so caveat > emptor (it works for us, for now in development). > > I use glassfish as my ap

Re: EJB Injection in Interceptor

2009-07-30 Thread Haroon Rafique
On Today at 9:16am, WW=>Wes Wannemacher wrote: WW> Sorry Robin, this is on my to-do list, but it's not something I'm WW> working on right this second. One thing that is holding me up is the WW> lack of knowledge of JEE. Is there a standard mechanism for creating WW> instances of EJB-hydrated obje

Re: EJB Injection in Interceptor

2009-07-30 Thread Wes Wannemacher
Sorry Robin, this is on my to-do list, but it's not something I'm working on right this second. One thing that is holding me up is the lack of knowledge of JEE. Is there a standard mechanism for creating instances of EJB-hydrated objects? For instance, if you annotated a field on a servlet with @Pe

Re: EJB Injection in Interceptor

2009-07-30 Thread Struts Two
ct: Re: EJB Injection in Interceptor > To: "Struts Users Mailing List" > Received: Thursday, July 30, 2009, 6:17 AM > Just to clear up my actual question > from the thread below as feedback has run dry > unfortunately. > > Is there anybody working daily with Struts 2

Re: EJB Injection in Interceptor

2009-07-29 Thread Robin Mannering
Just to clear up my actual question from the thread below as feedback has run dry unfortunately. Is there anybody working daily with Struts 2 and EJB 3.0? If so, what is the best way to obtain local references to EJB 3 session beans from within Struts 2 action classes? Thanks for any thought

Re: EJB Injection in Interceptor

2009-07-27 Thread Robin Mannering
Just wondering if the below thread has gone any further. After creating another thread on the same subject at an earlier date, we discussed using the EJB plugin here: http://cwiki.apache.org/S2PLUGINS/ejb3-plugin.html However, having started to use this plugin so that I can reference statele

Re: EJB Injection in Interceptor

2009-07-16 Thread Nathan Schulte
Wes Wannemacher wantii.com> writes: > Seems to me that my idea to create an ObjectFactory based plugin ... needs to pick up some steam. > I only have one question for the EJB users out there... Do you guys need Spring integration as well? To answer your question, _I_ personally don't need Spring

Re: EJB Injection in Interceptor

2009-07-16 Thread Wes Wannemacher
On Thursday 16 July 2009 04:20:05 pm Nathan Schulte wrote: > Nils-Helge Garli Hegvik gmail.com> writes: > > The short answer - You have to do the lookup yourself. > > > :/ > : > > The long answer - There's a similar discussion going on that pretty > > much covers the topic: > > http://www.nabble.c

Re: EJB Injection in Interceptor

2009-07-16 Thread Nathan Schulte
Nils-Helge Garli Hegvik gmail.com> writes: > The short answer - You have to do the lookup yourself. :/ > The long answer - There's a similar discussion going on that pretty > much covers the topic: > http://www.nabble.com/Struts2-Action-Class-and-EJB-Injection-td24497801.html Yes, I'm familiar wi

Re: EJB Injection in Interceptor

2009-07-16 Thread Nils-Helge Garli Hegvik
The short answer - You have to do the lookup yourself. The long answer - There's a similar discussion going on that pretty much covers the topic: http://www.nabble.com/Struts2-Action-Class-and-EJB-Injection-td24497801.html Nils-H On Thu, Jul 16, 2009 at 10:03 PM, Nathan Schulte wrote: > This may

EJB Injection in Interceptor

2009-07-16 Thread Nathan Schulte
This may be more related to XWork2, but I'll start by asking here. I'm creating a custom Interceptor to handle user permissions for an application. Rather than redirecting to an action to actually process a login attempt (requiring a custom result type), the Interceptor itself will process the lo