hi feigling.....I guess you need to know a manner to get the datasource 
jndiname of an entity. Then if you are in your junit test application you can 
do this:

String jndiName = "   ...... jndi name of your entity.......";
ObjectName name = new ObjectName("jndiName="+jndiName+",service=EJB");
InitialContext ic = new InitialContext();
RMIAdaptor server  = (RMIAdaptor)lookup("jmx/rmi/RMIAdaptor");

String[] sig = {};
Object[] opArgs = {};

JDBCEntityMetaData jamd = new JDBCEntityMetadata(
     
server.invoke(name,"getBeanMetaData().getApplicationMetaData())",opArgs,sig),
     server.invoke(name,"getClassLoader()",opArgs,sig)
);


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868101#3868101

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868101


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to