Hi,
In GlassFish, I think you shouldn't have to call "endPointFactory.createEndpoint" directly from "ResourceAdapterImpl.endpointActivation" method.
You may want to configure xaResource with "endPointFactory" (instead of "endPoint"), and try to create the "endPoint = endPointFactory.createEndpoint(this)" from "XAResourceImpl.startCall" (only when it is null, and handle possible exceptions).
In this case, you cannot call "xaResource.startCall" directly from "ResourceAdapterImpl.endpointActivation" (only call it from CallJob, or schedule another "Work").
Also note that the XAResourceImpl.setEndpoint implementation has a "bug"
("endPoint =endPoint;" assignment doesn't initilize the object's field).
I hope it works for your project.
[Message sent by forum member 'jmarine' (jmarine)]
http://forums.java.net/jive/thread.jspa?messageID=293642