This content has been marked as final.
Show 2 replies
-
1. Re: How to lookup datasource from MDB at runtime
jaikiran Mar 30, 2012 1:46 AM (in response to r4_1314)Don't use the MDBContext for looking up that namespace. Instead use the simple InitialContext().lookup(...) method. Or you can even inject the datasource:
@Resource(lookup="java:jboss/datasource/xxx)
private DataSource ds;
-
2. Re: How to lookup datasource from MDB at runtime
r4_1314 Mar 30, 2012 3:15 AM (in response to jaikiran)Hi Pai, thanks for you active reply. The first solution is what we want!