0 Replies Latest reply on Sep 25, 2009 7:42 AM by dario novakovic

    How do I create resource to be injected with @Resource annot

    dario novakovic Newbie


      I use @Resource annotation to get hold of DataSource or mail session in my session beans, but what am I supposed to do if i want to define my own resource, like org.apache.fop.apps.FopFactory? I only need to configure it and later access from my session beans like a resource, but I am not sure how do I do it. I guess I need to put it in the JNDI but what needs to be done with JBoss5 to do that? Is it done with java code or with XML configuration?

      Thanks for any help!