posted 19 years ago
We cannot use getUserTransaction() in ejbRemove(),ejbCreate() of Stateless Session bean ....
Reason is very simple....
ejbCreate() and ejbRemove() are called by the container at a time when he feels its time to increase/reduce the pool (Not by a client invocation, and therefore this means Transaction will not be available). The methods are called in an "unspecified transaction context", and therefore this method cannot be called.
Regards,
Aleena
Aleena Rehman<br />SCJP, SCBCD 95%, SCWCD 85%, IBM-OOAD 84%, SCEA-I 91%