Hi, all..
What I am trying to is that I want my class called PageMethodStaticXMLData which reads a xml file and to be used by all process, etc SessionBeans, Servlets..
I created PageMethodStaticXMLData class to read and parse a xml data which is just a static lookup information and then trying to registered as a resource in ejb-jar.xml as the following:
<resource-env-ref> <resource-env-ref-name>staticXMLData</resource-env-ref-name> <resource-env-ref-type>com.etn.data.PageMethodStaticXMLData</resource-env-ref-type> </resource-env-ref>
Context initial = new InitialContext(); PageMethodStaticXMLData data = (PageMethodStaticXMLData)initial.lookup("java:/staticXMLData");
javax.naming.NameNotFoundException: staticXMLData not bound