My thinking was that if your TConnection is not initialized correctly (for whatever reason) then when you invoke its “newXMLObjectAccessor()” method you might get a problem. In your first code snippet you wrote:
code:
TConnection connection = tConnectionPool.getConnection();
but in the new API Documentation I don’t see this as a documented way of creating a TConnection object (getConnection() is a method of TConnectionPoolManager and takes a String argument).
I can continue my example code like this:
(follows on from creating myConnection…)
// Build an XMLObjectAccessor
TXMLObjectAccessor xmlObjectAccessor = myConnection.newXMLObjectAccessor(TAccessLocation.newInstance( DATABASE_COLLECTION ),
TJDOMObjectModel.getInstance() );
System.out.println(“debug = after accessor”);
and this works. Sorry if it doesn’t help you.
Maybe you could post your complete source code?
[This message was edited by Bill Leeney on 29 Nov 2001 at 15:25.]
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods