Announcement Announcement Module
Collapse
No announcement yet.
Utilizing external serviceLocator and do a create() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X