cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter Module Exception

Former Member
0 Kudos

Hi. I've developed a custom adapter module bean for my SOAP channel. It does what it needs to do however when the process method returns i get the following exception:

Message processing failed. Cause: javax.ejb.RemoveException: An attemp was made to remove stateful instance while it still participates in a transaction.This is strictly forbidden by the EJB Specification. However the current transaction won't be marked for rollback allowing you to recover from the error

I've removed all the code and have deployed just the skeleton of the process method in order to test -

public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData)

throws ModuleException

{

return inputModuleData;

}

However i still get this error.

Any assistance would be greatly appreciated.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

This happens when the created EJB is not made stateless. Recreate a new EJB as stateless session bean and it should work.

Regards,

Prateek