geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juergen Weber <>
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:

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message