This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes is my configs right ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "is my configs right ?" Watch "is my configs right ?" New topic
Author

is my configs right ?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey all.
My application uses mysql as a database, and I want to configure JBoss to use
the database as a datasource.
I have did the following :
1. I have copied mysql-ds.xml and renamed it to todd-ds.xml
2. the contents of this file are :

3. I wrote the following in jboss-jdbc.xml :

4. dropped this file to ${JBOSS_HOME}/server/default/deploy
5. to use this datasource, I wrote :
Datasource ds = (Datasource)ic.lookup("java:/MySqlDS");
my question is , is there any thing wrong in my previous lines ?
thanks..
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is my configs right ?
 
Similar Threads
I just need verfying please
MySql and JBoss
Regarding two database access.
Configuring MYSQL Datasource
not able to configure datasource for ejb: JBOSS