[jboss-user] [JNDI and Naming] New message: "Resources injection in JBoss 5"

Luca Morettoni do-not-reply at jboss.com
Wed Mar 10 09:07:18 EST 2010

User development,

A new message was posted in the thread "Resources injection in JBoss 5":


Author  : Luca Morettoni
Profile : http://community.jboss.org/people/morettoni

Hi list, I'm new to Jboss, I'm moving one app from Glassfish to JBoss,  but I got a little issue. Into a stateless session bean I have this:     ..    @Resource(name = "test-prop")    private Properties configProperties;  and the AS injects the properties defined by the admin-console into the app. Now, this is possible with JBoss? I found only the properties-service.xml, but the properties are visible by the System.getProperties and I need to modify the app.   Googling I found an example about a generic configuration file like this:                  remoteAddress                 dumpinfo       1           I put that in /deploy/ but if I explore the JNDI tree I can't find named properties (test-prop).  There are any solutions to this? Thanks!  -- Luca Morettoni  | OpenSolaris SCA #OS0344 Web/BLOG: http://www.morettoni.net/ | http://twitter.com/morettoni jugUmbria founder: https://jugUmbria.dev.java.net/ ITLOSUG leader: http://hub.opensolaris.org/bin/view/User+Group+itl-osug/

To reply to this message visit the message page: http://community.jboss.org/message/531095#531095

More information about the jboss-user mailing list