[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openejb-user
Subject:    Re: embeding OpenEJB into WAR
From:       Petr_Pudlák <cl0cks () centrum ! cz>
Date:       2008-07-30 15:11:44
Message-ID: 18735579.post () talk ! nabble ! com
[Download RAW message or body]



David Blevins wrote:
> 
> 
> On Jul 28, 2008, at 7:59 AM, Petr Pudlák wrote:
> 
>>
>> Hi, I was searching through OpenEJB documentation, but I wasn't able  
>> to find
>> an answer to my question: Is it possible to embed OpenEJB into a pure
>> servlet application (so that I get EJBs, persistence, etc.) without
>> installing OpenEJB in advance?
>>
>> I sucessfully used OpenEJB with the Tomcat plug-in, that works very  
>> nice.
>> But best would be if I could create a single WAR that would contain
>> everything and that could be simply deployed into Tomcat (or another
>> container) without installing anything. Is this possible? Does  
>> anybody have
>> an experience with it?
> 
> ...
> 
> It would be possible to readd something like that and fully support  
> EJBs in an embedded scenario like the one you describe, but the  
> servlet side of things would more or less remain "as is".  The  
> servlets would be able to look up ejbs and the ejbs themselves would  
> have full support for JPA, JMS, WebServices, etc. but servlets would  
> be plain servlets.  This could be fine if you delegate most the work  
> to ejbs.
> 
> Would something like that be useful to you?
> 
> -David
> 

Yes, that would be exactly what I need!
I mostly use libraries like  http://echo.nextapp.com/ Echo  or 
http://wicket.apache.org/ Wicket  so anyhow I don't create servlet classes
directly. Instead, I just look up my beans using JNDI from my UI components
and then the beans do all the application logic.

  Petr
-- 
View this message in context: http://www.nabble.com/embeding-OpenEJB-into-WAR-tp18689727p18735579.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic