Hi dev,
I would like offer one fix for JBoss:
file: BMPPersistenceManager
function: public void createEntity(Method m, Object[] args, EntityEnterpriseContext ctx)
throws Exception
problem description:
I do trying throw User defined Exception (extends Exception) in the ejbCreate function and it fails.
Investigation:
after
try
{
id = createMethod.invoke(ctx.getInstance(), args);
}
Exception type of Exception should be rethrow if catched
} else if (e instanceof Exception)
{
throw (Exception)e;
}
the same fix should be done and after call
postCreateMethod.invoke(ctx.getInstance(), args);
in the same createEntity function
I have tested if with source code from CVS and i can atach file for somebody who can put it to the JBoss project.
I need this fix because my beans does not run otherwise.
Any one interesting in it?
Best regards,
Darius D
- Re: [jBoss-Dev] JBoss2 fix sugestion Darius Davidavicius
- Re: [jBoss-Dev] JBoss2 fix sugestion Rickard �berg
- Re: [jBoss-Dev] JBoss2 fix sugestion Rickard �berg
- Re: [jBoss-Dev] JBoss2 fix sugestion Darius Davidavicius
