On Jul 21, 2007, at 12:55 PM, Ted Kirby wrote:
Swizzle-Stream appears to be used in only two classes in openejb:
1. org.apache.openejb.assembler.classic.JndiBuilder
It is used in: public static class TemplatedStrategy, but this
class does not appear to be used.
Definitely used and supports this feature:
http://openejb.apache.org/jndi-names.html
The property "openejb.jndiname.strategy.class" allows these to be
switched out (JndiBuilder line 53) and if you look in the Geronimo
geronimo-openejb module's OpenEjbSystemGBean you can see that
property set as well as a custom value for "openejb.jndiname.format"
You have reminded me of a rather big mental todo which was we should
be using that strategy as our default too! I should have filed a
jira cause I forgot. Would have switched it over but we have all our
itest using the LegacyAddedSuffixStrategy as well as our examples.
2. org.apache.openejb.config.InitEjbDeployments
This class is only used in /openejb-core/container/openejb-core/
src/test,
which appears to be unit tests, but not part of any shipped server.
Sure it is. See o.a.openejb.config.ConfigurationFactory line 125
where it's added to the deployment chain. Geronimo also has this one
customized ("openejb.deploymentId.format") in it's
OpenEjbSystemGBean. Not quite as documented yet, but basically the
same MO as the "openejb.jndiname.format"; you can set the format of
the deployment id for when it isn't explicitly set.
-David