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