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>
  | 

then from a session bean trying to look it up as the following:

  | Context initial = new InitialContext();
  | PageMethodStaticXMLData data = 
(PageMethodStaticXMLData)initial.lookup("java:/staticXMLData");
  | 

during the runtime, I get this message when the above code executed:

  | javax.naming.NameNotFoundException: staticXMLData not bound
  | 

So I am wondering if it is not possible to registered a custom class as a JNDI 
resource to be shared by SessionBeans & servlets or not..
If it is possible, where did I go wrong here..??

Thanks very much..



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843562#3843562

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843562


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to