This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, Can you please tell me how do I create datasources in Websphere Appserver by using JMX. In JBoss app server, there is an option of creating datasources using JMX by specifying in jboss-service.xml. I wanted to know whether Websphere supports creation of datasources using JMX, if so, how do I do it. I wanted to create two datasources(No-Transaction and Transaction)in the scope of Local Transaction.
It is possible to create a datasource with JMX, but not within a running application. If you intend on using creating a datasource dynamically and using it within your running program it's not possible. Kyle
No, it wont be dynamic.I will not be creating them explicitly from my application during the run time. I want to create the datasources before I start the server. My requirement is I have to create two datasources in the scope of Local Transaction.(No distributed transactions). One datasource will be no-transaction mode and the other with transaction mode. In Jboss, I am using org.jboss.resource.connectionmanager.NoTxConnectionManager no transaction datasource and org.jboss.resource.connectionmanager.LocalTxConnectionManager for transaction datasource. I am porting the application to Websphere app server. Please let me know how do I create the above mentioned datasources using JMX in Websphere. Can you give me example code for the same. Currently, I have created two datasources using adminconsole, but I am geting too many errors , so I wanted to try usng JMX. Thanks
Joined: Aug 10, 2001
What do you mean "you're getting too many errors"? Why do you think creating them with JMX will fix that? That's not very logical... What are the errors you're receiving? Have you RTFM in the InfoCenter on creating DataSources? Kyle