[jboss-user] [JBoss/Spring Integration] - Re: customizing jndiName in @Spring

alesj do-not-reply at jboss.com
Wed Aug 1 04:55:58 EDT 2007


Yes.
anonymous wrote : 
  |  Since we'd like to hot deploy many different Spring archives, each of them must be uniquely represented in our environment. For that purpose, JNDI will be used as a registry for these deployments. But where can we get our local JNDI name? By default, this JNDI name is obtained from the archive's file name: .spring or -spring.xml. But since it's also possible for each bean factory to have parent bean factory, there should be a way to define this parent's name too. This can be done in Spring's beans xml descriptor in description tag as shown in Listing 3.
  | 
  | We are parsing this description tag and looking for a regular expression pattern of 'BeanFactory=()' and 'ParentBeanFactory=()' so see Listing 4.
  | 

In xml code:

  | <description>BeanFactory=(MyBFName)</description>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069534#4069534

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069534



More information about the jboss-user mailing list