AffinityKey Configuration in order to achieve multiple joins across caches

2018-03-15 Thread StartCoding
Hi Team,


Below are my java templates whose object I want to store in the Ignite
Caches 

Class A
{

  field1
  field2
  field3


}

Class B
{

  field1
  field4
  field5


}

Class C

{

  field5
  field6
  field7


}





I wanted to colocate data in such a way that all instances of class A and
Class B should stay together in the partition node where ClassAObj.field1 =
ClassBObj.field1
Silimarly I want to make sure that all instances of class B and Class C
should stay together in the node where ClassBObj.field5 = ClassCObj.field5.
How Can we achive using cache Key configuration?


I tried like this

Defined Key classes

Class AKey

{

  field1
 


}
Class BKey

{

  field1
  field5
 


}

Class CKey

{

  field5
 


}


used below property  in the IgniteConfiguration.













   












 

Is this the way I should map or there is some other way to do it. Any help
to this will be appreciated.

Thanks
Saji



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Multiple Cluster and Cache Joins

2017-11-09 Thread StartCoding
Hi Val,

Thanks for the quick response. The reason for separate clusters is
separation of duties and maintenance perspective. 

Thanks
Saji



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Multiple Cluster and Cache Joins

2017-11-08 Thread StartCoding
Hi Team

I have a scenario . I wanted to have two ignite clusters  ClusterA will have
2 members and will have a cacheA and ClusterB will have 2 members and will
have cacheB. Would I be able to do SQL join of  cacheA and CacheB
considering the fact that it is in two isolated clusters in same machine?
What is the best way to handle this situation.

Appreciate your time for response.

Thanks
Saji



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Can java code look up cache in server without Ignition.start(cfg)

2017-07-13 Thread StartCoding
Hi Val,

Thanks for the response.

The scenario is I will start the client and at some point the machine is
 getting stuck (due to high cpu utilisation) and I need to kill the entire
servers and client to regain my system. At this time I use the Visor App to
kill the instances one by one. But As I kill the client I it makes the
entire Weblogic server down. I dont know if there would be another scenario
where I need to kill the client in future. But if there is a case to kill
the client after day end of the day or so what is the safe way to do it?

Thanks
Saji

On Mon, Jul 10, 2017 at 9:00 PM, vkulichenko [via Apache Ignite Users] <
ml+s70518n14601...@n6.nabble.com> wrote:

> Hi Saji,
>
> Kill command kill the process, it's designed more for standalone server
> nodes rather than embedded clients. What is the condition when you may want
> to stop the client?
>
> -Val
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/Can-java-
> code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p14601.html
> To unsubscribe from Can java code look up cache in server without
> Ignition.start(cfg), click here
> 
> .
> NAML
> 
>



-- 
Thanks and Regards
Saji




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p14816.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can java code look up cache in server without Ignition.start(cfg)

2017-07-10 Thread StartCoding
Hi Val

Quick Question

I am trying to run the Ignite client from a J2EE application which is
deployed in Weblogic Server  and the client starts running when the method
id invoked. I try to Monitor it with the Visor app and I can see the server
and Client running. I tried to kill the client instance from the visor
application and it kills the client. Unfortunately it brings down the
weblogic server also. Have you experienced this and Any thoughts why this
happens and how can we avoid it?

Thanks
Saji

On Thu, Jun 15, 2017 at 11:55 AM, Sajin Mathew  wrote:

> Thanks Val. It worked when I removed try()
>
> On Wed, Jun 14, 2017 at 5:54 PM, vkulichenko [via Apache Ignite Users] <
> ml+s70518n13713...@n6.nabble.com> wrote:
>
>> Saji,
>>
>> You're using try-with-resources syntax, which calls Ignite.close() at the
>> end and therefore stops the node. Getting rid of it will do the trick.
>>
>> -Val
>>
>> --
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://apache-ignite-users.70518.x6.nabble.com/Can-java-code
>> -look-up-cache-in-server-without-Ignition-start-cfg-tp9008p13713.html
>> To unsubscribe from Can java code look up cache in server without
>> Ignition.start(cfg), click here
>> 
>> .
>> NAML
>> 
>>
>
>
>
> --
> Thanks and Regards
> Saji
>



-- 
Thanks and Regards
Saji




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p14598.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can java code look up cache in server without Ignition.start(cfg)

2017-06-15 Thread StartCoding
Thanks Val. It worked when I removed try()

On Wed, Jun 14, 2017 at 5:54 PM, vkulichenko [via Apache Ignite Users] <
ml+s70518n13713...@n6.nabble.com> wrote:

> Saji,
>
> You're using try-with-resources syntax, which calls Ignite.close() at the
> end and therefore stops the node. Getting rid of it will do the trick.
>
> -Val
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/Can-java-
> code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p13713.html
> To unsubscribe from Can java code look up cache in server without
> Ignition.start(cfg), click here
> 
> .
> NAML
> 
>



