User development,
A new message was posted in the thread "Resources injection in JBoss 5":
http://community.jboss.org/message/531095#531095
Author : Luca Morettoni
Profile :
http://community.jboss.org/people/morettoni
Message:
--------------------------------------------------------------
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
192.168.0.7 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