I want two Spring beans defined:

<1> jmsEDA
<2> jmsEDAPE

The second bean jmsEDAPE has all the properties of the first bean, except
with a different bean id and an additional property.

How do I do this so that the second bean does not contain redundant
information with first bean?

Example showing the beans with undesired redundancy:

        
        <bean id="jmsEDA" class="org.apache.camel.component.jms.JmsComponent">
                <property name="connectionFactory">
                        <bean 
class="org.apache.activemq.ActiveMQConnectionFactory">
                                <property name="brokerURL"
value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false" />
                        </bean>
                </property>
        </bean>

        
        <bean id="jmsEDAPE" class="org.apache.camel.component.jms.JmsComponent">
                <property name="connectionFactory">
                        <bean 
class="org.apache.activemq.ActiveMQConnectionFactory">
                                <property name="brokerURL"
value="vm://localhost?broker.persistent=false&amp;broker.useJmx=false" />
                                <property name="clientID" value="ProcessEngine" 
/>
                        </bean>
                </property>
        </bean>

--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-XML-Context-two-similar-beans-tp5078474p5078474.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to