blueprint-osgi

Karaf add additional property to existing config file

天大地大妈咪最大 提交于 2019-12-11 12:49:11
问题 I have a bundle which uses a configuration file org.jemz.karaf.tutorial.hello.service.config.cfg with one property: org.jemz.karaf.tutorial.hello.service.msg="I am a HelloServiceConfig!!" My blueprint for using ConfigAdmin is like: <cm:property-placeholder persistent-id="org.jemz.karaf.tutorial.hello.service.config" update-strategy="reload" > <cm:default-properties> <cm:property name="org.jemz.karaf.tutorial.hello.service.msg" value="Hello World!"/> </cm:default-properties> </cm:property

How can I implement an OAuth flow in a CXF endpoint (SOAP) in Camel (preferably Blueprint)?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 11:35:13
问题 I would like to address a SOAP web service via camel-cxf endpoint . How can I implement an OAuth flow , preferably in the blueprint? Is that configurative or do I have to implement it myself? 回答1: I have found nice documentation on this: Basically, you have to implement interceptors and filters: Your blueprint.xml <bean id="tvServiceClientFactory" class="org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean"> <property name="address" value="http://localhost:${http.port}/services/oauth/validate"/

How to inject apache karaf bundles as a service in the web application using aries blue print?

有些话、适合烂在心里 提交于 2019-12-11 10:37:27
问题 I have servlet web application and want to inject apache karaf bundles as a service in the web application using aries blueprint. These are the Steps followed for injecting the bundles: 1) added reference tag with id and interface values in the blueprint.xml sample code is here <reference id="jsonStore" interface="com.test.test.jsonstore.service.JsonClientStore" /> 2) added bean tag with ref attribute as reference id, of bundles what we are injecting in the blueprint.xml file. sample code is

Using both Blueprint and Spring (Not spring-dm) with OSGi

纵然是瞬间 提交于 2019-12-11 01:58:12
问题 I have a Spring3 application which takes about 3 minutes to load a big domain model on startup... this is fine when the application is deployed to a production environment every once in a while but its a massive pain when making development changes due to the stopping/starting of the application. I've done a bit of investigation and I like the idea of separating my application in modules using OSGi so that I can deploy only the parts of my application which are changing (e.g. No need to

ActiveMQ remote connections refused despite 0.0.0.0 in broker URL

与世无争的帅哥 提交于 2019-12-11 01:31:41
问题 I have an ActiveMQ v5.7.0 broker, running in Karaf v2.3.3, that I want to enable for remote connections. I've set the broker URL to 0.0.0.0:61616, to enable it to listen to network traffic. I've opened the firewall to allow the traffic from the client machines. However, all remote connections are being refused. A quick netstat seems to tell me that the broker isn't listening outside of localhost. jeremy@server:~$ netstat -pan | grep 61616 tcp6 0 0 127.0.0.1:61616 :::* LISTEN - Looking at the

OSGI service JPA PersistenceContext not injected

不打扰是莪最后的温柔 提交于 2019-12-10 18:10:09
问题 I have a core library that has an interface that I want to expose as an OSGI service in Fuse ESB (Apache ServiceMix and Karaf). The goal is to allow other bundles to use it. The service uses JPA (OpenJPA) and Spring. The following is the interface: public interface PatientService { public Patient find(Integer id); } and the class: @Repository public class PatientServiceJpaImpl implements PatientService { @PersistenceContext(unitName="psu") private EntityManager entityManager; @Override public

OSGI bundle requires jdbc driver when using service interface from other bundle

点点圈 提交于 2019-12-08 10:35:56
问题 I have 3 simple bundles WebService, DataService and DataSource deployed in Fuse ESB, each built using the maven bundle plugin with blueprint for wiring beans and registering services. The datasource bundle contains connection details and registers the Oracle jdbc datasource via JNDI. The DataService uses OpenJPA and has a DAO, domain entities and a service interface implementation with one method which queries the database for a domain entity and returns a string. The service interface is

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

依然范特西╮ 提交于 2019-12-08 04:43:20
问题 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

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

Injecting blueprint OSGi service into JSF/PrimeFaces bean

最后都变了- 提交于 2019-12-06 12:27:57
问题 I have a project built on top OSGi and Karaf server. For dependency injection we are using Aries Blueprint. The main part of the project is a Apache Camel routes and integration things, but now I need to create some maintenance web interface. So I give a try to JSF - PrimeFaces implementation. I was able to create some demo, which works in OSGi under Karaf, that's ok. Now I'd like to know if it's possible to use Blueprint here, to reference some already existing OSGi services we have and