<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>jcs-users@jakarta.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/</id>
<updated>2009-12-05T10:27:44Z</updated>
<entry>
<title>Re: Remove dependency for concurrent.jar</title>
<author><name>Aaron Smuts &lt;asmuts@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3c612829.14300.qm@web38707.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c612829-14300-qm@web38707-mail-mud-yahoo-com%3e</id>
<updated>2009-11-23T21:27:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sorry for the delay.  I'm in the process of migrating to the concurrent backport.   http://backport-jsr166.sourceforge.net/index.php

Aaron

--- On Wed, 10/21/09, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:

&gt; From: Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; Subject: Re: Remove dependency for concurrent.jar
&gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; Date: Wednesday, October 21, 2009, 9:40 AM
&gt; Hi Aaron.
&gt; 
&gt; Sorry to bother you again .. :) Is there any news on this
&gt; issue ?
&gt; 
&gt; Kind regards,
&gt; Nuno
&gt; 
&gt; On Fri, Oct 2, 2009 at 15:28, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; wrote:
&gt; 
&gt; &gt; Hi :)
&gt; &gt;
&gt; &gt; No worries.. take your time.
&gt; &gt;
&gt; &gt; Thanks
&gt; &gt; Nuno
&gt; &gt;
&gt; &gt;
&gt; &gt; On Fri, Oct 2, 2009 at 15:25, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; wrote:
&gt; &gt;
&gt; &gt;&gt; Sorry for the delay.  I'm working on it, but
&gt; lots of other things keep
&gt; &gt;&gt; coming up.  It will take a couple more
&gt; weeks.
&gt; &gt;&gt;
&gt; &gt;&gt; Aaron
&gt; &gt;&gt;
&gt; &gt;&gt; --- On Thu, 10/1/09, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; wrote:
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; From: Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt; &gt; Subject: Re: Remove dependency for
&gt; concurrent.jar
&gt; &gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt;&gt; &gt; Date: Thursday, October 1, 2009, 12:13 PM
&gt; &gt;&gt; &gt; Hi Aaron,
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Sorry to bother you again with this issue..
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Are there any news regarding this ?
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Best regards,
&gt; &gt;&gt; &gt; Nuno
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; On Mon, Sep 21, 2009 at 16:23, Nuno Sénica
&gt; &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt; &gt; wrote:
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt; Hi Aaron :)
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; Here I am again querying you on the
&gt; status of this
&gt; &gt;&gt; &gt; task.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; Did you have the chance the start it ?
&gt; :) How it is
&gt; &gt;&gt; &gt; going.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; Best regards,
&gt; &gt;&gt; &gt; &gt; Nuno Sénica
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; On Fri, Aug 28, 2009 at 11:31, Nuno
&gt; Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt; Hi Aaron
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt; Once again thanks for your inputs..
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt; Since it is not a matter of find and
&gt; replace,
&gt; &gt;&gt; &gt; maybe I'll wait a couple of
&gt; &gt;&gt; &gt; &gt;&gt; weeks so that you take on that task
&gt; :)
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt; I'll poke by then just to know how
&gt; the work is
&gt; &gt;&gt; &gt; going.
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt; Regads and thanks a lot once again.
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt; Nuno
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt; On Thu, Aug 27, 2009 at 16:24, Aaron
&gt; Smuts &lt;asmuts@yahoo.com&gt;
&gt; &gt;&gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; It's not a simple matter of find
&gt; and
&gt; &gt;&gt; &gt; replace.  If it was, I would have
&gt; &gt;&gt; &gt; &gt;&gt;&gt; done it some time back. . . .
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; This is such an extensive
&gt; change, it's
&gt; &gt;&gt; &gt; probably best that I do it.  But
&gt; &gt;&gt; &gt; &gt;&gt;&gt; feel free to give it a try.
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; Thanks,
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; Aaron
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; --- On Thu, 8/27/09, Aaron Smuts
&gt; &lt;asmuts@yahoo.com&gt;
&gt; &gt;&gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; From: Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; Subject: Re: Remove
&gt; dependency for
&gt; &gt;&gt; &gt; concurrent.jar
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; Date: Thursday, August 27,
&gt; 2009, 8:21 AM
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; In my first email, I
&gt; pointed out
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; several things that would
&gt; need to be
&gt; &gt;&gt; &gt; changed.  You can
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; simply search for the util
&gt; concurrent
&gt; &gt;&gt; &gt; import and find them
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; all.
&gt; &gt;&gt; &gt; "EDU.oswego.cs.dl.util.concurrent"
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; ClockDaemon is used more
&gt; than the poooled
&gt; &gt;&gt; &gt; executor. . . .
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; Yes, there is a backport
&gt; for JDK
&gt; &gt;&gt; &gt; 1.4.  A backport
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; implements something
&gt; available only in a
&gt; &gt;&gt; &gt; new version.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; In this case, the backport
&gt; is of the 1.5
&gt; &gt;&gt; &gt; concurrent
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; library.  This allows
&gt; you to compile
&gt; &gt;&gt; &gt; and run in
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; 1.4.  But if you are
&gt; running 1.5 or
&gt; &gt;&gt; &gt; later, you don't
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; need to backport jar.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; There are some subtle
&gt; changes between the
&gt; &gt;&gt; &gt; two.  But it
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; should be perfectly
&gt; possible to get it
&gt; &gt;&gt; &gt; working in a few
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; days.  Take a crack at
&gt; it if you
&gt; &gt;&gt; &gt; want.  I'll get
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; to it in about two weeks.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; Aaron
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; --- On Thu, 8/27/09,
&gt; Jeffrey Kesselman
&gt; &gt;&gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; From: Jeffrey
&gt; Kesselman &lt;jeffpk@gmail.com&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Subject: Re: Remove
&gt; dependency for
&gt; &gt;&gt; &gt; concurrent.jar
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; To: "JCS Users List"
&gt; &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Date: Thursday, August
&gt; 27, 2009,
&gt; &gt;&gt; &gt; 8:02 AM
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Well i don't know the
&gt; codebase so
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Aaron is your better
&gt; reference
&gt; &gt;&gt; &gt; there
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; BUT...
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Since the large
&gt; majority of Doug's
&gt; &gt;&gt; &gt; concurrent library
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; got
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ported as is into
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; the JDK, Id start by
&gt; simply taking
&gt; &gt;&gt; &gt; his library out of
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; your
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; build path in
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; eclipse.  Then
&gt; follow the
&gt; &gt;&gt; &gt; errors and everywhere it
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; can't find a reference
&gt; to
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; a concurrent utility,
&gt; use's
&gt; &gt;&gt; &gt; Eclipse's help to add the
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; proper import.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Id imagine it cant be
&gt; more then a
&gt; &gt;&gt; &gt; day or two of very
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; mechanical work...
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Alternately, if your a
&gt; perl type
&gt; &gt;&gt; &gt; hacker you could try
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; writing a script that
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; would look for the
&gt; string that is
&gt; &gt;&gt; &gt; doug's package name
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; in
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; the file and
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; repalce it with the
&gt; JDK package.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; JK
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; On Thu, Aug 27, 2009
&gt; at 10:36 AM,
&gt; &gt;&gt; &gt; Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Hi Jeffrey and
&gt; Aaron,
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; We are currently
&gt; evaluating the
&gt; &gt;&gt; &gt; effort to
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; perform
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; those changes.. If
&gt; the
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; effort is not
&gt; that big, I
&gt; &gt;&gt; &gt; personally, would like
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; to
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; make that change and
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; contribute to the
&gt; community.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; I'll need some
&gt; guideline from
&gt; &gt;&gt; &gt; where to start,
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; and
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; regarding that I'm
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; relying
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; on you guys :D
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Which should be
&gt; the best
&gt; &gt;&gt; &gt; approach to start this
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; change
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ?
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Regards,
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Nuno
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; On Thu, Aug 27,
&gt; 2009 at 15:30,
&gt; &gt;&gt; &gt; Jeffrey Kesselman
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; The source
&gt; is available,
&gt; &gt;&gt; &gt; couldn't you go
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; through
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; it and change the
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; references
&gt; yourselves?
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; That seems a
&gt; lot less
&gt; &gt;&gt; &gt; costly then abandoning
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; the
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; whole library.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; Maybe you
&gt; could even
&gt; &gt;&gt; &gt; contribute those
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; changes
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; back to the
&gt; community...
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; On Thu, Aug
&gt; 27, 2009 at
&gt; &gt;&gt; &gt; 7:02 AM, Nuno
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; Sénica
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi
&gt; all,
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; At the
&gt; company where
&gt; &gt;&gt; &gt; I work for, we
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; have an
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; application which
&gt; relies on
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; JCS
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it
&gt; has proven to
&gt; &gt;&gt; &gt; be a good solution
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; so
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; far. But now, we were
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; informed
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; about
&gt; legal issues by
&gt; &gt;&gt; &gt; using concurrent
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; lib
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; and we are being
&gt; instructed
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; to
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; change
&gt; the caching
&gt; &gt;&gt; &gt; lib.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; My
&gt; question is if
&gt; &gt;&gt; &gt; there's any plan to
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; use
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; the native concurrent
&gt; instead
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; of
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; the lib
&gt; that JSC
&gt; &gt;&gt; &gt; depend on at the
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; moment ?
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Is so, when it is
&gt; planned to
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; be
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; available ?
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Thanks
&gt; in advance.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; Regards,
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Nuno
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; --
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; ~~ Microsoft
&gt; help desk
&gt; &gt;&gt; &gt; says: reply hazy,
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; ask
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; again later. ~~
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; --
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ~~ Microsoft help desk
&gt; says: reply
&gt; &gt;&gt; &gt; hazy, ask again
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; later.
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ~~
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt; For additional commands,
&gt; e-mail:
&gt; &gt;&gt; jcs-users-help@jakarta.apache.org
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt; &gt; &gt;&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt;&gt; &gt; &gt;&gt;&gt; For additional commands, e-mail:
&gt; jcs-users-help@jakarta.apache.org
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;&gt;
&gt; &gt;&gt; &gt; &gt;&gt;
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt; 

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



</pre>
</div>
</content>
</entry>
<entry>
<title>[Fwd: Memory Issues with Java ( java.lang.OutOfMemoryError: Java Heap Space )]</title>
<author><name>Raj Abhishek &lt;raj.abhishek@freesystems.biz&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3c4AFA92E7.2030405@freesystems.biz%3e"/>
<id>urn:uuid:%3c4AFA92E7-2030405@freesystems-biz%3e</id>
<updated>2009-11-11T10:33:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

Please see the attached mail.

Regards,
Raj Abhishek


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JCS cache causes thread deadlock</title>
<author><name>Rohit Joshi &lt;rohit.c.joshi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3ceef7fd3d0911100844u6e55c8bdu24101faf56f5e49f@mail.gmail.com%3e"/>
<id>urn:uuid:%3ceef7fd3d0911100844u6e55c8bdu24101faf56f5e49f@mail-gmail-com%3e</id>
<updated>2009-11-10T16:44:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This issues was due to debug level logging was enabled. Once I disabled the
debug logging, problem is resolved.



On Tue, Nov 10, 2009 at 7:24 AM, Rohit Joshi &lt;rohit.c.joshi@gmail.com&gt;wrote:

&gt; Hi,
&gt;   I am using JCSCache as a in-memory caching solution for our product.
&gt;  Sometime put and remove calls on JCSCache causes a deadlock. See the thread
&gt; dump below.
&gt;  I couldn't reproduce during the performance test but our team in CZ is
&gt; able to reproduce this.  Is it problem due to mis configuration?
&gt;
&gt; I uses jcs-1.3 using maven dependency.   See the cache.ccf below the
&gt; thread-dump.
&gt;
&gt; Thread "Thread-790" thread-id 1,518 thread-stateBLOCKEDWaiting on lock:
&gt; org.apache.jcs.engine.control.CompositeCache@180575f
&gt;  Owned by: Thread-579 Id: 1,306 at:
&gt; org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:736)
&gt;  at:
&gt; org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:702)
&gt;  at: org.apache.jcs.access.CacheAccess.remove(CacheAccess.java:362)
&gt;  at: com.example.maf.cache.JCSCache.removeObject(JCSCache.java:341)
&gt;
&gt; Thread "Thread-789" thread-id 1,517 thread-stateBLOCKEDWaiting on lock:
&gt; org.apache.jcs.engine.control.CompositeCache@180575f
&gt;  Owned by: Thread-579 Id: 1,306 at:
&gt; org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:736)
&gt;  at:
&gt; org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:702)
&gt;  at: org.apache.jcs.access.CacheAccess.remove(CacheAccess.java:362)
&gt;  at: com.example.maf.cache.JCSCache.removeObject(JCSCache.java:341)
&gt;
&gt; Thread "Thread-788" thread-id 1,516 thread-stateBLOCKEDWaiting on lock:
&gt; org.apache.jcs.engine.control.CompositeCache@180575f
&gt;  Owned by: Thread-579 Id: 1,306 at:
&gt; org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:162)
&gt;  at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:281)
&gt;  at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:249)
&gt;  at: com.example.maf.cache.JCSCache.putObject(JCSCache.java:294)
&gt;
&gt; Thread "Thread-787" thread-id 1,515 thread-stateBLOCKEDWaiting on lock:
&gt; org.apache.jcs.engine.control.CompositeCache@180575f
&gt;  Owned by: Thread-579 Id: 1,306 at:
&gt; org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:736)
&gt;  at:
&gt; org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:702)
&gt;  at: org.apache.jcs.access.CacheAccess.remove(CacheAccess.java:362)
&gt;  at: com.example.maf.cache.JCSCache.removeObject(JCSCache.java:341)
&gt;
&gt; Thread "Thread-786" thread-id 1,514 thread-stateBLOCKEDWaiting on lock:
&gt; org.apache.jcs.engine.control.CompositeCache@180575f
&gt;  Owned by: Thread-579 Id: 1,306 at:
&gt; org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:162)
&gt;  at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:281)
&gt;  at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:249)
&gt;  at: com.example.maf.cache.JCSCache.putObject(JCSCache.java:294)
&gt;
&gt;
&gt;
&gt; Here is the cache.ccf file
&gt;
&gt; #
&gt; # Default config: don't allow anything to be stored.maxobject=0
&gt; jcs.default=
&gt; jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
&gt; jcs.default.cacheattributes.MaxObjects=0
&gt;
&gt; jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
&gt; jcs.default.cacheattributes.UseMemoryShrinker=false
&gt; jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
&gt; jcs.default.elementattributes.IsEternal=false
&gt; jcs.default.elementattributes.IsRemote=false
&gt; jcs.default.elementattributes.IsLateral=false
&gt; jcs.default.elementattributes.IsSpool=false
&gt;
&gt; #
&gt; ## Used by subscriber entry
&gt; #
&gt; jcs.region.subscriber=
&gt;
&gt; jcs.region.subscriber.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
&gt; jcs.region.subscriber.cacheattributes.MaxObjects=10000
&gt;
&gt; jcs.region.subscriber.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
&gt;
&gt; jcs.region.subscriber.cacheattributes.UseMemoryShrinker=true
&gt; jcs.region.subscriber.cacheattributes.MaxMemoryIdleTimeSeconds=120
&gt; jcs.region.subscriber.cacheattributes.ShrinkerIntervalSeconds=180
&gt; jcs.region.subscriber.cacheattributes.MaxSpoolPerRun=1000
&gt;
&gt; jcs.region.subscriber.elementattributes=org.apache.jcs.engine.ElementAttributes
&gt; jcs.region.subscriber.elementattributes.IsEternal=false
&gt; jcs.region.subscriber.elementattributes.IsRemote=false
&gt; jcs.region.subscriber.elementattributes.IsLateral=false
&gt; jcs.region.subscriber.elementattributes.IsSpool=false
&gt; jcs.region.subscriber.elementattributes.IdleTime=60
&gt; jcs.region.subscriber.elementattributes.MaxLifeSeconds=180
&gt;
&gt; #
&gt; ## Used for COS, COI
&gt; #
&gt; jcs.region.shared=
&gt;
&gt; jcs.region.shared.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
&gt; jcs.region.shared.cacheattributes.MaxObjects=500
&gt;
&gt; jcs.region.shared.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
&gt;
&gt; jcs.region.shared.cacheattributes.UseMemoryShrinker=true
&gt; jcs.region.shared.cacheattributes.MaxMemoryIdleTimeSeconds=120
&gt; jcs.region.shared.cacheattributes.ShrinkerIntervalSeconds=300
&gt; jcs.region.shared.cacheattributes.MaxSpoolPerRun=1000
&gt; jcs.region.shared.elementattributes=org.apache.jcs.engine.ElementAttributes
&gt; jcs.region.shared.elementattributes.IsEternal=false
&gt; jcs.region.shared.elementattributes.IsRemote=false
&gt; jcs.region.shared.elementattributes.IsLateral=false
&gt; jcs.region.shared.elementattributes.IsSpool=false
&gt; jcs.region.shared.elementattributes.IdleTime=60
&gt; jcs.region.shared.elementattributes.MaxLifeSeconds=300
&gt;
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>JCS cache causes thread deadlock</title>
<author><name>Rohit Joshi &lt;rohit.c.joshi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3ceef7fd3d0911100424w76ec1f78uf623af2390c284a3@mail.gmail.com%3e"/>
<id>urn:uuid:%3ceef7fd3d0911100424w76ec1f78uf623af2390c284a3@mail-gmail-com%3e</id>
<updated>2009-11-10T12:24:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
  I am using JCSCache as a in-memory caching solution for our product.
 Sometime put and remove calls on JCSCache causes a deadlock. See the thread
dump below.
 I couldn't reproduce during the performance test but our team in CZ is able
to reproduce this.  Is it problem due to mis configuration?

I uses jcs-1.3 using maven dependency.   See the cache.ccf below the
thread-dump.

Thread "Thread-790" thread-id 1,518 thread-stateBLOCKEDWaiting on lock:
org.apache.jcs.engine.control.CompositeCache@180575f
 Owned by: Thread-579 Id: 1,306 at:
org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:736)
 at:
org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:702)
 at: org.apache.jcs.access.CacheAccess.remove(CacheAccess.java:362)
 at: com.example.maf.cache.JCSCache.removeObject(JCSCache.java:341)

Thread "Thread-789" thread-id 1,517 thread-stateBLOCKEDWaiting on lock:
org.apache.jcs.engine.control.CompositeCache@180575f
 Owned by: Thread-579 Id: 1,306 at:
org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:736)
 at:
org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:702)
 at: org.apache.jcs.access.CacheAccess.remove(CacheAccess.java:362)
 at: com.example.maf.cache.JCSCache.removeObject(JCSCache.java:341)

Thread "Thread-788" thread-id 1,516 thread-stateBLOCKEDWaiting on lock:
org.apache.jcs.engine.control.CompositeCache@180575f
 Owned by: Thread-579 Id: 1,306 at:
org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:162)
 at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:281)
 at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:249)
 at: com.example.maf.cache.JCSCache.putObject(JCSCache.java:294)

Thread "Thread-787" thread-id 1,515 thread-stateBLOCKEDWaiting on lock:
org.apache.jcs.engine.control.CompositeCache@180575f
 Owned by: Thread-579 Id: 1,306 at:
org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:736)
 at:
org.apache.jcs.engine.control.CompositeCache.remove(CompositeCache.java:702)
 at: org.apache.jcs.access.CacheAccess.remove(CacheAccess.java:362)
 at: com.example.maf.cache.JCSCache.removeObject(JCSCache.java:341)

Thread "Thread-786" thread-id 1,514 thread-stateBLOCKEDWaiting on lock:
org.apache.jcs.engine.control.CompositeCache@180575f
 Owned by: Thread-579 Id: 1,306 at:
org.apache.jcs.engine.control.CompositeCache.update(CompositeCache.java:162)
 at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:281)
 at: org.apache.jcs.access.CacheAccess.put(CacheAccess.java:249)
 at: com.example.maf.cache.JCSCache.putObject(JCSCache.java:294)



Here is the cache.ccf file

#
# Default config: don't allow anything to be stored.maxobject=0
jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=0
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=false
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=false
jcs.default.elementattributes.IsSpool=false

#
## Used by subscriber entry
#
jcs.region.subscriber=
jcs.region.subscriber.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.subscriber.cacheattributes.MaxObjects=10000
jcs.region.subscriber.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache

jcs.region.subscriber.cacheattributes.UseMemoryShrinker=true
jcs.region.subscriber.cacheattributes.MaxMemoryIdleTimeSeconds=120
jcs.region.subscriber.cacheattributes.ShrinkerIntervalSeconds=180
jcs.region.subscriber.cacheattributes.MaxSpoolPerRun=1000
jcs.region.subscriber.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.subscriber.elementattributes.IsEternal=false
jcs.region.subscriber.elementattributes.IsRemote=false
jcs.region.subscriber.elementattributes.IsLateral=false
jcs.region.subscriber.elementattributes.IsSpool=false
jcs.region.subscriber.elementattributes.IdleTime=60
jcs.region.subscriber.elementattributes.MaxLifeSeconds=180

#
## Used for COS, COI
#
jcs.region.shared=
jcs.region.shared.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.shared.cacheattributes.MaxObjects=500
jcs.region.shared.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache

jcs.region.shared.cacheattributes.UseMemoryShrinker=true
jcs.region.shared.cacheattributes.MaxMemoryIdleTimeSeconds=120
jcs.region.shared.cacheattributes.ShrinkerIntervalSeconds=300
jcs.region.shared.cacheattributes.MaxSpoolPerRun=1000
jcs.region.shared.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.shared.elementattributes.IsEternal=false
jcs.region.shared.elementattributes.IsRemote=false
jcs.region.shared.elementattributes.IsLateral=false
jcs.region.shared.elementattributes.IsSpool=false
jcs.region.shared.elementattributes.IdleTime=60
jcs.region.shared.elementattributes.MaxLifeSeconds=300


</pre>
</div>
</content>
</entry>
<entry>
<title>Regarding replication of cache - Please help ...i am in great need</title>
<author><name>Srikanth P &lt;aries.srikanth@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3cbedbebfb0911061053q56e36103hc7c65e6704cf8b70@mail.gmail.com%3e"/>
<id>urn:uuid:%3cbedbebfb0911061053q56e36103hc7c65e6704cf8b70@mail-gmail-com%3e</id>
<updated>2009-11-06T18:53:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Pardon my ignorance. I am not very familiar caching mechanisms. Please go
through the following scenario and help me

*Scenario: *
*
*
There are two servers A and B (say). A has to fetch the data from database
and put it in its cache. This cache has to be replicated to server B. In
case of failure, B should take the responsibility of fetching the data from
database and putting in cache. When "A" comes up then again "A" should be
the master server and it should fetch the data from DB and put it in cache
and replicate the cache to B.


One more thing is, we are planning to expose the data in the cache as a
webservice. When the client access the webservice, then it should get the
cached data in the form of XML.


Please tell me how to implement the above scenario using *JCS* cache and
provide any useful url's that I can go through. Even if you have any POC's
please share.

What I want to know in particular is " how to replicate  cache over cluster
using JCS?"  and " What has to be done in case of master server failure?"

Thanks and Regards,
Sri Kanth


</pre>
</div>
</content>
</entry>
<entry>
<title>Regarding replication of cache - Please help</title>
<author><name>Srikanth P &lt;aries.srikanth@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3cbedbebfb0911051621w47f7901bg8bb55b2d9d443108@mail.gmail.com%3e"/>
<id>urn:uuid:%3cbedbebfb0911051621w47f7901bg8bb55b2d9d443108@mail-gmail-com%3e</id>
<updated>2009-11-06T00:21:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Pardon my ignorance. I am not very familiar caching mechanisms. Please go
through the following scenario and help me

*Scenario: *
*
*
There are two servers A and B (say). A has to fetch the data from database
and put it in its cache. This cache has to be replicated to server B. In
case of failure, B should take the responsibility of fetching the data from
database and putting in cache. When "A" comes up then again "A" should be
the master server and it should fetch the data from DB and put it in cache
and replicate the cache to B.


One more thing is, we are planning to expose the data in the cache as a
webservice. When the client access the webservice, then it should get the
cached data in the form of XML.


Please tell me how to implement the above scenario using *JCS* cache and
provide any useful url's that I can go through. Even if you have any POC's
please share.


Thanks and Regards,
Sri Kanth


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How to analyze the no. of elements in cache from the heapdump?</title>
<author><name>Navin_R &lt;naveen.ravindra@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3c26211907.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26211907-post@talk-nabble-com%3e</id>
<updated>2009-11-05T11:52:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

No. of instances of org/apache/jcs/engine/CacheElement gives the no. of
elements in the Cache.



Navin_R wrote:
&gt; 
&gt; Hello All,
&gt; 
&gt; I have a heap dump and need to see how many elements are in cache and what
&gt; size do they occupy.
&gt; 
&gt; What class should I traverse in class org/apache/jcs/JCS to get these
&gt; details?
&gt; 
&gt; Thanks,
&gt; Naveen
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/How-to-analyze-the-no.-of-elements-in-cache-from-the-heapdump--tp26210407p26211907.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>How to analyze the no. of elements in cache from the heapdump?</title>
<author><name>Navin_R &lt;naveen.ravindra@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200911.mbox/%3c26210407.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26210407-post@talk-nabble-com%3e</id>
<updated>2009-11-05T10:51:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello All,

I have a heap dump and need to see how many elements are in cache and what
size do they occupy.

What class should I traverse in class org/apache/jcs/JCS to get these
details?

Thanks,
Naveen

-- 
View this message in context: http://old.nabble.com/How-to-analyze-the-no.-of-elements-in-cache-from-the-heapdump--tp26210407p26210407.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Lateral TCP consuming memory</title>
<author><name>Muhammad Sufyan Shoaib &lt;sufyanshoaib@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3cd95c61d30910262241k1471b93x8ac282d12326556b@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd95c61d30910262241k1471b93x8ac282d12326556b@mail-gmail-com%3e</id>
<updated>2009-10-27T05:41:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sorry to bother again, if i am posting it on a wrong mailing address please
let me know.

On Thu, Oct 15, 2009 at 1:03 PM, Muhammad Sufyan Shoaib &lt;
sufyanshoaib@gmail.com&gt; wrote:

&gt; Hi,
&gt;
&gt; I configured Lateral TCP, so as to make caches on 2 servers to be
&gt; consistent. All i require is GET from other server to be false.
&gt; When i check the the cache just after the server starts, it shows me &gt; 30MB
&gt; of space taken up by mitCache with 0 objects in it. Please suggest where the
&gt; memory leak.
&gt;
&gt; Note: without LTCP, memory size is around  300KB
&gt;
&gt;
&gt; Here is the following snippet of configuration (cache.ccf),
&gt;
&gt; #For LTCP Cache
&gt; jcs.default=LTCP
&gt; jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
&gt; jcs.default.cacheattributes.MaxObjects=10000
&gt; jcs.default.cacheattributes.UseLateral=true
&gt; jcs.default.cacheattributes.UseRemote=false
&gt; jcs.default.cacheattributes.UseDisk=false
&gt;
&gt; jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
&gt; jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
&gt; jcs.default.elementattributes.IsLateral=true
&gt; jcs.default.elementattributes.IsSpool=false
&gt; jcs.default.elementattributes.IsRemote=false
&gt; jcs.default.elementattributes.IsEternal=false
&gt;
&gt;
&gt; # Title Cache
&gt; #For LTCP Cache
&gt; jcs.region.mitCache=LTCP
&gt;
&gt; jcs.region.mitCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
&gt; jcs.region.mitCache.cacheattributes.MaxObjects=10000
&gt;
&gt; jcs.region.mitCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
&gt; jcs.region.mitCache.cacheattributes.UseMemoryShrinker=true
&gt; jcs.region.mitCache.cacheattributes.MaxMemoryIdleTimeSeconds=60000
&gt; jcs.region.mitCache.cacheattributes.UseLateral=true
&gt; jcs.region.mitCache.cacheattributes.ShrinkerIntervalSeconds=600
&gt;
&gt; jcs.region.mitCache.elementattributes=org.apache.jcs.engine.ElementAttributes
&gt; jcs.region.mitCache.elementattributes.IsEternal=false
&gt; jcs.region.mitCache.elementattributes.MaxLifeSeconds=60000
&gt; jcs.region.mitCache.elementattributes.IdleTime=60000
&gt; jcs.region.mitCache.elementattributes.IsSpool=false
&gt; jcs.region.mitCache.elementattributes.IsRemote=false
&gt; jcs.region.mitCache.elementattributes.IsLateral=true
&gt;
&gt;
&gt; # Lateral TCP Auxiliay Cache
&gt;
&gt; jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
&gt;
&gt; jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
&gt; jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
&gt; jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
&gt; jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
&gt; jcs.auxiliary.LTCP.attributes.AllowGet=false
&gt; jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
&gt; jcs.auxiliary.LTCP.attributes.Receive=true
&gt;
&gt;


-- 
Muhammad Sufyan Shoaib,
Senior Software Engineer,
Sidat Hyder Morshed Associates.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [jira] Commented: (JCS-58) disc file cache</title>
<author><name>Tore Halset &lt;halset@ecc.no&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c69E34C90-6102-4586-B58B-8BF556FF879D@pvv.ntnu.no%3e"/>
<id>urn:uuid:%3c69E34C90-6102-4586-B58B-8BF556FF879D@pvv-ntnu-no%3e</id>
<updated>2009-10-26T21:36:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello.

Are you trying to put files into the cache directly, not via JCS?  
Please remember that the files in the cache will not be like the  
original files, but the file as a byte[] *and* some metadata like a  
timestamp and the key. All of that is then serialized and saved to disc.

If you have problems, please provide a minimal example to reproduce  
the problem. Like the lines from your cache.ccf and some lines of java  
code.

Regards,
  - Tore.

On 27. okt.. 2009, at 07.33, Chopin Hu (JIRA) wrote:

&gt;
&gt;    [ https://issues.apache.org/jira/browse/JCS-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12770178

&gt; #action_12770178 ]
&gt;
&gt; Chopin Hu commented on JCS-58:
&gt; ------------------------------
&gt;
&gt; Aaron,
&gt;
&gt; I am still not getting it right.   Seems that I put an ascii file  
&gt; into the file disk as a separate file.   But when it is an binary  
&gt; file.   It does not work.    Though I set the jvm to a bigger size  
&gt; (1560MBs) to handle a 12 MBs binary file, it still fails.   Do you  
&gt; have an sample code to show how to make it work?   If you need, I  
&gt; can send you a copy of the binary file I used for testing.
&gt;
&gt; Thanks.
&gt;
&gt;&gt; disc file cache
&gt;&gt; ---------------
&gt;&gt;
&gt;&gt;                Key: JCS-58
&gt;&gt;                URL: https://issues.apache.org/jira/browse/JCS-58
&gt;&gt;            Project: JCS
&gt;&gt;         Issue Type: New Feature
&gt;&gt;   Affects Versions: jcs-1.3
&gt;&gt;           Reporter: Tore Halset
&gt;&gt;           Assignee: Aaron Smuts
&gt;&gt;            Fix For: jcs-1.4-dev
&gt;&gt;
&gt;&gt;        Attachments: DiskFileCache.java,  
&gt;&gt; DiskFileCacheAttributes.java, DiskFileCacheFactory.java
&gt;&gt;
&gt;&gt;
&gt;&gt; It would be nice to have a file based cache in jcs where each item  
&gt;&gt; is stored as a single file and the filename is based on the key.  
&gt;&gt; This way, several jvms can share the same cache and the cache can  
&gt;&gt; be rsynced between nodes while running the application.
&gt;
&gt; -- 
&gt; This message is automatically generated by JIRA.
&gt; -
&gt; You can reply to this email to add a comment to the issue online.
&gt;
&gt;


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remove dependency for concurrent.jar</title>
<author><name>=?ISO-8859-1?Q?Nuno_S=E9nica?= &lt;nsenica@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c6fb0a54a0910210940w39229399w6ed6dfb6b2dc9206@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6fb0a54a0910210940w39229399w6ed6dfb6b2dc9206@mail-gmail-com%3e</id>
<updated>2009-10-21T16:40:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Aaron.

Sorry to bother you again .. :) Is there any news on this issue ?

Kind regards,
Nuno

On Fri, Oct 2, 2009 at 15:28, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:

&gt; Hi :)
&gt;
&gt; No worries.. take your time.
&gt;
&gt; Thanks
&gt; Nuno
&gt;
&gt;
&gt; On Fri, Oct 2, 2009 at 15:25, Aaron Smuts &lt;asmuts@yahoo.com&gt; wrote:
&gt;
&gt;&gt; Sorry for the delay.  I'm working on it, but lots of other things keep
&gt;&gt; coming up.  It will take a couple more weeks.
&gt;&gt;
&gt;&gt; Aaron
&gt;&gt;
&gt;&gt; --- On Thu, 10/1/09, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt; &gt; From: Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; Subject: Re: Remove dependency for concurrent.jar
&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt; &gt; Date: Thursday, October 1, 2009, 12:13 PM
&gt;&gt; &gt; Hi Aaron,
&gt;&gt; &gt;
&gt;&gt; &gt; Sorry to bother you again with this issue..
&gt;&gt; &gt;
&gt;&gt; &gt; Are there any news regarding this ?
&gt;&gt; &gt;
&gt;&gt; &gt; Best regards,
&gt;&gt; &gt; Nuno
&gt;&gt; &gt;
&gt;&gt; &gt; On Mon, Sep 21, 2009 at 16:23, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; wrote:
&gt;&gt; &gt;
&gt;&gt; &gt; &gt; Hi Aaron :)
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Here I am again querying you on the status of this
&gt;&gt; &gt; task.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Did you have the chance the start it ? :) How it is
&gt;&gt; &gt; going.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Best regards,
&gt;&gt; &gt; &gt; Nuno Sénica
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; On Fri, Aug 28, 2009 at 11:31, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; wrote:
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt; Hi Aaron
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt; Once again thanks for your inputs..
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt; Since it is not a matter of find and replace,
&gt;&gt; &gt; maybe I'll wait a couple of
&gt;&gt; &gt; &gt;&gt; weeks so that you take on that task :)
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt; I'll poke by then just to know how the work is
&gt;&gt; &gt; going.
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt; Regads and thanks a lot once again.
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt; Nuno
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt; On Thu, Aug 27, 2009 at 16:24, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt;&gt; &gt; wrote:
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt; It's not a simple matter of find and
&gt;&gt; &gt; replace.  If it was, I would have
&gt;&gt; &gt; &gt;&gt;&gt; done it some time back. . . .
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt; This is such an extensive change, it's
&gt;&gt; &gt; probably best that I do it.  But
&gt;&gt; &gt; &gt;&gt;&gt; feel free to give it a try.
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt; Thanks,
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt; Aaron
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt; --- On Thu, 8/27/09, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt;&gt; &gt; wrote:
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; From: Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; Subject: Re: Remove dependency for
&gt;&gt; &gt; concurrent.jar
&gt;&gt; &gt; &gt;&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; Date: Thursday, August 27, 2009, 8:21 AM
&gt;&gt; &gt; &gt;&gt;&gt; &gt; In my first email, I pointed out
&gt;&gt; &gt; &gt;&gt;&gt; &gt; several things that would need to be
&gt;&gt; &gt; changed.  You can
&gt;&gt; &gt; &gt;&gt;&gt; &gt; simply search for the util concurrent
&gt;&gt; &gt; import and find them
&gt;&gt; &gt; &gt;&gt;&gt; &gt; all.
&gt;&gt; &gt; "EDU.oswego.cs.dl.util.concurrent"
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; ClockDaemon is used more than the poooled
&gt;&gt; &gt; executor. . . .
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; Yes, there is a backport for JDK
&gt;&gt; &gt; 1.4.  A backport
&gt;&gt; &gt; &gt;&gt;&gt; &gt; implements something available only in a
&gt;&gt; &gt; new version.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; In this case, the backport is of the 1.5
&gt;&gt; &gt; concurrent
&gt;&gt; &gt; &gt;&gt;&gt; &gt; library.  This allows you to compile
&gt;&gt; &gt; and run in
&gt;&gt; &gt; &gt;&gt;&gt; &gt; 1.4.  But if you are running 1.5 or
&gt;&gt; &gt; later, you don't
&gt;&gt; &gt; &gt;&gt;&gt; &gt; need to backport jar.
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; There are some subtle changes between the
&gt;&gt; &gt; two.  But it
&gt;&gt; &gt; &gt;&gt;&gt; &gt; should be perfectly possible to get it
&gt;&gt; &gt; working in a few
&gt;&gt; &gt; &gt;&gt;&gt; &gt; days.  Take a crack at it if you
&gt;&gt; &gt; want.  I'll get
&gt;&gt; &gt; &gt;&gt;&gt; &gt; to it in about two weeks.
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; Aaron
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; --- On Thu, 8/27/09, Jeffrey Kesselman
&gt;&gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; wrote:
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; From: Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Subject: Re: Remove dependency for
&gt;&gt; &gt; concurrent.jar
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Date: Thursday, August 27, 2009,
&gt;&gt; &gt; 8:02 AM
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Well i don't know the codebase so
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Aaron is your better reference
&gt;&gt; &gt; there
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; BUT...
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Since the large majority of Doug's
&gt;&gt; &gt; concurrent library
&gt;&gt; &gt; &gt;&gt;&gt; &gt; got
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ported as is into
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; the JDK, Id start by simply taking
&gt;&gt; &gt; his library out of
&gt;&gt; &gt; &gt;&gt;&gt; &gt; your
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; build path in
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; eclipse.  Then follow the
&gt;&gt; &gt; errors and everywhere it
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; can't find a reference to
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; a concurrent utility, use's
&gt;&gt; &gt; Eclipse's help to add the
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; proper import.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Id imagine it cant be more then a
&gt;&gt; &gt; day or two of very
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; mechanical work...
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Alternately, if your a perl type
&gt;&gt; &gt; hacker you could try
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; writing a script that
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; would look for the string that is
&gt;&gt; &gt; doug's package name
&gt;&gt; &gt; &gt;&gt;&gt; &gt; in
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; the file and
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; repalce it with the JDK package.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; JK
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; On Thu, Aug 27, 2009 at 10:36 AM,
&gt;&gt; &gt; Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Hi Jeffrey and Aaron,
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; We are currently evaluating the
&gt;&gt; &gt; effort to
&gt;&gt; &gt; &gt;&gt;&gt; &gt; perform
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; those changes.. If the
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; effort is not that big, I
&gt;&gt; &gt; personally, would like
&gt;&gt; &gt; &gt;&gt;&gt; &gt; to
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; make that change and
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; contribute to the community.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; I'll need some guideline from
&gt;&gt; &gt; where to start,
&gt;&gt; &gt; &gt;&gt;&gt; &gt; and
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; regarding that I'm
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; relying
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; on you guys :D
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Which should be the best
&gt;&gt; &gt; approach to start this
&gt;&gt; &gt; &gt;&gt;&gt; &gt; change
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ?
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Regards,
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Nuno
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 15:30,
&gt;&gt; &gt; Jeffrey Kesselman
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; The source is available,
&gt;&gt; &gt; couldn't you go
&gt;&gt; &gt; &gt;&gt;&gt; &gt; through
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; it and change the
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; references yourselves?
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; That seems a lot less
&gt;&gt; &gt; costly then abandoning
&gt;&gt; &gt; &gt;&gt;&gt; &gt; the
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; whole library.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; Maybe you could even
&gt;&gt; &gt; contribute those
&gt;&gt; &gt; &gt;&gt;&gt; &gt; changes
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; back to the community...
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at
&gt;&gt; &gt; 7:02 AM, Nuno
&gt;&gt; &gt; &gt;&gt;&gt; &gt; Sénica
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; At the company where
&gt;&gt; &gt; I work for, we
&gt;&gt; &gt; &gt;&gt;&gt; &gt; have an
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; application which relies on
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; JCS
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it has proven to
&gt;&gt; &gt; be a good solution
&gt;&gt; &gt; &gt;&gt;&gt; &gt; so
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; far. But now, we were
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; informed
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; about legal issues by
&gt;&gt; &gt; using concurrent
&gt;&gt; &gt; &gt;&gt;&gt; &gt; lib
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; and we are being instructed
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; to
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; change the caching
&gt;&gt; &gt; lib.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; My question is if
&gt;&gt; &gt; there's any plan to
&gt;&gt; &gt; &gt;&gt;&gt; &gt; use
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; the native concurrent instead
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; of
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; the lib that JSC
&gt;&gt; &gt; depend on at the
&gt;&gt; &gt; &gt;&gt;&gt; &gt; moment ?
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; Is so, when it is planned to
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; be
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; available ?
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Thanks in advance.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Nuno
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; --
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; ~~ Microsoft help desk
&gt;&gt; &gt; says: reply hazy,
&gt;&gt; &gt; &gt;&gt;&gt; &gt; ask
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; again later. ~~
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; --
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ~~ Microsoft help desk says: reply
&gt;&gt; &gt; hazy, ask again
&gt;&gt; &gt; &gt;&gt;&gt; &gt; later.
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt; ~~
&gt;&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt; &gt; &gt;&gt;&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt; &gt; &gt;&gt;&gt; &gt; For additional commands, e-mail:
&gt;&gt; jcs-users-help@jakarta.apache.org
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt; &gt;
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt; &gt; &gt;&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt; &gt; &gt;&gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;&gt;
&gt;&gt; &gt; &gt;&gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Memory usage when loading keys</title>
<author><name>the_dust &lt;alex_j@gmx.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c25957925.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25957925-post@talk-nabble-com%3e</id>
<updated>2009-10-19T12:56:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello,

I filled a IndexedDiskCache with about 7 million entries and everything
worked fine. This resulted in a .key file of about 190 MB in size. 

When the cache is loaded, it takes about 2.5 GB of RAM loading all the keys,
even if the .key file is much smaller. For my special case, this is a big
problem. My two questions are now:

1. Why is that?
2. How can I solve this problem?

With kind regards,

Alex
-- 
View this message in context: http://www.nabble.com/Memory-usage-when-loading-keys-tp25957925p25957925.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Lateral TCP consuming memory</title>
<author><name>Muhammad Sufyan Shoaib &lt;sufyanshoaib@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3cd95c61d30910150003t54655998g627364469708e7de@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd95c61d30910150003t54655998g627364469708e7de@mail-gmail-com%3e</id>
<updated>2009-10-15T07:03:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I configured Lateral TCP, so as to make caches on 2 servers to be
consistent. All i require is GET from other server to be false.
When i check the the cache just after the server starts, it shows me &gt; 30MB
of space taken up by mitCache with 0 objects in it. Please suggest where the
memory leak.

Note: without LTCP, memory size is around  300KB


Here is the following snippet of configuration (cache.ccf),

#For LTCP Cache
jcs.default=LTCP
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=10000
jcs.default.cacheattributes.UseLateral=true
jcs.default.cacheattributes.UseRemote=false
jcs.default.cacheattributes.UseDisk=false
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsLateral=true
jcs.default.elementattributes.IsSpool=false
jcs.default.elementattributes.IsRemote=false
jcs.default.elementattributes.IsEternal=false


# Title Cache
#For LTCP Cache
jcs.region.mitCache=LTCP
jcs.region.mitCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.mitCache.cacheattributes.MaxObjects=10000
jcs.region.mitCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.mitCache.cacheattributes.UseMemoryShrinker=true
jcs.region.mitCache.cacheattributes.MaxMemoryIdleTimeSeconds=60000
jcs.region.mitCache.cacheattributes.UseLateral=true
jcs.region.mitCache.cacheattributes.ShrinkerIntervalSeconds=600
jcs.region.mitCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.mitCache.elementattributes.IsEternal=false
jcs.region.mitCache.elementattributes.MaxLifeSeconds=60000
jcs.region.mitCache.elementattributes.IdleTime=60000
jcs.region.mitCache.elementattributes.IsSpool=false
jcs.region.mitCache.elementattributes.IsRemote=false
jcs.region.mitCache.elementattributes.IsLateral=true


# Lateral TCP Auxiliay Cache
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1111
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
jcs.auxiliary.LTCP.attributes.AllowGet=false
jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
jcs.auxiliary.LTCP.attributes.Receive=true


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cache for large data that is crashing JVM</title>
<author><name>Aaron Smuts &lt;asmuts@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c284913.51617.qm@web38703.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c284913-51617-qm@web38703-mail-mud-yahoo-com%3e</id>
<updated>2009-10-14T20:10:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It can be configured to do all three and more.

The memory auxiliaries store data in memory.  

The indexed disk cache stores the data on disk and the keys in memory.  (There are other disk
caches as well.)  

If you use the JDBC disk cache, you can have JCS act as a facade on top of a database, such
as MySQL.  That way, no data would have to live in the local JVM.

What it sounds like you need is the remote cache.  You can start a JCS remote cache server.
 You can talk to it via rmi or you can run an http remote server (a servlet in the servlet
engine of your choice.)  I recommend the RMI remote cache.  You can have JCS keep some data
on the client side, the most active data.  Surely, not all million records are access as frequently.
. . . .  

Read the docs and experiment.  Ask away if you have any specific questions after consulting
the documentation.  

Aaron

--- On Wed, 10/14/09, Armour, David L - DOT &lt;David.Armour@dot.wi.gov&gt; wrote:

&gt; From: Armour, David L - DOT &lt;David.Armour@dot.wi.gov&gt;
&gt; Subject: Cache for large data that is crashing JVM
&gt; To: "'jcs-users@jakarta.apache.org'" &lt;jcs-users@jakarta.apache.org&gt;
&gt; Date: Wednesday, October 14, 2009, 12:56 PM
&gt; Hi
&gt; 
&gt; Currently, I am trying to fix an old application that is
&gt; loading 500 MB of data into memory and crashing the
&gt; JVM.  I am wondering two things:
&gt; 
&gt; 1.      Does JCS put the cache data into
&gt; memory?  If yes, then I am going to still have too much
&gt; for the JVM.  Does it write it to disk and then only
&gt; hold the keys in memory?  Unfortunately, there are over
&gt; a million records in this set.
&gt; 2.      Can JCS be setup to run in it's own
&gt; memory space (JVM) and then use some connection mechanism
&gt; from the original application to JCS (like a database
&gt; connection of some sort)?  This way the application JVM
&gt; is not overloaded and the cache JVM can be configured
&gt; properly.
&gt; 
&gt; Any other ideas or thoughts?
&gt; 
&gt; Thanks.
&gt; 
&gt; David Armour
&gt; 
&gt; 

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Cache for large data that is crashing JVM</title>
<author><name>&quot;Armour, David L - DOT&quot; &lt;David.Armour@dot.wi.gov&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c1EA45D5A75EBB747A54A4F1905DE558B019DBB4557E0@MEWMAD0PC01G03.accounts.wistate.us%3e"/>
<id>urn:uuid:%3c1EA45D5A75EBB747A54A4F1905DE558B019DBB4557E0@MEWMAD0PC01G03-accounts-wistate-us%3e</id>
<updated>2009-10-14T19:56:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

Currently, I am trying to fix an old application that is loading 500 MB of data into memory
and crashing the JVM.  I am wondering two things:

1.      Does JCS put the cache data into memory?  If yes, then I am going to still have too
much for the JVM.  Does it write it to disk and then only hold the keys in memory?  Unfortunately,
there are over a million records in this set.
2.      Can JCS be setup to run in it's own memory space (JVM) and then use some connection
mechanism from the original application to JCS (like a database connection of some sort)?
 This way the application JVM is not overloaded and the cache JVM can be configured properly.

Any other ideas or thoughts?

Thanks.

David Armour



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Load balancing with JCS</title>
<author><name>Jorge Medina &lt;jmedina@e-dialog.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3cB8E384888845E847AAF71F54C119EDED2AAA6F6F@eeyore.ad.e-dialog.com%3e"/>
<id>urn:uuid:%3cB8E384888845E847AAF71F54C119EDED2AAA6F6F@eeyore-ad-e-dialog-com%3e</id>
<updated>2009-10-13T22:02:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Your questions are not clear, you won't get any answers if you are not clear and have done
some reading, coding and testing on your own before asking questions.


JCS is a caching toolkit, it does not do load balancing.
You can use JCS as a distributed cache in a load balanced cluster.
If you only have one server, then you don't need the TCP lateral cache. 

I did not not understand your second question, what do you want to initialize the cache with?
If you have two servlet, are they running in the same webapp ? If they are, then you can share
the JCS caches in memory.
Are the servlets in different webapps? If that is the case, then you may use TCP lateral cache
if your application requires a shared distributed cache.

-Jorge




-----Original Message-----
From: Ahmad Kamil Abdul Hamid [mailto:kamil@akg.t.u-tokyo.ac.jp] 
Sent: Thursday, October 08, 2009 9:32 PM
To: jcs-users@jakarta.apache.org
Subject: Load balancing with JCS

Hi,

I am new to cache programming in Java. JCS is actually my first java-based cache programming
experience.

Currently, as part of my research, I need to design a cache to be implemented within Tomcat
(proxy server). I chose JCS for the cache software.

I have two questions:

a) For a single proxy server, is it possible to implement load balancing with JCS? (Maybe
by using TCP lateral cache?)

b) What will be the best way to initialize the cache and accessing the cache with two separate
servlets?

Thank you.

Best regards.

Ahmad Kamil Abdul Hamid

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Building JCS from Source</title>
<author><name>Scott Archer &lt;scott.archer@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c4858e4e30910121419v5f9c3ec6k60220ec2b28018b8@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4858e4e30910121419v5f9c3ec6k60220ec2b28018b8@mail-gmail-com%3e</id>
<updated>2009-10-12T21:19:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
How do I go about building JCS from source?

I tried building with maven (mvn clean package) and ant, but I haven't
had any luck.

Thanks,

Scott

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How to Cache A Physical File</title>
<author><name>Chopin hu &lt;huchopin@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c678028.68235.qm@web53912.mail.re2.yahoo.com%3e"/>
<id>urn:uuid:%3c678028-68235-qm@web53912-mail-re2-yahoo-com%3e</id>
<updated>2009-10-09T17:43:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Jeff,

You are my hero for today.  Can you please send me some code prototype on how to make that
work?   Is "ByteBuffer" the actual type you used?   I definitely will try that out soon? 
but any piece of your code sample is a great help to me.

Chopin


--- On Fri, 10/9/09, Jeffrey Kesselman &lt;jeffpk@gmail.com&gt; wrote:

&gt; From: Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt; Subject: Re: How to Cache A Physical File
&gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; Date: Friday, October 9, 2009, 1:14 PM
&gt; I cache file contents in my cache.
&gt; 
&gt; The trick is this... the cache will attempt to serialize
&gt; and cache the java
&gt; object you pass it. So passing it the input stream is
&gt; wrong... it will try
&gt; to cache the input stream object not the contents of the
&gt; stream.
&gt; 
&gt; What I do is read my content into a ByteBuffer and then
&gt; cache that.
&gt; 
&gt; On Fri, Oct 9, 2009 at 12:04 PM, Chopin hu &lt;huchopin@yahoo.com&gt;
&gt; wrote:
&gt; 
&gt; &gt; Yes.  Actually, that is exactly what I am looking
&gt; for.  Not clear how to
&gt; &gt; use that yet, though.
&gt; &gt;
&gt; &gt; Thank you so much for all your help on this.
&gt; &gt;
&gt; &gt; Chopin
&gt; &gt;
&gt; &gt;
&gt; &gt; --- On Fri, 10/9/09, Tim Cronin &lt;Tim.Cronin@autonomy.com&gt;
&gt; wrote:
&gt; &gt;
&gt; &gt; &gt; From: Tim Cronin &lt;Tim.Cronin@autonomy.com&gt;
&gt; &gt; &gt; Subject: RE: How to Cache A Physical File
&gt; &gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt; &gt; Date: Friday, October 9, 2009, 11:48 AM
&gt; &gt; &gt; You should follow this as it seems
&gt; &gt; &gt; like what you are looking to do.
&gt; &gt; &gt;
&gt; &gt; &gt; https://issues.apache.org/jira/browse/JCS-58
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; -----Original Message-----
&gt; &gt; &gt; From: fox1964 [mailto:huchopin@yahoo.com]
&gt; &gt; &gt;
&gt; &gt; &gt; Sent: Wednesday, October 07, 2009 7:01 PM
&gt; &gt; &gt; To: jcs-users@jakarta.apache.org
&gt; &gt; &gt; Subject: RE: How to Cache A Physical File
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; Tim,
&gt; &gt; &gt;
&gt; &gt; &gt; Thank you so much for your
&gt; reply.   There
&gt; &gt; &gt; are two requirements for this
&gt; &gt; &gt; cache: first, the files shall be cached to the
&gt; disk;
&gt; &gt; &gt; second  Also, that
&gt; &gt; &gt; a
&gt; &gt; &gt; whole file content shall be cached instead of
&gt; just a
&gt; &gt; &gt; filename.   I am
&gt; &gt; &gt; not
&gt; &gt; &gt; using java much, and have not been using that for
&gt; a long
&gt; &gt; &gt; time.   Can you
&gt; &gt; &gt; point me to what object I should rebuild the
&gt; input stream,
&gt; &gt; &gt; which I think
&gt; &gt; &gt; can
&gt; &gt; &gt; be serialized for use in JCS?
&gt; &gt; &gt;
&gt; &gt; &gt; do appreciate any input on this.
&gt; &gt; &gt;
&gt; &gt; &gt; fox1964
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; Tim Cronin-2 wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; If you're only using the memory cache you
&gt; should be
&gt; &gt; &gt; able to cache
&gt; &gt; &gt; those
&gt; &gt; &gt; &gt; input streams, but you can't serialize them
&gt; to disk as
&gt; &gt; &gt; they have
&gt; &gt; &gt; native
&gt; &gt; &gt; &gt; file handles tied to them.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; You would need to wrap them and basically
&gt; rebuild the
&gt; &gt; &gt; input stream
&gt; &gt; &gt; &gt; completely.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; It might just be simpler to cache the file
&gt; name and
&gt; &gt; &gt; build the input
&gt; &gt; &gt; &gt; stream.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; If you're concerned about performance I
&gt; think the
&gt; &gt; &gt; reading will be the
&gt; &gt; &gt; &gt; biggest issue and not the creation of the
&gt; input stream
&gt; &gt; &gt; itself.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; -----Original Message-----
&gt; &gt; &gt; &gt; From: fox1964 [mailto:huchopin@yahoo.com]
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; Sent: Tuesday, October 06, 2009 10:17 PM
&gt; &gt; &gt; &gt; To: jcs-users@jakarta.apache.org
&gt; &gt; &gt; &gt; Subject: How to Cache A Physical File
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; I have a large physical file downloaded to
&gt; my
&gt; &gt; &gt; server.   I'd like to
&gt; &gt; &gt; &gt; cache the
&gt; &gt; &gt; &gt; file so that my program can read
&gt; faster.  I've
&gt; &gt; &gt; configured JCS
&gt; &gt; &gt; properly.
&gt; &gt; &gt; &gt; I
&gt; &gt; &gt; &gt; can see the "mycache.key" and "mycache.data"
&gt; files are
&gt; &gt; &gt; updated every
&gt; &gt; &gt; &gt; time I
&gt; &gt; &gt; &gt; use a string for both a key/value pair.
&gt; &gt; &gt; But how can I put a
&gt; &gt; &gt; physical
&gt; &gt; &gt; &gt; file
&gt; &gt; &gt; &gt; into cache?   Right now, I
&gt; use an
&gt; &gt; &gt; "FileInputStream" object to read the
&gt; &gt; &gt; &gt; file,
&gt; &gt; &gt; &gt; and put into the cache.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; FileInputStream input = new
&gt; FileInputStream(file);
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; cache.put(input);
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; This seems to go thru without prompting any
&gt; error
&gt; &gt; &gt; message.   But when
&gt; &gt; &gt; I
&gt; &gt; &gt; &gt; tried to retrieve it, I got a message
&gt; &gt; &gt; "java.lang.NullPointerException"
&gt; &gt; &gt; &gt; when
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; cache.get(key);
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; I can see the mycache.key file updated, but
&gt; can NOT
&gt; &gt; &gt; see any updates in
&gt; &gt; &gt; &gt; mycache.data file by looking at the
&gt; timestamp.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Any guru can show me what I may do
&gt; &gt; &gt; wrong?   Or do you have any
&gt; sample
&gt; &gt; &gt; &gt; code
&gt; &gt; &gt; &gt; to do this?   Thanks a lot in
&gt; advance.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; View this message in context:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
&gt; &gt; &gt; &gt; tml
&gt; &gt; &gt; &gt; Sent from the JCS - Users mailing list
&gt; archive at
&gt; &gt; &gt; Nabble.com.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; &gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; &gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; --
&gt; &gt; &gt; View this message in context:
&gt; &gt; &gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25796503.h
&gt; &gt; &gt; tml
&gt; &gt; &gt; Sent from the JCS - Users mailing list archive
&gt; at
&gt; &gt; &gt; Nabble.com.
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt;
&gt; &gt;
&gt; 
&gt; 
&gt; -- 
&gt; ~~ Microsoft help desk says: reply hazy, ask again later.
&gt; ~~
&gt; 


      

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How to Cache A Physical File</title>
<author><name>Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c330f74e70910091014p74c22a58ha13639a4c5b3d453@mail.gmail.com%3e"/>
<id>urn:uuid:%3c330f74e70910091014p74c22a58ha13639a4c5b3d453@mail-gmail-com%3e</id>
<updated>2009-10-09T17:14:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I cache file contents in my cache.

