Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JBoss/WildFly and the fly likes I know how to add datasource, but ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "I know how to add datasource, but ..." Watch "I know how to add datasource, but ..." New topic
Author

I know how to add datasource, but ...

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi all.
I know how to create a datasource in JBoss but I have a question...
my jbosscmp-jdbc.xml file contains :
<defaults>
<datasource>java:/MySqlDS</datasource>
<datasource-mapping>mySQL</datasource-mapping>
</defaults>
and mysql-ds.xml file contains :
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/LigaDB</connection-url>
my deploy dir contains more than one EJB application, and each application requires a datasource.
all I need to do is :
create an XML file called : app1-ds.xml for the first application
app2-ds.xml for the second application ......
and ofcourse setting <connection-url> element correctly.
and I don't need to change defaults element of jbosscmp-jdbc.xml file, neither <jndi-element>
am I right ???
thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I know how to add datasource, but ...
 
Similar Threads
Error during deploy; - nested throwable:(javax .naming. NamingException:
jboss deployment problem
is my configs right ?
I just need verfying please
jboss+deployment exception