I guess what I am looking at is why does the SetTerminationTimeProvider
in line 131 call the setTerminationTime function directly on the
resource and not call it through the resource property interface.  Like
I show below.  Is it not required to actually have the resource
property?  If it is then doing it this way will insure that any
subsctiptions to a topic defined on that resource would work.  Or am I
not thinking about this correctly.

 

Line 131 in SetTerminationTimeProvider.java

((ResourceLifetime) resource).setTerminationTime(termTime);

 

Should be replaced with:

ResourceProperty prop = resource.getResourcePropertySet().get(new
QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-
1.2-draft-01.xsd", "TerminationTime"));

prop. set(0,cal);

 

Shannon Hastings

co-Director

Software Research Institute

Department of Biomedical Informatics

Ohio State University

 

Office:  (614) 292-9461

Lab:  (614) 292-9845

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

From: Rachana Ananthakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 08, 2007 4:35 PM
To: Shannon Hastings; [email protected]
Subject: RE: [gt-user] SetTerminationTimeProvider and Notificaiton

 

Shannon,

 

In that case, you will need to add an explicit topic for tracking the
termination value change. Is the termination time RP added as a topic?
Is that a standard topic? In the WS Lifetime specification I don't see
any topic other than the ResourceTermination. The SetTerminationProvider
cannot assume a ReflectionRP as I mentioned in my previous email. 

 

Also, you reference a globus tutorial where this works. Which one are
you referring to? Can you paste a code snippet please ?

 

Rachana

 

________________________________

From: Shannon Hastings [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 08, 2007 11:35 AM
To: Rachana Ananthakrishnan; [email protected]
Subject: RE: [gt-user] SetTerminationTimeProvider and Notificaiton

 

I guess what I am looking for is notification when the actual value
changes, not when it is destroyed.  When the value of the termination
time resource property.

 

Shannon Hastings

co-Director

Software Research Institute

Department of Biomedical Informatics

Ohio State University

 

Office:  (614) 292-9461

Lab:  (614) 292-9845

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

From: Rachana Ananthakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 08, 2007 12:19 PM
To: Shannon Hastings; [email protected]
Subject: RE: [gt-user] SetTerminationTimeProvider and Notificaiton

 

The method is invoked in ResourceHomeImpl, just before a resource is
destroyed. Looking at the WS Resource lifetime specification, section 6,
the implementation is correct.

 

"A WS-Resource MAY choose to support the pattern of notifying interested
parties when it is destroyed. "

 

I am not sure I completely parse the point about reflection resource
property. But that is only one of the implementations of RP and I don't
expect SetTerminationProvider to expect that resources would use only
the implementation. Are you suggesting that subscriptions to the
termination topic don't receive notification? Can you show a test case
please?

 

Thanks,

Rachana

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Shannon Hastings
Sent: Monday, October 08, 2007 8:51 AM
To: [email protected]
Subject: [gt-user] SetTerminationTimeProvider and Notificaiton

 

It seems that the SetTerminationTimeProvider does not support
Notification.  It has some code in there for sending a specific
ResourceTermination notification but it does not ever seem to be called.
Is this correct?  Also, I would assume that the
SetTerminationTimeProvider would get a handle to the
ReflectionResourceProperty and call the set on it for setting the value
instead of calling "setTerminationTime" directly on the resource and
bypassing the ReflectionResourceProperty.  Doing it the way that it is
coded now is bypassing the notification code of the Topic that wrapps
the ResourceProperty.  If it were coded the way that it is suggested in
the globus tutorial the notification would automatically work.  Is this
right?

 

Shannon Hastings

co-Director

Software Research Institute

Department of Biomedical Informatics

Ohio State University

 

Office:  (614) 292-9461

Lab:  (614) 292-9845

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

 

Reply via email to