On Dec 7, 2007 7:22 AM, martymusk <[EMAIL PROTECTED]> wrote:
>
> Thanks Bruce,
> it's clear what you mean! But I want instance2 publish copy of received
> message, without trigger of QuartzComponent.
> In particular, the snippet code concern to message's copy is the following:
>
> log.info("Copia del messaggio...");
> try{
> NormalizedMessage copia = (NormalizedMessage)message.clone();
> log.info("Il messaggio รจ stato copiato!");
> log.info("Body is: " +
> sourceTransformer.toString(copia.getContent()));
> }catch (CloneNotSupportedException e ){
> e.printStackTrace();
> }
> catch(TransformerException e){
> e.printStackTrace();
> }
>
> where method clone() is implemented in NormalizedMessageImpl and
> NormalizedMessage interface extends Cloneable.
I'm not sure what you mean by showing the code snippet above.
> Now, instance2 has to publish this "copia" to "receiveTopic". I've to employ
> Quartz Component?
No, the Quartz component is not required to do this. If you're
sticking with the lightweight components (the one's used in the
ws-notification example) then you could use the publisher to send the
message to the receiveTopic exactly the way that way it is done in the
instance3/servicemix3.xml.
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/