This content has been marked as final.
Show 3 replies
-
1. Re: Howto package datasource and MQ definitions in ear
peterj Feb 27, 2007 11:37 AM (in response to aschulz)Looking at the jboss-app_4_0.dtd file, it appears that one can embed a Hibernate archive and a service within an ear file (and reference them via a jboss-app.xml file), but one cannot embed a *-ds.xml. So it looks you you will have to create a sar file, though you could possibly place only the *-ds.xml file in it and then embed the sar within the ear. I haven't tried this, but if it works, let me know.
-
2. Re: Howto package datasource and MQ definitions in ear
georgesberscheid Feb 27, 2007 12:49 PM (in response to aschulz)Put a jboss-app.xml file into META-INF of your ear that looks somewhat like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd"> <jboss-app> <module> <service>META-INF/datasources/mysql-ds.xml</service> </module> </jboss-app>
This will deploy your -ds.xml and -service.xml files. You will have to adjust the path to the files though, depending on where you put them inside your archive ;-) -
3. Re: Howto package datasource and MQ definitions in ear
aschulz Mar 1, 2007 4:25 AM (in response to aschulz)Thanks for your replies.
I choose the "boss-app.xml"-alternative and it is working great.
Alex