Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
und another interesting thing is: > > I used java EE (GlashFish4.1.1), I guess it support Java EE version is 7. > > so, I write a example for struts + struts-cdi-plugin. > > I found I can use @EJB in action directly. > > also, both @Inject and @EJB work well for this. >

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
way. through I didn’t do test for it. and I found another interesting thing is: I used java EE (GlashFish4.1.1), I guess it support Java EE version is 7. so, I write a example for struts + struts-cdi-plugin. I found I can use @EJB in action directly. also, both @Inject and @EJB work well

RE: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Martin Gainty
> From: hongw...@163.com > Subject: Re: how to use ejb 3.1/3.2 in struts2? > Date: Wed, 9 Mar 2016 06:38:39 +0800 > To: user@struts.apache.org > > Hi, Paul > > Thanks your response, yes. I used ee 7, > would you share with me some examples? > > Thanks >

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
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 写道: > > Are you using an EE 7 server? I believe 7 integrates CDI and EJB so you can > @Inject your remote bean interfac

Re: how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Paul Benedict
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 tha

how to use ejb 3.1/3.2 in struts2?

2016-03-08 Thread Mike Guo
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

Any example integrate struts2 ( CRUD without Hibernate, nor EJB, nor Glassfish)

2014-10-20 Thread Chris
Hello, I would like to integrate struts2 in an CRUD application , JDBC, Apache Tomcat, Netbeans ( or eclipse ) but without Hibernate , nor EJB, nor GlassFish. Hibernate is more complex than the problem it tries to solveCould you have any integration example please ? Thanks, Regards, Chris

Antwort: Struts2, EJB 3.1, JPA 2 and OpenJPA.

2013-09-20 Thread Christoph Nenning
> > Hello, I have a problem with Struts 2 and OpenJPA. > I use Websphere 8.5 as Application server. OpenJPA as persistence provider. > I have developed a web application with Struts 2 as main framework. > In this webapp there is EJB 3.1 and JPA 2 as technologies. > > I

Struts2, EJB 3.1, JPA 2 and OpenJPA.

2013-09-20 Thread Roberto Bottino
Hello, I have a problem with Struts 2 and OpenJPA. I use Websphere 8.5 as Application server. OpenJPA as persistence provider. I have developed a web application with Struts 2 as main framework. In this webapp there is EJB 3.1 and JPA 2 as technologies. I call an struts action, the action call

RE: How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one application?

2011-08-15 Thread Marcus Bond
Have never tried this out with ejb since it isn't isn't my thing but just the same as a spring / struts (or any other framework) app your service layer would be called from your struts actions such that struts isn't likely to know about or care about the fact that the service

Re: How to implement EJB 3.0, JPA, Hibernate and Struts 2 in one application?

2011-08-15 Thread Maurizio Cucchiara
I think this is a good starting point: http://s.apache.org/jpa Maurizio Cucchiara On 15 August 2011 07:05, Coolemma wrote: > EJB 3.0, JPA, Hibernate and Struts 2 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.

JBoss 5.1.0 GA, Struts 2.0 and EJB 3.0 : SecurityClientFactory

