Hello,

    For unit testing, I've created a test roll to JBoss 4.01 and I'm performing 
my EJB unit tests with JUnitEE.  I'm using xdoclet in Ant to change the  
datasource in the jbosscmp-jdbc.xml file to a test database.

     I want to write a server side test to confirm that the CMP beans I'm 
testing are in fact correctly bound to my test database (They are, I know, 
because my tests are running correctly, but I'd like to put this test in to 
assure that if someone accidentally changes the datasource in Ant, the test 
will fail before any data is changed).

How do I get the name of the datasource that a CMP bean or group of CMP beans 
have actually been bound to after deployment?  Is there a specific JNDI entry?  
I'd like to avoid making changes to the beans themselves, but I will if that's 
the only way.

Any suggestions would be helpful.


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

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


-------------------------------------------------------
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