I am trying to partition an application so that the WAR component runs on stand-alone TomCat (not running as MBean but completely stand-alone) while the EJBs are running on JBoss. Here is my setup: JBoss running without TomCat or EmbeddedTomcat services has ejb-jars in deploy dir on Computer1 TomCat stand-alone has the WAR in its webapps directory on Computer2 I've modified JbossWebXmlReader so that it connects to the Naming service provided by JBoss on Computer1 and resolves the EJB references there. The only problem is the DataSource from jboss-web.xml. Since the InitialContext on JBoss does not expose the DataSource, the Web app fails on not being able to resolve those. I've seen a post that DataSources are private to the VM, so they will not be visible in InitialContext anyway from outside the VM. At this point I see no other way of accomplishing proper resolution of DataSources than starting on Computer2 TomCat together with JBoss that has these datasources configured. Does anyone have any other suggestions for doing this? ------------------------------------------------------------------------- Anatoly Akkerman Computer Science Dept. Courant Institute of Mathematical Sciences, NYU 719 Broadway, #715 Tel: 212 998-3525 New York, NY 10003 Fax: 212 995-4123 -------------------------------------------------------------------------
