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