Announcement Announcement Module
Collapse
No announcement yet.
How to specify a file for a JndiObjectFactoryBean? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment

    Working...
    X