apache-servicemix

Sharing a configuration file between OSGi bundles in Apache Servicemix 4?

依然范特西╮ 提交于 2019-12-03 14:09:10
问题 Has anyone been able to successfully share configuration between two or more bundles in SMX4? What I'm looking for is this: Have a single file in $SMX_HOME/etc/myconfiguration.cfg Have this configuration be "available" to be injected into my bundles via the OSGi Configuration Admin using Spring dm, i.e. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:osgix="http://www

Sharing a configuration file between OSGi bundles in Apache Servicemix 4?

自作多情 提交于 2019-12-03 04:04:36
Has anyone been able to successfully share configuration between two or more bundles in SMX4? What I'm looking for is this: Have a single file in $SMX_HOME/etc/myconfiguration.cfg Have this configuration be "available" to be injected into my bundles via the OSGi Configuration Admin using Spring dm, i.e. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xmlns:ctx="http://www.springframework.org/schema/context"

Apache Karaf vs. Servicemix

丶灬走出姿态 提交于 2019-12-02 15:53:15
Is anyone using Karaf instead of Servicemix? If so, how did you come to this decision? I'm aware that Servicemix adds a layer of functionality around Karaf, just curious if Karaf is being used on its own and why... earcam We're using Karaf for a number of our applications. We were already using Camel (JMS and Esper) for integration between several different platforms (a JBoss 4.2 instance, a Tomcat and several Felix instances) and as this was working well there was little justification in migrating this too (which would have been cause to consider ServiceMix). The only reason we have some

Proxy authentication with Camel using ProducerTemplate

匆匆过客 提交于 2019-12-02 09:15:32
I have a project that's using Camel and running on a ServiceMix server, but I can't seem to get it to access external web services, and I suspect it's because I can't set the proxy authentication properly. Exchange exchange = producerTemplate.request(url, new Processor() { public void process(Exchange exchange) throws Exception { exchange.getIn().setHeader(Exchange.HTTP_METHOD, "POST"); exchange.getIn().setHeader(Exchange.CONTENT_TYPE, "application/json"); } }); response = exchange.getOut().getBody(String.class); If I put a breakpoint on the last line, I see a ConnectionTimedOutException in

Connecting Apache ServiceMix to Websphere MQ

你。 提交于 2019-12-01 12:04:08
I am trying to connect to a websphere MQ queue manager from a camel route deployed as an OSGI bundle on Apache Service Mix. I have deployed the IBM OSGI bundles that come with Websphere MQ and configured the Spring configuration as per below:- <route> .... <to uri="websphere-mq:queue:TOMTEST" /> </route> <bean id="websphere-mq" class="org.apache.camel.component.jms.JmsComponent"> <property name="connectionFactory"> <bean class="com.ibm.mq.jms.MQQueueConnectionFactory"> <property name="transportType"> <util:constant static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP" /> </property>

Connecting Apache ServiceMix to Websphere MQ

时光毁灭记忆、已成空白 提交于 2019-12-01 10:35:09
问题 I am trying to connect to a websphere MQ queue manager from a camel route deployed as an OSGI bundle on Apache Service Mix. I have deployed the IBM OSGI bundles that come with Websphere MQ and configured the Spring configuration as per below:- <route> .... <to uri="websphere-mq:queue:TOMTEST" /> </route> <bean id="websphere-mq" class="org.apache.camel.component.jms.JmsComponent"> <property name="connectionFactory"> <bean class="com.ibm.mq.jms.MQQueueConnectionFactory"> <property name=

Debugging FuseESB application in Eclipse

我们两清 提交于 2019-11-30 05:07:00
问题 Fuse ESB uses karaf server with OSGi. for the code if anybody has steps to get the debugger for the application it will help. I am currently using Eclipse Indigo. As OSGi is used we are using Maven to build the same. Which plugin will help for Karaf with OSGi 回答1: Java allows you to remote debug any JVM running. So if you start the ESB with a debug argument, then it will run in debug mode listening on port 5005. davsclaus:/opt/fuse-esb-7.0.1.fuse-084$ bin/fuseesb debug Listening for transport

Java Messaging : Difference between ActiveMQ, Mule, ServiceMix and Camel

吃可爱长大的小学妹 提交于 2019-11-29 18:59:42
I am new to Messaging and want to know the difference between ActiveMQ , Mule , ServiceMix and Camel Anyone knows how each of these product is different? Thanks in advance ! EDIT: Also would like to know any good place/resource to learn these things. duffymo ActiveMQ is a message broker which implements the JMS API and supports a number of cross language clients and network protocols . It lets you implement queues or topics and write listeners or subscribers to respond to queue events. Mule and ServiceMix are open source ESB (enterprise service bus). An ESB has capabilities beyond JMS: queuing

Apache Camel and other ESB products

送分小仙女□ 提交于 2019-11-28 03:01:32
Hey, If we have Apache Camel why to use other solutions like Apache ServiceMix and Mule? Is there something Apache Camel can't do comparing to these products? When to use Mule/ServiceMix and when to use Camel? Apache Camel is a library that implements enterprise integration patterns (EIP). While it can use Spring as its IOC framework, it is not even dependent upon Spring, so it is completely platform independent. It is "just" a library. So you can run it any JVM environment, e.g. simple jvm, servlet, ejb, osgi. It does not bring with any of the benefits (or the overhead) of a container such