You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by bvysocky <bv...@constantcontact.com> on 2011/10/17 23:13:40 UTC

Hazelcast Component persistence

I am trying to use the hazelcast component in camel for creating queues. Is
there a way to configure the queues to be persistent? This was added to
hazelcast in version 1.9.3, which I belive camel 2.8.0 is using. I would
really like to be able to configure hazelcast in spring so that I can use my
daos for the queue persistence. Is it possible to configure the hazelcast
cluster in spring when using this component?

Camel Version 2.8.0
Java Version 1.6

Thanks,
bvysocky

--
View this message in context: http://camel.465427.n5.nabble.com/Hazelcast-Component-persistence-tp4911607p4911607.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Hazelcast Component persistence

Posted by Ioannis Canellos <io...@gmail.com>.
Yes, this would be enough.

Please note, that you will still need to configure the instance that you
pass to the component.

-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*

Re: Hazelcast Component persistence

Posted by bvysocky <bv...@constantcontact.com>.
Ioannis,
I made my own camel-hazelcast jar based off the 2.8.0 codebase and your
patch. 
I have been looking through the modifications you made to the unit tests to
determine how to supply my own hazelcast instance. Is defining this been and
pointing it to my own hazelcastInstance all I have to do?

<bean id="hazelcast"
class="org.apache.camel.component.hazelcast.HazelcastComponent">
        <property name="hazelcastInstance" ref="hazelcastInstance"/>
    </bean>

Thanks,
Brian Vysocky

--
View this message in context: http://camel.465427.n5.nabble.com/Hazelcast-Component-persistence-tp4911607p4923120.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Hazelcast Component persistence

Posted by Ioannis Canellos <io...@gmail.com>.
There is a pending patch for commit, which would allow the hazelcast
component to be passed an existing Hazelcast instance. Once this is
committed you will be able to configure Hazelcast with any way you want and
just pass it to the component.
-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*

Re: Hazelcast Component persistence

Posted by Claus Straube <cl...@catify.com>.
Hi,

On 17.10.2011 23:13, bvysocky wrote:
> I am trying to use the hazelcast component in camel for creating queues. Is
> there a way to configure the queues to be persistent? This was added to
> hazelcast in version 1.9.3, which I belive camel 2.8.0 is using. I would
> really like to be able to configure hazelcast in spring so that I can use my
> daos for the queue persistence.
yes, it's possible to define persistence for hazelcast queues. Simply 
create a hazelcast.xml and configure it like the hazelcast docu says: 
http://www.hazelcast.com/documentation.jsp#Queue There's no additional 
magic inside the component.
>   Is it possible to configure the hazelcast
> cluster in spring when using this component?
This is not implemented yet, but should no great deal to add it to the 
component. So you're welcome to provide a patch :)

Best regards - Claus
> Camel Version 2.8.0
> Java Version 1.6
>
> Thanks,
> bvysocky
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Hazelcast-Component-persistence-tp4911607p4911607.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>