Re: [s2] Struts Dependency Injection and EJB3 - support ? or how can i Do it?

2007-01-22 Thread Stas Ostapenko

Hi !

Ian, can you provide some kind of example source code to play with ?
I'm interesting in Struts 2 and EJB 3 interoperability, but I can't
figure out how to get started. Thanks !


On 1/22/07, Ian Roughley [EMAIL PROTECTED] wrote:

Currently there is no EJB3 support in Struts, however I have done this
on a couple of projects.  I used a custom annotation to mark action
setters as ejb3 then a custom interceptor that looks for the annotation,
looks up the ejb3 and injects it into the action.  Doing it this way is
less than a days work.

Another option would be to replace the ObjectFactory (the class that
does the dependency injection) with a a custom implementation that does
EJB3 dependency injection.

/Ian

--
From Down  Around, Inc.
Innovative IT Solutions
Software Architecture * Design * Development
~
web:  www.fdar.com
email [EMAIL PROTECTED]
phone:617.821.5430
~



papo wrote:
 Hello

 I am trying to find a way of calling efficienlty from Struts Actions
 - SLSBs EJB3. I have made a question before.

 - Doing JNDI calls all the time through every action works though its
 a very primitive way of doing it.
 -Tried to implement the Service locator pattern though the semantics
 on EJB3 are different (how to cache Intefaces, which interfaces)

 I know tha EJB3 on the web layer Serlvets/ JSF supports Dependency
 Injection for EJB3.


 Will Struts 2.0 support such a feature if NOT can anyone point me the
 mechanics so to (try) doing it on my own.

 I am bit stuck for days at this very point of efficiently glue-ing
 Struts and my EJB3 Business layer

 Any hint would be much appreciated!




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts+EJB

2006-11-24 Thread Stas Ostapenko

Hi !

Take a look at the book Struts Kick Start by James Turner and Kevin Bedell.
Chapter 18. Using Struts 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 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
Thanks in advance
--
View this message in context: 
http://www.nabble.com/Struts%2BEJB-tf2696579.html#a7519838
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 2 View : FreeMarker or Velocity

2006-11-03 Thread Stas Ostapenko

Hello !

I need an advice to choose templating framework for using as a view
with Struts 2. We had used Velocity with Struts 1.2 + Velocity-Tools
in the past. Struts has changed since that time :) Are there any
benefits of using FreeMarker against Velocity ?
Thanks !

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stress Load AJAX web application

2006-02-03 Thread Stas Ostapenko
Thanks a lot !!!

After I decided to test our application i'm was looking something like
http client with js support (and AJAX features). I had a look at
HttpUnit - as i saw it's have a limited js support (am i wrong ?).
Starting from srcratch I have considered commons-httpclient... but how
about JavaScript ? I have found Rhino - an open-source implementation
of JavaScript written entirely in Java. So, it's probably can work for
me. At other side I can try to write firefox extension (i have a
little experience in this field) for forcing browser to walk around my
web-application and POST-ing test data. Also i have found The AJAX
Toolkit Framework (ATF) Project at
http://www.eclipse.org/proposals/atf/. But it's only proposal now.

Frank, at standard tools I mean Apache Benchmark (ab) or HttpUnit.
Maybe it's a bad word or bad understanding of what is standard tool, i
don't know ;) I saw the demo and i have to admit that WebLoad is
amazing tool !!!

Ross, i'm not familiar with ruby at all, but maybe have to. Ruby on
Rails is pretty thing as i now.

Dave, I know that it's possible to test separate client-side and
server side, but all together is better.

I'll try all of tools you suggested.  One more question : is there
something similar for linux ? Windows is not a problem, but I'm on
linux box.

Thanks again, very helpful !

P.S. Sorry for maybe little OT

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Stress Load AJAX web application

2006-02-02 Thread Stas Ostapenko
Hi !

I have a Struts based web application where we using a lot of AJAX
things. I want to test application under load - for example 100
concurrent users. Standard tools is not acceptable, so I need some
kind of http client with XmlHttpRequest object supported. I know that
there is HttpUnit, but I'm not sure about AJAX support.
How it's can be done ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: One Action different beans

2005-12-14 Thread Stas Ostapenko
Mark and Hubert !

I'll have a look at Wildcards. Thanks for help ! Sory for probably
wrong place to ask...

On 12/14/05, Mark Lowe [EMAIL PROTECTED] wrote:
 Or have a look at xdoclet stuff for generating struts-config et all
 from javadoc style comments in the java. I'd go with wildcards like
 hubert, but xdoclet would be an alternative.

 Mark

 On 12/14/05, Hubert Rabago [EMAIL PROTECTED] wrote:
  Take a look at Action mapping wildcards.  This could even help
  maintain sanity since you'll know what bean a certain action call will
  be expecting.
 
  http://struts.apache.org/struts-action/userGuide/building_controller.html#action_mapping_wildcards
 
  Btw, questions like these should go to the user list.
 
  Hubert
 
 
  On 12/14/05, Stas Ostapenko [EMAIL PROTECTED] wrote:
   Hi dev@struts.apache.org !
  
   I'm interested in such feture. Is it possible to have one action to
   handle different beans which can be changed at runtime ? For example I
   have such action in struts-config.xml
   action
   path=/AddDomainActionArea
   type=AddDomainAction
   name=domainForm
   input=/vm/DomainActionAdd.vm
   validate=true
   scope=request
   forward name=error_adding 
   path=/vm/DomainActionAdd.vm/
   forward name=added path=/vm/DomainActionAddOK.vm/
   /action
   It's ok when I have one object - Domain. But when we have 50 different
   objects it's become a problem. Can parameters of action be changed at
   runtime ? How it could be implemented.
   Any suggestions are welcome.
  
   Thanks !
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



getting ActionMessages and form bean from simple servlet

2005-09-11 Thread Stas Ostapenko
How to get ActionMessages and form bean objects when simple sevlet is
used as a view ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]