Wednesday, 19 December 2007

Find the bad EJB... if you can!

If you misconfigure the sun-ejb-jar.xml, you get a message like:

"com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [xxx] -- This ejb has no message destination reference by the name NNNN
...
<lots of stack trace>"

with no mention of the name of the EJB that is misconfigured.

Thank you Glassfish!

Friday, 7 December 2007

Unable to proxy datasources

In the DataSourceObjectBuilder , the code, given an XADataSource interface, look at the implementation class and call methods that are not part of the interface, using reflection.

This means its not possible to pass in a dynamic proxy or indeed any actual interface...

take a look here: