apache-servicemix

How do I cluster ServiceMix?

孤者浪人 提交于 2019-12-18 13:17:11
问题 I am looking for some initial pointers on how to cluster a ServiceMix solution. Basically what I need is: having 2 (or more) ServiceMix instances serving my routing needs and sharing the load if one instance fails, other(s) continue to serve if the failed one is brought back to life, it joins the party Searching for information confuses me since some references (eg. http://trenaman.blogspot.fi/2010/04/four-things-you-need-to-know-about-new.html) talk about "JBI cluster engine". I don't want

Apache Camel and other ESB products

。_饼干妹妹 提交于 2019-12-17 17:24:53
问题 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? 回答1: 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

Monitoring Servicemix with Hyperic HQ

南楼画角 提交于 2019-12-13 14:04:14
问题 I have been able to configure Hyperic HQ to identify servicemix 4, however, It could only see the "ServiceMix 4.x Garbage Collector" service. I would like to be able to monitor activemq Queues, Endpoints, and Camel Applications (if possible) Has anyone been able to do this? 回答1: I ran into the same issue at a client recently. We didn't find any support for doing this with HypericHQ, so we built our own basic web app using JSP, Ajax/jQuery and JMX to interface with AMQ/Camel. Another option is

Servicemix 4, DOSGi, and Zookeeper

萝らか妹 提交于 2019-12-13 12:14:52
问题 This is cross posted from the fusesource forum and the servicemmix forum. I can't get DOSGi working in FUSE. I'm trying to get CXF's DOSGi 1.1-SNAPSHOT with Zookeeper discovery onto FUSE 4.1.0.2. I'm also using Zookeepr 3.2.1. Everything works perfectly on Felix 2.0.0. I just follow the instructions on the DOSGi Discovery page and then install the Discovery Demo bundles. For DOSGi, I just use the cxf-dosgi-ri-singlebundle-distribution-1.1-SNAPSHOT.jar for DSW and cxf-dosgi-ri-discovery

ServiceMix / Blueprint / JPA Integration

江枫思渺然 提交于 2019-12-13 05:51:51
问题 I have been spending the week attempting to integrate JPA / ServiceMix 4.5.1 / camel-jpa 2.10.4 / Blueprint together. I'm currently using OpenJPA, but am not tied to it. The version of aries jpa used by servicemix is 0.3.0. The stack trace I cannot get past is: org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean workoutEntity of class class [...].WorkoutEntity at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:271)[10

Activemq concurrency fail in Apache camel route

醉酒当歌 提交于 2019-12-13 03:34:21
问题 Trying to send multiple requests at same instant to camel activemq route, one request is serviced and the other request is not serviced and sent back as it is. The Jms messages are set with JMScorrelationId too before sending like below textMessage.setJMSCorrelationID(UUID.randomUUID().toString()); below is my activemq route from("activemq:queue:TEST_QUEUE?disableReplyTo=true") .setExchangePattern(ExchangePattern.InOut) .process(new Processor() { public void process(Exchange e) throws

Camel runtime timer change

会有一股神秘感。 提交于 2019-12-13 00:35:20
问题 I have a question about camel and timers. I have several timers and one of them I want update in runtime. I'm using osgi blueprint to configure proper periods. So how can I change timer(with name which I know) for example from route? 回答1: You can add a bean to your route that implements org.apache.camel.CamelContextAware. Camel will inject a reference to the context on start-up. Using the context you can get a reference of the timer/quartz endpoint and update its configuration. What I don't

Sql Connection in Spring Servicemix camel

雨燕双飞 提交于 2019-12-12 16:24:20
问题 Sql Connection in Spring Servicemix camel <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/> <property name="url" value="jdbc:sqlserver://localhost:1433/orderdb"/> <property name="username" value="abc"/> <property name="password" value="pqr"/> </bean> When I try to make connection using dataSource.getConnection() Not allowing please help *****Connection Code *****

ClassNotFoundException: com.mysql.jdbc.Driver not found while using service mix

别等时光非礼了梦想. 提交于 2019-12-12 13:29:40
问题 I am using servicemix 4.4.1 with maven 3.0.4. I am very new to servicemix/java world - my main knowledge is c# / php. I have added the below to one of my routes: <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> <property name="driverClass" value="com.mysql.jdbc.Driver"/> <property name="url" value="jdbc:mysql://10.10.10.29/ServiceMix"/> <property name="username" value="somet"/> <property name="password" value="somet"/> </bean> If i then deploy the

ServiceMix / JPA Integration - LocalContainerEntityManagerFactoryBean to type EntityManagerFactory

与世无争的帅哥 提交于 2019-12-11 18:57:43
问题 I'm fairly new to ServiceMix / JPA / Camel / Spring. I'm attempting to use the camel-jpa component as part of my camel route. I'm using the latest release of ServiceMix, which is 4.5.1. This uses camel 2.10.4 and spring 3.0.7. After updating the OSGi manifest and deploying some additional modules to servicemix, I am stuck on the following stack trace: org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor <name: entityManagerFactory,