Using @Resource to load environment entries

Posted by a1ex07 on Stack Overflow See other posts from Stack Overflow or by a1ex07
Published on 2010-01-08T20:53:25Z Indexed on 2010/03/14 21:55 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

Hi,

I'm trying to load bean runtime configuration.

@Stateless
public class MyBean implements MyLocal{    
   @Resource String runtimeSetting1="default_value";
   //....
}

I cannot find out how to create custom resource on app server side (Glassfish) - I have no idea what I should enter in "Factory Class" field. Maybe there is a better way of loading configuration...

Thanks.

© Stack Overflow or respective owner

Related posts about java-ee

Related posts about glassfish