Thanks Dan,
Yep, I think there's a bug.  Both my resource and SubscriptionManager
resource has this capability:

        <capability>
 
<capability-uri>http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceT
ermination</capability-uri>
 
<java-capability-class>org.apache.muse.ws.resource.lifetime.impl.SimpleI
mmediateTermination</java-capability-class>
        </capability> 

But, when my client destroys either the resource or the
SubscriptionClient, the subscriber doesn't receive any notifications.
Looking in the code, SimpleImmediateTermination.destroy() just calls
getResource().shutdown().  I can't find anywhere in the resource code or
its capabilities code that sends the actual termination notification.

If you can repeat this behavior, I can open a JIRA for this.


-----Original Message-----
From: Daniel Jemiolo [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 04, 2007 11:33 AM
To: [email protected]
Subject: Re: subscribe expired notification

You should be getting a WSRL termination notification IF the
subscription resource includes the WSRL capabilities. These
notifications should be no different than the termination notifications
for other ws-resource types. 
If a resource (subscription or otherwise) is destroyed and you don't see
a message on the WSRL termination topic, it's a bug. Here's the code
that enables this feature:

 
http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsn-imp
l/src/org/apache/muse/ws/notification/impl/SimpleNotificationProducer.ja
va?revision=522022&view=markup

Specifically, look at the initializeCompleted() method:

//
// if the resource supports either WS-RL capability, add support // for
the WS-RL termination topic // if
(resource.hasCapability(WsrlConstants.IMMEDIATE_TERMINATION_URI) || 
    resource.hasCapability(WsrlConstants.SCHEDULED_TERMINATION_URI))
    addTopic(WsrlConstants.TERMINATION_TOPIC_QNAME);



"Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 05/04/2007 
03:54:21 AM:

> I looked thru the WS-Notification specs, and it doesn't say anything
> about sending a notification to a subscriber when the subscription
> expires or is destroyed.  Does anyone know if this is a requirement?
> When a resource instance is destroyed, Muse doesn't send a
notification
> about it.  Also, when the subscriptions are destroyed along with the
> resource, no notifications are sent either.
> 
> I assume these types of notifications are something we must implement,
> if it is not a WS-N or WS-RL requirement?
> 


---------------------------------------------------------------------
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