You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Jeffrey Kesselman <je...@gmail.com> on 2009/08/13 04:56:50 UTC

Dynamic composition of JCS caches

Hi Guys,

One more stupid question.  Most of the examples use ccf files.  For my use
however I want to embed the caches in a larger program that sets them up
dynamically.  In specific I need programmatic control over where the remote
client looks for its servers, but in general id like to drive this as much
as possible from code.

Are there are examples around of creating remote client and server caches
programmatically?  And of adding disk caching to them?

Thanks

JK

-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~

Re: Dynamic composition of JCS caches

Posted by Jeffrey Kesselman <je...@gmail.com>.
Got my basic client cache setup code written tonight.

Just wanted to thank everyone so far.  Ill probably be bugging you with more
questions later.

If anyone is curious, the project is an open source resource manager for
online games.  The remote caches are  in the client and store resources that
are fetched as requested frrom the server.  Given the need to scale, plus a
need to sync for any changes made while the client was disconnected, Im not
having the clients listen to the cache servers for updates.  Instead, the
server tells the client what version of a resource is needed for the current
actions and that version number gets coded into the resoruce key that is
requested from the remote cache.  That way, the client pulls new version as
needed.

I havent adressed yet how to expire previous versions, but im thinkign maybe
if the cache misses, I can walk backwards through the versions looking for
older ones and removing them.  or something like that.

On Thu, Aug 13, 2009 at 10:19 AM, Jeffrey Kesselman <je...@gmail.com>wrote:

