Dec 5th, 2005, 11:17 AM
Utilizing external serviceLocator and do a create()
I have to use a customer-specific javaclass to do the JNDI-lookups and returning a SLSB HomeInterface, like this:
<bean id="legacyLocator" class="my.package.LegacyLocator" factory-method="getHomeInterface">
<!-- and then I have to do a create() -->
<bean id="MyComponentInterface" factory-bean="legacyLocator" factory-method="create"/>
is it possible to express this more compact? Ideally I would like to define the locatorclass only once, and set the JNDI-name and call the create in the bean-specific elements.