"pete.muir(a)jboss.org" wrote : Use getDelegate to get the underlying JPA
provider.
Thanks for that Peter.
The complete solution just in case anyone is interested is:
| Object localEMObject = ((EntityManagerProxy)em).getDelegate();
| HibernateSessionProxy hsb = (HibernateSessionProxy)localEMObject;
| connection = hsb.connection();
| DatabaseMetaData dbMD = connection.getMetaData();
| String database = dbMD.getDatabaseProductName();
|
This forum is very good btw.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116409#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...