I haven't had time to look fully into this, but it appears to start and
deploy the beans.  I'll have to look into it further to see if I can make my
beans deploy properly in the web-app.

Mark

-----Original Message-----
From: David Blevins [mailto:[EMAIL PROTECTED]
Sent: November 11, 2003 6:26 PM
To: OpenEJB-User
Subject: Re: [OpenEJB-user] Tomcat integration


On Tue, Nov 11, 2003 at 10:45:35PM +0100, Jacek Laskowski wrote:
> Mark Richards wrote:
> 
> >My question is, is there a way to put OpenEJB into my web-app directly,
so
> >that it's not visible to the rest of Tomcat, and my EJBs (and their
> >dependant libs) are not visible to the rest of Tomcat?
> 
> No, it's not currently possible. Once the issue with finder methods that 
> returns Enumeration is sorted out I'm going to see what it's to be 
> improved in that area. I assume the task will need a lot of Tomcat 4/5 
> knowledge so anyone who has an idea as to how to weave OpenEJB and 
> Tomcat class loaders' structure together please speak up.

This might be fairly easy to do.  Mark, open the source file
src/main/org/openejb/util/ClasspathUtils.java of your 0.9.2 distrobution.
Change the getCommonLoader() method to look as follows:

        private ClassLoader getCommonLoader(){
            if (tomcatLoader == null) {
                tomcatLoader = ClasspathUtils.getContextClassLoader();
            }
            return tomcatLoader;
        }


Rebuild with:
    ./openejb.sh build
or 
    openejb.bat build

Then restart tomcat and see if the openejb/tomcat integration webbapp still
works.

If it does, then we're in buisiness, just add the openejb loader servlet to
your webapp and your webapp should have it's very own OpenEJB instance.  

Let me know if this works -- I've been curious about that for quite some
time.

-David


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to