You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Kevin J <ke...@yahoo.com> on 2010/04/29 01:27:18 UTC

what things are needed for mailet development

Hi I'm new to James.

I am just trying to follow an example that I found from the web.

http://www.ibm.com/developerworks/java/library/j-james2.html

The example is trying to create a mailet and deploy to James.  My questions are:

1) I am using eclipse.  Is there any helpful plugins that I can use for James?  

2) what things are dependent to make a mailet?  I just tried to compile the example on eclipse without the hole james source code.  I just tried to include apache-mailet-base-1.0.jar, apache-mailet-2.4.jar, activation-1.1.1.jar, and mail-1.4.1.jar but it was not able to catch GenericMatcher.

Thanks in advance,
Kevin



      

Re: JMS Mailet?

Posted by Robert Gurule <rg...@lanl.gov>.
Norman,
  I understand that there's a James Server War file....  How do I use this?

Thanks,

Robert

-- 
Robert L. Gurule'
High Performance Computing
Scientific Software Engineering  (HPC-1)
Los Alamos National Laboratory, MS B295
Los Alamos, New Mexico 87545
505-665-3538 (office)
505-690-1011 (cell)


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: JMS Mailet?

Posted by Norman Maurer <no...@googlemail.com>.
Hi Kevin,

I think thats only possible in james-trunk atm. In trunk we use camel
to send messages to jms. So you could just inject the producerTemplate
and do it with it.

So just use something like htis in your mailet:

@Resource(name="producerTemplate")
public void setProducerTemplate(ProducerTemplate template) {
    this.template = template;
}

public void service(Mail mail) throws Exception {
    template.sendBody("jms:queue:name", ExchangePattern.InOnly, mail);
}


Thats just and example..

Bye,
Norman


2010/5/4 Kevin <ke...@yahoo.com>:
> Norman, do you have any idea about my previous email?
>
>
>
>
> ________________________________
> From: Kevin <ke...@yahoo.com>
> To: James Users List <se...@james.apache.org>
> Sent: Fri, April 30, 2010 10:39:26 AM
> Subject: Re: JMS Mailet?
>
> Hi Norman,
> I am interested in producing to it.
>
> ________________________________
> From: Norman Maurer <no...@googlemail.com>
> To: James Users List <se...@james.apache.org>
> Sent: Fri, April 30, 2010 7:02:35 AM
> Subject: Re: JMS Mailet?
>
> Hi Kevin,
>
> what exactly you want todo ? Consume from jms or produce to it ?
>
> Bye,
> Norman
>
>
> 2010/4/30 Kevin <ke...@yahoo.com>:
>> Just curious if there is an example using mailet for JMS (ActiveMQ or whatever) input.  Maybe, it was already talked in the old threads but can anybody provide any useful information or example?
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: JMS Mailet?

Posted by Kevin <ke...@yahoo.com>.
Norman, do you have any idea about my previous email?




________________________________
From: Kevin <ke...@yahoo.com>
To: James Users List <se...@james.apache.org>
Sent: Fri, April 30, 2010 10:39:26 AM
Subject: Re: JMS Mailet?

Hi Norman,
I am interested in producing to it.

________________________________
From: Norman Maurer <no...@googlemail.com>
To: James Users List <se...@james.apache.org>
Sent: Fri, April 30, 2010 7:02:35 AM
Subject: Re: JMS Mailet?

Hi Kevin,

what exactly you want todo ? Consume from jms or produce to it ?

Bye,
Norman


2010/4/30 Kevin <ke...@yahoo.com>:
> Just curious if there is an example using mailet for JMS (ActiveMQ or whatever) input.  Maybe, it was already talked in the old threads but can anybody provide any useful information or example?
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


      

Re: JMS Mailet?

Posted by Kevin <ke...@yahoo.com>.
Hi Norman,
I am interested in producing to it.




________________________________
From: Norman Maurer <no...@googlemail.com>
To: James Users List <se...@james.apache.org>
Sent: Fri, April 30, 2010 7:02:35 AM
Subject: Re: JMS Mailet?

Hi Kevin,

what exactly you want todo ? Consume from jms or produce to it ?

Bye,
Norman


2010/4/30 Kevin <ke...@yahoo.com>:
> Just curious if there is an example using mailet for JMS (ActiveMQ or whatever) input.  Maybe, it was already talked in the old threads but can anybody provide any useful information or example?
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


      

Re: JMS Mailet?

Posted by Norman Maurer <no...@googlemail.com>.
Hi Kevin,

what exactly you want todo ? Consume from jms or produce to it ?

Bye,
Norman


2010/4/30 Kevin <ke...@yahoo.com>:
> Just curious if there is an example using mailet for JMS (ActiveMQ or whatever) input.  Maybe, it was already talked in the old threads but can anybody provide any useful information or example?
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


JMS Mailet?

Posted by Kevin <ke...@yahoo.com>.
Just curious if there is an example using mailet for JMS (ActiveMQ or whatever) input.  Maybe, it was already talked in the old threads but can anybody provide any useful information or example?


      

Re: what things are needed for mailet development

Posted by Norman Maurer <no...@googlemail.com>.
Hi Ken,

1) Nope there is no plugin for eclipse

2) apache-base-1.0.jar should catch the GenericMatcher stuff. See:
http://svn.apache.org/viewvc/james/mailet/base/tags/apache-mailet-base-1.0/src/main/java/org/apache/mailet/base/
. Not sure why your eclipse does not show it ..

Bye,
Norman



2010/4/29 Kevin J <ke...@yahoo.com>:
> Hi I'm new to James.
>
> I am just trying to follow an example that I found from the web.
>
> http://www.ibm.com/developerworks/java/library/j-james2.html
>
> The example is trying to create a mailet and deploy to James.  My questions are:
>
> 1) I am using eclipse.  Is there any helpful plugins that I can use for James?
>
> 2) what things are dependent to make a mailet?  I just tried to compile the example on eclipse without the hole james source code.  I just tried to include apache-mailet-base-1.0.jar, apache-mailet-2.4.jar, activation-1.1.1.jar, and mail-1.4.1.jar but it was not able to catch GenericMatcher.
>
> Thanks in advance,
> Kevin
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org