Hi,
This may be a very basic question, but I have not been able to find a
answer myself yet...
I've got the following code:
Topic topic = ...
URI producerEndpointURI = new URI(producerEndpointURL);
EndpointReference epr = new EndpointReference(producerEndpointURI);
String webAppRoot = "/ossj-tck-wsn-consumer/services";
String contextPath = webAppRoot + "/consumer";
URI address = getLocalAddress(contextPath, consumerPort);
EndpointReference consumer = new EndpointReference(address);
// null filter == send all messages to consumer
producerClient = new NotificationProducerClient(epr);
producerClient.setTrace(true);
wsnPropagator.subscribe(wsnTopicQName, this);
producerClient.subscribe(consumer, null, null);
The question I now have it how do I till the producer that the client
wants to subscribe to a specific Topic.
As a background, I'm building the client side and the guys building the
server side that sends out the notification expect something like
<wsnt:TopicExpression
Dialect="http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Simple">
System/JSR264/ApplicationType/OrderManagement/Application/0-11;0-0;ReferenceImplementation/Comp/XVTEventTopic
</wsnt:TopicExpression>
as part of the subscribe request. I can't find a way to tell the
producer the topicexpression.
Is there an example that illustrates this?
Regards,
Gero
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]