The trick is this... the cache will attempt to serialize and cache the java
object you pass it. So passing it the input stream is wrong... it will try
to cache the input stream object not the contents of the stream.

What I do is read my content into a ByteBuffer and then cache that.

On Fri, Oct 9, 2009 at 12:04 PM, Chopin hu &lt;huchopin@yahoo.com&gt; wrote:

&gt; Yes.  Actually, that is exactly what I am looking for.  Not clear how to
&gt; use that yet, though.
&gt;
&gt; Thank you so much for all your help on this.
&gt;
&gt; Chopin
&gt;
&gt;
&gt; --- On Fri, 10/9/09, Tim Cronin &lt;Tim.Cronin@autonomy.com&gt; wrote:
&gt;
&gt; &gt; From: Tim Cronin &lt;Tim.Cronin@autonomy.com&gt;
&gt; &gt; Subject: RE: How to Cache A Physical File
&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt; Date: Friday, October 9, 2009, 11:48 AM
&gt; &gt; You should follow this as it seems
&gt; &gt; like what you are looking to do.
&gt; &gt;
&gt; &gt; https://issues.apache.org/jira/browse/JCS-58
&gt; &gt;
&gt; &gt;
&gt; &gt; -----Original Message-----
&gt; &gt; From: fox1964 [mailto:huchopin@yahoo.com]
&gt; &gt;
&gt; &gt; Sent: Wednesday, October 07, 2009 7:01 PM
&gt; &gt; To: jcs-users@jakarta.apache.org
&gt; &gt; Subject: RE: How to Cache A Physical File
&gt; &gt;
&gt; &gt;
&gt; &gt; Tim,
&gt; &gt;
&gt; &gt; Thank you so much for your reply.   There
&gt; &gt; are two requirements for this
&gt; &gt; cache: first, the files shall be cached to the disk;
&gt; &gt; second  Also, that
&gt; &gt; a
&gt; &gt; whole file content shall be cached instead of just a
&gt; &gt; filename.   I am
&gt; &gt; not
&gt; &gt; using java much, and have not been using that for a long
&gt; &gt; time.   Can you
&gt; &gt; point me to what object I should rebuild the input stream,
&gt; &gt; which I think
&gt; &gt; can
&gt; &gt; be serialized for use in JCS?
&gt; &gt;
&gt; &gt; do appreciate any input on this.
&gt; &gt;
&gt; &gt; fox1964
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; Tim Cronin-2 wrote:
&gt; &gt; &gt;
&gt; &gt; &gt; If you're only using the memory cache you should be
&gt; &gt; able to cache
&gt; &gt; those
&gt; &gt; &gt; input streams, but you can't serialize them to disk as
&gt; &gt; they have
&gt; &gt; native
&gt; &gt; &gt; file handles tied to them.
&gt; &gt; &gt;
&gt; &gt; &gt; You would need to wrap them and basically rebuild the
&gt; &gt; input stream
&gt; &gt; &gt; completely.
&gt; &gt; &gt;
&gt; &gt; &gt; It might just be simpler to cache the file name and
&gt; &gt; build the input
&gt; &gt; &gt; stream.
&gt; &gt; &gt;
&gt; &gt; &gt; If you're concerned about performance I think the
&gt; &gt; reading will be the
&gt; &gt; &gt; biggest issue and not the creation of the input stream
&gt; &gt; itself.
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; -----Original Message-----
&gt; &gt; &gt; From: fox1964 [mailto:huchopin@yahoo.com]
&gt; &gt;
&gt; &gt; &gt; Sent: Tuesday, October 06, 2009 10:17 PM
&gt; &gt; &gt; To: jcs-users@jakarta.apache.org
&gt; &gt; &gt; Subject: How to Cache A Physical File
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; I have a large physical file downloaded to my
&gt; &gt; server.   I'd like to
&gt; &gt; &gt; cache the
&gt; &gt; &gt; file so that my program can read faster.  I've
&gt; &gt; configured JCS
&gt; &gt; properly.
&gt; &gt; &gt; I
&gt; &gt; &gt; can see the "mycache.key" and "mycache.data" files are
&gt; &gt; updated every
&gt; &gt; &gt; time I
&gt; &gt; &gt; use a string for both a key/value pair.
&gt; &gt; But how can I put a
&gt; &gt; physical
&gt; &gt; &gt; file
&gt; &gt; &gt; into cache?   Right now, I use an
&gt; &gt; "FileInputStream" object to read the
&gt; &gt; &gt; file,
&gt; &gt; &gt; and put into the cache.
&gt; &gt; &gt;
&gt; &gt; &gt; FileInputStream input = new FileInputStream(file);
&gt; &gt; &gt;
&gt; &gt; cache.put(input);
&gt; &gt; &gt;
&gt; &gt; &gt; This seems to go thru without prompting any error
&gt; &gt; message.   But when
&gt; &gt; I
&gt; &gt; &gt; tried to retrieve it, I got a message
&gt; &gt; "java.lang.NullPointerException"
&gt; &gt; &gt; when
&gt; &gt; &gt;
&gt; &gt; cache.get(key);
&gt; &gt; &gt;
&gt; &gt; &gt; I can see the mycache.key file updated, but can NOT
&gt; &gt; see any updates in
&gt; &gt; &gt; mycache.data file by looking at the timestamp.
&gt; &gt; &gt;
&gt; &gt; &gt; Any guru can show me what I may do
&gt; &gt; wrong?   Or do you have any sample
&gt; &gt; &gt; code
&gt; &gt; &gt; to do this?   Thanks a lot in advance.
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; --
&gt; &gt; &gt; View this message in context:
&gt; &gt; &gt;
&gt; &gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
&gt; &gt; &gt; tml
&gt; &gt; &gt; Sent from the JCS - Users mailing list archive at
&gt; &gt; Nabble.com.
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt; --
&gt; &gt; View this message in context:
&gt; &gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25796503.h
&gt; &gt; tml
&gt; &gt; Sent from the JCS - Users mailing list archive at
&gt; &gt; Nabble.com.
&gt; &gt;
&gt; &gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt;
&gt; &gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt;
&gt; &gt;
&gt;
&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;
&gt;


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


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to Cache A Physical File</title>
<author><name>Chopin hu &lt;huchopin@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c653424.47158.qm@web53907.mail.re2.yahoo.com%3e"/>
<id>urn:uuid:%3c653424-47158-qm@web53907-mail-re2-yahoo-com%3e</id>
<updated>2009-10-09T16:04:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes.  Actually, that is exactly what I am looking for.  Not clear how to use that yet, though.

Thank you so much for all your help on this.

Chopin


--- On Fri, 10/9/09, Tim Cronin &lt;Tim.Cronin@autonomy.com&gt; wrote:

&gt; From: Tim Cronin &lt;Tim.Cronin@autonomy.com&gt;
&gt; Subject: RE: How to Cache A Physical File
&gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; Date: Friday, October 9, 2009, 11:48 AM
&gt; You should follow this as it seems
&gt; like what you are looking to do.
&gt; 
&gt; https://issues.apache.org/jira/browse/JCS-58
&gt; 
&gt; 
&gt; -----Original Message-----
&gt; From: fox1964 [mailto:huchopin@yahoo.com]
&gt; 
&gt; Sent: Wednesday, October 07, 2009 7:01 PM
&gt; To: jcs-users@jakarta.apache.org
&gt; Subject: RE: How to Cache A Physical File
&gt; 
&gt; 
&gt; Tim,
&gt; 
&gt; Thank you so much for your reply.   There
&gt; are two requirements for this
&gt; cache: first, the files shall be cached to the disk;
&gt; second  Also, that
&gt; a
&gt; whole file content shall be cached instead of just a
&gt; filename.   I am
&gt; not
&gt; using java much, and have not been using that for a long
&gt; time.   Can you
&gt; point me to what object I should rebuild the input stream,
&gt; which I think
&gt; can
&gt; be serialized for use in JCS?
&gt; 
&gt; do appreciate any input on this.
&gt; 
&gt; fox1964
&gt; 
&gt; 
&gt; 
&gt; Tim Cronin-2 wrote:
&gt; &gt; 
&gt; &gt; If you're only using the memory cache you should be
&gt; able to cache
&gt; those
&gt; &gt; input streams, but you can't serialize them to disk as
&gt; they have
&gt; native
&gt; &gt; file handles tied to them.
&gt; &gt; 
&gt; &gt; You would need to wrap them and basically rebuild the
&gt; input stream
&gt; &gt; completely.
&gt; &gt; 
&gt; &gt; It might just be simpler to cache the file name and
&gt; build the input
&gt; &gt; stream.
&gt; &gt; 
&gt; &gt; If you're concerned about performance I think the
&gt; reading will be the
&gt; &gt; biggest issue and not the creation of the input stream
&gt; itself.
&gt; &gt; 
&gt; &gt; 
&gt; &gt; -----Original Message-----
&gt; &gt; From: fox1964 [mailto:huchopin@yahoo.com]
&gt; 
&gt; &gt; Sent: Tuesday, October 06, 2009 10:17 PM
&gt; &gt; To: jcs-users@jakarta.apache.org
&gt; &gt; Subject: How to Cache A Physical File
&gt; &gt; 
&gt; &gt; 
&gt; &gt; I have a large physical file downloaded to my
&gt; server.   I'd like to
&gt; &gt; cache the
&gt; &gt; file so that my program can read faster.  I've
&gt; configured JCS
&gt; properly.
&gt; &gt; I
&gt; &gt; can see the "mycache.key" and "mycache.data" files are
&gt; updated every
&gt; &gt; time I
&gt; &gt; use a string for both a key/value pair.   
&gt; But how can I put a
&gt; physical
&gt; &gt; file
&gt; &gt; into cache?   Right now, I use an
&gt; "FileInputStream" object to read the
&gt; &gt; file,
&gt; &gt; and put into the cache.
&gt; &gt; 
&gt; &gt; FileInputStream input = new FileInputStream(file);
&gt; &gt;           
&gt; cache.put(input);
&gt; &gt; 
&gt; &gt; This seems to go thru without prompting any error
&gt; message.   But when
&gt; I
&gt; &gt; tried to retrieve it, I got a message
&gt; "java.lang.NullPointerException"
&gt; &gt; when 
&gt; &gt;           
&gt; cache.get(key);
&gt; &gt; 
&gt; &gt; I can see the mycache.key file updated, but can NOT
&gt; see any updates in
&gt; &gt; mycache.data file by looking at the timestamp.
&gt; &gt; 
&gt; &gt; Any guru can show me what I may do
&gt; wrong?   Or do you have any sample
&gt; &gt; code
&gt; &gt; to do this?   Thanks a lot in advance.
&gt; &gt; 
&gt; &gt; 
&gt; &gt; -- 
&gt; &gt; View this message in context:
&gt; &gt;
&gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
&gt; &gt; tml
&gt; &gt; Sent from the JCS - Users mailing list archive at
&gt; Nabble.com.
&gt; &gt; 
&gt; &gt; 
&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; 
&gt; &gt; 
&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
&gt; 
&gt; -- 
&gt; View this message in context:
&gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25796503.h
&gt; tml
&gt; Sent from the JCS - Users mailing list archive at
&gt; Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 


      

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



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to Cache A Physical File</title>
<author><name>&quot;Tim Cronin&quot; &lt;Tim.Cronin@autonomy.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c56A8F47A92B81F4C91648D4E38286A4804A00B18@exbehq01.Interwoven.com%3e"/>
<id>urn:uuid:%3c56A8F47A92B81F4C91648D4E38286A4804A00B18@exbehq01-Interwoven-com%3e</id>
<updated>2009-10-09T15:48:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You should follow this as it seems like what you are looking to do.

https://issues.apache.org/jira/browse/JCS-58


-----Original Message-----
From: fox1964 [mailto:huchopin@yahoo.com] 
Sent: Wednesday, October 07, 2009 7:01 PM
To: jcs-users@jakarta.apache.org
Subject: RE: How to Cache A Physical File


Tim,

Thank you so much for your reply.   There are two requirements for this
cache: first, the files shall be cached to the disk; second  Also, that
a
whole file content shall be cached instead of just a filename.   I am
not
using java much, and have not been using that for a long time.   Can you
point me to what object I should rebuild the input stream, which I think
can
be serialized for use in JCS?

do appreciate any input on this.

fox1964



Tim Cronin-2 wrote:
&gt; 
&gt; If you're only using the memory cache you should be able to cache
those
&gt; input streams, but you can't serialize them to disk as they have
native
&gt; file handles tied to them.
&gt; 
&gt; You would need to wrap them and basically rebuild the input stream
&gt; completely.
&gt; 
&gt; It might just be simpler to cache the file name and build the input
&gt; stream.
&gt; 
&gt; If you're concerned about performance I think the reading will be the
&gt; biggest issue and not the creation of the input stream itself.
&gt; 
&gt; 
&gt; -----Original Message-----
&gt; From: fox1964 [mailto:huchopin@yahoo.com] 
&gt; Sent: Tuesday, October 06, 2009 10:17 PM
&gt; To: jcs-users@jakarta.apache.org
&gt; Subject: How to Cache A Physical File
&gt; 
&gt; 
&gt; I have a large physical file downloaded to my server.   I'd like to
&gt; cache the
&gt; file so that my program can read faster.  I've configured JCS
properly.
&gt; I
&gt; can see the "mycache.key" and "mycache.data" files are updated every
&gt; time I
&gt; use a string for both a key/value pair.    But how can I put a
physical
&gt; file
&gt; into cache?   Right now, I use an "FileInputStream" object to read the
&gt; file,
&gt; and put into the cache.
&gt; 
&gt; FileInputStream input = new FileInputStream(file);
&gt;            cache.put(input);
&gt; 
&gt; This seems to go thru without prompting any error message.   But when
I
&gt; tried to retrieve it, I got a message "java.lang.NullPointerException"
&gt; when 
&gt;            cache.get(key);
&gt; 
&gt; I can see the mycache.key file updated, but can NOT see any updates in
&gt; mycache.data file by looking at the timestamp.
&gt; 
&gt; Any guru can show me what I may do wrong?   Or do you have any sample
&gt; code
&gt; to do this?   Thanks a lot in advance.
&gt; 
&gt; 
&gt; -- 
&gt; View this message in context:
&gt;
http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
&gt; tml
&gt; Sent from the JCS - Users mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 

-- 
View this message in context:
http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25796503.h
tml
Sent from the JCS - Users mailing list archive at Nabble.com.


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


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Load balancing with JCS</title>
<author><name>Ahmad Kamil Abdul Hamid &lt;kamil@akg.t.u-tokyo.ac.jp&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c2f8e57410910081832r6ef4d26aw9beea3fad31921ff@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2f8e57410910081832r6ef4d26aw9beea3fad31921ff@mail-gmail-com%3e</id>
<updated>2009-10-09T01:32:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I am new to cache programming in Java. JCS is actually my first java-based
cache programming experience.

Currently, as part of my research, I need to design a cache to be
implemented within Tomcat (proxy server). I chose JCS for the cache
software.

I have two questions:

a) For a single proxy server, is it possible to implement load balancing
with JCS? (Maybe by using TCP lateral cache?)

b) What will be the best way to initialize the cache and accessing the cache
with two separate servlets?

Thank you.

Best regards.

Ahmad Kamil Abdul Hamid


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to Cache A Physical File</title>
<author><name>&quot;Tim Cronin&quot; &lt;Tim.Cronin@autonomy.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c56A8F47A92B81F4C91648D4E38286A4804A0096F@exbehq01.Interwoven.com%3e"/>
<id>urn:uuid:%3c56A8F47A92B81F4C91648D4E38286A4804A0096F@exbehq01-Interwoven-com%3e</id>
<updated>2009-10-08T18:21:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt;the files shall be cached to the disk

JCS does this, See indexedDiskCache. If you need the files to be
accessible by external apps then your going to need to write these to
disk on your own
Or if an external process actually places the disk locally.

