[jboss-user] [EJB 3.0] - Re: Accessing JBoss Datasource from EJB 3.0

jaikiran do-not-reply at jboss.com
Thu Aug 28 02:17:40 EDT 2008


Maybe this is what you want:

MyAppEjb.jar
  | |
  | |
  | |----- configuration.xml
  | |
  | |
  | |----- org
  | |	|
  | |	|--- myapp
  | |	|	|
  | |	|	|--- MyConfigurationReader.class
  | 


In your MyConfigurationReader.class (which reads the configuration.xml) you could do this:


InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("configuration.xml");  
  | 
Then pass that inputStream to an xml parser.
	

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

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



More information about the jboss-user mailing list