所有人,
I m currently playing with Datanucleus/JDO. One thing that I like is the Type safe query system, and I want to use Datanucleus in future projects (I come from Hibernate background). I want to let the container (JBOSS 5) manage the transaction and I ve defined a data source following the instructions from a datanucleus user (datanucleus forum thread), the only problem is that i cannot understand how to get a JDOPersistenceManager, all i get from a jndi lookup is the PersistenceManager, if I try a cast to JDOPersistenceManager i will get ClassCastException. I need the JDOPersistenceManager to get a typesafe query... My configuration is the same as the one explained in the thread..
Does someone encountered the same problem before? And I wander also IF this thing would be possible at all...
感谢您的答复!