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 <[email protected]>:
> Norman, do you have any idea about my previous email?
>
>
>
>
> ________________________________
> From: Kevin <[email protected]>
> To: James Users List <[email protected]>
> 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 <[email protected]>
> To: James Users List <[email protected]>
> 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 <[email protected]>:
>> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to