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.
Now, instance2 has to publish this "copia" to "receiveTopic". I've to employ
Quartz Component?
I hope you can help me!
Thank you!
Martina
bsnyder wrote:
>
> On Dec 7, 2007 5:45 AM, martymusk <[EMAIL PROTECTED]> wrote:
>>
>> Hy Bruce, thanks for answer...
>> Yes, it's right! But I've resolved this problem. I had to update jars...
>>
>> Can I post another question to you?
>> After instance2 received message, I've added some code.
>> In particular, after instance2 received message, it makes copy of it.
>> The question is:
>> How instance2 can send this copy back to instance1?
>> Or rather, how instance2 can publish copy and instance1 receive it?
>> Some ideas?
>
> If you're still referring to the ws-notification example, you'd have
> to create a publisher in instance2, a subscriber in instance1 and then
> pubisher a message to a topic. WS-Notification is very similar to JMS.
> There are some docs here:
>
> http://servicemix.apache.org/ws-notification-clustered.html
>
> There's also a good sequence diagram for WSN here:
>
> http://servicemix.apache.org/example-scenario.html
>
> 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/
>
>
--
View this message in context:
http://www.nabble.com/Servicemix-in-eclipse-tf4955962s12049.html#a14213242
Sent from the ServiceMix - User mailing list archive at Nabble.com.