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 <ke...@yahoo.com> on 2010/05/04 00:03:25 UTC

Re: JMS Mailet?

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 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