&gt;Also, that a whole file content shall be cached instead of just a
filename.    

The file input stream is not the file content but the mechanism for
reading 
The content from the disk. As I said creating the input stream is not
that costly. You could read the content then place the content into the
cache. Depending on the size of the content you will end up paying a
memory price. 



-----Original Message-----
From: fox1964 [mailto:huchopin@yahoo.com] 
Sent: Wednesday, October 07, 2009 7:01 PM
To: jcs-users@jakarta.apache.org
Subject: RE: How to Cache A Physical File


Tim,

Thank you so much for your reply.   There are two requirements for this
cache: first, the files shall be cached to the disk; second  Also, that
a
whole file content shall be cached instead of just a filename.   I am
not
using java much, and have not been using that for a long time.   Can you
point me to what object I should rebuild the input stream, which I think
can
be serialized for use in JCS?

do appreciate any input on this.

fox1964



Tim Cronin-2 wrote:
&gt; 
&gt; If you're only using the memory cache you should be able to cache
those
&gt; input streams, but you can't serialize them to disk as they have
native
&gt; file handles tied to them.
&gt; 
&gt; You would need to wrap them and basically rebuild the input stream
&gt; completely.
&gt; 
&gt; It might just be simpler to cache the file name and build the input
&gt; stream.
&gt; 
&gt; If you're concerned about performance I think the reading will be the
&gt; biggest issue and not the creation of the input stream itself.
&gt; 
&gt; 
&gt; -----Original Message-----
&gt; From: fox1964 [mailto:huchopin@yahoo.com] 
&gt; Sent: Tuesday, October 06, 2009 10:17 PM
&gt; To: jcs-users@jakarta.apache.org
&gt; Subject: How to Cache A Physical File
&gt; 
&gt; 
&gt; I have a large physical file downloaded to my server.   I'd like to
&gt; cache the
&gt; file so that my program can read faster.  I've configured JCS
properly.
&gt; I
&gt; can see the "mycache.key" and "mycache.data" files are updated every
&gt; time I
&gt; use a string for both a key/value pair.    But how can I put a
physical
&gt; file
&gt; into cache?   Right now, I use an "FileInputStream" object to read the
&gt; file,
&gt; and put into the cache.
&gt; 
&gt; FileInputStream input = new FileInputStream(file);
&gt;            cache.put(input);
&gt; 
&gt; This seems to go thru without prompting any error message.   But when
I
&gt; tried to retrieve it, I got a message "java.lang.NullPointerException"
&gt; when 
&gt;            cache.get(key);
&gt; 
&gt; I can see the mycache.key file updated, but can NOT see any updates in
&gt; mycache.data file by looking at the timestamp.
&gt; 
&gt; Any guru can show me what I may do wrong?   Or do you have any sample
&gt; code
&gt; to do this?   Thanks a lot in advance.
&gt; 
&gt; 
&gt; -- 
&gt; View this message in context:
&gt;
http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
&gt; tml
&gt; Sent from the JCS - Users mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 

-- 
View this message in context:
http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25796503.h
tml
Sent from the JCS - Users mailing list archive at Nabble.com.


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


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Unable to retrieve saved object with keep from disk</title>
<author><name>Zine &lt;zineellabidine.uharani@tieto.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c25799711.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25799711-post@talk-nabble-com%3e</id>
<updated>2009-10-08T07:45:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi again,

The name of the post is a bit wrong it should be: Unable to retrieve saved
object with key from disk.

Sorry for the misspelling.

Br,
Zine

Zine wrote:
&gt; 
&gt; Hi All,
&gt; 
&gt; I am trying to use the JCS index disk caching, and I am facing a probelm
&gt; with retreiving the saved object(s) from disk. The .data file  and .key
&gt; file has both the correct data, but when I try to get the object from
&gt; cache when the application starts up I get this exception:
&gt; ******************************************************************************
&gt; 7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
&gt; readElement
&gt; SEVERE: Region [offlineProjectsRegion] Exception, Problem reading object
&gt; from file
&gt; java.lang.ClassNotFoundException:
&gt; com.nokia.tools.repository.common.service.dto.objects.ProjectDto
&gt; 	at java.lang.Class.forNameImpl(Native Method)
&gt; 	at java.lang.Class.forName(Class.java:163)
&gt; 	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:601)
&gt; 	at
&gt; java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1569)
&gt; 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1491)
&gt; 	at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1724)
&gt; 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1330)
&gt; 	at
&gt; java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1933)
&gt; 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1857)
&gt; 	at
&gt; java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1744)
&gt; 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1330)
&gt; 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
&gt; 	at
&gt; org.apache.jcs.utils.serialization.StandardSerializer.deSerialize(StandardSerializer.java:73)
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.indexed.IndexedDisk.readObject(IndexedDisk.java:115)
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.readElement(IndexedDiskCache.java:584)
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doGet(IndexedDiskCache.java:537)
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.AbstractDiskCache.get(AbstractDiskCache.java:292)
&gt; 	at
&gt; org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:516)
&gt; 	at
&gt; org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:423)
&gt; 	at
&gt; org.apache.jcs.access.GroupCacheAccess.getFromGroup(GroupCacheAccess.java:107)
&gt; 	at
&gt; com.nokia.tools.repository.client.communication.webservice.CachedConnection.getProject(CachedConnection.java:228)
&gt; 	at
&gt; com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.hasWriteAccess(RepositoryResourceFileStore.java:250)
&gt; 	at
&gt; com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.fetchInfo(RepositoryResourceFileStore.java:62)
&gt; 	at
&gt; org.eclipse.core.filesystem.provider.FileStore.fetchInfo(FileStore.java:277)
&gt; 	at
&gt; com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.openInputStream(RepositoryResourceFileStore.java:156)
&gt; 	at
&gt; org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:705)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:797)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:777)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1353)
&gt; 	at
&gt; org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1957)
&gt; 	at
&gt; org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1716)
&gt; 	at
&gt; org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:379)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
&gt; 	at java.security.AccessController.doPrivileged(AccessController.java:246)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
&gt; 	at
&gt; org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
&gt; 	at
&gt; org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
&gt; 	at
&gt; org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
&gt; 	at
&gt; org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:449)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
&gt; 	at
&gt; org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
&gt; 	at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
&gt; 	at java.lang.J9VMInternals.verifyImpl(Native Method)
&gt; 	at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
&gt; 	at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
&gt; 	at
&gt; org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:114)
&gt; 	at
&gt; org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
&gt; 	at
&gt; org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
&gt; 	at
&gt; org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
&gt; 	at
&gt; org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
&gt; 	at
&gt; org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
&gt; 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt; 	at
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
&gt; 	at
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
&gt; 	at java.lang.reflect.Method.invoke(Method.java:618)
&gt; 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
&gt; 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
&gt; 	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
&gt; 	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
&gt; 7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
&gt; doGet
&gt; SEVERE: Region [offlineProjectsRegion] Failure getting from disk, key =
&gt; [GAN: groupId=[groupId=offlineProjectsRegion, Project:localhost:8080],
&gt; attrName=SystemTestProject]
&gt; java.io.IOException: Region [offlineProjectsRegion] Problem reading object
&gt; from disk.
&gt; com.nokia.tools.repository.common.service.dto.objects.ProjectDto
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.readElement(IndexedDiskCache.java:594)
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doGet(IndexedDiskCache.java:537)
&gt; 	at
&gt; org.apache.jcs.auxiliary.disk.AbstractDiskCache.get(AbstractDiskCache.java:292)
&gt; 	at
&gt; org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:516)
&gt; 	at
&gt; org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:423)
&gt; 	at
&gt; org.apache.jcs.access.GroupCacheAccess.getFromGroup(GroupCacheAccess.java:107)
&gt; 	at
&gt; com.nokia.tools.repository.client.communication.webservice.CachedConnection.getProject(CachedConnection.java:228)
&gt; 	at
&gt; com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.hasWriteAccess(RepositoryResourceFileStore.java:250)
&gt; 	at
&gt; com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.fetchInfo(RepositoryResourceFileStore.java:62)
&gt; 	at
&gt; org.eclipse.core.filesystem.provider.FileStore.fetchInfo(FileStore.java:277)
&gt; 	at
&gt; com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.openInputStream(RepositoryResourceFileStore.java:156)
&gt; 	at
&gt; org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:705)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:797)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:777)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
&gt; 	at
&gt; org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1353)
&gt; 	at
&gt; org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1957)
&gt; 	at
&gt; org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1716)
&gt; 	at
&gt; org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:379)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
&gt; 	at java.security.AccessController.doPrivileged(AccessController.java:246)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
&gt; 	at
&gt; org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
&gt; 	at
&gt; org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
&gt; 	at
&gt; org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
&gt; 	at
&gt; org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
&gt; 	at
&gt; org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:449)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
&gt; 	at
&gt; org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
&gt; 	at
&gt; org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
&gt; 	at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
&gt; 	at java.lang.J9VMInternals.verifyImpl(Native Method)
&gt; 	at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
&gt; 	at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
&gt; 	at
&gt; org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:114)
&gt; 	at
&gt; org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
&gt; 	at
&gt; org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
&gt; 	at
&gt; org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
&gt; 	at
&gt; org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
&gt; 	at
&gt; org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
&gt; 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt; 	at
&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
&gt; 	at
&gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
&gt; 	at java.lang.reflect.Method.invoke(Method.java:618)
&gt; 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
&gt; 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
&gt; 	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
&gt; 	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
&gt; 7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
&gt; reset
&gt; WARNING: Region [offlineProjectsRegion] Reseting cache
&gt; 7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
&gt; initKeyMap
&gt; INFO: Region [offlineProjectsRegion] Set maxKeySize to: '100000'
&gt; *******************************************************************************
&gt; The statistics about the cache region I am using return as follow:
&gt; ******************************************************************
&gt; CacheManager.getJCSOfflineCache().getStatistics()
&gt; 	 (org.apache.jcs.engine.stats.CacheStats) Region Name =
&gt; offlineProjectsRegion
&gt; HitCountRam = 0
&gt; HitCountAux = 0
&gt; ---------------------------LRU Memory Cache
&gt; List Size = 0
&gt; Map Size = 0
&gt; Put Count = 0
&gt; Hit Count = 0
&gt; Miss Count = 0
&gt; ---------------------------Indexed Disk Cache
&gt; Is Alive = true
&gt; Key Map Size = 1
&gt; Data File Length = 2017
&gt; Hit Count = 0
&gt; Bytes Free = 0
&gt; Optimize Operation Count = 1
&gt; Times Optimized = 0
&gt; Recycle Count = 0
&gt; Recycle Bin Size = 0
&gt; Startup Size = 1
&gt; Purgatory Hits = 0
&gt; Purgatory Size = 0
&gt; Working = true
&gt; Alive = false
&gt; Empty = true
&gt; Size = 0
&gt; ********************************************************************
&gt; My config is as follow: 
&gt; ******************************************************************************
&gt; # Disk Cache for repository off-line projects cache
&gt; jcs.region.offlineProjectsRegion=DC
&gt; jcs.region.offlineProjectsRegion.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
&gt; jcs.region.offlineProjectsRegion.cacheattributes.MaxObjects=10000
&gt; jcs.region.offlineProjectsRegion.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
&gt; jcs.region.offlineProjectsRegion.cacheattributes.DiskUsagePatternName=UPDATE 
&gt; jcs.region.offlineProjectsRegion.cacheattributes.UseMemoryShrinker=false
&gt; jcs.region.offlineProjectsRegion.cacheattributes.MaxMemoryIdleTimeSeconds=3600
&gt; jcs.region.offlineProjectsRegion.cacheattributes.ShrinkerIntervalSeconds=60
&gt; jcs.region.offlineProjectsRegion.elementattributes=org.apache.jcs.engine.ElementAttributes
&gt; jcs.region.offlineProjectsRegion.elementattributes.IsEternal=false
&gt; jcs.region.offlineProjectsRegion.elementattributes.MaxLifeSeconds=700
&gt; jcs.region.offlineProjectsRegion.elementattributes.IdleTime=1800
&gt; 
&gt; jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
&gt; jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
&gt; jcs.auxiliary.DC.attributes.DiskPath=C:/path
&gt; jcs.auxiliary.DC.attributes.MaxPurgatorySize=100000
&gt; jcs.auxiliary.DC.attributes.MaxKeySize=100000
&gt; jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
&gt; jcs.auxiliary.DC.attributes.ClearDiskOnStartup=false
&gt; jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
&gt; jcs.auxiliary.DC.attributes.MaxRecycleBinSize=750000
&gt; *******************************************************************************
&gt; 
&gt; Any suggestions?
&gt; 
&gt; Thanks,
&gt; Zine
&gt; 

-- 
View this message in context: http://www.nabble.com/Unable-to-retrieve-saved-object-with-keep-from-disk-tp25783947p25799711.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to Cache A Physical File</title>
<author><name>fox1964 &lt;huchopin@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c25796503.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25796503-post@talk-nabble-com%3e</id>
<updated>2009-10-08T00:01:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Tim,

Thank you so much for your reply.   There are two requirements for this
cache: first, the files shall be cached to the disk; second  Also, that a
whole file content shall be cached instead of just a filename.   I am not
using java much, and have not been using that for a long time.   Can you
point me to what object I should rebuild the input stream, which I think can
be serialized for use in JCS?

do appreciate any input on this.

fox1964



Tim Cronin-2 wrote:
&gt; 
&gt; If you're only using the memory cache you should be able to cache those
&gt; input streams, but you can't serialize them to disk as they have native
&gt; file handles tied to them.
&gt; 
&gt; You would need to wrap them and basically rebuild the input stream
&gt; completely.
&gt; 
&gt; It might just be simpler to cache the file name and build the input
&gt; stream.
&gt; 
&gt; If you're concerned about performance I think the reading will be the
&gt; biggest issue and not the creation of the input stream itself.
&gt; 
&gt; 
&gt; -----Original Message-----
&gt; From: fox1964 [mailto:huchopin@yahoo.com] 
&gt; Sent: Tuesday, October 06, 2009 10:17 PM
&gt; To: jcs-users@jakarta.apache.org
&gt; Subject: How to Cache A Physical File
&gt; 
&gt; 
&gt; I have a large physical file downloaded to my server.   I'd like to
&gt; cache the
&gt; file so that my program can read faster.  I've configured JCS properly.
&gt; I
&gt; can see the "mycache.key" and "mycache.data" files are updated every
&gt; time I
&gt; use a string for both a key/value pair.    But how can I put a physical
&gt; file
&gt; into cache?   Right now, I use an "FileInputStream" object to read the
&gt; file,
&gt; and put into the cache.
&gt; 
&gt; FileInputStream input = new FileInputStream(file);
&gt;            cache.put(input);
&gt; 
&gt; This seems to go thru without prompting any error message.   But when I
&gt; tried to retrieve it, I got a message "java.lang.NullPointerException"
&gt; when 
&gt;            cache.get(key);
&gt; 
&gt; I can see the mycache.key file updated, but can NOT see any updates in
&gt; mycache.data file by looking at the timestamp.
&gt; 
&gt; Any guru can show me what I may do wrong?   Or do you have any sample
&gt; code
&gt; to do this?   Thanks a lot in advance.
&gt; 
&gt; 
&gt; -- 
&gt; View this message in context:
&gt; http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
&gt; tml
&gt; Sent from the JCS - Users mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25796503.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to Cache A Physical File</title>
<author><name>&quot;Tim Cronin&quot; &lt;Tim.Cronin@autonomy.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c56A8F47A92B81F4C91648D4E38286A48049695E6@exbehq01.Interwoven.com%3e"/>
<id>urn:uuid:%3c56A8F47A92B81F4C91648D4E38286A48049695E6@exbehq01-Interwoven-com%3e</id>
<updated>2009-10-07T21:58:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If you're only using the memory cache you should be able to cache those
input streams, but you can't serialize them to disk as they have native
file handles tied to them.

You would need to wrap them and basically rebuild the input stream
completely.

It might just be simpler to cache the file name and build the input
stream.

If you're concerned about performance I think the reading will be the
biggest issue and not the creation of the input stream itself.


-----Original Message-----
From: fox1964 [mailto:huchopin@yahoo.com] 
Sent: Tuesday, October 06, 2009 10:17 PM
To: jcs-users@jakarta.apache.org
Subject: How to Cache A Physical File


I have a large physical file downloaded to my server.   I'd like to
cache the
file so that my program can read faster.  I've configured JCS properly.
I
can see the "mycache.key" and "mycache.data" files are updated every
time I
use a string for both a key/value pair.    But how can I put a physical
file
into cache?   Right now, I use an "FileInputStream" object to read the
file,
and put into the cache.

FileInputStream input = new FileInputStream(file);
           cache.put(input);

This seems to go thru without prompting any error message.   But when I
tried to retrieve it, I got a message "java.lang.NullPointerException"
when 
           cache.get(key);

I can see the mycache.key file updated, but can NOT see any updates in
mycache.data file by looking at the timestamp.

Any guru can show me what I may do wrong?   Or do you have any sample
code
to do this?   Thanks a lot in advance.


-- 
View this message in context:
http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.h
tml
Sent from the JCS - Users mailing list archive at Nabble.com.


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


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Unable to retrieve saved object with keep from disk</title>
<author><name>Zine &lt;zineellabidine.uharani@tieto.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c25783947.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25783947-post@talk-nabble-com%3e</id>
<updated>2009-10-07T12:30:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi All,

I am trying to use the JCS index disk caching, and I am facing a probelm
with retreiving the saved object(s) from disk. The .data file  and .key file
has both the correct data, but when I try to get the object from cache when
the application starts up I get this exception:
******************************************************************************
7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
readElement
SEVERE: Region [offlineProjectsRegion] Exception, Problem reading object
from file
java.lang.ClassNotFoundException:
com.nokia.tools.repository.common.service.dto.objects.ProjectDto
	at java.lang.Class.forNameImpl(Native Method)
	at java.lang.Class.forName(Class.java:163)
	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:601)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1569)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1491)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1724)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1330)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1933)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1857)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1744)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1330)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
	at
org.apache.jcs.utils.serialization.StandardSerializer.deSerialize(StandardSerializer.java:73)
	at
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk.readObject(IndexedDisk.java:115)
	at
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.readElement(IndexedDiskCache.java:584)
	at
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doGet(IndexedDiskCache.java:537)
	at
org.apache.jcs.auxiliary.disk.AbstractDiskCache.get(AbstractDiskCache.java:292)
	at
org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:516)
	at
