[Vysper] EhCache implementation - Some queries

2009-07-31 Thread Ashish
Have implemented EhCache based LatestPresenceCache. Yet to test it.
Did some refactoring, added a Base Cache class etc. Not yet committed :-(

Have few queries
1. EhCache 1.6.1 (latest release) is not part of Central Maven repo's.
So question is, Can I use it? If not what's the way forward

2. Config file - What's the best place to put config file and use it
in code at runtime.

Essentially, the cache configuration is in the file, and I need to
refer to the file
while creating the cache. So how do I do it?

Need code something like CacheManager.createCache(config/ehcache.xml);

Any pointers?

-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal


Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Niklas Gustavsson
On Fri, Jul 31, 2009 at 8:39 AM, Ashishpaliwalash...@gmail.com wrote:
 1. EhCache 1.6.1 (latest release) is not part of Central Maven repo's.
 So question is, Can I use it? If not what's the way forward

Check with the EhCache developers if they can upload it. If they
won't, or doesn't show any interest, request an upload yourself
(http://maven.apache.org/guides/mini/guide-central-repository-upload.html).
Until that's complete, I got a temporary Maven repo that we already
use for Smack. If you send me the files (preferably with a complete
POM, source and javadoc JARs offlist, I'll upload them.

/niklas


Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Ashish
On Fri, Jul 31, 2009 at 12:45 PM, Niklas Gustavssonnik...@protocol7.com wrote:
 On Fri, Jul 31, 2009 at 8:39 AM, Ashishpaliwalash...@gmail.com wrote:
 1. EhCache 1.6.1 (latest release) is not part of Central Maven repo's.
 So question is, Can I use it? If not what's the way forward

 Check with the EhCache developers if they can upload it. If they
 won't, or doesn't show any interest, request an upload yourself
 (http://maven.apache.org/guides/mini/guide-central-repository-upload.html).
 Until that's complete, I got a temporary Maven repo that we already
 use for Smack. If you send me the files (preferably with a complete
 POM, source and javadoc JARs offlist, I'll upload them.

They have hosted the stuff in their own repository (I missed this part)
http://oss.sonatype.org/content/repositories/sourceforge-releases/net/sf/ehcache/

Maven Central Repo's have the older versions.

Let me try and see if I can get it there

-- 
thanks
ashish


Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Bernd Fondermann
Hi Ashish,

On Fri, Jul 31, 2009 at 08:39, Ashishpaliwalash...@gmail.com wrote:
 Have implemented EhCache based LatestPresenceCache. Yet to test it.

Great! :-)

 Did some refactoring, added a Base Cache class etc. Not yet committed :-(

 Have few queries
 1. EhCache 1.6.1 (latest release) is not part of Central Maven repo's.
 So question is, Can I use it? If not what's the way forward

 2. Config file - What's the best place to put config file and use it
 in code at runtime.

Please put it into src/main/config and put this directory on the
classpath when starting the server.
You should then be able to do:

  CacheManager.createCache(config/ehcache.xml);


 Essentially, the cache configuration is in the file, and I need to
 refer to the file
 while creating the cache. So how do I do it?

 Need code something like CacheManager.createCache(config/ehcache.xml);

 Any pointers?

HTH,

  Bernd


Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Bernd Fondermann
If you feel confident, refactor it to resources.

Bernd

On 2009-07-31, Ashish paliwalash...@gmail.com wrote:
 2. Config file - What's the best place to put config file and use it
 in code at runtime.

 Please put it into src/main/config and put this directory on the
 classpath when starting the server.
 You should then be able to do:

 Hmm! Let me try. Will it work from the TestCase?

 Just checked MINA code, the config files have been kept in resources
 folder. See Chat example.
 Either ways, let me code and can find the exact place later.

 --
 thanks
 ashish

 Blog: http://www.ashishpaliwal.com/blog
 My Photo Galleries: http://www.pbase.com/ashishpaliwal


-- 
Sent from Google Mail for mobile | mobile.google.com


Ftplet Properties

2009-07-31 Thread Pogue, Doug
The main documentation wiki for ftplet has the following xml for
configuring a ftplet:

 

ftplets 

   ftplet name=ftplet1

  beans:bean class=org.apache.ftpserver.examples.MyFtplet

beans:property name=foo value=123 /  

/beans:bean

/ftplet

  /ftplets

 

How do you get the value for the foo property in the Ftplet class? 

 

Doug Pogue
CA 
Sr Software Engineer
doug.po...@ca.com
mailto:doug.po...@ca.com   http://www.ca.com/ 



Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Ashish
On Fri, Jul 31, 2009 at 5:37 PM, Bernd
Fondermannbernd.fonderm...@googlemail.com wrote:
 If you feel confident, refactor it to resources.

 Bernd

Done :- )
Its working. Will commit the changes tomorrow. Have to write couple of
more test cases.

-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal


Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Ashish
On Fri, Jul 31, 2009 at 6:56 PM, Jeff Genenderjgenen...@apache.org wrote:
 Contact Greg Luck (the founder).  He is really nice and usually is pretty
 responsive about getting ehcache into central.

Thanks Jeff. Will definitely contact Greg.

Anyways this is one interesting post from his blog
http://gregluck.com/blog/archives/2009/05/anyone_with_a_p.html

This explains why he is using the current repos

 Jeff


-- 
thanks
ashish


Re: [Vysper] EhCache implementation - Some queries

2009-07-31 Thread Jeff Genender
Then open a JIRA at Codehaus for Maven Repos and ask Jason if he would  
push it to central too.  He also is a good guy and usually will do  
that for you unless there are some nasty licensing issues.


Jeff


On Jul 31, 2009, at 7:47 AM, Ashish wrote:

On Fri, Jul 31, 2009 at 6:56 PM, Jeff Genenderjgenen...@apache.org  
wrote:
Contact Greg Luck (the founder).  He is really nice and usually is  
pretty

responsive about getting ehcache into central.


Thanks Jeff. Will definitely contact Greg.

Anyways this is one interesting post from his blog
http://gregluck.com/blog/archives/2009/05/anyone_with_a_p.html

This explains why he is using the current repos


Jeff



--
thanks
ashish




Unable to reply to a posted question

2009-07-31 Thread Sai Pullabhotla
My reply to one of the questions on the forum is being rejected by the
Apache mail server. Any one has any idea why? Below is the returned message:



This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

dev@mina.apache.org

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient
domain. We recommend contacting the other email provider for further
information about the cause of this error. The error that the other server
returned was: 552 552 spam score (5.8) exceeded threshold (state 18).

  - Original message -

MIME-Version: 1.0
Received: by 10.216.88.7 with SMTP id z7mr574449wee.19.1249053706797; Fri,
31
   Jul 2009 08:21:46 -0700 (PDT)
In-Reply-To: 4700784fc6e6214a8818f3524684f095084ca...@usilms11.ca.com
References: 4700784fc6e6214a8818f3524684f095084ca...@usilms11.ca.com
Date: Fri, 31 Jul 2009 10:21:46 -0500
Message-ID: 44ed9df20907310821j597eccbci3d5ff87d91a0a...@mail.gmail.com
Subject: Re: Ftplet Properties
From: Sai Pullabhotla sai.pullabho...@jmethods.com
To: dev@mina.apache.org
Content-Type: multipart/alternative; boundary=0016e6dab0597fc6a0047001fad1

--0016e6dab0597fc6a0047001fad1
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

I believe your ftplet, MyFtplet, needs to have a setFoo method which takes
the appropriate argument. The setFoo is called when initilizing the Ftplet
and you can do what ever you want to with that property.

Sai Pullabhotla
www.jMethods.com http://www.jmethods.com/

   - Message truncated -


Sai Pullabhotla
www.jMethods.com


Re: Ftplet Properties

2009-07-31 Thread Niklas Gustavsson
On Fri, Jul 31, 2009 at 3:03 PM, Pogue, Dougdoug.po...@ca.com wrote:
 The main documentation wiki for ftplet has the following xml for configuring
 a ftplet:

 ftplets
    ftplet name=ftplet1
   beans:bean class=org.apache.ftpserver.examples.MyFtplet
† beans:property name=foo value=123 /
 /beans:bean
 /ftplet
   /ftplets

 How do you get the value for the “foo” property in the Ftplet class?

You need to create a Javabean property on your Ftplet, that is, create
getter and setter methods. In this case:

public int getFoo() { // implementation }

public void setFoo(int foo) { // implementation }

/niklas


Re: Unable to reply to a posted question

2009-07-31 Thread Niklas Gustavsson
On Fri, Jul 31, 2009 at 5:25 PM, Sai
Pullabhotlasai.pullabho...@jmethods.com wrote:
 My reply to one of the questions on the forum is being rejected by the
 Apache mail server. Any one has any idea why? Below is the returned message:

Try resending as a plain text mail, Apache mailing lists frown on HTML
emails :-)

/niklas


Re: Unable to reply to a posted question

2009-07-31 Thread Sai Pullabhotla
Thanks, let us see if this gets there without bouncing back!

Sai Pullabhotla
www.jMethods.com


On Fri, Jul 31, 2009 at 2:18 PM, Niklas Gustavssonnik...@protocol7.com wrote:
 On Fri, Jul 31, 2009 at 5:25 PM, Sai
 Pullabhotlasai.pullabho...@jmethods.com wrote:
 My reply to one of the questions on the forum is being rejected by the
 Apache mail server. Any one has any idea why? Below is the returned message:

 Try resending as a plain text mail, Apache mailing lists frown on HTML
 emails :-)

 /niklas