OpenEJB-Tomcat integration

2002-02-07 Thread David Blevins

Hello All,

I am looking to create an integrate OpenEJB into Tomcat.  I spent a couple
days reading the Tomcat documentation and browsing the code.  It seems
pretty clear what will be needed for the transaction integration, but two
questions still remain.

1.  How and where can I hook into the security system.  I would need to
implement the org.openejb.spi.SecuritySystem interface so OpenEJB can get
the Principal of the calling Servlet.

2.  How can I get references to OpenEJB deployed beans into the namespace of
Servlets.  It seems Remy has already written an EjbFactory for this purpose.
I was wondering if you could tell me a bit more about it and how to use it.

I appreciate any time you have to answer the questions or point me in the
right direction.

Thanks,
David Blevins


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




Re: OpenEJB-Tomcat integration

2002-02-07 Thread Remy Maucherat

 Hello All,

 I am looking to create an integrate OpenEJB into Tomcat.  I spent a couple
 days reading the Tomcat documentation and browsing the code.  It seems
 pretty clear what will be needed for the transaction integration, but two
 questions still remain.

 1.  How and where can I hook into the security system.  I would need to
 implement the org.openejb.spi.SecuritySystem interface so OpenEJB can get
 the Principal of the calling Servlet.

I'm not sure I undertand the question (and your interface seems to be called
SecurityService, actually). I would think you can do it in a valve (it gets
invoked before and after the servlet pipeline).

 2.  How can I get references to OpenEJB deployed beans into the namespace
of
 Servlets.  It seems Remy has already written an EjbFactory for this
purpose.
 I was wondering if you could tell me a bit more about it and how to use
it.

Yes, it would be appropriate to use an object factory (the EjbFactory is
just a proxy factory to make things easier to use).
If you write an OpenEjbFactory which could resolve the EJB references, it
should be easy to make it work (you also need the valve mentioned above, of
course). I was considering doing it, but it was a bit too complex (I would
have had to spend a bit too much time learning OpenEJB).

If you can isolate all your code in valves, listeners and JNDI object
factories, that would make it easy to add EJB support to a standard Tomcat
distribution.

Remy


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




Re: OpenEJB

2000-12-18 Thread Jon Stevens

on 12/18/2000 1:18 PM, "dferugson" [EMAIL PROTECTED] wrote:

 Anybody know if tomcat is headed in the direction of being a full ejb
 app server?

No, it isn't.

www.ejboss.org is the right thing that you want and has integration with
Tomcat.

-jon

-- 
Honk if you love peace and quiet.