aravind elango wrote:

but how would I do this is the ejb is in a different machine ? (I'd guess there is
probably a client stub which contains the func defns ... not sure how to
create it ?)

Compilation and deployment is almost the same regardless of the type of requests OpenEJB handles, i.e. remote vs local. I wrote 'almost' as there is a small difference between the calls and what they require.


The difference between local vs remote calls is the location of OpenEJB libraries and EJBs. Whereas local calls are done within one JVM (and since OpenEJB libs and ejbs are available to OpenEJB, so are to any other Java class within that JVM instance), remote calls are supposed to be done between two separate JVMs, and both need the libs and ejbs.

webapps need their libs in WEB-INF/lib. Place the libs and ejbs over there and see what happens.

From the documentation I have read, in tomcat 5, the <context> xml
snippets have been moved to seperate xml files under
Tomcat5\conf\Catalina\localhost. I think the documentation
(http://www.openejb.org/tomcat-ejbrefs.html)
still says <context> tags in server.xml. What would I handle the path and
the docbase ?

We have been talking about two approaches to use OpenEJB in Tomcat - either via Tomcat JNDI (ejb-refs) or OpenEJB JNDI.


I'll be looking into the approach of using ejb-refs to see if it's useable in Tomcat 5. I don't know it at the moment.

Aravind

Pozdrawiam, Jacek

Reply via email to