geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <webe...@gmail.com>
Subject Where to store secret EJB properties?
Date Tue, 21 Oct 2008 16:38:55 GMT

The canonical way to have properties for EJBs is IMHO to use <env-entry> in
ejb-jar.xml and have them injected via @Resource.
ejb-jar.xml are like source and in source control and are put in the ejb.jar
by ant.
Obviously this is not a good idea for passwords.

Is there a way to save properties via the Geronimo Console (or deployer) and
have them injected via @Resource?
I guess properties in .properties in a .jar cannot be injected, can they?

Could this be done via javax.naming.spi.ObjectFactory as suggested in the
comment here: 
http://www.jroller.com/agoncal/entry/configure_your_ejb_3_with#comments

Thanks,
Juergen
-- 
View this message in context: http://www.nabble.com/Where-to-store-secret-EJB-properties--tp20094408s134p20094408.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message