org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler prohibits to be reused after release() is called right now, however I have noticed that JCA 1.6 spec suggests the possibility of reusing the proxy instance in 13.5 clause:
... The released proxy instance may be reused for further proxy endpoint requests from the same resource adapter. ...
So I'm wondering which is the right behavior. Is there any other restriction described in the spec?
I'm just on my way to implement the SwitchYard JCA message inflow gateway so would like to clarify the behavior of Endpoint proxy. Any advice would be appreciated
From a JCA PoV: You can reuse the Endpoint if you want - of course it would reference the same resource adapter instance, and if JCA 1.6 the same bean validation groups.
Its the activate/dectivate method that does the actual calls.
So yes, I would have one Endpoint and have all my activate/deactive calls operate on that instance for each resource adapter.