org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:423)
	at
org.apache.jcs.access.GroupCacheAccess.getFromGroup(GroupCacheAccess.java:107)
	at
com.nokia.tools.repository.client.communication.webservice.CachedConnection.getProject(CachedConnection.java:228)
	at
com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.hasWriteAccess(RepositoryResourceFileStore.java:250)
	at
com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.fetchInfo(RepositoryResourceFileStore.java:62)
	at
org.eclipse.core.filesystem.provider.FileStore.fetchInfo(FileStore.java:277)
	at
com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.openInputStream(RepositoryResourceFileStore.java:156)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:705)
	at
org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:797)
	at
org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:777)
	at
org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
	at
org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1353)
	at
org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1957)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1716)
	at
org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:379)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
	at java.security.AccessController.doPrivileged(AccessController.java:246)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
	at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
	at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
	at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
	at
org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:449)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
	at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
	at java.lang.J9VMInternals.verifyImpl(Native Method)
	at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
	at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
	at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:114)
	at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:618)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
doGet
SEVERE: Region [offlineProjectsRegion] Failure getting from disk, key =
[GAN: groupId=[groupId=offlineProjectsRegion, Project:localhost:8080],
attrName=SystemTestProject]
java.io.IOException: Region [offlineProjectsRegion] Problem reading object
from disk. com.nokia.tools.repository.common.service.dto.objects.ProjectDto
	at
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.readElement(IndexedDiskCache.java:594)
	at
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache.doGet(IndexedDiskCache.java:537)
	at
org.apache.jcs.auxiliary.disk.AbstractDiskCache.get(AbstractDiskCache.java:292)
	at
org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:516)
	at
org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:423)
	at
org.apache.jcs.access.GroupCacheAccess.getFromGroup(GroupCacheAccess.java:107)
	at
com.nokia.tools.repository.client.communication.webservice.CachedConnection.getProject(CachedConnection.java:228)
	at
com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.hasWriteAccess(RepositoryResourceFileStore.java:250)
	at
com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.fetchInfo(RepositoryResourceFileStore.java:62)
	at
org.eclipse.core.filesystem.provider.FileStore.fetchInfo(FileStore.java:277)
	at
com.nokia.tools.repository.client.filesystem.internal.RepositoryResourceFileStore.openInputStream(RepositoryResourceFileStore.java:156)
	at
org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:705)
	at
org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:797)
	at
org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:777)
	at
org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
	at
org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1353)
	at
org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1957)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1716)
	at
org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:379)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
	at java.security.AccessController.doPrivileged(AccessController.java:246)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
	at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
	at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
	at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
	at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
	at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
	at
org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:449)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
	at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
	at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
	at java.lang.J9VMInternals.verifyImpl(Native Method)
	at java.lang.J9VMInternals.verify(J9VMInternals.java:69)
	at java.lang.J9VMInternals.initialize(J9VMInternals.java:131)
	at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:114)
	at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:618)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
reset
WARNING: Region [offlineProjectsRegion] Reseting cache
7.10.2009 15:22:30 org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
initKeyMap
INFO: Region [offlineProjectsRegion] Set maxKeySize to: '100000'
*******************************************************************************
The statistics about the cache region I am using return as follow:
******************************************************************
CacheManager.getJCSOfflineCache().getStatistics()
	 (org.apache.jcs.engine.stats.CacheStats) Region Name =
offlineProjectsRegion
HitCountRam = 0
HitCountAux = 0
---------------------------LRU Memory Cache
List Size = 0
Map Size = 0
Put Count = 0
Hit Count = 0
Miss Count = 0
---------------------------Indexed Disk Cache
Is Alive = true
Key Map Size = 1
Data File Length = 2017
Hit Count = 0
Bytes Free = 0
Optimize Operation Count = 1
Times Optimized = 0
Recycle Count = 0
Recycle Bin Size = 0
Startup Size = 1
Purgatory Hits = 0
Purgatory Size = 0
Working = true
Alive = false
Empty = true
Size = 0
********************************************************************
My config is as follow: 
******************************************************************************
# Disk Cache for repository off-line projects cache
jcs.region.offlineProjectsRegion=DC
jcs.region.offlineProjectsRegion.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.offlineProjectsRegion.cacheattributes.MaxObjects=10000
jcs.region.offlineProjectsRegion.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.offlineProjectsRegion.cacheattributes.DiskUsagePatternName=UPDATE 
jcs.region.offlineProjectsRegion.cacheattributes.UseMemoryShrinker=false
jcs.region.offlineProjectsRegion.cacheattributes.MaxMemoryIdleTimeSeconds=3600
jcs.region.offlineProjectsRegion.cacheattributes.ShrinkerIntervalSeconds=60
jcs.region.offlineProjectsRegion.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.offlineProjectsRegion.elementattributes.IsEternal=false
jcs.region.offlineProjectsRegion.elementattributes.MaxLifeSeconds=700
jcs.region.offlineProjectsRegion.elementattributes.IdleTime=1800

jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=C:/path
jcs.auxiliary.DC.attributes.MaxPurgatorySize=100000
jcs.auxiliary.DC.attributes.MaxKeySize=100000
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
jcs.auxiliary.DC.attributes.ClearDiskOnStartup=false
jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=750000
*******************************************************************************

Any suggestions?

Thanks,
Zine
-- 
View this message in context: http://www.nabble.com/Unable-to-retrieve-saved-object-with-keep-from-disk-tp25783947p25783947.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>How to Cache A Physical File</title>
<author><name>fox1964 &lt;huchopin@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c25779933.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25779933-post@talk-nabble-com%3e</id>
<updated>2009-10-07T03:16:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I have a large physical file downloaded to my server.   I'd like to cache the
file so that my program can read faster.  I've configured JCS properly.   I
can see the "mycache.key" and "mycache.data" files are updated every time I
use a string for both a key/value pair.    But how can I put a physical file
into cache?   Right now, I use an "FileInputStream" object to read the file,
and put into the cache.

FileInputStream input = new FileInputStream(file);
           cache.put(input);

This seems to go thru without prompting any error message.   But when I
tried to retrieve it, I got a message "java.lang.NullPointerException" when 
           cache.get(key);

I can see the mycache.key file updated, but can NOT see any updates in
mycache.data file by looking at the timestamp.

Any guru can show me what I may do wrong?   Or do you have any sample code
to do this?   Thanks a lot in advance.


-- 
View this message in context: http://www.nabble.com/How-to-Cache-A-Physical-File-tp25779933p25779933.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remove dependency for concurrent.jar</title>
<author><name>=?ISO-8859-1?Q?Nuno_S=E9nica?= &lt;nsenica@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c6fb0a54a0910020728ib760fd8tc195461ff995e14f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6fb0a54a0910020728ib760fd8tc195461ff995e14f@mail-gmail-com%3e</id>
<updated>2009-10-02T14:28:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi :)

No worries.. take your time.

Thanks
Nuno

On Fri, Oct 2, 2009 at 15:25, Aaron Smuts &lt;asmuts@yahoo.com&gt; wrote:

&gt; Sorry for the delay.  I'm working on it, but lots of other things keep
&gt; coming up.  It will take a couple more weeks.
&gt;
&gt; Aaron
&gt;
&gt; --- On Thu, 10/1/09, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:
&gt;
&gt; &gt; From: Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt; Subject: Re: Remove dependency for concurrent.jar
&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt; Date: Thursday, October 1, 2009, 12:13 PM
&gt; &gt; Hi Aaron,
&gt; &gt;
&gt; &gt; Sorry to bother you again with this issue..
&gt; &gt;
&gt; &gt; Are there any news regarding this ?
&gt; &gt;
&gt; &gt; Best regards,
&gt; &gt; Nuno
&gt; &gt;
&gt; &gt; On Mon, Sep 21, 2009 at 16:23, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt; wrote:
&gt; &gt;
&gt; &gt; &gt; Hi Aaron :)
&gt; &gt; &gt;
&gt; &gt; &gt; Here I am again querying you on the status of this
&gt; &gt; task.
&gt; &gt; &gt;
&gt; &gt; &gt; Did you have the chance the start it ? :) How it is
&gt; &gt; going.
&gt; &gt; &gt;
&gt; &gt; &gt; Best regards,
&gt; &gt; &gt; Nuno Sénica
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; On Fri, Aug 28, 2009 at 11:31, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt; wrote:
&gt; &gt; &gt;
&gt; &gt; &gt;&gt; Hi Aaron
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; Once again thanks for your inputs..
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; Since it is not a matter of find and replace,
&gt; &gt; maybe I'll wait a couple of
&gt; &gt; &gt;&gt; weeks so that you take on that task :)
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; I'll poke by then just to know how the work is
&gt; &gt; going.
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; Regads and thanks a lot once again.
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; Nuno
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt; On Thu, Aug 27, 2009 at 16:24, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; &gt; wrote:
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;&gt;&gt; It's not a simple matter of find and
&gt; &gt; replace.  If it was, I would have
&gt; &gt; &gt;&gt;&gt; done it some time back. . . .
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt; This is such an extensive change, it's
&gt; &gt; probably best that I do it.  But
&gt; &gt; &gt;&gt;&gt; feel free to give it a try.
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt; Thanks,
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt; Aaron
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt; --- On Thu, 8/27/09, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; &gt; wrote:
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt; &gt; From: Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; &gt; &gt;&gt;&gt; &gt; Subject: Re: Remove dependency for
&gt; &gt; concurrent.jar
&gt; &gt; &gt;&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt; &gt;&gt;&gt; &gt; Date: Thursday, August 27, 2009, 8:21 AM
&gt; &gt; &gt;&gt;&gt; &gt; In my first email, I pointed out
&gt; &gt; &gt;&gt;&gt; &gt; several things that would need to be
&gt; &gt; changed.  You can
&gt; &gt; &gt;&gt;&gt; &gt; simply search for the util concurrent
&gt; &gt; import and find them
&gt; &gt; &gt;&gt;&gt; &gt; all.
&gt; &gt; "EDU.oswego.cs.dl.util.concurrent"
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; ClockDaemon is used more than the poooled
&gt; &gt; executor. . . .
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; Yes, there is a backport for JDK
&gt; &gt; 1.4.  A backport
&gt; &gt; &gt;&gt;&gt; &gt; implements something available only in a
&gt; &gt; new version.
&gt; &gt; &gt;&gt;&gt; &gt; In this case, the backport is of the 1.5
&gt; &gt; concurrent
&gt; &gt; &gt;&gt;&gt; &gt; library.  This allows you to compile
&gt; &gt; and run in
&gt; &gt; &gt;&gt;&gt; &gt; 1.4.  But if you are running 1.5 or
&gt; &gt; later, you don't
&gt; &gt; &gt;&gt;&gt; &gt; need to backport jar.
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; There are some subtle changes between the
&gt; &gt; two.  But it
&gt; &gt; &gt;&gt;&gt; &gt; should be perfectly possible to get it
&gt; &gt; working in a few
&gt; &gt; &gt;&gt;&gt; &gt; days.  Take a crack at it if you
&gt; &gt; want.  I'll get
&gt; &gt; &gt;&gt;&gt; &gt; to it in about two weeks.
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; Aaron
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; --- On Thu, 8/27/09, Jeffrey Kesselman
&gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt; &gt; &gt;&gt;&gt; &gt; wrote:
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; From: Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Subject: Re: Remove dependency for
&gt; &gt; concurrent.jar
&gt; &gt; &gt;&gt;&gt; &gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Date: Thursday, August 27, 2009,
&gt; &gt; 8:02 AM
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Well i don't know the codebase so
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Aaron is your better reference
&gt; &gt; there
&gt; &gt; &gt;&gt;&gt; &gt; &gt; BUT...
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Since the large majority of Doug's
&gt; &gt; concurrent library
&gt; &gt; &gt;&gt;&gt; &gt; got
&gt; &gt; &gt;&gt;&gt; &gt; &gt; ported as is into
&gt; &gt; &gt;&gt;&gt; &gt; &gt; the JDK, Id start by simply taking
&gt; &gt; his library out of
&gt; &gt; &gt;&gt;&gt; &gt; your
&gt; &gt; &gt;&gt;&gt; &gt; &gt; build path in
&gt; &gt; &gt;&gt;&gt; &gt; &gt; eclipse.  Then follow the
&gt; &gt; errors and everywhere it
&gt; &gt; &gt;&gt;&gt; &gt; &gt; can't find a reference to
&gt; &gt; &gt;&gt;&gt; &gt; &gt; a concurrent utility, use's
&gt; &gt; Eclipse's help to add the
&gt; &gt; &gt;&gt;&gt; &gt; &gt; proper import.
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Id imagine it cant be more then a
&gt; &gt; day or two of very
&gt; &gt; &gt;&gt;&gt; &gt; &gt; mechanical work...
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Alternately, if your a perl type
&gt; &gt; hacker you could try
&gt; &gt; &gt;&gt;&gt; &gt; &gt; writing a script that
&gt; &gt; &gt;&gt;&gt; &gt; &gt; would look for the string that is
&gt; &gt; doug's package name
&gt; &gt; &gt;&gt;&gt; &gt; in
&gt; &gt; &gt;&gt;&gt; &gt; &gt; the file and
&gt; &gt; &gt;&gt;&gt; &gt; &gt; repalce it with the JDK package.
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; JK
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; On Thu, Aug 27, 2009 at 10:36 AM,
&gt; &gt; Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Hi Jeffrey and Aaron,
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; We are currently evaluating the
&gt; &gt; effort to
&gt; &gt; &gt;&gt;&gt; &gt; perform
&gt; &gt; &gt;&gt;&gt; &gt; &gt; those changes.. If the
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; effort is not that big, I
&gt; &gt; personally, would like
&gt; &gt; &gt;&gt;&gt; &gt; to
&gt; &gt; &gt;&gt;&gt; &gt; &gt; make that change and
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; contribute to the community.
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; I'll need some guideline from
&gt; &gt; where to start,
&gt; &gt; &gt;&gt;&gt; &gt; and
&gt; &gt; &gt;&gt;&gt; &gt; &gt; regarding that I'm
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; relying
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; on you guys :D
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Which should be the best
&gt; &gt; approach to start this
&gt; &gt; &gt;&gt;&gt; &gt; change
&gt; &gt; &gt;&gt;&gt; &gt; &gt; ?
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; Nuno
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 15:30,
&gt; &gt; Jeffrey Kesselman
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; The source is available,
&gt; &gt; couldn't you go
&gt; &gt; &gt;&gt;&gt; &gt; through
&gt; &gt; &gt;&gt;&gt; &gt; &gt; it and change the
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; references yourselves?
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; That seems a lot less
&gt; &gt; costly then abandoning
&gt; &gt; &gt;&gt;&gt; &gt; the
&gt; &gt; &gt;&gt;&gt; &gt; &gt; whole library.
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; Maybe you could even
&gt; &gt; contribute those
&gt; &gt; &gt;&gt;&gt; &gt; changes
&gt; &gt; &gt;&gt;&gt; &gt; &gt; back to the community...
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at
&gt; &gt; 7:02 AM, Nuno
&gt; &gt; &gt;&gt;&gt; &gt; Sénica
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &lt;nsenica@gmail.com&gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; At the company where
&gt; &gt; I work for, we
&gt; &gt; &gt;&gt;&gt; &gt; have an
&gt; &gt; &gt;&gt;&gt; &gt; &gt; application which relies on
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; JCS
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it has proven to
&gt; &gt; be a good solution
&gt; &gt; &gt;&gt;&gt; &gt; so
&gt; &gt; &gt;&gt;&gt; &gt; &gt; far. But now, we were
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; informed
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; about legal issues by
&gt; &gt; using concurrent
&gt; &gt; &gt;&gt;&gt; &gt; lib
&gt; &gt; &gt;&gt;&gt; &gt; &gt; and we are being instructed
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; to
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; change the caching
&gt; &gt; lib.
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; My question is if
&gt; &gt; there's any plan to
&gt; &gt; &gt;&gt;&gt; &gt; use
&gt; &gt; &gt;&gt;&gt; &gt; &gt; the native concurrent instead
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; of
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; the lib that JSC
&gt; &gt; depend on at the
&gt; &gt; &gt;&gt;&gt; &gt; moment ?
&gt; &gt; &gt;&gt;&gt; &gt; &gt; Is so, when it is planned to
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; be
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; available ?
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Thanks in advance.
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Nuno
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; ~~ Microsoft help desk
&gt; &gt; says: reply hazy,
&gt; &gt; &gt;&gt;&gt; &gt; ask
&gt; &gt; &gt;&gt;&gt; &gt; &gt; again later. ~~
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt; &gt; --
&gt; &gt; &gt;&gt;&gt; &gt; &gt; ~~ Microsoft help desk says: reply
&gt; &gt; hazy, ask again
&gt; &gt; &gt;&gt;&gt; &gt; later.
&gt; &gt; &gt;&gt;&gt; &gt; &gt; ~~
&gt; &gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; &gt;&gt;&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt;&gt;&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt; &gt;
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; ---------------------------------------------------------------------
&gt; &gt; &gt;&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt; &gt;&gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;&gt;
&gt; &gt; &gt;&gt;
&gt; &gt; &gt;
&gt; &gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remove dependency for concurrent.jar</title>
<author><name>Aaron Smuts &lt;asmuts@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c594206.89423.qm@web38706.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c594206-89423-qm@web38706-mail-mud-yahoo-com%3e</id>
<updated>2009-10-02T14:25:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sorry for the delay.  I'm working on it, but lots of other things keep coming up.  It will
take a couple more weeks.  

Aaron

--- On Thu, 10/1/09, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:

