if(remoteInv.getParameter() instanceof Invocation)
{
Invocation inv = (Invocation) remoteInv.getParameter();
MarshalledInvocation marshInv = new MarshalledInvocation(inv);
if(inv != null)
{
// now that have invocation object related to ejb invocations,
// need to get the possible known payload objects and make sure
// they get serialized.
try
{
marshInv.setTransactionPropagationContext(getTransactionPropagationContext());
}
catch(SystemException e)
{
log.error("Error setting transaction propagation context.", e);
throw new IOException("Error setting transaction context. Message: " + e.getMessage());