norbert_kunst - 2005-12-13

Hello,

I want to use Jaxor in a Session Bean using CMT.
My connection is received via DataSource. Now when I want to make an insert like this:

// Connection via DataSource
Connection con = getConnection();
    
JaxorContextImpl session = new JaxorContextImpl(con);
   
TAttributesFinderBase finder = new TAttributesFinderBase(session);
TAttributesEntity attribut =  finder.newInstance(new Integer(12345));
attribut.setStringvalue("teststring");

session.commit();
session.end();

---> I'm getting this Exception:

....
java.lang.reflect.InvocationTargetException
....
Caused by: java.rmi.RemoteException
.....
.....
Caused by net.sourceforge.jaxor.util.SystemException

at net.sourceforge.jaxor.db.SingleConnectionTransaction.commit(SingleConnectionTransaction.java)
at net.sourceforge.jaxor.JaxorContextImpl.commit(JaxorContextImpl.java)

How can I do this?

Kind regards Norbert Kunstek