apache-servicemix

How to load external properties file through OSGi blueprint property-placeholder and Java DSL

你离开我真会死。 提交于 2019-12-06 16:37:41
I have a bundle installed in Apache servicemix that is using apache blueprint for configuration. I am using an external properties file abc.cfg located in /config folder and is being loaded as follows: via blueprint <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel-cxf="http://camel.apache.org/schema/blueprint/cxf" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:cxf="http://cxf.apache.org/blueprint/core" xsi:schemaLocation=" http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://camel.apache.org

Dependency management in OSGI bundle ServiceMix

倖福魔咒の 提交于 2019-12-06 16:03:12
Hi I am new to ServiceMix, so probably I am asking same question which might be answered but I couldn't figure out. My doubt is how do I manage compile time vs runtime dependencies when using bundle in ServiceMix OSGI. That is if I am building a .jar workable(by unit tests aleast) artifact with maven where all compile time dependencies say example(camel,spring) are handled by pom.xml dependencies and are loaded into jar as needed libs for successful build. So when I am deploying the jar in OSGI those libs(camel,spring) are already existing in maven generated jar. Now as OSGI bundles I am

Spring ReloadableResourceBundleMessageSource bean unable to find external properties

百般思念 提交于 2019-12-06 12:24:42
问题 I've tried to use the Mkyong's guide to access external properties file, without any success. This is my bean definition in web-osgi-context.xml file located in WEB-INF: <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basenames"> <list> <value>classpath:bundles/resource</value> <value>classpath:bundles/override</value> <value>file:c:/test/messages</value> </list> </property> <property name="cacheSeconds" value="10"/>

Clustering in ServiceMix 4

时间秒杀一切 提交于 2019-12-05 17:53:17
I'm trying to configure Apache ServiceMix 4 to provide load balancing feature mentioned in it's documentation (for example here: http://servicemix.apache.org/clustering.html ). Although it's mentioned, I couldn't find the exact way how to do it. The idea is to have 2 ServiceMixes (in LAN, for example) with the same OSGi service installed in them. When client tries to use the service, the load balancer takes him to appropriate service instance on one of the ServiceMixes. Is there an easy way to do that? Fabric8 ( http://fabric8.io/ ) can do Karaf/ServiceMix clustering and much more out of the

what's the scope of a static field?

荒凉一梦 提交于 2019-12-05 13:20:22
I meet a problem in static field. I think the root cause must be the scope of the static field. The project is based on Apache servicemix and consists of many sub-projects. In sub-project 'A', I defined a static list field 'reg' in class 'Registration' and some static method to operate the field like 'add' and 'getAll'. Once the sub-projectA is deployed, the name of the project 'A' will be added into the static list for registration. The problem is when it comes to sub-project 'B', when the sub-project 'B' is deployed, I want its name would be added into the exactly same static list for

Spring ReloadableResourceBundleMessageSource bean unable to find external properties

≡放荡痞女 提交于 2019-12-04 20:00:04
I've tried to use the Mkyong's guide to access external properties file, without any success. This is my bean definition in web-osgi-context.xml file located in WEB-INF: <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basenames"> <list> <value>classpath:bundles/resource</value> <value>classpath:bundles/override</value> <value>file:c:/test/messages</value> </list> </property> <property name="cacheSeconds" value="10"/> </bean> Accessing the bean: @SpringBean private ReloadableResourceBundleMessageSource messageSource;

Servicemix 4, DOSGi, and Zookeeper

孤街浪徒 提交于 2019-12-04 15:48:27
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-singlebundle-distribution-1.1-SNAPSHOT.jar for zookeepr discovery. Then when I start the sample bundles with

Crash when calling autoSizeColumn on worksheet, when run under Linux (Servicemix)

谁说胖子不能爱 提交于 2019-12-04 12:10:57
I've written module that generates excel, and deployed it under Servicemix. In Windows environment everything is fine, but under Linux Servicemix unexpectedly crashes on following call: for (short i=0;i<=3;i++) { log.trace("AutoSize column {}", i); worksheet.autoSizeColumn(i); } I'm using POI version 4.2-FINAL, FuseESB 4.2, Java 5.0. There are, however, no hs_err*.pid files. Servicemix logs ends on first autoSizeColumn call. Did anyone met such behaviour and know, how it is caused and how to come this around? In order to be able to calculate the column widths, POI needs to get hold of the Font

Apache Karaf vs. Servicemix

不问归期 提交于 2019-12-04 07:44:57
问题 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... 回答1: 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

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

99封情书 提交于 2019-12-03 18:20:44
问题 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. 回答1: 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