2009-12-18 Thread Fernandes Celinio
Hi, I have developped a stateful session bean where access to methods are restricted : @SecurityDomain("myDomainBlabla") @RolesAllowed({"xxx", "yyy"}) @Stateful public class BlablaBean implements BlablaRemote { @RolesAllowed({"xxx"}) public void doSomething(User user)

Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-08 Thread irene zeller sancho
and it only looked for > annotations in current class, so if you injected a Session Bean in a > super.execute() method in a parent class, it was not looked up. > > Anyway, I am considering moving to EJB 3.1 and hope I can find a new way of > injecting new EJBs... > > > Fernandes Ce

Re: EJb 3.1 (dependency injection) and Struts2 actio ns ¿CDI/Weld needed?

2009-12-07 Thread Wes Wannemacher
On Mon, Dec 7, 2009 at 4:02 PM, Ignacio de Córdoba wrote: > > Hi there, > I'd like to know if there is a recommended approach to deal with dependency > injection on new EJB 3.1 EJBs. > I am using now a modified version of JBoss Struts2 plugin with works great > but it r

EJb 3.1 (dependency injection) and Struts2 actions ¿CDI/Weld needed?

2009-12-07 Thread Ignacio de Córdoba
Hi there, I'd like to know if there is a recommended approach to deal with dependency injection on new EJB 3.1 EJBs. I am using now a modified version of JBoss Struts2 plugin with works great but it really does nothing more than regular JNDI lookups on every action request call. I wonder if

Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-07 Thread Ignacio de Córdoba
s not looked up. Anyway, I am considering moving to EJB 3.1 and hope I can find a new way of injecting new EJBs... Fernandes Celinio wrote: > > Hi, > I know that it is not possible to inject EJB in Struts 2 actions. > The following annotation would not work : > @EJB > MyBeanLoca

Re: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-06 Thread irene zeller sancho
> Cookie > > Celinio, > > You can also use a Servlet simply for the purpose of invoking EJBs (let's > call it EJBInvokerServlet) and then use the @Resource notation to bring > any local EJB into your Action. See: > http://osdir.com/ml/user-struts.apache.org/2009-07/msg00

RE: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread Haroon Rafique
t; jndi lookup and inject that reference into your class. JC> JC> Cookie Celinio, You can also use a Servlet simply for the purpose of invoking EJBs (let's call it EJBInvokerServlet) and then use the @Resource notation to bring any local EJB into your Action. See: http://osdir.com/ml/use

RE: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread James Cook
al Message- From: Fernandes Celinio [mailto:cfernan...@sopragroup.com] Sent: 04 December 2009 11:37 To: user@struts.apache.org Subject: [Struts 2 + EJB 3] injection of EJBs into struts 2 actions Hi, I know that it is not possible to inject EJB in Struts 2 actions. The following annotation woul

[Struts 2 + EJB 3] injection of EJBs into struts 2 actions

2009-12-04 Thread Fernandes Celinio
Hi, I know that it is not possible to inject EJB in Struts 2 actions. The following annotation would not work : @EJB MyBeanLocal mybean; But how come ? Since a Struts action is a servlet and injection works in a servlet, injection should work. Thanks for enlightening me.

RE: [Struts 2 + EJB 3] Display an image

2009-11-27 Thread Fernandes Celinio
Hi, Thanks for helping. Well, I of course needed to call the action in my tag. It works. Thanks again. -Message d'origine- De : Paweł Wielgus [mailto:poulw...@gmail.com] Envoyé : vendredi 27 novembre 2009 13:04 À : Struts Users Mailing List Objet : Re: [Struts 2 + EJB 3] Displ

Re: [Struts 2 + EJB 3] Display an image

2009-11-27 Thread Paweł Wielgus
Hi Fernandes, i think that it is impossible what You are trying to achieve. You cannot pur image to img tag inside html. Img tag will result in just another http request, and this another request must be serviced by your server. So the code will look like this: And showMyImage action will simpl

Re: [Struts 2 + EJB 3] Display an image

2009-11-27 Thread Saeed Iqbal
Are you putting the file name in session string or the binary file? On Friday, November 27, 2009, Fernandes Celinio wrote: > Hi, > > I have an entity bean which has a BLOB attribute. That BLOB attribute > maps to a BLOB column in a table in an Oracle database. > > @Entity > public class Boo imple

[Struts 2 + EJB 3] Display an image

2009-11-27 Thread Fernandes Celinio
Hi, I have an entity bean which has a BLOB attribute. That BLOB attribute maps to a BLOB column in a table in an Oracle database. @Entity public class Boo implements Serializable { ... @Lob @Basic(fetch=FetchType.LAZY) private byte[] image; public byte[] getImage

Re: Re: Struts2 + EJB 3.0 + Hibernate

2009-11-25 Thread emil thushanga
Ya thats true, but its not clean such as the way used in spring, or JSF managed beans. lookup service is a another dependency for your project. Emil On Thu, Nov 26, 2009 at 1:24 PM, wrote: > Why is it a challenge accessing EJB in Struts2? All you need to do is to > lookup your local or

Antwort: Re: Struts2 + EJB 3.0 + Hibernate

2009-11-25 Thread jheidenreich
Why is it a challenge accessing EJB in Struts2? All you need to do is to lookup your local or remote EJB interface, which is in fact 1 line of code. Joachim Struts2 is good for your presentation layer. It is the MVC front controller. Accessing EJB is a kind of a challenge inside Struts2

Re: Struts2 + EJB 3.0 + Hibernate

2009-11-25 Thread emil thushanga
Struts2 is good for your presentation layer. It is the MVC front controller. Accessing EJB is a kind of a challenge inside Struts2 rather than spring. Struts2 + spring + hibernate will be a good combination if it is suitable for your problem domain. Emil On Thu, Nov 26, 2009 at 12:08 PM, vikrant

Struts2 + EJB 3.0 + Hibernate

2009-11-25 Thread vikrant S
Is It a good idea to build a project using the combination Struts2 + EJB 3.0 + Hibernate using MVC architecture. Guys please share ur opinion -- View this message in context: http://old.nabble.com/Struts2-%2B-EJB-3.0-%2B-Hibernate-tp26524749p26524749.html Sent from the Struts - User mailing

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 @

Re: EJB Injection in Interceptor

2009-07-31 Thread Haroon Rafique
s not mentioned anywhere else in the app. Its just packaged in the .war file (which is inside the .ear). Glassfish "does the right thing" when it sees a servlet marked with the @EJB annotations. You can use the Glassfish Admin Console (usually http://localhost:4848/): Application Serv

Re: EJB Injection in Interceptor

2009-07-31 Thread Robin Mannering
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 app server. To expose lo

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
-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 @PersistenceContext,

Re: EJB Injection in Interceptor

2009-07-30 Thread Wes Wannemacher
> I use glassfish as my app server. To expose local EJB interfaces within > our entire application, I use an EJBInvokerServlet (uses the @EJB and > @EJBs annotations). The listing is as follows (took out package and import > statements and anonymized): > >   �...@ejbs( >        

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>

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 se

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

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

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'

Re: EJB Injection in Interceptor

2009-07-16 Thread Wes Wannemacher
> > much covers the topic: > > http://www.nabble.com/Struts2-Action-Class-and-EJB-Injection-td24497801.h > >tml > > Yes, I'm familiar with this issue. I guess, in order to resolve it in an > Interceptor as opposed to an Action (the method of using an Interceptor and >

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.ht

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: &

EJB Injection in Interceptor

2009-07-16 Thread Nathan Schulte
rocess the login attempt. However, in order for this to work, the Interceptor needs access to a session bean that is the interface to the persistence layer. Is it possible to use the Java EE 5 @EJB annotation to inject an EJB, or even the Inject EJB Plugin? I've tried both, and neither see

RE: Struts2 Action Class and EJB Injection

2009-07-16 Thread Martin Gainty
ous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 16 Jul 2009 07:16:14 +0200 > From: ro...@mtndesigns.co.uk > To: user@struts.apache.org > Subject: Re: Struts2 Action Class and EJB Injection > > Thanks for the example. I shall download the source

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Robin Mannering
Thanks for the example. I shall download the source and give it a go. Thanks again. Nathan Schulte wrote: Robin Mannering mtndesigns.co.uk> writes: Can you please tell me how you obtained the EJB plugin and a short example of using it. I would prefer to use this if possi

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Nathan Schulte
Robin Mannering mtndesigns.co.uk> writes: > Can you please tell me how you obtained the EJB plugin and a short > example of using it. > > I would prefer to use this if possible. Sorr, I misspoke earlier. I'm actually using the EJB3 JBoss Plugin, from here http://cwiki.

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Robin Mannering
Can you please tell me how you obtained the EJB plugin and a short example of using it. I would prefer to use this if possible. Nathan Schulte wrote: Robin Mannering wrote: Is there anybody that is using Struts2 as the 'frontend' to an EJB 3 'backend' and what solut

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Nathan Schulte
Robin Mannering wrote: > Is there anybody that is using Struts2 as the 'frontend' to an EJB 3 > 'backend' and what solution do you currently employ. I am using the described setup, yes. Our solution was to use the mentioned EJB3 plugin and it's @InjectEJB annotat

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Robin Mannering
Yes, using annotations would be the ideal method. I think I remember reading that declaring beans as 'remote' when this is not that case, may cause unnecessary serialization/deserialization as calls are supposedly being made remotely. Depending on the EJB app server con

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Wes Wannemacher
I don't see anything wrong with that. I'd still like to eventually create a plugin that removes the need to do that in your execute method. The EJB spec added those annotations, so I'd like to figure out a way to honor them (cleanly). -Wes On Wed, Jul 15, 2009 at 10:37 AM, Robin

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Robin Mannering
@Remote in the session bean for it to be found correctly. It worked perfectly using the above. Here is a link to the resource. What do you think of this solution? http://www.coderanch.com/t/58279/Struts/Connecting-ejb-session-bean-from Thanks Robin Wes Wannemacher wrote: You are right

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Wes Wannemacher
You are right, there is only one, the other one in that list is a jboss-ejb plugin. Take a look at the source for the plugin, it is not particularly complex and I know the author is lurking around here somewhere. I would suggest that you do one of two things - 1. Create an interceptor, probably

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Robin Mannering
Many thanks for the prompt and detailed reply. I understand why the use of injection does not work now within a Struts2 action class. However, there only seems one EJB plugin available, which doesn't actually have a download available and hasn't had for some time it appea

Re: Struts2 Action Class and EJB Injection

2009-07-15 Thread Wes Wannemacher
The difference is that the container did not instantiate your struts action, struts did. There are EJB plugins available, check the plugin registry. http://cwiki.apache.org/S2PLUGINS/home.html The ones I have seen are based on injection via interceptor. I've toyed with the notion of creati

Struts2 Action Class and EJB Injection

2009-07-15 Thread Robin Mannering
Hello, Platform : Struts 2, EJB 3.0, Glassfish 2.1 I wish to obtain a reference to an EJB using injection. This works fine within a servlet, but from within a Struts2 action class, all references to injected EJB variables hold a 'null' reference. I've included a portion of

Re: Stateful ejb lose the information

2009-04-20 Thread Stefano Tranquillini
tln("setTrue " + tdb.setTrue()); ...} the ejb private boolean b = false; public boolean value() { return b; } public boolean setTrue() { b = true; return b; } public boolean setFalse() { b = false; return b;

Stateful ejb lose the information

2009-04-20 Thread Stefano Tranquillini
Hi all. i've a problem with ejb stateful bean. in my stateful ejb i've this method @Stateful public class ShopCartBean implements ShopCartLocal { @EJB private MGMTLocal man; private Customer customer; public boolean *enableShopping*(String user, Strin

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
jsp this is the tiles.xml (WEB-INF/tiles.xml) http://struts.apache.org/dtds/tiles-config_2_0.dtd";> where is the error? On Sat, Apr 11, 2009 at 20:39, Stefano Tranquillini wrote: > which jars did you put? > i've a only ear that contains both ejb

Re: Struts and EJB 3

2009-04-11 Thread Stefano Tranquillini
which jars did you put? i've a only ear that contains both ejb and web (struts) application. tomorrow i'll try to do something (if i've some time, is easter) and put the exceptions. thanks 2009/4/11 Ignacio de Córdoba : > > Hi, I use JDeveloper but I just ad jars in the stan

Re: Struts and EJB 3

2009-04-11 Thread Ignacio de Córdoba
use the jndi given 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. >>> >>> thanks folks >>> >&

Re: Struts and EJB 3

2009-04-11 Thread Stefano Tranquillini
pler way is to use the jndi given 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. >> >> thanks folks >> >> >>

Re: Struts and EJB 3

2009-04-10 Thread Ignacio de Córdoba
solution but using > ejb3.0 i loose something like the auto-jndi. > > well, i take a look about google guice anyway. > > thanks folks > > > > On Fri, Apr 10, 2009 at 17:14, Struts Two wrote: >> >> @EJB annotation can be used only with container manag

Re: Struts and EJB 3

2009-04-10 Thread Stefano Tranquillini
s solution but using ejb3.0 i loose something like the auto-jndi. well, i take a look about google guice anyway. thanks folks On Fri, Apr 10, 2009 at 17:14, Struts Two wrote: > > @EJB annotation can be used only with container managed components like > Servlet and JSF beans. Other than

Re: Struts and EJB 3

2009-04-10 Thread Struts Two
@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 for struts 1.3 to inject EJB 3 beans. Keep in mind you

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? >> &g

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 &

Use struts2 with ejb (3.0)

2009-03-13 Thread Stefano Tranquillini
Hi all, i'm looking a method to use EJB3.0 inside struts2. There's a guide or a tutorial? i've some question: usually a Stateful session bean is used to store and share information, right? ActionForm (bean of struts) does the same thing. using EJB and Struts we are in conflic

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 >

Struts and EJB 3

2009-03-06 Thread senderj
My env is Netbean with Glassfish. I am able to create a servlet to call EJB with this code: public class TryAdvise_create extends HttpServlet { @EJB AdviseFacadeRemote advBean; .. protected void processRequest(HttpServletRequest request, { .. Advise

Re: EJB in Struts Action

2008-10-03 Thread Ronaldo Rigoni ...
ot endorse distribution to any party other than intended recipient. > Sender does not necessarily endorse content contained within this > transmission. > > > > Subject: RE: EJB in Struts Action > > Date: Fri, 3 Oct 2008 10:20:01 -0600 > > From: [EMAIL PROTECTED] >

RE: EJB in Struts Action

2008-10-03 Thread Martin Gainty
ained within this transmission. > Subject: RE: EJB in Struts Action > Date: Fri, 3 Oct 2008 10:20:01 -0600 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > > I've used EJB3 w/ Struts 2 in JBoss, and we couldn't get DI working in strtus > action classes. We

RE: EJB in Struts Action

2008-10-03 Thread Eric Nelson
I've used EJB3 w/ Struts 2 in JBoss, and we couldn't get DI working in strtus action classes. We had to write context lookup classes. The problem is that struts action classes don't reside in the EJB container, so DI doesn't work correctly. If someone else has figured out

Re: EJB in Struts Action

2008-10-03 Thread Ronaldo Rigoni ...
The server is GlassFish V2. I need inject a Local EJB into Struts Action, I Have override a Struts ObjectFactory and with reflection inject a EJB, but is overwork unnecessary. How the best way to implement this? Tanks Ronaldo Rigoni 2008/10/3 Martin Gainty <[EMAIL PROTECTED]> >

RE: EJB in Struts Action

2008-10-03 Thread Martin Gainty
not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Fri, 3 Oct 2008 10:46:51 -0300 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: EJB in Struts Action >

EJB in Struts Action

2008-10-03 Thread Ronaldo Rigoni ...
Hi all, I need help, Can I inject a EJB in a Struts 2 Action by annotation? Or only lookup by InitialContentx? Regargs, Ronaldo Rigoni

Re: EJB Injection for Struts 2 Actions

2008-08-03 Thread Struts Two
: Alexander Bätz <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Sunday, August 3, 2008 4:01:12 AM Subject: EJB Injection for Struts 2 Actions Hi, i'm looking for a possibility to realize EJB injection for struts actions. The simpler the better. I know that there is a EJB pl

Re: EJB Injection for Struts 2 Actions

2008-08-03 Thread Marc Ende
Hi, I've followed this article and it works great for me. http://blogs.cuetech.eu/roller/psartini/entry/in_struts2_auf_ejb3_session Marc � schrieb: i'm looking for a possibility to realize EJB injection for struts actions. The simpler the better. I know that there is a EJB plu

EJB Injection for Struts 2 Actions

2008-08-03 Thread Alexander Bätz
Hi, i'm looking for a possibility to realize EJB injection for struts actions. The simpler the better. I know that there is a EJB plugin in the registry but currently (and at least for the last 3 weeks) there is now download on the project site. Some explanation how this is possib

EJB 3 + Struts ....delegate/ facade question

2007-01-17 Thread papo
(I'm sorry the previous one end it up - to wrong topic) Hello everyone! I am doing some EJB3 related project, all seems to work ok, though I now at the level of adding the web layer to the overall image! I have used struts before with EJB2.1 and we had some sort of delegates / facades / servi

EJB 3 + Struts ....delegate/ facade question

2007-01-17 Thread papo
Hello everyone! I am doing some EJB3 related project, all seems to work ok, though I now at the level of adding the web layer to the overall image! I have used struts before with EJB2.1 and we had some sort of delegates / facades / service locators in order to give us access to the Session Bea

RE: Struts+EJB

2006-11-24 Thread David Pinho (Hexadecimal)
XDoclet is very handy for generating .xml config files (amongst other things) for struts and ejb. It picks up special tags in javadoc comments in your classes and generates .xml artifacts. For example: If you stick something like this in you Action class comments: * @struts.action path

RE: Struts+EJB

2006-11-24 Thread shibing.chen
PROTECTED] Sent: Friday, November 24, 2006 5:54 PM To: user@struts.apache.org Subject: Re: Struts+EJB i read that chapter, what is xDoclet used for? is it a must to use them? any alternative? anyway thanks for replying Stas Ostapenko wrote: > > Hi ! > > Take a look at the book "Stru

Re: Struts+EJB

2006-11-24 Thread samhr
s with Enterprise JavaBeans" - is nice > introduction with example. > > On 11/24/06, samhr <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> Am new to Struts, currently am creating an application using Struts and >> EJB. >> >> I dont know ho

Re: Struts+EJB

2006-11-24 Thread Stas Ostapenko
n application using Struts and EJB. I dont know how to connect the Struts with EJB component. Can someone pls help me? I searched for samples online, but am not able to understand them. Does anyone has a sample code to integrate both of them, with explanation? Looking forward for an answer

Struts+EJB

2006-11-24 Thread samhr
Hi, Am new to Struts, currently am creating an application using Struts and EJB. I dont know how to connect the Struts with EJB component. Can someone pls help me? I searched for samples online, but am not able to understand them. Does anyone has a sample code to integrate both of

Re: JDeveloper-EJB Verifier

2006-10-30 Thread Martin Gainty
, distribution or copying of it or its contents - Original Message - From: "Daniel Chacón Sánchez" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Monday, October 30, 2006 8:03 AM Subject: Re: JDevelope

Re: JDeveloper-EJB Verifier

2006-10-30 Thread Daniel Chacón Sánchez
yes I did, but not answer, someone who knows how to validate that the bean class and the interface of an EJB has the same methods without errors in parameters or throws, etc 2006/10/27, Martin Gainty <[EMAIL PROTECTED]>: yep..was there in 9 but not in 10 as a consolation you can validat

Re: JDeveloper-EJB Verifier

2006-10-27 Thread Martin Gainty
yep..was there in 9 but not in 10 as a consolation you can validate your ejb-jar.xml at http://www.w3.org/2001/03/webdata/xsv#hlp-check did you ask the folks at oracle ? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the

JDeveloper-EJB Verifier

2006-10-27 Thread Daniel Chacón Sánchez
Someone can tell me how use the EJB Verifier in JDeveloper 10.1.3.0.4, I used that in previous versions but I didn´t found how to used that facility in this version. In previous versions you right click the EJB and then click on "Verify Bean", but now how can I do that??

Re: struts - JDBC - EJB

2006-09-19 Thread Ted Husted
On 9/19/06, Ted Husted <[EMAIL PROTECTED]> wrote: The SASH-Safari site demonstrates using a Struts/Apache/Spring/Hibernate stack. * http://ibatis.apache.org/javadownloads.html Oops, the clipboard stuck: * http://swik.net/SASH-Safari -T. ---

Re: struts - JDBC - EJB

2006-09-19 Thread Ted Husted
f struts ? is it that one person will be devoted to developing beans while the other will be involved in designing ? Would you please give me a sample appln that uses EJB with Oracle (SQL Plus) database.. a small one.. I dont know how to start off with it. -

struts - JDBC - EJB

2006-09-19 Thread Tom Jerry
what is the actual purpose of struts ? is it that one person will be devoted to developing beans while the other will be involved in designing ? Would you please give me a sample appln that uses EJB with Oracle (SQL Plus) database.. a small one.. I dont know how to start off with it.

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-05 Thread stephan opitz
it works as ear project with access to the ejbs by prewriting the ear-archive name 2006/7/1, stephan opitz <[EMAIL PROTECTED]>: i've looked hours for it and it didn't work... using eclipse... also examples from inet whicht i imported in eclipse... out-of-container ejb shouldn&#

EJB 3.0 out-of-the-container support with struts or shale

2006-07-02 Thread stephan opitz
the ejb 3.0 specifivation is done standard! does anyone get successful support for an struts or shale project using ejb 3.0. glassfish reference implementation works only with vm argument -javaagent -> but is this maybe possible to combine with webframeworks ala struts or shale. important

Re: [shale] and ejb 3.0 and hibernate working together example

2006-07-01 Thread stephan opitz
i've looked hours for it and it didn't work... using eclipse... also examples from inet whicht i imported in eclipse... out-of-container ejb shouldn't be that problem but it is... i've used the glassfish reference implementation. also built a jar containing the meta-in

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-30 Thread Craig McClanahan
On 6/30/06, Adam Brod <[EMAIL PROTECTED]> wrote: I had to put my directory structure like this: [mywebapp]\WEB-INF\classes\META-INF\persistence.xml It didn't work when I put it in a top-level META-INF directory. It also works if the persistence.xml file is in the META-INF directory of a jar

  1   2   >