On 10/5/06, dadade <[EMAIL PROTECTED]> wrote:

I am trying to understand the WS-Notification Example.  I was able to run the
WS-Notification Example successfully.  I read

http://servicemix.org/sm30ug/ws-notification-clustered.html
and
http://servicemix.org/site/ws-notification.html

See http://servicemix.goopen.org/sm30ug/servicemix-wsn2005.html
instead.


But I am still having questions. Can anyone help me with:

1.  For the subscriber (instance 2), the line

<sm:activationSpec id="receiver" service="test:service" endpoing="endpoint">

What is endpoint reference to? what is service reference to?  Is the service
for subscriber always service?

This component is not used (I will remove it for next release).
Just raised a JIRA (http://issues.apache.org/activemq/browse/SM-676)


2.  What does org.apache.servicemix.wsn.spring.WSNSpringComponent does?

See 
http://goopen.org/confluence/display/SM30UG/servicemix-wsn2005#servicemix-wsn2005-EmbeddingWSNotification


3.  What does http://servicemix.apache.org/demo/trace/endpoint does?

See 
http://goopen.org/confluence/display/SM30UG/WS-Notification+Clustered#WS-NotificationClustered-TheWSNoticationsubscription

"tells the WS-Notification broker to send messages to the my:trace
service (endpoint endpoint), which is a simple TraceComponent that
print messages on the console"


4. How come we are specifying the topic as property in the
org.apache.servicemix.wsn.spring.WSNSpringComponent for the subscriber but
specify the topic as property in the
org.apache.servicemix.wsn.spring.PublisherComponent not the
org.apache.servicemix.wsn.spring.WSNSpringComponent?

Sorry, I don't understand your question.  Could you explain please ?


5.  I understand that the quartz component sends the message to the
publisher.  But where is the message?  If I want to send in my own message,
which part of the file should I change?

I have updated http://servicemix.goopen.org/site/quartz.html


6.  Can you provide us some comments on the servicemix.xml files?

There is no clean doc about the whole file.
You will find informations on the container at
 
http://servicemix.goopen.org/sm30ug/6-configuring-servicemix.html#6.ConfiguringServiceMix-Containerconfiguration
For activationSpecs, you will have to refer to the javadocs :(
 
http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/jbi/container/ActivationSpec.html


7.  I would like the publisher creates its own message and sends it to the
subscriber.  The subscriber receives the message and perform some businese
logic to it received message.  What classes do I need to create?
Can you provide some examples or framework?

You can create two lightweight components, one that will create an xml
message (InOnly mep) and send it to the publisher proxy, and another one
that will receive it.  Take a look at the other example and
http://servicemix.goopen.org/site/pojo-support.html


Thanks.  I appreciate your help.

Direct questions on doc like these are good, as we can easily see
the missing bits and write them down, thx.


--
View this message in context: 
http://www.nabble.com/WS-Notification-Example-tf2386031.html#a6651290
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to