> Thanks
>
> JK
>
>
> On Thu, Aug 13, 2009 at 10:14 AM, Aaron Smuts <as...@yahoo.com> wrote:
>
>> Right now JCS can only be used as a Singleton.  I don't mean the JCS
>> class, I mean the cache itself.  The core of the cache is the
>> CompositeCacheManager.  There can only be one instance per VM.  It's
>> responsible for configuring the cache regions.  (I'm working on making it so
>> that you can have multiple instances, but it's not completely ready yet.)
>>
>> (The JCS class is simply a convenience class.  It's just an extension of
>> the cache access class.  The cache access class work on the CompositeCache
>> objects that are created by the CompositeCacheManager.)
>>
>> You can configure the CompositeCacheManger with your custom properties
>> object.  Then when you call "JCS.getInstance( regionName )"  You will get
>> access to the region configured by the manager that you just configured.
>>
>> Get an instance of the manger.  Call configure.  The singleton is now
>> configured.  Use the JCS class to get JCS region access.
>>
>> Aaron
>>
>>
>> --- On Thu, 8/13/09, Jeffrey Kesselman <je...@gmail.com> wrote:
>>
>> > From: Jeffrey Kesselman <je...@gmail.com>
>> > Subject: Re: Dynamic composition of JCS caches
>> > To: "JCS Users List" <jc...@jakarta.apache.org>
>> > Date: Thursday, August 13, 2009, 6:24 AM
>> > That looks like it....
>> >
>> > But how do I set the JCS to use the hand configured ccm?
>> >
>> > I couldn't find a way to do that looking at the JCS
>> > source.  The internal
>> > CCM is private and I don't see any access methods.
>> > The JCS constructor
>> > takes a CCM but its protected :(
>> >
>> > Do I need to override JCS with my own version?
>> >
>> > On Thu, Aug 13, 2009 at 4:26 AM, Horton Simon <
>> Simon.Horton@uk.mizuho-sc.com
>> > > wrote:
>> >
>> > > Hi JK,
>> > >
>> > > I think this is what you are after:
>> > > http://jakarta.apache.org/jcs/faq.html#manual-configuration
>> > >
>> > >
>> > > Regards,
>> > > SIMON HORTON
>> > > SECURITIES SERVICES DEPARTMENT APPLICATION
>> > DEVELOPMENT
>> > > MIZUHO INTERNATIONAL PLC | BRACKEN HOUSE, 1 FRIDAY
>> > STREET, LONDON, EC4M
>> > > 9JA
>> > > T +44 (0)20 7090 6002 | E SIMON.HORTON@UK.MIZUHO-SC.COM
>> > >
>> > > -----Original Message-----
>> > > From: Jeffrey Kesselman [mailto:jeffpk@gmail.com]
>> > > Sent: 13 August 2009 04:06
>> > > To: JCS Users List
>> > > Subject: Re: Dynamic composition of JCS caches
>> > >
>> > > What would be great, that I don't see, is if there was
>> > a call on the JCS
>> > > object that was equivalent to
>> > JCS.setConfigFilename(String) that was
>> > > something like JCS.setConfig(Properties)
>> > >
>> > > That would allow someone to synthetically create and
>> > set all the
>> > > properties
>> > > that are now loaded from fixed files.\
>> > >
>> > > JK
>> > >
>> > > On Wed, Aug 12, 2009 at 10:56 PM, Jeffrey Kesselman
>> > > <je...@gmail.com>wrote:
>> > >
>> > > > Hi Guys,
>> > > >
>> > > > One more stupid question.  Most of the
>> > examples use ccf files.  For my
>> > > use
>> > > > however I want to embed the caches in a larger
>> > program that sets them
>> > > up
>> > > > dynamically.  In specific I need
>> > programmatic control over where the
>> > > remote
>> > > > client looks for its servers, but in general id
>> > like to drive this as
>> > > much
>> > > > as possible from code.
>> > > >
>> > > > Are there are examples around of creating remote
>> > client and server
>> > > caches
>> > > > programmatically?  And of adding disk
>> > caching to them?
>> > > >
>> > > > Thanks
>> > > >
>> > > > JK
>> > > >
>> > > > --
>> > > > ~~ Microsoft help desk says: reply hazy, ask
>> > again later. ~~
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > ~~ Microsoft help desk says: reply hazy, ask again
>> > later. ~~
>> > >
>> > > This message and any files transmitted with it are
>> > confidential and
>> > > intended solely for the use of the individual or
>> > entity to whom they are
>> > > addressed. If you have received this message in error
>> > please delete it and
>> > > any files transmitted with it, after notifying
>> postmaster@uk.mizuho-sc.com
>> > > Any opinions expressed in this message may be those of
>> > the author and not
>> > > necessarily those of the company. The company accepts
>> > no responsibility for
>> > > the accuracy or completeness of any information
>> > contained herein. This
>> > > message is not intended to create legal relations
>> > between the company and
>> > > the recipient.
>> > > Recipients should please note that messages sent via
>> > the Internet may be
>> > > intercepted and that caution should therefore be
>> > exercised before
>> > > dispatching to the company any confidential or
>> > sensitive information.
>> > > Mizuho International plc Bracken House, One Friday
>> > Street, London EC4M 9JA.
>> > > TEL. 020 72361090. Wholly owned subsidiary of Mizuho
>> > Securities Co., Ltd.
>> > > Member of Mizuho Financial Group. Authorised and
>> > regulated by the Financial
>> > > Services Authority. Member of the London Stock
>> > Exchange.
>> > >
>> > > Registered in England No. 1203696. Registered office
>> > as above.
>> > >
>> > >
>> > >
>> > >
>> > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>> > >
>> > >
>> >
>> >
>> > --
>> > ~~ Microsoft help desk says: reply hazy, ask again later.
>> > ~~
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>>
>>
>
>
> --
> ~~ Microsoft help desk says: reply hazy, ask again later. ~~
>



-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~

Re: Dynamic composition of JCS caches

Posted by Jeffrey Kesselman <je...@gmail.com>.
Thanks

JK

On Thu, Aug 13, 2009 at 10:14 AM, Aaron Smuts <as...@yahoo.com> wrote:

> Right now JCS can only be used as a Singleton.  I don't mean the JCS class,
> I mean the cache itself.  The core of the cache is the
> CompositeCacheManager.  There can only be one instance per VM.  It's
> responsible for configuring the cache regions.  (I'm working on making it so
> that you can have multiple instances, but it's not completely ready yet.)
>
> (The JCS class is simply a convenience class.  It's just an extension of
> the cache access class.  The cache access class work on the CompositeCache
> objects that are created by the CompositeCacheManager.)
>
> You can configure the CompositeCacheManger with your custom properties
> object.  Then when you call "JCS.getInstance( regionName )"  You will get
> access to the region configured by the manager that you just configured.
>
> Get an instance of the manger.  Call configure.  The singleton is now
> configured.  Use the JCS class to get JCS region access.
>
> Aaron
>
>
> --- On Thu, 8/13/09, Jeffrey Kesselman <je...@gmail.com> wrote:
>
> > From: Jeffrey Kesselman <je...@gmail.com>
> > Subject: Re: Dynamic composition of JCS caches
> > To: "JCS Users List" <jc...@jakarta.apache.org>
> > Date: Thursday, August 13, 2009, 6:24 AM
> > That looks like it....
> >
> > But how do I set the JCS to use the hand configured ccm?
> >
> > I couldn't find a way to do that looking at the JCS
> > source.  The internal
> > CCM is private and I don't see any access methods.
> > The JCS constructor
> > takes a CCM but its protected :(
> >
> > Do I need to override JCS with my own version?
> >
> > On Thu, Aug 13, 2009 at 4:26 AM, Horton Simon <
> Simon.Horton@uk.mizuho-sc.com
> > > wrote:
> >
> > > Hi JK,
> > >
> > > I think this is what you are after:
> > > http://jakarta.apache.org/jcs/faq.html#manual-configuration
> > >
> > >
> > > Regards,
> > > SIMON HORTON
> > > SECURITIES SERVICES DEPARTMENT APPLICATION
> > DEVELOPMENT
> > > MIZUHO INTERNATIONAL PLC | BRACKEN HOUSE, 1 FRIDAY
> > STREET, LONDON, EC4M
> > > 9JA
> > > T +44 (0)20 7090 6002 | E SIMON.HORTON@UK.MIZUHO-SC.COM
> > >
> > > -----Original Message-----
> > > From: Jeffrey Kesselman [mailto:jeffpk@gmail.com]
> > > Sent: 13 August 2009 04:06
> > > To: JCS Users List
> > > Subject: Re: Dynamic composition of JCS caches
> > >
> > > What would be great, that I don't see, is if there was
> > a call on the JCS
> > > object that was equivalent to
> > JCS.setConfigFilename(String) that was
> > > something like JCS.setConfig(Properties)
> > >
> > > That would allow someone to synthetically create and
> > set all the
> > > properties
> > > that are now loaded from fixed files.\
> > >
> > > JK
> > >
> > > On Wed, Aug 12, 2009 at 10:56 PM, Jeffrey Kesselman
> > > <je...@gmail.com>wrote:
> > >
> > > > Hi Guys,
> > > >
> > > > One more stupid question.  Most of the
> > examples use ccf files.  For my
> > > use
> > > > however I want to embed the caches in a larger
> > program that sets them
> > > up
> > > > dynamically.  In specific I need
> > programmatic control over where the
> > > remote
> > > > client looks for its servers, but in general id
> > like to drive this as
> > > much
> > > > as possible from code.
> > > >
> > > > Are there are examples around of creating remote
> > client and server
> > > caches
> > > > programmatically?  And of adding disk
> > caching to them?
> > > >
> > > > Thanks
> > > >
> > > > JK
> > > >
> > > > --
> > > > ~~ Microsoft help desk says: reply hazy, ask
> > again later. ~~
> > > >
> > >
> > >
> > >
> > > --
> > > ~~ Microsoft help desk says: reply hazy, ask again
> > later. ~~
> > >
> > > This message and any files transmitted with it are
> > confidential and
> > > intended solely for the use of the individual or
> > entity to whom they are
> > > addressed. If you have received this message in error
> > please delete it and
> > > any files transmitted with it, after notifying
> postmaster@uk.mizuho-sc.com
> > > Any opinions expressed in this message may be those of
> > the author and not
> > > necessarily those of the company. The company accepts
> > no responsibility for
> > > the accuracy or completeness of any information
> > contained herein. This
> > > message is not intended to create legal relations
> > between the company and
> > > the recipient.
> > > Recipients should please note that messages sent via
> > the Internet may be
> > > intercepted and that caution should therefore be
> > exercised before
> > > dispatching to the company any confidential or
> > sensitive information.
> > > Mizuho International plc Bracken House, One Friday
> > Street, London EC4M 9JA.
> > > TEL. 020 72361090. Wholly owned subsidiary of Mizuho
> > Securities Co., Ltd.
> > > Member of Mizuho Financial Group. Authorised and
> > regulated by the Financial
> > > Services Authority. Member of the London Stock
> > Exchange.
> > >
> > > Registered in England No. 1203696. Registered office
> > as above.
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > ~~ Microsoft help desk says: reply hazy, ask again later.
> > ~~
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>


-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~

Re: Dynamic composition of JCS caches

Posted by Aaron Smuts <as...@yahoo.com>.
Right now JCS can only be used as a Singleton.  I don't mean the JCS class, I mean the cache itself.  The core of the cache is the CompositeCacheManager.  There can only be one instance per VM.  It's responsible for configuring the cache regions.  (I'm working on making it so that you can have multiple instances, but it's not completely ready yet.)

(The JCS class is simply a convenience class.  It's just an extension of the cache access class.  The cache access class work on the CompositeCache objects that are created by the CompositeCacheManager.)

You can configure the CompositeCacheManger with your custom properties object.  Then when you call "JCS.getInstance( regionName )"  You will get access to the region configured by the manager that you just configured.

Get an instance of the manger.  Call configure.  The singleton is now configured.  Use the JCS class to get JCS region access.

Aaron


--- On Thu, 8/13/09, Jeffrey Kesselman <je...@gmail.com> wrote:

> From: Jeffrey Kesselman <je...@gmail.com>
> Subject: Re: Dynamic composition of JCS caches
> To: "JCS Users List" <jc...@jakarta.apache.org>
> Date: Thursday, August 13, 2009, 6:24 AM
> That looks like it....
> 
> But how do I set the JCS to use the hand configured ccm?
> 
> I couldn't find a way to do that looking at the JCS
> source.  The internal
> CCM is private and I don't see any access methods. 
> The JCS constructor
> takes a CCM but its protected :(
> 
> Do I need to override JCS with my own version?
> 
> On Thu, Aug 13, 2009 at 4:26 AM, Horton Simon <Simon.Horton@uk.mizuho-sc.com
> > wrote:
> 
> > Hi JK,
> >
> > I think this is what you are after:
> > http://jakarta.apache.org/jcs/faq.html#manual-configuration
> >
> >
> > Regards,
> > SIMON HORTON
> > SECURITIES SERVICES DEPARTMENT APPLICATION
> DEVELOPMENT
> > MIZUHO INTERNATIONAL PLC | BRACKEN HOUSE, 1 FRIDAY
> STREET, LONDON, EC4M
> > 9JA
> > T +44 (0)20 7090 6002 | E SIMON.HORTON@UK.MIZUHO-SC.COM
> >
> > -----Original Message-----
> > From: Jeffrey Kesselman [mailto:jeffpk@gmail.com]
> > Sent: 13 August 2009 04:06
> > To: JCS Users List
> > Subject: Re: Dynamic composition of JCS caches
> >
> > What would be great, that I don't see, is if there was
> a call on the JCS
> > object that was equivalent to
> JCS.setConfigFilename(String) that was
> > something like JCS.setConfig(Properties)
> >
> > That would allow someone to synthetically create and
> set all the
> > properties
> > that are now loaded from fixed files.\
> >
> > JK
> >
> > On Wed, Aug 12, 2009 at 10:56 PM, Jeffrey Kesselman
> > <je...@gmail.com>wrote:
> >
> > > Hi Guys,
> > >
> > > One more stupid question.  Most of the
> examples use ccf files.  For my
> > use
> > > however I want to embed the caches in a larger
> program that sets them
> > up
> > > dynamically.  In specific I need
> programmatic control over where the
> > remote
> > > client looks for its servers, but in general id
> like to drive this as
> > much
> > > as possible from code.
> > >
> > > Are there are examples around of creating remote
> client and server
> > caches
> > > programmatically?  And of adding disk
> caching to them?
> > >
> > > Thanks
> > >
> > > JK
> > >
> > > --
> > > ~~ Microsoft help desk says: reply hazy, ask
> again later. ~~
> > >
> >
> >
> >
> > --
> > ~~ Microsoft help desk says: reply hazy, ask again
> later. ~~
> >
> > This message and any files transmitted with it are
> confidential and
> > intended solely for the use of the individual or
> entity to whom they are
> > addressed. If you have received this message in error
> please delete it and
> > any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com
> > Any opinions expressed in this message may be those of
> the author and not
> > necessarily those of the company. The company accepts
> no responsibility for
> > the accuracy or completeness of any information
> contained herein. This
> > message is not intended to create legal relations
> between the company and
> > the recipient.
> > Recipients should please note that messages sent via
> the Internet may be
> > intercepted and that caution should therefore be
> exercised before
> > dispatching to the company any confidential or
> sensitive information.
> > Mizuho International plc Bracken House, One Friday
> Street, London EC4M 9JA.
> > TEL. 020 72361090. Wholly owned subsidiary of Mizuho
> Securities Co., Ltd.
> > Member of Mizuho Financial Group. Authorised and
> regulated by the Financial
> > Services Authority. Member of the London Stock
> Exchange.
> >
> > Registered in England No. 1203696. Registered office
> as above.
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> >
> >
> 
> 
> -- 
> ~~ Microsoft help desk says: reply hazy, ask again later.
> ~~
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Dynamic composition of JCS caches

Posted by Jeffrey Kesselman <je...@gmail.com>.
That looks like it....

But how do I set the JCS to use the hand configured ccm?

I couldn't find a way to do that looking at the JCS source.  The internal
CCM is private and I don't see any access methods.  The JCS constructor
takes a CCM but its protected :(

Do I need to override JCS with my own version?

On Thu, Aug 13, 2009 at 4:26 AM, Horton Simon <Simon.Horton@uk.mizuho-sc.com
> wrote:

> Hi JK,
>
> I think this is what you are after:
> http://jakarta.apache.org/jcs/faq.html#manual-configuration
>
>
> Regards,
> SIMON HORTON
> SECURITIES SERVICES DEPARTMENT APPLICATION DEVELOPMENT
> MIZUHO INTERNATIONAL PLC | BRACKEN HOUSE, 1 FRIDAY STREET, LONDON, EC4M
> 9JA
> T +44 (0)20 7090 6002 | E SIMON.HORTON@UK.MIZUHO-SC.COM
>
> -----Original Message-----
> From: Jeffrey Kesselman [mailto:jeffpk@gmail.com]
> Sent: 13 August 2009 04:06
> To: JCS Users List
> Subject: Re: Dynamic composition of JCS caches
>
> What would be great, that I don't see, is if there was a call on the JCS
> object that was equivalent to JCS.setConfigFilename(String) that was
> something like JCS.setConfig(Properties)
>
> That would allow someone to synthetically create and set all the
> properties
> that are now loaded from fixed files.\
>
> JK
>
> On Wed, Aug 12, 2009 at 10:56 PM, Jeffrey Kesselman
> <je...@gmail.com>wrote:
>
> > Hi Guys,
> >
> > One more stupid question.  Most of the examples use ccf files.  For my
> use
> > however I want to embed the caches in a larger program that sets them
> up
> > dynamically.  In specific I need programmatic control over where the
> remote
> > client looks for its servers, but in general id like to drive this as
> much
> > as possible from code.
> >
> > Are there are examples around of creating remote client and server
> caches
> > programmatically?  And of adding disk caching to them?
> >
> > Thanks
> >
> > JK
> >
> > --
> > ~~ Microsoft help desk says: reply hazy, ask again later. ~~
> >
>
>
>
> --
> ~~ Microsoft help desk says: reply hazy, ask again later. ~~
>
> This message and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this message in error please delete it and
> any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com
> Any opinions expressed in this message may be those of the author and not
> necessarily those of the company. The company accepts no responsibility for
> the accuracy or completeness of any information contained herein. This
> message is not intended to create legal relations between the company and
> the recipient.
> Recipients should please note that messages sent via the Internet may be
> intercepted and that caution should therefore be exercised before
> dispatching to the company any confidential or sensitive information.
> Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA.
> TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities Co., Ltd.
> Member of Mizuho Financial Group. Authorised and regulated by the Financial
> Services Authority. Member of the London Stock Exchange.
>
> Registered in England No. 1203696. Registered office as above.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>


-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~

RE: Dynamic composition of JCS caches

Posted by Horton Simon <Si...@uk.mizuho-sc.com>.
Hi JK,

I think this is what you are after:
http://jakarta.apache.org/jcs/faq.html#manual-configuration


Regards,
SIMON HORTON
SECURITIES SERVICES DEPARTMENT APPLICATION DEVELOPMENT  
MIZUHO INTERNATIONAL PLC | BRACKEN HOUSE, 1 FRIDAY STREET, LONDON, EC4M
9JA  
T +44 (0)20 7090 6002 | E SIMON.HORTON@UK.MIZUHO-SC.COM

-----Original Message-----
From: Jeffrey Kesselman [mailto:jeffpk@gmail.com] 
Sent: 13 August 2009 04:06
To: JCS Users List
Subject: Re: Dynamic composition of JCS caches

What would be great, that I don't see, is if there was a call on the JCS
object that was equivalent to JCS.setConfigFilename(String) that was
something like JCS.setConfig(Properties)

That would allow someone to synthetically create and set all the
properties
that are now loaded from fixed files.\

JK

On Wed, Aug 12, 2009 at 10:56 PM, Jeffrey Kesselman
<je...@gmail.com>wrote:

> Hi Guys,
>
> One more stupid question.  Most of the examples use ccf files.  For my
use
> however I want to embed the caches in a larger program that sets them
up
> dynamically.  In specific I need programmatic control over where the
remote
> client looks for its servers, but in general id like to drive this as
much
> as possible from code.
>
> Are there are examples around of creating remote client and server
caches
> programmatically?  And of adding disk caching to them?
>
> Thanks
>
> JK
>
> --
> ~~ Microsoft help desk says: reply hazy, ask again later. ~~
>



-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~

This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this message in error please delete it and any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com 
Any opinions expressed in this message may be those of the author and not necessarily those of the company. The company accepts no responsibility for the accuracy or completeness of any information contained herein. This message is not intended to create legal relations between the company and the recipient. 
Recipients should please note that messages sent via the Internet may be intercepted and that caution should therefore be exercised before dispatching to the company any confidential or sensitive information. 
Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA. TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities Co., Ltd. Member of Mizuho Financial Group. Authorised and regulated by the Financial Services Authority. Member of the London Stock Exchange. 

Registered in England No. 1203696. Registered office as above.



---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Dynamic composition of JCS caches

Posted by Jeffrey Kesselman <je...@gmail.com>.
What would be great, that I don't see, is if there was a call on the JCS
object that was equivalent to JCS.setConfigFilename(String) that was
something like JCS.setConfig(Properties)

That would allow someone to synthetically create and set all the properties
that are now loaded from fixed files.\

JK

On Wed, Aug 12, 2009 at 10:56 PM, Jeffrey Kesselman <je...@gmail.com>wrote:

> Hi Guys,
>
> One more stupid question.  Most of the examples use ccf files.  For my use
> however I want to embed the caches in a larger program that sets them up
> dynamically.  In specific I need programmatic control over where the remote
> client looks for its servers, but in general id like to drive this as much
> as possible from code.
>
> Are there are examples around of creating remote client and server caches
> programmatically?  And of adding disk caching to them?
>
> Thanks
>
> JK
>
> --
> ~~ Microsoft help desk says: reply hazy, ask again later. ~~
>



-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~