if i am getting it correctly, then what you need to do is open a connection
with cassandra daemon thread and access via client API, Have a look at:
https://github.com/impetus-opensource/Kundera/blob/trunk/kundera-cassandra/src/test/java/com/impetus/client/persistence/CassandraCli.java

here, initClient() is initializing connection and then using this client
instance you can connect and maintain column family/keyspaces.

Above mentioned source code is build using EmbeddedCassandraService, so you
just need to initialize client, but not to start cassandra server.

HTH

-Vivek

On Wed, Sep 26, 2012 at 2:06 PM, Robin Verlangen <ro...@us2.nl> wrote:

> Do you have any ideas how to do this Vivek?
>
> Best regards,
>
> Robin Verlangen
> *Software engineer*
> *
> *
> W http://www.robinverlangen.nl
> E ro...@us2.nl
>
> <http://goo.gl/Lt7BC>
>
> Disclaimer: The information contained in this message and attachments is
> intended solely for the attention and use of the named addressee and may be
> confidential. If you are not the intended recipient, you are reminded that
> the information remains the property of the sender. You must not use,
> disclose, distribute, copy, print or rely on this e-mail. If you have
> received this message in error, please contact the sender immediately and
> irrevocably delete this message and any copies.
>
>
>
> 2012/9/26 Vivek Mishra <mishra.v...@gmail.com>
>
>> I guess, you can always open/maintain a socket with running cassandra
>> daemon and have a control over specific column families/keyspace  or server
>> itself.
>>
>> -Vivek
>>
>>
>>
>> On Wed, Sep 26, 2012 at 12:51 PM, Robin Verlangen <ro...@us2.nl> wrote:
>>
>>> Some additional information: I already read about "Embedding"
>>> http://wiki.apache.org/cassandra/Embedding  however that doesn't seem a
>>> rock solid solution to me. The word "volatile" is not really comforting me
>>> ;-)
>>>
>>> Best regards,
>>>
>>> Robin Verlangen
>>> *Software engineer*
>>> *
>>> *
>>> W http://www.robinverlangen.nl
>>> E ro...@us2.nl
>>>
>>> <http://goo.gl/Lt7BC>
>>>
>>> Disclaimer: The information contained in this message and attachments is
>>> intended solely for the attention and use of the named addressee and may be
>>> confidential. If you are not the intended recipient, you are reminded that
>>> the information remains the property of the sender. You must not use,
>>> disclose, distribute, copy, print or rely on this e-mail. If you have
>>> received this message in error, please contact the sender immediately and
>>> irrevocably delete this message and any copies.
>>>
>>>
>>>
>>> 2012/9/25 Robin Verlangen <ro...@us2.nl>
>>>
>>>> Hi there,
>>>>
>>>> Is there a way to "embed"/package Cassandra with an other Java
>>>> application and maintain control over it? Is this done before? Are there
>>>> any best practices?
>>>>
>>>> Why I want to do this? We want to offer as less as configuration as
>>>> possible to our customers, but only if it's possible without messing around
>>>> in the Cassandra core.
>>>>
>>>> Best regards,
>>>>
>>>> Robin Verlangen
>>>> *Software engineer*
>>>> *
>>>> *
>>>> W http://www.robinverlangen.nl
>>>> E ro...@us2.nl
>>>>
>>>> <http://goo.gl/Lt7BC>
>>>>
>>>> Disclaimer: The information contained in this message and attachments
>>>> is intended solely for the attention and use of the named addressee and may
>>>> be confidential. If you are not the intended recipient, you are reminded
>>>> that the information remains the property of the sender. You must not use,
>>>> disclose, distribute, copy, print or rely on this e-mail. If you have
>>>> received this message in error, please contact the sender immediately and
>>>> irrevocably delete this message and any copies.
>>>>
>>>>
>>>
>>
>

Reply via email to