users@glassfish.java.net

Re: ObjectFactory in context.xml?

From: <glassfish_at_javadesktop.org>
Date: Wed, 01 Sep 2010 07:13:41 PDT

OK - I see that. However, by adding the factory as a resource and mapping it into the application's namespace, the factory really isn't "private" to application as it is with Tomcat's context.xml.

In other words if I had multiple applications that each wanted a differently configured StringObjectFactory I'd have to either create multiple custom resources or once the factory was looked-up (say instead of hard-coding "bar" I wanted to pass the String to be returned via the "string" resource property), programmatically perform whatever additional configuration steps are necessary as part of the application start-up or some such, yes?
[Message sent by forum member 'decostae']

http://forums.java.net/jive/thread.jspa?messageID=481582