&gt; From: Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; Subject: Re: Remove dependency for concurrent.jar
&gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; Date: Thursday, October 1, 2009, 12:13 PM
&gt; Hi Aaron,
&gt; 
&gt; Sorry to bother you again with this issue..
&gt; 
&gt; Are there any news regarding this ?
&gt; 
&gt; Best regards,
&gt; Nuno
&gt; 
&gt; On Mon, Sep 21, 2009 at 16:23, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; wrote:
&gt; 
&gt; &gt; Hi Aaron :)
&gt; &gt;
&gt; &gt; Here I am again querying you on the status of this
&gt; task.
&gt; &gt;
&gt; &gt; Did you have the chance the start it ? :) How it is
&gt; going.
&gt; &gt;
&gt; &gt; Best regards,
&gt; &gt; Nuno Sénica
&gt; &gt;
&gt; &gt;
&gt; &gt; On Fri, Aug 28, 2009 at 11:31, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; wrote:
&gt; &gt;
&gt; &gt;&gt; Hi Aaron
&gt; &gt;&gt;
&gt; &gt;&gt; Once again thanks for your inputs..
&gt; &gt;&gt;
&gt; &gt;&gt; Since it is not a matter of find and replace,
&gt; maybe I'll wait a couple of
&gt; &gt;&gt; weeks so that you take on that task :)
&gt; &gt;&gt;
&gt; &gt;&gt; I'll poke by then just to know how the work is
&gt; going.
&gt; &gt;&gt;
&gt; &gt;&gt; Regads and thanks a lot once again.
&gt; &gt;&gt;
&gt; &gt;&gt; Nuno
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; On Thu, Aug 27, 2009 at 16:24, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; wrote:
&gt; &gt;&gt;
&gt; &gt;&gt;&gt; It's not a simple matter of find and
&gt; replace.  If it was, I would have
&gt; &gt;&gt;&gt; done it some time back. . . .
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; This is such an extensive change, it's
&gt; probably best that I do it.  But
&gt; &gt;&gt;&gt; feel free to give it a try.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Thanks,
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Aaron
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; --- On Thu, 8/27/09, Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; wrote:
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; &gt; From: Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt; &gt;&gt;&gt; &gt; Subject: Re: Remove dependency for
&gt; concurrent.jar
&gt; &gt;&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt;&gt;&gt; &gt; Date: Thursday, August 27, 2009, 8:21 AM
&gt; &gt;&gt;&gt; &gt; In my first email, I pointed out
&gt; &gt;&gt;&gt; &gt; several things that would need to be
&gt; changed.  You can
&gt; &gt;&gt;&gt; &gt; simply search for the util concurrent
&gt; import and find them
&gt; &gt;&gt;&gt; &gt; all. 
&gt; "EDU.oswego.cs.dl.util.concurrent"
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt; ClockDaemon is used more than the poooled
&gt; executor. . . .
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt; Yes, there is a backport for JDK
&gt; 1.4.  A backport
&gt; &gt;&gt;&gt; &gt; implements something available only in a
&gt; new version.
&gt; &gt;&gt;&gt; &gt; In this case, the backport is of the 1.5
&gt; concurrent
&gt; &gt;&gt;&gt; &gt; library.  This allows you to compile
&gt; and run in
&gt; &gt;&gt;&gt; &gt; 1.4.  But if you are running 1.5 or
&gt; later, you don't
&gt; &gt;&gt;&gt; &gt; need to backport jar.
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt; There are some subtle changes between the
&gt; two.  But it
&gt; &gt;&gt;&gt; &gt; should be perfectly possible to get it
&gt; working in a few
&gt; &gt;&gt;&gt; &gt; days.  Take a crack at it if you
&gt; want.  I'll get
&gt; &gt;&gt;&gt; &gt; to it in about two weeks.
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt; Aaron
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt; --- On Thu, 8/27/09, Jeffrey Kesselman
&gt; &lt;jeffpk@gmail.com&gt;
&gt; &gt;&gt;&gt; &gt; wrote:
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; From: Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt; &gt;&gt;&gt; &gt; &gt; Subject: Re: Remove dependency for
&gt; concurrent.jar
&gt; &gt;&gt;&gt; &gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt; &gt;&gt;&gt; &gt; &gt; Date: Thursday, August 27, 2009,
&gt; 8:02 AM
&gt; &gt;&gt;&gt; &gt; &gt; Well i don't know the codebase so
&gt; &gt;&gt;&gt; &gt; &gt; Aaron is your better reference
&gt; there
&gt; &gt;&gt;&gt; &gt; &gt; BUT...
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; Since the large majority of Doug's
&gt; concurrent library
&gt; &gt;&gt;&gt; &gt; got
&gt; &gt;&gt;&gt; &gt; &gt; ported as is into
&gt; &gt;&gt;&gt; &gt; &gt; the JDK, Id start by simply taking
&gt; his library out of
&gt; &gt;&gt;&gt; &gt; your
&gt; &gt;&gt;&gt; &gt; &gt; build path in
&gt; &gt;&gt;&gt; &gt; &gt; eclipse.  Then follow the
&gt; errors and everywhere it
&gt; &gt;&gt;&gt; &gt; &gt; can't find a reference to
&gt; &gt;&gt;&gt; &gt; &gt; a concurrent utility, use's
&gt; Eclipse's help to add the
&gt; &gt;&gt;&gt; &gt; &gt; proper import.
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; Id imagine it cant be more then a
&gt; day or two of very
&gt; &gt;&gt;&gt; &gt; &gt; mechanical work...
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; Alternately, if your a perl type
&gt; hacker you could try
&gt; &gt;&gt;&gt; &gt; &gt; writing a script that
&gt; &gt;&gt;&gt; &gt; &gt; would look for the string that is
&gt; doug's package name
&gt; &gt;&gt;&gt; &gt; in
&gt; &gt;&gt;&gt; &gt; &gt; the file and
&gt; &gt;&gt;&gt; &gt; &gt; repalce it with the JDK package.
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; JK
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; On Thu, Aug 27, 2009 at 10:36 AM,
&gt; Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; Hi Jeffrey and Aaron,
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; We are currently evaluating the
&gt; effort to
&gt; &gt;&gt;&gt; &gt; perform
&gt; &gt;&gt;&gt; &gt; &gt; those changes.. If the
&gt; &gt;&gt;&gt; &gt; &gt; &gt; effort is not that big, I
&gt; personally, would like
&gt; &gt;&gt;&gt; &gt; to
&gt; &gt;&gt;&gt; &gt; &gt; make that change and
&gt; &gt;&gt;&gt; &gt; &gt; &gt; contribute to the community.
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; I'll need some guideline from
&gt; where to start,
&gt; &gt;&gt;&gt; &gt; and
&gt; &gt;&gt;&gt; &gt; &gt; regarding that I'm
&gt; &gt;&gt;&gt; &gt; &gt; &gt; relying
&gt; &gt;&gt;&gt; &gt; &gt; &gt; on you guys :D
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; Which should be the best
&gt; approach to start this
&gt; &gt;&gt;&gt; &gt; change
&gt; &gt;&gt;&gt; &gt; &gt; ?
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; Regards,
&gt; &gt;&gt;&gt; &gt; &gt; &gt; Nuno
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 15:30,
&gt; Jeffrey Kesselman
&gt; &gt;&gt;&gt; &gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; The source is available,
&gt; couldn't you go
&gt; &gt;&gt;&gt; &gt; through
&gt; &gt;&gt;&gt; &gt; &gt; it and change the
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; references yourselves?
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; That seems a lot less
&gt; costly then abandoning
&gt; &gt;&gt;&gt; &gt; the
&gt; &gt;&gt;&gt; &gt; &gt; whole library.
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; Maybe you could even
&gt; contribute those
&gt; &gt;&gt;&gt; &gt; changes
&gt; &gt;&gt;&gt; &gt; &gt; back to the community...
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at
&gt; 7:02 AM, Nuno
&gt; &gt;&gt;&gt; &gt; Sénica
&gt; &gt;&gt;&gt; &gt; &gt; &lt;nsenica@gmail.com&gt;
&gt; &gt;&gt;&gt; &gt; &gt; wrote:
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; At the company where
&gt; I work for, we
&gt; &gt;&gt;&gt; &gt; have an
&gt; &gt;&gt;&gt; &gt; &gt; application which relies on
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; JCS
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it has proven to
&gt; be a good solution
&gt; &gt;&gt;&gt; &gt; so
&gt; &gt;&gt;&gt; &gt; &gt; far. But now, we were
&gt; &gt;&gt;&gt; &gt; &gt; &gt; informed
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; about legal issues by
&gt; using concurrent
&gt; &gt;&gt;&gt; &gt; lib
&gt; &gt;&gt;&gt; &gt; &gt; and we are being instructed
&gt; &gt;&gt;&gt; &gt; &gt; &gt; to
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; change the caching
&gt; lib.
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; My question is if
&gt; there's any plan to
&gt; &gt;&gt;&gt; &gt; use
&gt; &gt;&gt;&gt; &gt; &gt; the native concurrent instead
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; of
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; the lib that JSC
&gt; depend on at the
&gt; &gt;&gt;&gt; &gt; moment ?
&gt; &gt;&gt;&gt; &gt; &gt; Is so, when it is planned to
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; be
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; available ?
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Thanks in advance.
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Nuno
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; --
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt; ~~ Microsoft help desk
&gt; says: reply hazy,
&gt; &gt;&gt;&gt; &gt; ask
&gt; &gt;&gt;&gt; &gt; &gt; again later. ~~
&gt; &gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt; &gt; --
&gt; &gt;&gt;&gt; &gt; &gt; ~~ Microsoft help desk says: reply
&gt; hazy, ask again
&gt; &gt;&gt;&gt; &gt; later.
&gt; &gt;&gt;&gt; &gt; &gt; ~~
&gt; &gt;&gt;&gt; &gt; &gt;
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt;&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt;&gt;&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt; &gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; ---------------------------------------------------------------------
&gt; &gt;&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; &gt;&gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt; 

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remove dependency for concurrent.jar</title>
<author><name>=?ISO-8859-1?Q?Nuno_S=E9nica?= &lt;nsenica@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200910.mbox/%3c6fb0a54a0910011213s7767761bl97968541f6109e22@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6fb0a54a0910011213s7767761bl97968541f6109e22@mail-gmail-com%3e</id>
<updated>2009-10-01T19:13:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Aaron,

Sorry to bother you again with this issue..

Are there any news regarding this ?

Best regards,
Nuno

On Mon, Sep 21, 2009 at 16:23, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:

&gt; Hi Aaron :)
&gt;
&gt; Here I am again querying you on the status of this task.
&gt;
&gt; Did you have the chance the start it ? :) How it is going.
&gt;
&gt; Best regards,
&gt; Nuno Sénica
&gt;
&gt;
&gt; On Fri, Aug 28, 2009 at 11:31, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:
&gt;
&gt;&gt; Hi Aaron
&gt;&gt;
&gt;&gt; Once again thanks for your inputs..
&gt;&gt;
&gt;&gt; Since it is not a matter of find and replace, maybe I'll wait a couple of
&gt;&gt; weeks so that you take on that task :)
&gt;&gt;
&gt;&gt; I'll poke by then just to know how the work is going.
&gt;&gt;
&gt;&gt; Regads and thanks a lot once again.
&gt;&gt;
&gt;&gt; Nuno
&gt;&gt;
&gt;&gt;
&gt;&gt; On Thu, Aug 27, 2009 at 16:24, Aaron Smuts &lt;asmuts@yahoo.com&gt; wrote:
&gt;&gt;
&gt;&gt;&gt; It's not a simple matter of find and replace.  If it was, I would have
&gt;&gt;&gt; done it some time back. . . .
&gt;&gt;&gt;
&gt;&gt;&gt; This is such an extensive change, it's probably best that I do it.  But
&gt;&gt;&gt; feel free to give it a try.
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;
&gt;&gt;&gt; Aaron
&gt;&gt;&gt;
&gt;&gt;&gt; --- On Thu, 8/27/09, Aaron Smuts &lt;asmuts@yahoo.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; &gt; From: Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt;&gt;&gt; &gt; Subject: Re: Remove dependency for concurrent.jar
&gt;&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt;&gt; &gt; Date: Thursday, August 27, 2009, 8:21 AM
&gt;&gt;&gt; &gt; In my first email, I pointed out
&gt;&gt;&gt; &gt; several things that would need to be changed.  You can
&gt;&gt;&gt; &gt; simply search for the util concurrent import and find them
&gt;&gt;&gt; &gt; all.  "EDU.oswego.cs.dl.util.concurrent"
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; ClockDaemon is used more than the poooled executor. . . .
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; Yes, there is a backport for JDK 1.4.  A backport
&gt;&gt;&gt; &gt; implements something available only in a new version.
&gt;&gt;&gt; &gt; In this case, the backport is of the 1.5 concurrent
&gt;&gt;&gt; &gt; library.  This allows you to compile and run in
&gt;&gt;&gt; &gt; 1.4.  But if you are running 1.5 or later, you don't
&gt;&gt;&gt; &gt; need to backport jar.
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; There are some subtle changes between the two.  But it
&gt;&gt;&gt; &gt; should be perfectly possible to get it working in a few
&gt;&gt;&gt; &gt; days.  Take a crack at it if you want.  I'll get
&gt;&gt;&gt; &gt; to it in about two weeks.
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; Aaron
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; --- On Thu, 8/27/09, Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt;&gt;&gt; &gt; wrote:
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; &gt; From: Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt;&gt;&gt; &gt; &gt; Subject: Re: Remove dependency for concurrent.jar
&gt;&gt;&gt; &gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt;&gt; &gt; &gt; Date: Thursday, August 27, 2009, 8:02 AM
&gt;&gt;&gt; &gt; &gt; Well i don't know the codebase so
&gt;&gt;&gt; &gt; &gt; Aaron is your better reference there
&gt;&gt;&gt; &gt; &gt; BUT...
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; Since the large majority of Doug's concurrent library
&gt;&gt;&gt; &gt; got
&gt;&gt;&gt; &gt; &gt; ported as is into
&gt;&gt;&gt; &gt; &gt; the JDK, Id start by simply taking his library out of
&gt;&gt;&gt; &gt; your
&gt;&gt;&gt; &gt; &gt; build path in
&gt;&gt;&gt; &gt; &gt; eclipse.  Then follow the errors and everywhere it
&gt;&gt;&gt; &gt; &gt; can't find a reference to
&gt;&gt;&gt; &gt; &gt; a concurrent utility, use's Eclipse's help to add the
&gt;&gt;&gt; &gt; &gt; proper import.
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; Id imagine it cant be more then a day or two of very
&gt;&gt;&gt; &gt; &gt; mechanical work...
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; Alternately, if your a perl type hacker you could try
&gt;&gt;&gt; &gt; &gt; writing a script that
&gt;&gt;&gt; &gt; &gt; would look for the string that is doug's package name
&gt;&gt;&gt; &gt; in
&gt;&gt;&gt; &gt; &gt; the file and
&gt;&gt;&gt; &gt; &gt; repalce it with the JDK package.
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; JK
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; On Thu, Aug 27, 2009 at 10:36 AM, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt;&gt;&gt; &gt; &gt; wrote:
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; Hi Jeffrey and Aaron,
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; We are currently evaluating the effort to
&gt;&gt;&gt; &gt; perform
&gt;&gt;&gt; &gt; &gt; those changes.. If the
&gt;&gt;&gt; &gt; &gt; &gt; effort is not that big, I personally, would like
&gt;&gt;&gt; &gt; to
&gt;&gt;&gt; &gt; &gt; make that change and
&gt;&gt;&gt; &gt; &gt; &gt; contribute to the community.
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; I'll need some guideline from where to start,
&gt;&gt;&gt; &gt; and
&gt;&gt;&gt; &gt; &gt; regarding that I'm
&gt;&gt;&gt; &gt; &gt; &gt; relying
&gt;&gt;&gt; &gt; &gt; &gt; on you guys :D
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; Which should be the best approach to start this
&gt;&gt;&gt; &gt; change
&gt;&gt;&gt; &gt; &gt; ?
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; Regards,
&gt;&gt;&gt; &gt; &gt; &gt; Nuno
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 15:30, Jeffrey Kesselman
&gt;&gt;&gt; &gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt;&gt;&gt; &gt; &gt; wrote:
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; The source is available, couldn't you go
&gt;&gt;&gt; &gt; through
&gt;&gt;&gt; &gt; &gt; it and change the
&gt;&gt;&gt; &gt; &gt; &gt; &gt; references yourselves?
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; That seems a lot less costly then abandoning
&gt;&gt;&gt; &gt; the
&gt;&gt;&gt; &gt; &gt; whole library.
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; Maybe you could even contribute those
&gt;&gt;&gt; &gt; changes
&gt;&gt;&gt; &gt; &gt; back to the community...
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 7:02 AM, Nuno
&gt;&gt;&gt; &gt; Sénica
&gt;&gt;&gt; &gt; &gt; &lt;nsenica@gmail.com&gt;
&gt;&gt;&gt; &gt; &gt; wrote:
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; At the company where I work for, we
&gt;&gt;&gt; &gt; have an
&gt;&gt;&gt; &gt; &gt; application which relies on
&gt;&gt;&gt; &gt; &gt; &gt; &gt; JCS
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it has proven to be a good solution
&gt;&gt;&gt; &gt; so
&gt;&gt;&gt; &gt; &gt; far. But now, we were
&gt;&gt;&gt; &gt; &gt; &gt; informed
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; about legal issues by using concurrent
&gt;&gt;&gt; &gt; lib
&gt;&gt;&gt; &gt; &gt; and we are being instructed
&gt;&gt;&gt; &gt; &gt; &gt; to
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; change the caching lib.
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; My question is if there's any plan to
&gt;&gt;&gt; &gt; use
&gt;&gt;&gt; &gt; &gt; the native concurrent instead
&gt;&gt;&gt; &gt; &gt; &gt; &gt; of
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; the lib that JSC depend on at the
&gt;&gt;&gt; &gt; moment ?
&gt;&gt;&gt; &gt; &gt; Is so, when it is planned to
&gt;&gt;&gt; &gt; &gt; &gt; &gt; be
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; available ?
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Thanks in advance.
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt; Nuno
&gt;&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt; &gt; --
&gt;&gt;&gt; &gt; &gt; &gt; &gt; ~~ Microsoft help desk says: reply hazy,
&gt;&gt;&gt; &gt; ask
&gt;&gt;&gt; &gt; &gt; again later. ~~
&gt;&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt; &gt; --
&gt;&gt;&gt; &gt; &gt; ~~ Microsoft help desk says: reply hazy, ask again
&gt;&gt;&gt; &gt; later.
&gt;&gt;&gt; &gt; &gt; ~~
&gt;&gt;&gt; &gt; &gt;
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt;&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt;&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;&gt;&gt; &gt;
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remove dependency for concurrent.jar</title>
<author><name>=?ISO-8859-1?Q?Nuno_S=E9nica?= &lt;nsenica@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c6fb0a54a0909210823y3ae257b0pb33034eec356a6f7@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6fb0a54a0909210823y3ae257b0pb33034eec356a6f7@mail-gmail-com%3e</id>
<updated>2009-09-21T15:23:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Aaron :)

Here I am again querying you on the status of this task.

Did you have the chance the start it ? :) How it is going.

Best regards,
Nuno Sénica

