Hi,

OH> Hi,

OH> I have a BMP entity bean that throws an application exception
OH> (subclassed from java.lang.Exception) from an ejbCreateXXX()
OH> method.
OH> But the exception never reaches my client. Instead the client
OH> gets a javax.ejb.CreateException.
Oh, yeap. The problem is that if an exception occurs in an bmp entity
bean, an InvocationTargetException is thrown. The exception is an
wrapper for the real exception thrown by the bean. What should be the
preferred way: Wrap the returned bean exception in an create exception
or return the real exception?


OH> Looks to me like org.jboss.ejb.plugins.BMPPersistenceManager
OH> intercepts all exceptions in method createEntity().

OH> Looks wrong to me, but I am an EJB and JBoss newbie...
Good looking...

OH> Is this a bug in JBoss, or am I wrong?
Yeap.

Going to correct this.

Stephan.


OH> Best Regards,

OH> Ole Husgaard.


OH> --
OH> --------------------------------------------------------------
OH> To subscribe:        [EMAIL PROTECTED]
OH> To unsubscribe:      [EMAIL PROTECTED]
OH> Problems?:           [EMAIL PROTECTED]




-- 
Best regards,
 Stephan                            mailto:[EMAIL PROTECTED]




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to