[
https://issues.apache.org/jira/browse/CAMEL-7563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054558#comment-14054558
]
Alexander Lomov commented on CAMEL-7563:
----------------------------------------
Yes please:
<?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:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0"
xmlns:camel="http://camel.apache.org/schema/blueprint"
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/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<reference id="hazelcastInstance"
interface="com.hazelcast.core.HazelcastInstance"
filter="(instanceName=cbh)"/>
<bean id="hazelcastConfig" class="com.hazelcast.config.Config"
factory-ref="hazelcastInstance"
factory-method="getConfig" />
<bean id="opCoCalloutRouter" depends-on="hazelcastInstance"
class="com.mypackage.OpCoCalloutRouter"/>
<bean id="opCoCallbackRouter" depends-on="hazelcastInstance"
class="com.mypackage.OpCoCallbackRouter"/>
<bean id="hazelcastComponent"
class="org.apache.camel.component.hazelcast.HazelcastComponent">
<argument index="0" ref="OpcoMediatorCtx"
type="org.apache.camel.CamelContext" />
<property name="hazelcastInstance" ref="hazelcastInstance" />
</bean>
<camel:camelContext id="OpcoMediatorCtx">
<camel:propertyPlaceholder id="properties"
location="blueprint:opco.mediator.context" prefixToken="{{"
suffixToken="}}"/>
<camel:routeBuilder ref="opCoCalloutRouter" />
<camel:routeBuilder ref="opCoCallbackRouter" />
</camel:camelContext>
</blueprint>
> Please make sure the component name is same with the hazelcast
Didn't get it :(
> Allow passing HazelcastInstance as a query parameter of a Hazelcast component
> endpoint.
> ---------------------------------------------------------------------------------------
>
> Key: CAMEL-7563
> URL: https://issues.apache.org/jira/browse/CAMEL-7563
> Project: Camel
> Issue Type: Improvement
> Components: camel-hazelcast
> Reporter: Alexander Lomov
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.14.0
>
>
> It is impossible now to pass an existing HazelcastInstance to a
> HazelcastEndpoint as a bean from Registry. It complicates Hazelcast Endpoint
> usage in any DI environment.
--
This message was sent by Atlassian JIRA
(v6.2#6252)