-- 
Thanks and Regards
Sajin




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p13825.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can java code look up cache in server without Ignition.start(cfg)

2017-06-14 Thread StartCoding
Hi Val,

I remember you helping me with getOrStart(IgniteConfiguration) to ensure
that Ignite is started only once. Currently I am having an issue

try (Ignite ignite =
Ignition.getOrStart(ClientConfigurationFactory.createConfiguration())) {

when the above code is executed the Ignite node is starting up every time I
execute this code instead of getting the already started instance.

Would you be able to throw some light to the above issue?

Thanks
Saji


On Fri, Nov 18, 2016 at 11:20 AM, Sajin Mathew  wrote:

> Hi  Val,
>
> That was the perfect one for me. It worked with XML using  
> Ignition.loadSpringBean()
> .
>
> Appreciate all your help in this regard. Thank You !
>
> Thanks
> Saji
>
> On Thu, Nov 17, 2016 at 3:27 PM, vkulichenko [via Apache Ignite Users] <
> ml-node+s70518n9057...@n6.nabble.com> wrote:
>
>> Saji,
>>
>> This is weird, I though there are several versions of it. You can use
>> Ignition.loadSpringBean() to work around this. Load the IgniteConfiguration
>> bean from the XML and then pass it getOrStart.
>>
>> -Val
>>
>> --
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://apache-ignite-users.70518.x6.nabble.com/Can-java-code
>> -look-up-cache-in-server-without-Ignition-start-cfg-tp9008p9057.html
>> To unsubscribe from Can java code look up cache in server without
>> Ignition.start(cfg), click here
>> 
>> .
>> NAML
>> 
>>
>
>
>
> --
> Thanks and Regards
> Saji
>



-- 
Thanks and Regards
Saji




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p13712.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Database Connection Pooling

2016-12-08 Thread StartCoding
Hi Team,

Can some one help me understand what is the need of Database Connection
Pooling in Ignite. If there are any links to the explanation or code that
should be good.

Thanks 
Saji



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Database-Connection-Pooling-tp9452.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Can java code look up cache in server without Ignition.start(cfg)

2016-11-18 Thread StartCoding
Hi  Val,

That was the perfect one for me. It worked with XML using
Ignition.loadSpringBean()
.

Appreciate all your help in this regard. Thank You !

Thanks
Saji

On Thu, Nov 17, 2016 at 3:27 PM, vkulichenko [via Apache Ignite Users] <
ml-node+s70518n9057...@n6.nabble.com> wrote:

> Saji,
>
> This is weird, I though there are several versions of it. You can use
> Ignition.loadSpringBean() to work around this. Load the IgniteConfiguration
> bean from the XML and then pass it getOrStart.
>
> -Val
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/Can-java-
> code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p9057.html
> To unsubscribe from Can java code look up cache in server without
> Ignition.start(cfg), click here
> 
> .
> NAML
> 
>



-- 
Thanks and Regards
Saji




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p9084.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Can java code look up cache in server without Ignition.start(cfg)

2016-11-17 Thread StartCoding
Thanks Very much!

That exactly matched my logic and it is perfectly working.

I noticed that getOrStart takes IgniteConfiguration object.Is there a way
to create that from example-ignite.xml file rather than doing it java
setters?

Thanks
Saji

On Wed, Nov 16, 2016 at 3:09 PM, vkulichenko [via Apache Ignite Users] <
ml-node+s70518n9028...@n6.nabble.com> wrote:

> Saji,
>
> Ignition.ignite() is used to get the already started Ignite instance.
> There is also Ignition.getOrStart() method that actually implements the
> logic you described, so you can just use it.
>
> -Val
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/Can-java-
> code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p9028.html
> To unsubscribe from Can java code look up cache in server without
> Ignition.start(cfg), click here
> 
> .
> NAML
> 
>



-- 
Thanks and Regards
Saji




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p9052.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Can java code look up cache in server without Ignition.start(cfg)

2016-11-15 Thread StartCoding
Explaining my scenario

 I have my Ignite Server started using ignite.bat with grid name FirstGrid
 I have a java class CacheOperations with putCache() and getCache() as
methods and acts as client to get and put data to the cache in the Ignite
server.
 In CacheOperations I am using 

   Ignite ignite = Ignition.start(cfg);

I am able to put and get data from cache. 

Is there a way to do the same without using Ignite ignite =
Ignition.start(cfg); in my java code. The reason I am looking for this is
Whenever Ignition.start(cfg) gets executed it takes about 2 to 3 seconds in
my machine to start the client and be part of the grid. 

I tried using Ignition.ignite("FirstGrid") but could not succeed and I am
not sure about the usage of  Ignition.ignite().

Appreciate if anyone in this group can throw some light.

Thanks
Saji

 

 
 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.