Home JBoss howto Persistence - Database How to deploy a DataSource in jboss at application level ?
30 | 07 | 2010
JBoss 5 AS Book
"JBoss AS 5 development" reviews
Please share your feedback/review with other readers!
Banner
Dashboard
Advertise with Us
Banner
RSS Feed
Java EE 1.6 resources
Login
Sign here for the NewsLetter.



JBoss admin resources
Banner
Java EE 1.6 resources
JBoss howto

How to avoid the 50 seconds start up limit in Eclipse ?

JBoss recipe of the day ...
Read More

How can you solve deployment errors caused by large war/jar/ear files ?

jboss recipe of the day ...
Read More

How do you configure your .war to be deployed after your EJB ?

jboss recipe of the day ...
Read More
How to deploy a DataSource in jboss at application level ?
Written by Mark S.   

#1 JBoss Howto. Recipe of the day

Do you need to deploy your DataSource along with your Enterprise Application ? (that is without having to install it in the "deploy" dir )
So, In your EAR file, create a jboss-app.xml file containing the following:
Code:

<jboss-app>
 
 <module>
   <service>myapp-ds.xml</service>
 </module>
 
</jboss-app> 


Place this jboss-app.xml in the META-INF folder of your EAR. And place the -ds.xml at the root of the EAR.  
 
 


JBoss.org Search
Custom Search
Comments
Search
Chang Shin  - How to deploy a DataSource in jboss at application   |2008-09-26 07:15:51
Ths website is realy cool for me.
Thank you for sharing.
I did it by your
instruction.
It does not work.
Do I have to do something else?

Chang Shin
Chang Shin   |2008-09-26 07:31:55
Never mind.
Once I blocked the in th build.xml it works.

Thanks
Chang Shin
Chang Shin   |2008-09-26 07:33:59
I mean blocked the target datasource in the build.xml not to allow to copy into
jboss../deply folder.
Mark   |2008-10-08 09:42:36
sorry for late answering.
not sure I have understood the problem (you have put
also build.xml in the deploy folder ?) but I'm glad now it's solved!
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."