-
Dec 5th, 2005, 11:17 AM
#1
Utilizing external serviceLocator and do a create()
Hi!
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">
<constuctor-arg>the/jndi/name</constructor>
</bean>
<!-- 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules