• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I know how to add datasource, but ...

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic