Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <blueprint
- xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
- xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
- xsi:schemaLocation="
- http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
- http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
- http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
- http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
- http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd
- http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd
- http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd">
- <cm:property-placeholder persistent-id="com.apogado.xxxx" update-strategy="reload">
- <cm:default-properties>
- <cm:property name="locServicesRealm" value="karaf" />
- <cm:property name="locServicesRoles" value="user" />
- </cm:default-properties>
- </cm:property-placeholder>
- <!-- ============== LOCATION SERVICES ================= -->
- <jaxrs:server id="locationRsServices" address="/internal/location">
- <jaxrs:serviceBeans>
- <ref component-id="locationServicesRs" />
- </jaxrs:serviceBeans>
- <jaxrs:providers>
- <ref component-id="authenticationFilter"/>
- </jaxrs:providers>
- </jaxrs:server>
- <bean id="authenticationFilter" class="org.apache.cxf.jaxrs.security.JAASAuthenticationFilter">
- <!-- Name of the JAAS Context -->
- <property name="contextName" value="${locServicesRealm}"/>
- <property name="realmName" value="${locServicesRealm}"/>
- <!-- Hint to the filter on how to have Principals representing users and roles separated
- while initializing a SecurityContext -->
- <property name="rolePrefix" value="${locServicesRoles}"/>
- </bean>
- <bean id="locationServicesImpl" class="com.apogado.egov.cache.address.LocationServices">
- <property name="datasource" ref="cacheDataSource" />
- </bean>
- <bean id="locationServicesRs" class="com.apogado.egov.cache.address.LocationServiceRs">
- <property name="locServices" ref="locationServicesImpl"/>
- </bean>
- </blueprint>
Advertisement
Add Comment
Please, Sign In to add comment