This content has been marked as final.
Show 4 replies
-
1. Re: How to get def datasource through JMX?
dominikr Mar 11, 2003 10:17 AM (in response to masomannen)Context context = new InitialContext();
DataSource ds = (DataSource)context.lookup("java:/DefaultDS");
Connection con = ds.getConnection();
Regards,
Dominik Roblek -
2. Re: How to get def datasource through JMX?
masomannen Mar 13, 2003 4:39 AM (in response to masomannen)Yes ofcourse! Thanks!
..another problem arised though. My MBean is started before DefaultDS is bound.
This entry in the service xml is obviouslt not enough:
jboss:service=Hypersonic
Do you know what my MBean has to "depend" on?? -
3. Re: How to get def datasource through JMX?
masomannen Mar 13, 2003 4:42 AM (in response to masomannen)Yes ofcourse! Thanks!
..another problem arised though. My MBean is started before DefaultDS is bound.
This entry in the service xml is obviouslt not enough:
jboss:service=Hypersonic
Do you know what my MBean has to "depend" on?? -
4. Re: How to get def datasource through JMX?
adrian.brock Mar 16, 2003 8:30 PM (in response to masomannen)Look in jbossmq-service.xml for how the jdbc2
persistence manager does this.
Regards,
Adrian