JRuby on JBoss: jboss-web.xml
- From: Martin Koerner <martin.koerner@objectfab.de>
- To: dev@warbler.kenai.com
- Subject: JRuby on JBoss: jboss-web.xml
- Date: Wed, 08 Jul 2009 11:52:51 +0200
Hi,
I'm using Warbler to create the war file for my application and until
now I used it on Tomcat.
Now my boss wants to use JBoss, what's no problem, but the configuration
for JNDI resources is a little bit different.
You have to put a jboss-web.xml in your WEB-INF directory, which
translates the JNDI name of your application (which is in the web.xml)
to the name of the JNDI binding of JBoss (typically "java:jndiname",
while in web.xml there is "jdbc/jndiname").
So, I wrote a task for writing the jboss-web.xml to my WEB-INF. But it's
mostly the same es warblers 'war:webxml' target.
Is it possible to make this target more configurable to put other
xml-files in the WAR?
Regards,
Martin Körner
--
Martin Körner
ObjectFab GmbH
Loschwitzer Strasse 31
01309 Dresden
+49 351 3130420 (Telefon)
+49 351 3130424 (Fax)
Geschäftsführer: Steffen Gemkow
Amtsgericht Dresden, HRB 18176
|
JRuby on JBoss: jboss-web.xml |
Martin Koerner | 07/08/2009 |
| Nick Sieger | 07/08/2009 |





