ejb

2006-06-27 Thread Abhimanyu Koul
hi all! does anybody here have some good ejb books. i need to use ejb in struts but don't know how. please help Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090

Ejb

2006-06-29 Thread Abhimanyu Koul
hi! Why do we use ejbs in our application particularly entity and sessions. can't we write java classes to do the same and use java beans as data carriers. what are the true benefits of using ejbs with struts. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090

RE: ejb

2006-06-27 Thread Krishna, Hari
Hi pls find the best in the industry book. If u dont mind pls let me know the architecture you are following.Generally we call EJBs after Action using either Delegate or Facade pattern.If u are using servicelocator u can straight away call ejb from Action -Original Message- From

Re: ejb

2006-06-28 Thread Abhimanyu Koul
i am using delegate here. where can i find the book? thanks Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090 - Original Message - From: "Krishna, Hari" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 28, 2006

RE: ejb

2006-06-28 Thread Krishna, Hari
before going into the work get into JNDI as its the gateway to EJB what exactle are u doing in delegate -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 12:39 PM To: Struts Users Mailing List Subject: Re: ejb i am using delegate here

RE: ejb

2006-06-28 Thread George.Dinwiddie
EJB Design Patterns: Advanced Patterns, Processes, and Idioms (http://www.amazon.com/exec/obidos/ASIN/0471208310/alberg30-20) by Floyd Marinescu Core J2EE Patterns: Best Practices and Design Strategies (http://www.amazon.com/exec/obidos/ISBN=0131422464/alberg30-20) by Deepak Alur, John Crupi, Dan

Re: Ejb

2006-06-29 Thread Leon Rosenberg
On 6/29/06, Abhimanyu Koul <[EMAIL PROTECTED]> wrote: hi! Why do we use ejbs in our application particularly entity and sessions. can't we write java classes to do the same and use java beans as data carriers. what are the true benefits of using ejbs with struts. why do you ask us? It's your d

RE: Ejb

2006-06-29 Thread Tejas Bavishi
Hello There are some standard advantages mentioned in favour of EJBs like transaction management, application scalability, security, database connection pools, etc. You can read through the advantages by browsing through the EJB specification. However, recently there have been loads of talks of

RE: Ejb

2006-06-29 Thread George.Dinwiddie
If you do a good job of separating your business logic from your presentation, then it's quite easy to put that business logic into an EJB behind a BusinessDelegate that implements the same API. This ease means that you can defer going to an EJB solution until you actually need the advan

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

EJB+STRUTS Architecture

2004-04-15 Thread Rajesh, Harikrishnan \(H.\)
Hi, Does some body throw me light on how to architect an application with EJB+STRUTS for Websphere+Oracle environment. It would be very much of help to me if anybody has some sample architecture or sample application. If you have some sample app, please send the same to [EMAIL PROTECTED] Thanks

EJB + Struts + Hibernate

2004-06-27 Thread Irfandhy Franciscus
Hi, Does any of you guys has eve developed Web Apps using Struts and hibernate ? If you have, do you think EJB is a necessary layer on top of hibernate ? Thanks in advance ^^ Regards, Irfandhy Franciscus - To

ActionForm and EJB

2006-06-08 Thread chamal desilva
Hi, I read few articles on struts. They recommend not to send action form class to EJBs as data holders. They recommend we should use general classes for holding data to decople web tier with EJBs. What they say must be correct but I still have few doubts (Maybe b'cause I am not experienced). Do

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.

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+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

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 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 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: EJB + Struts + Hibernate

2004-07-22 Thread Marco Mistroni
4 15:43 To: Struts Users Mailing List Subject: Re: EJB + Struts + Hibernate +1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: > I don't believe it is unless you feel that the application will need > to be distribut

Re: EJB + Struts + Hibernate

2004-07-22 Thread Richard
--Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 27 June 2004 15:43 To: Struts Users Mailing List Subject: Re: EJB + Struts + Hibernate +1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: I don't beli

RE: EJB + Struts + Hibernate

2004-07-22 Thread Marco Mistroni
rking. Regards marco -Original Message- From: Richard [mailto:[EMAIL PROTECTED] Sent: 22 July 2004 09:24 To: Struts Users Mailing List Subject: Re: EJB + Struts + Hibernate Marco Can you try and put it on tomcat/common/lib directory? HTH Richard Marco Mistroni wrote: >He

Re: EJB + Struts + Hibernate

2004-07-22 Thread Mark Lowe
ll have to try to put It in either one of the two and see if it is working. Regards marco -Original Message- From: Richard [mailto:[EMAIL PROTECTED] Sent: 22 July 2004 09:24 To: Struts Users Mailing List Subject: Re: EJB + Struts + Hibernate Marco Can you try and put it on tomcat/

RE: EJB + Struts + Hibernate

2004-07-22 Thread Marco Mistroni
Sent: 22 July 2004 12:05 To: Struts Users Mailing List Subject: Re: EJB + Struts + Hibernate Hi Marco I'm running all the hibernate stuff in the webapp, /WEB-INF/lib and had no issues.. Have you the ehcahche jar file in you lib directory? Only the jdbc drivers in the common/lib directory t

Struts EJB 3 tutorial

2006-03-17 Thread Sebastian Hennebrueder
Hello, I have just finished a EJB 3 - Struts tutorial and put it on my website. It is available for free as HTML and PDF at http://www.laliluna.de/EJB-3-tutorials.html As far as I remember, I have not yet announced tutorials in this mailing list. The smart-questions site and your mailing list

RE: EJB+STRUTS Architecture

2004-04-15 Thread Matthias Wessendorf
-Original Message- > From: Rajesh, Harikrishnan (H.) [mailto:[EMAIL PROTECTED] > Sent: Friday, April 16, 2004 6:01 AM > To: [EMAIL PROTECTED] > Subject: EJB+STRUTS Architecture > > > Hi, > > Does some body throw me light on how to architect an applicatio

Re: EJB+STRUTS Architecture

2004-04-16 Thread foxgem
u can find it at www.jbpm.org. It is struts + hibernate + ejb. - Original Message - From: "Rajesh, Harikrishnan (H.)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 16, 2004 12:01 PM Subject: EJB+STRUTS Architecture Hi, Does some body th

Re: EJB+STRUTS Architecture

2004-04-18 Thread Erik Price
On Apr 16, 2004, at 12:01 AM, Rajesh, Harikrishnan (H.) wrote: Does some body throw me light on how to architect an application with EJB+STRUTS for Websphere+Oracle environment. It would be very much of help to me if anybody has some sample architecture or sample application. If you have some

When to use EJB?

2004-06-02 Thread Zhang, Larry \(L.\)
), there will be another Oracle table insert. (The Oracle and People Soft databases are in different Unix boxes). Sounds like a good candidate to use 2 phase commit, and also a good candidate for EJB. I want to gather some pros and cons as whether or not we should use EJB in this case. And also if

Re: EJB + Struts + Hibernate

2004-06-27 Thread Bryan Hunt
I don't believe it is unless you feel that the application will need to be distributed across a cluster. I use the (excellent) spring framework ( springframework.org ) so that I can plug into a EJB layer if necessary in the future. --b Irfandhy Franciscus wrote: Hi, Does any of you guy

Re: EJB + Struts + Hibernate

2004-06-27 Thread Mark Lowe
+1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: I don't believe it is unless you feel that the application will need to be distributed across a cluster. I use the (excellent) spring framework ( springframework.org

Re: EJB + Struts + Hibernate

2004-06-27 Thread Irfandhy Franciscus
Thanks for the reply. So far I have tested my apps with JUnit and HttpUnit using a single resin serve. and it is working fine. I am just scared that it would not be able to handle heavy concurrent transaction without EJB. Thanks for the replies. Mark Lowe wrote: +1 You'll want to lo

Re: EJB + Struts + Hibernate

2004-06-27 Thread Michael McGrady
What's so special about SPRING? I am always interested in application frameworks. Can anyone give a quick synopsis of the pluses and minuses? Micahel At 07:42 AM 6/27/2004, Mark Lowe wrote: +1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004

Re: EJB + Struts + Hibernate

2004-06-27 Thread Mark Lowe
You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: I don't believe it is unless you feel that the application will need to be distributed across a cluster. I use the (excellent) spring framework ( springframework.org ) so

Re: EJB + Struts + Hibernate

2004-06-27 Thread Pedro Salgado
ared that it would not be able to handle heavy concurrent transaction > without EJB. > > Thanks for the replies. > > Mark Lowe wrote: >> +1 >> >> You'll want to look at spring whether you want to use EJB or Hibernate. >> >> >> On 27 Ju

Re: EJB + Struts + Hibernate

2004-06-27 Thread Jeremy Cowgar
> > HttpUnit using a single resin serve. and it is working fine. I am just > > scared that it would not be able to handle heavy concurrent transaction > > without EJB. Just for my own curiosity, how would iBatis

Re: EJB + Struts + Hibernate

2004-06-27 Thread Vic Cekvenich
EJB is heavy, therefore slow and less scaleable. So in order to support a heavy transaction load, you would avoid it. (and I think the reason somone mentioned iBatis is that it's popular and scaleable, more so that Hibrenate becuase it's lower to the metal (SQL)) .V Irfandhy Franci

Re: EJB + Struts + Hibernate

2004-06-28 Thread Mark Lowe
The only thing thats stopped me using ibatis is that there's no xdoclet template thus the need to edit and maintain a bunch of mapping files, "YAWN". Mark On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: EJB is heavy, therefore slow and less scaleable. So in order to support a he

RE: EJB + Struts + Hibernate

2004-06-28 Thread Marco Mistroni
Hi, I have. but I m not using EJB on top...just straight Hibernate Frankly, it depends on your type of app... For example, If u want to use the session façade, you will have A session EJB that hides the entity EJB. If u r not happy using entity EJB, U would replace entity code with

Re: EJB + Struts + Hibernate

2004-06-28 Thread salgado.pc
educed cost (only the DAO implementation is affected). Pedro Salgado > Mark > > On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: > >> EJB is heavy, therefore slow and less scaleable. So in order to >> support a heavy transaction load, you would avoid it. >> >&

Re: EJB + Struts + Hibernate

2004-06-28 Thread Mark Lowe
Salgado Mark On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: EJB is heavy, therefore slow and less scaleable. So in order to support a heavy transaction load, you would avoid it. (and I think the reason somone mentioned iBatis is that it's popular and scaleable, more so that Hibrenate becuase it

Re: EJB + Struts + Hibernate

2004-06-28 Thread Bryan Hunt
004, Mark Lowe wrote: +1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: I don't believe it is unless you feel that the application will need to be distributed across a cluster. I use the (excellent) spring framework (

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

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

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: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
Hi Chamal, The recommendation of not passing ActionForms to your business classes stems from two thoughts... First, by passing an ActionForm, you tie your business clases to Struts. Should you want to change to another framework later, your business classes should be unaffected, therefore, passi

Re: ActionForm and EJB

2006-06-08 Thread Truong Xuan Tinh
attribute etc. > > You will use a Data Transfer Object (or Value Object as some called) to wrap the data from your form bean, and send to the EJB and vice versa. Then the EJB layer wont depend on the form bean (view layer). That's best practices. > Ple

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, chamal desilva <[EMAIL PROTECTED]> wrote: Hi, I read few articles on struts. They recommend not to send action form class to EJBs as data holders. They recommend we should use general classes for holding data to decople web tier with EJBs. What they say must be correct but I still ha

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Second, an ActionForm is, usually, used to repopulate an HTML form on a page when an error occurs, or when a page is initially shown. Since HTML forms only deal in Strings, another recommendation you frequently hear is to only have Strings

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > On the other hand, the whole idea of Struts/Commons Validator sucks > big time, because database already has all necessary validations, > domains, triggers, etc. Since most apps use database anyway, input > data should either be validated dir

Re: ActionForm and EJB

2006-06-08 Thread Dave Newton
Frank W. Zammetti wrote: > On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > >> On the other hand, the whole idea of Struts/Commons Validator sucks >> big time, because database already has all necessary validations, >> domains, triggers, etc. Since most apps use database anyway, input >>

Re: ActionForm and EJB

2006-06-08 Thread Craig McClanahan
On 6/8/06, Dave Newton <[EMAIL PROTECTED]> wrote: Frank W. Zammetti wrote: > On Thu, June 8, 2006 1:09 pm, Michael Jouravlev wrote: > >> On the other hand, the whole idea of Struts/Commons Validator sucks >> big time, because database already has all necessary validations, >> domains, triggers,

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 2:12 pm, Craig McClanahan wrote: > IMHO, where and how to do what kinds of validations is going to be the > next > "great debate" in application framework design :-) Hehe, it's a debate that's been around for a while, not sure it can be the "next" great debate :) LOL > * Enha

Re: ActionForm and EJB

2006-06-08 Thread Craig McClanahan
uest scope or session scope or application scope), transactional settings on an EJB, and so on. Storing the actual annotation in the source code reduces the chances that some sysadmin installing your application might accidentally or inadvertently change the scope setting, without understanding

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
l and use database metadata (or do they? I should check out EJB 3.0 spec). So I will be able to use EJBs as backing beans. BFD. Unless I use several databases or design a clustered system, I am not tempted to use EJBs at all. If EJB penetrated deeper in database metadata, then I would have a better

Re: ActionForm and EJB

2006-06-08 Thread Michael Jouravlev
On 6/8/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: On 6/8/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: * Annotations are not a good idea when the configuration concept should not be a concern of the person actually writing the code. In webapps, for example, I don't believe in conf

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
> in a webapp (it really matters whether you're going to store it in > request > scope or session scope or application scope), transactional settings > on an EJB, and so on. Storing the actual annotation in the source code > reduces the chances that some sysadmin installi

Re: ActionForm and EJB

2006-06-08 Thread Dave Newton
Michael Jouravlev wrote: > Check out Stripes, great stuff. It is indeed pretty cool. I really dislike putting my URL mappings in code, though, if for no other reason than if I'm testing or need to stub out a URL handler temporarily for some reason I have to touch things in two different places (m

Re: ActionForm and EJB

2006-06-08 Thread Frank W. Zammetti
On Thu, June 8, 2006 3:07 pm, Michael Jouravlev wrote: > So your argument is basically that database roundtrips will degrade > performance. Yes, but that's only one aspect of it... scalability is also a factor, as is number of breakage point, as is cost, because to overcome the first two you have

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

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

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

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-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: Struts EJB 3 tutorial

2006-03-17 Thread Leon Rosenberg
r, and they are not. Leon On 3/17/06, Sebastian Hennebrueder <[EMAIL PROTECTED]> wrote: > Hello, > I have just finished a EJB 3 - Struts tutorial and put it on my > website. It is available for free as HTML and PDF at > http://www.laliluna.de/EJB-3-tutorials.html > &g

Re: Struts EJB 3 tutorial

2006-03-19 Thread Vincent
CTED]> wrote: Hello, I have just finished a EJB 3 - Struts tutorial and put it on my website. It is available for free as HTML and PDF at http://www.laliluna.de/EJB-3-tutorials.html As far as I remember, I have not yet announced tutorials in this mailing list. The smart-questions site and y

RE: When to use EJB?

2004-06-02 Thread Navjot Singh
mailto:[EMAIL PROTECTED] >Sent: Thursday, June 03, 2004 3:17 AM >To: Struts Users Mailing List >Subject: When to use EJB? > > >Our web application uses Web sphere application server. The main >transaction is to update People Soft database tables. We are using >component int

[OT] EJB/Struts Design Question

2004-06-05 Thread Navjot Singh
Hi, I have a typical case of Category and Product entity bean established in 1:N relationship. In the client tier, I wish to display the list of products along with their category names. 1. Struts Action make a call to ProductDelegate. 2. ProductDelgate to ProductManager (SessionBean). 3. Produc

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 >

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

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

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

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

Struts and EJB integration question?

2005-03-01 Thread leonnewsgroup
Hi there, I am building a Struts based application with EJB model. I want to know the strategy of find and call the EJBs in model layer. My model layer is implemented by a stateless or stateful session bean that accesses to entity beans. and there is a service locator object to find the session

  1   2   >