On Fri, Aug 28, 2009 at 11:31, Nuno Sénica &lt;nsenica@gmail.com&gt; wrote:

&gt; Hi Aaron
&gt;
&gt; Once again thanks for your inputs..
&gt;
&gt; Since it is not a matter of find and replace, maybe I'll wait a couple of
&gt; weeks so that you take on that task :)
&gt;
&gt; I'll poke by then just to know how the work is going.
&gt;
&gt; Regads and thanks a lot once again.
&gt;
&gt; Nuno
&gt;
&gt;
&gt; On Thu, Aug 27, 2009 at 16:24, Aaron Smuts &lt;asmuts@yahoo.com&gt; wrote:
&gt;
&gt;&gt; It's not a simple matter of find and replace.  If it was, I would have
&gt;&gt; done it some time back. . . .
&gt;&gt;
&gt;&gt; This is such an extensive change, it's probably best that I do it.  But
&gt;&gt; feel free to give it a try.
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; Aaron
&gt;&gt;
&gt;&gt; --- On Thu, 8/27/09, Aaron Smuts &lt;asmuts@yahoo.com&gt; wrote:
&gt;&gt;
&gt;&gt; &gt; From: Aaron Smuts &lt;asmuts@yahoo.com&gt;
&gt;&gt; &gt; Subject: Re: Remove dependency for concurrent.jar
&gt;&gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt; &gt; Date: Thursday, August 27, 2009, 8:21 AM
&gt;&gt; &gt; In my first email, I pointed out
&gt;&gt; &gt; several things that would need to be changed.  You can
&gt;&gt; &gt; simply search for the util concurrent import and find them
&gt;&gt; &gt; all.  "EDU.oswego.cs.dl.util.concurrent"
&gt;&gt; &gt;
&gt;&gt; &gt; ClockDaemon is used more than the poooled executor. . . .
&gt;&gt; &gt;
&gt;&gt; &gt; Yes, there is a backport for JDK 1.4.  A backport
&gt;&gt; &gt; implements something available only in a new version.
&gt;&gt; &gt; In this case, the backport is of the 1.5 concurrent
&gt;&gt; &gt; library.  This allows you to compile and run in
&gt;&gt; &gt; 1.4.  But if you are running 1.5 or later, you don't
&gt;&gt; &gt; need to backport jar.
&gt;&gt; &gt;
&gt;&gt; &gt; There are some subtle changes between the two.  But it
&gt;&gt; &gt; should be perfectly possible to get it working in a few
&gt;&gt; &gt; days.  Take a crack at it if you want.  I'll get
&gt;&gt; &gt; to it in about two weeks.
&gt;&gt; &gt;
&gt;&gt; &gt; Aaron
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; --- On Thu, 8/27/09, Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt;&gt; &gt; wrote:
&gt;&gt; &gt;
&gt;&gt; &gt; &gt; From: Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;
&gt;&gt; &gt; &gt; Subject: Re: Remove dependency for concurrent.jar
&gt;&gt; &gt; &gt; To: "JCS Users List" &lt;jcs-users@jakarta.apache.org&gt;
&gt;&gt; &gt; &gt; Date: Thursday, August 27, 2009, 8:02 AM
&gt;&gt; &gt; &gt; Well i don't know the codebase so
&gt;&gt; &gt; &gt; Aaron is your better reference there
&gt;&gt; &gt; &gt; BUT...
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Since the large majority of Doug's concurrent library
&gt;&gt; &gt; got
&gt;&gt; &gt; &gt; ported as is into
&gt;&gt; &gt; &gt; the JDK, Id start by simply taking his library out of
&gt;&gt; &gt; your
&gt;&gt; &gt; &gt; build path in
&gt;&gt; &gt; &gt; eclipse.  Then follow the errors and everywhere it
&gt;&gt; &gt; &gt; can't find a reference to
&gt;&gt; &gt; &gt; a concurrent utility, use's Eclipse's help to add the
&gt;&gt; &gt; &gt; proper import.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Id imagine it cant be more then a day or two of very
&gt;&gt; &gt; &gt; mechanical work...
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Alternately, if your a perl type hacker you could try
&gt;&gt; &gt; &gt; writing a script that
&gt;&gt; &gt; &gt; would look for the string that is doug's package name
&gt;&gt; &gt; in
&gt;&gt; &gt; &gt; the file and
&gt;&gt; &gt; &gt; repalce it with the JDK package.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; JK
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; On Thu, Aug 27, 2009 at 10:36 AM, Nuno Sénica &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; &gt; wrote:
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; Hi Jeffrey and Aaron,
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; We are currently evaluating the effort to
&gt;&gt; &gt; perform
&gt;&gt; &gt; &gt; those changes.. If the
&gt;&gt; &gt; &gt; &gt; effort is not that big, I personally, would like
&gt;&gt; &gt; to
&gt;&gt; &gt; &gt; make that change and
&gt;&gt; &gt; &gt; &gt; contribute to the community.
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; I'll need some guideline from where to start,
&gt;&gt; &gt; and
&gt;&gt; &gt; &gt; regarding that I'm
&gt;&gt; &gt; &gt; &gt; relying
&gt;&gt; &gt; &gt; &gt; on you guys :D
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; Which should be the best approach to start this
&gt;&gt; &gt; change
&gt;&gt; &gt; &gt; ?
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; Regards,
&gt;&gt; &gt; &gt; &gt; Nuno
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 15:30, Jeffrey Kesselman
&gt;&gt; &gt; &gt; &lt;jeffpk@gmail.com&gt;
&gt;&gt; &gt; &gt; wrote:
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; The source is available, couldn't you go
&gt;&gt; &gt; through
&gt;&gt; &gt; &gt; it and change the
&gt;&gt; &gt; &gt; &gt; &gt; references yourselves?
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; That seems a lot less costly then abandoning
&gt;&gt; &gt; the
&gt;&gt; &gt; &gt; whole library.
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; Maybe you could even contribute those
&gt;&gt; &gt; changes
&gt;&gt; &gt; &gt; back to the community...
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; On Thu, Aug 27, 2009 at 7:02 AM, Nuno
&gt;&gt; &gt; Sénica
&gt;&gt; &gt; &gt; &lt;nsenica@gmail.com&gt;
&gt;&gt; &gt; &gt; wrote:
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; &gt; At the company where I work for, we
&gt;&gt; &gt; have an
&gt;&gt; &gt; &gt; application which relies on
&gt;&gt; &gt; &gt; &gt; &gt; JCS
&gt;&gt; &gt; &gt; &gt; &gt; &gt; and it has proven to be a good solution
&gt;&gt; &gt; so
&gt;&gt; &gt; &gt; far. But now, we were
&gt;&gt; &gt; &gt; &gt; informed
&gt;&gt; &gt; &gt; &gt; &gt; &gt; about legal issues by using concurrent
&gt;&gt; &gt; lib
&gt;&gt; &gt; &gt; and we are being instructed
&gt;&gt; &gt; &gt; &gt; to
&gt;&gt; &gt; &gt; &gt; &gt; &gt; change the caching lib.
&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; &gt; My question is if there's any plan to
&gt;&gt; &gt; use
&gt;&gt; &gt; &gt; the native concurrent instead
&gt;&gt; &gt; &gt; &gt; &gt; of
&gt;&gt; &gt; &gt; &gt; &gt; &gt; the lib that JSC depend on at the
&gt;&gt; &gt; moment ?
&gt;&gt; &gt; &gt; Is so, when it is planned to
&gt;&gt; &gt; &gt; &gt; &gt; be
&gt;&gt; &gt; &gt; &gt; &gt; &gt; available ?
&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; &gt; Thanks in advance.
&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt;&gt; &gt; &gt; &gt; &gt; &gt; Nuno
&gt;&gt; &gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt; &gt; --
&gt;&gt; &gt; &gt; &gt; &gt; ~~ Microsoft help desk says: reply hazy,
&gt;&gt; &gt; ask
&gt;&gt; &gt; &gt; again later. ~~
&gt;&gt; &gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; --
&gt;&gt; &gt; &gt; ~~ Microsoft help desk says: reply hazy, ask again
&gt;&gt; &gt; later.
&gt;&gt; &gt; &gt; ~~
&gt;&gt; &gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; ---------------------------------------------------------------------
&gt;&gt; &gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt; &gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt;&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Block Cache and garbaged entires?</title>
<author><name>Jeffrey Kesselman &lt;jeffpk@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c330f74e70909100858g6f0e6860qcd71f7ee87136a8a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c330f74e70909100858g6f0e6860qcd71f7ee87136a8a@mail-gmail-com%3e</id>
<updated>2009-09-10T15:58:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I seem to remember a refernce to this earlier and think I am maybe running
into it myself.  I have a program that laods the cache up with a LOT of data
pushign it basically as fast as the system can into the cache.Most of the
data seems fine but a few entries are getting messed up or altogether lost.
im not *positive* its JCS's fault yet but I seem to remembr a bug being
mentioned on this lsit having to do with heavy write situations.

SO I have a couple of questions:
(1) Is there such a bug.
(2) Is there  a binary build yet with the fix and if so how do i get it?
(3) Is it possible im not closing the cache right?  Currently I do this...

        public void close() {
		CompositeCacheManager.getInstance().shutDown();	
	}



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


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Connection Details of Local to Remote cache</title>
<author><name>Aaron Smuts &lt;asmuts@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c962994.75659.qm@web38705.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c962994-75659-qm@web38705-mail-mud-yahoo-com%3e</id>
<updated>2009-09-09T14:28:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
It's RMI.  You don't have much control over it.  You can inject a custom factory if you want.

You can tune the event queue on top of the connection.  The client uses a queue.  You can
use a single threaded model or a pooled event queue.  

Aaron

--- On Tue, 9/8/09, sachamul &lt;sacha_mul@yahoo.com&gt; wrote:

&gt; From: sachamul &lt;sacha_mul@yahoo.com&gt;
&gt; Subject: Connection Details of Local to Remote cache
&gt; To: jcs-users@jakarta.apache.org
&gt; Date: Tuesday, September 8, 2009, 4:11 AM
&gt; 
&gt; Hi,
&gt;  We use JCS Remote Caching.
&gt; 
&gt; I have observed that the number of "established"
&gt; connections between Local
&gt; and Remote Cache keeps fluctuating. It varies between
&gt; approx 5-120
&gt; connection in a min or so.
&gt; 
&gt; Our application gets 100-120 requests/sec and for every
&gt; request the Local
&gt; Cache is queried and if not found then Remote Cache gets
&gt; queried. And at the
&gt; end of processing a put call happens on Local Cache, which
&gt; i think results
&gt; into a put call on the Remote Cache.
&gt; 
&gt; What i want to know is 
&gt; 1. the life cycle of the Connection between Local and
&gt; Remote Cache
&gt; 2. any configuration parameters for this connection
&gt; 3. is it pooled connection
&gt; 
&gt; Thanks in advance.
&gt; 
&gt; ^Sachin$
&gt; -- 
&gt; View this message in context: http://www.nabble.com/Connection-Details-of-Local-to-Remote-cache-tp25344143p25344143.html
&gt; Sent from the JCS - Users mailing list archive at
&gt; Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Connection Details of Local to Remote cache</title>
<author><name>sachamul &lt;sacha_mul@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c25344143.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25344143-post@talk-nabble-com%3e</id>
<updated>2009-09-08T11:11:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,
 We use JCS Remote Caching.

I have observed that the number of "established" connections between Local
and Remote Cache keeps fluctuating. It varies between approx 5-120
connection in a min or so.

Our application gets 100-120 requests/sec and for every request the Local
Cache is queried and if not found then Remote Cache gets queried. And at the
end of processing a put call happens on Local Cache, which i think results
into a put call on the Remote Cache.

What i want to know is 
1. the life cycle of the Connection between Local and Remote Cache
2. any configuration parameters for this connection
3. is it pooled connection

Thanks in advance.

^Sachin$
-- 
View this message in context: http://www.nabble.com/Connection-Details-of-Local-to-Remote-cache-tp25344143p25344143.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC Auxillary cache using Websphere Datasource</title>
<author><name>Vishal Sinha &lt;vishal_sinha21@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c25263395.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25263395-post@talk-nabble-com%3e</id>
<updated>2009-09-02T18:45:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Sure Thomas,
I will give it a try.

Regards
Vishal



Thomas Vandahl-2 wrote:
&gt; 
&gt; 
&gt; Would you consider opening a JIRA issue to attach the files there? As a
&gt; unified diff if I may ask? I would be very much interested to commit
&gt; them if you checked the CLA checkbox in JIRA. I could need something
&gt; like this myself.
&gt; 
&gt; Bye, Thomas.
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/JDBC-Auxillary-cache-using-Websphere-Datasource-tp20267122p25263395.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC Auxillary cache using Websphere Datasource</title>
<author><name>Vishal Sinha &lt;vishal_sinha21@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c25263360.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25263360-post@talk-nabble-com%3e</id>
<updated>2009-09-02T18:43:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hey Aaron,

I was not able to find the flexibility in jcs to configure a websphere
datasource for disk cache. And instead of using db url and db credentials to
create a connection at runtime, I would like to use datasource.

So, I modifed the code so that instead of giving the db url for property
jcs.auxiliary.JDBC.attributes.url if datasource jndi name is configured then
a datasource will be used. But i do have a dependency in the code that the
jndi name should have "jdbc/"

Regards
Vishal


Aaron Smuts wrote:
&gt; 
&gt; What did you change?   I don't understand your last message.
&gt; 

-- 
View this message in context: http://www.nabble.com/JDBC-Auxillary-cache-using-Websphere-Datasource-tp20267122p25263360.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC Auxillary cache using Websphere Datasource</title>
<author><name>Aaron Smuts &lt;asmuts@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c688107.95518.qm@web38706.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c688107-95518-qm@web38706-mail-mud-yahoo-com%3e</id>
<updated>2009-09-02T18:12:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
What did you change?   I don't understand your last message.

--- On Wed, 9/2/09, Vishal Sinha &lt;vishal_sinha21@yahoo.com&gt; wrote:

&gt; From: Vishal Sinha &lt;vishal_sinha21@yahoo.com&gt;
&gt; Subject: Re: JDBC Auxillary cache using Websphere Datasource
&gt; To: jcs-users@jakarta.apache.org
&gt; Date: Wednesday, September 2, 2009, 8:58 AM
&gt; 
&gt; Yes, I was looking for the same myself but was not able to
&gt; find it.Â  I have
&gt; added one class JCSDataSourceHelper and modified the
&gt; existing class
&gt; JDBCDiskCache. I have tried to keep it as low risk, and jcs
&gt; code will behave
&gt; as it used to do if we revert back to old configuration in
&gt; cache.ccf.
&gt; 
&gt; For the datasource to work, the only change required in
&gt; cache.ccf is:
&gt; jcs.auxiliary.JDBC.attributes.url=jdbc/jcsDataSource
&gt; that is, specify datasource jndi instead of DB url
&gt; 
&gt; I have the dependency in the code that datasource jndi name
&gt; should start
&gt; with â€śjdbc/â€ť, so pls take care of this.
&gt; 
&gt; I am attaching the files. They will go inside
&gt; org.apache.jcs.auxiliary.disk.jdbc package.
&gt; 
&gt; Regards
&gt; Vishal Sinha
&gt; 
&gt; http://www.nabble.com/file/p25260446/JDBCDiskCache.java
&gt; JDBCDiskCache.java 
&gt; 
&gt; http://www.nabble.com/file/p25260446/JCSDataSourceHelper.java
&gt; JCSDataSourceHelper.java 
&gt; -- 
&gt; View this message in context: http://www.nabble.com/JDBC-Auxillary-cache-using-Websphere-Datasource-tp20267122p25260446.html
&gt; Sent from the JCS - Users mailing list archive at
&gt; Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: jcs-users-help@jakarta.apache.org
&gt; 
&gt; 

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC Auxillary cache using Websphere Datasource</title>
<author><name>Thomas Vandahl &lt;tv@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c4A9EAD0C.7080806@apache.org%3e"/>
<id>urn:uuid:%3c4A9EAD0C-7080806@apache-org%3e</id>
<updated>2009-09-02T17:36:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Vishal Sinha wrote:
&gt; Yes, I was looking for the same myself but was not able to find it.  I have
&gt; added one class JCSDataSourceHelper and modified the existing class
&gt; JDBCDiskCache. I have tried to keep it as low risk, and jcs code will behave
&gt; as it used to do if we revert back to old configuration in cache.ccf.
&gt; 
&gt; For the datasource to work, the only change required in cache.ccf is:
&gt; jcs.auxiliary.JDBC.attributes.url=jdbc/jcsDataSource
&gt; that is, specify datasource jndi instead of DB url
&gt; 
&gt; I have the dependency in the code that datasource jndi name should start
&gt; with â€śjdbc/â€ť, so pls take care of this.
&gt; 
&gt; I am attaching the files. They will go inside
&gt; org.apache.jcs.auxiliary.disk.jdbc package.

Would you consider opening a JIRA issue to attach the files there? As a
unified diff if I may ask? I would be very much interested to commit
them if you checked the CLA checkbox in JIRA. I could need something
like this myself.

Bye, Thomas.

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC Auxillary cache using Websphere Datasource</title>
<author><name>Vishal Sinha &lt;vishal_sinha21@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-jcs-users/200909.mbox/%3c25260446.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25260446-post@talk-nabble-com%3e</id>
<updated>2009-09-02T15:58:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Yes, I was looking for the same myself but was not able to find it.  I have
added one class JCSDataSourceHelper and modified the existing class
JDBCDiskCache. I have tried to keep it as low risk, and jcs code will behave
as it used to do if we revert back to old configuration in cache.ccf.

For the datasource to work, the only change required in cache.ccf is:
jcs.auxiliary.JDBC.attributes.url=jdbc/jcsDataSource
that is, specify datasource jndi instead of DB url

I have the dependency in the code that datasource jndi name should start
with â€śjdbc/â€ť, so pls take care of this.

I am attaching the files. They will go inside
org.apache.jcs.auxiliary.disk.jdbc package.

Regards
Vishal Sinha

http://www.nabble.com/file/p25260446/JDBCDiskCache.java JDBCDiskCache.java 

http://www.nabble.com/file/p25260446/JCSDataSourceHelper.java
JCSDataSourceHelper.java 
-- 
View this message in context: http://www.nabble.com/JDBC-Auxillary-cache-using-Websphere-Datasource-tp20267122p25260446.html
Sent from the JCS - Users mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
</feed>
