I think I answered you in "sending a message to a jbi endpoint from a custom MBean"

Freeman
On 2010-8-10, at 上午12:52, gnanda1 wrote:


Sorry... the xbean.xml file was not pasted properly. Here it is..
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:amq="http://activemq.apache.org/schema/core";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:osgi="http://www.springframework.org/schema/osgi";
xmlns:bean="http://servicemix.apache.org/bean/1.0";
        xmlns:context="http://www.springframework.org/schema/context";
        xmlns:mb="urn:com.pf.management"
        xmlns:sm="http://servicemix.apache.org/config/1.0";
        xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
 http://activemq.apache.org/schema/core
 http://activemq.apache.org/schema/core/activemq-core-5.3.0.xsd
 http://activemq.apache.org/camel/schema/spring
  http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
 http://www.springframework.org/schema/osgi
 http://www.springframework.org/schema/osgi/spring-osgi.xsd
        http://www.springframework.org/schema/context
                http://www.springframework.org/schema/context/spring-context.xsd
                http://servicemix.apache.org/config/1.0
                   http://servicemix.apache.org/bean/1.0
  http://servicemix.apache.org/bean/1.0/servicemix-bean.xsd";>


        <bean
        
class = "org .springframework.beans.factory.config.PropertyPlaceholderConfigurer">
                <!-- <property name="ignoreResourceNotFound" value="true"/>-->
                <property name="systemPropertiesModeName"
value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />

                <property name="locations">
                        <list>
                                
<value>classpath:com.pf.management.resourcemanager.properties
                                </value>
                                
<value>file:///${karaf.home}/etc/com.pf.application.properties
                                </value>
                        </list>
                </property>
        </bean>

<bean id="commandprocessor" class="com.pf.management.CommandProcessor">
         <property name="context"  ref="context" />
        
        </bean>
        


<!-- use this special class to register the endpoints with the NMR -->
        <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />


</beans>
--
View this message in context: 
http://servicemix.396122.n5.nabble.com/getting-reference-to-a-jbi-context-tp2269067p2269085.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


--
Freeman Fang

------------------------
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to