I have problem. I need to use some resources from some EJB. But JNDI names of the resources are stored in DB and are dynamicaly changing. So i can't insert <resoure-ref> to ejb-jar.xml. I have tryed to simply lookup JNDI and then use this reference. It works :)) Is there any pitfall? What about transaction? I thing that transaction context are not propagated and used with this resources. Is there any other problem?