• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataSource managed by JBoss VS DataSource Managed By spring

 
Rohit Rai
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

currently in my application i have a datasource configured in my applicationContext.xml.

what would be the advantage if i moved this to a xxx-ds.xml and retrived the DataSource using JNDI for future use.

any significant advantages / drawbacks.

Please do share your ideas .

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i know, the applicationContext.xml is a Spring specific file. So it's Spring which is responsible for creating and managing the datasource. But if you want JBoss to create the datasource and manage it, then *-ds.xml files are the only option.

Haven't used Spring, so I don't know what advantages you might see when using Spring datasources instead of JBoss'
 
Rohit Rai
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right i am using spring in my application and spring uses the datasource configured in applicationContext.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic