Hello *,
maybe I'm wrong, but I've read some time ago, that you should not use java.io.* within
EJBs. Thus, how can I read a configuration from a *.properties file?
Is the following way really forbidden (even though it works)?
public void ejbCreate() throws CreateException
{
try {
Properties props = new Properties();
props.load(MyBean.class.getResourceAsStream("MyBean.properties"));
// ...
}
Thanks a lot in advance for your help!
Best regards, Marco.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822862#3822862
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822862
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user