Results 1 to 2 of 2

Thread: How to specify a file for a JndiObjectFactoryBean?

  1. #1
    Join Date
    Sep 2010
    Posts
    2

    Default How to specify a file for a JndiObjectFactoryBean?

    Newbie (and JNDI dodo) question

    I've got a bean as shown below.

    <bean class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName">
    <value>java:comp/env/someResource</value>
    </property>
    </bean>

    I would like to have a FactoryBean that directly retrieved it's resource from an xml file stored in my webapp in the WEB-INF/classes folder.

    Any help would be greatly appreciated. Thanks in advance.

    Mark

  2. #2
    Join Date
    Sep 2010
    Posts
    2

    Default Clarification

    Clarification: I realize the answer is likely "use a different FactoryBean".

    Suggestions here would be appreciated: I've been looking through all the different FactoryBeans and nothing jumps out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •