I want to pass context (cross cutting concern like "user name") while making EJB to EJB calls.
EJBs are deployed in different jboss nodes in the cluster
EJB calls can be transactional or non-transactional
I know JEE provides TransactionSynchronizationRegistry but it works only within same transaction
is there any way to do this?
any help will be appreciated!!
If you want to stay away from sfsb, then include the context data in each invocatoin as method params, at the risk of polluting api.
Ideally we should have support for work area context propagation:
Thanks for the reply..
We dont want to pollute the APIs thats why we are looking to create a context service which should work in jboss cluster
I know JSR 149 is abandoned.
Any body knows if we can customize jboss-remoting subsystem and attach some context id in the remote EJB call in the transport itself
so that this ID can be used to fetch the context data maintained in the shared cache?
|Retrieving data ...|