I would like to use this to have a place for the admin to write all the
config of the application, so I need only application scoped resources
<Configuration>
administratoraddress='**myaddress@mydomain'
</Configuration>

class NotificationSenderBean {
@Resource(...) String administratoraddress;
}


sounds like you want our env-entries.properties feature, will dig a bit to
see if i can add it now to make a proposal

I know that this already works with web.xml, but I don't like that admins edit web.xml

@Resource(mappedName="administratoraddress") String administratoraddress;

   <env-entry>

        <env-entry-name>administratoraddress</env-entry-name>

        <env-entry-type>java.lang.String</env-entry-type>

        <env-entry-value>myaddress@xzxxxx</env-entry-value>

    </env-entry>


- Enrico

Reply via email to