great!


From: Kumar, Pankaj
Sent: Wednesday, April 13, 2005 4:51 PM
To: [email protected]
Subject: RE: A couple of questions on Apollo and WSRF

Thanks Sal. I will take the suggestion in (2) right away.

 

For (1), I am still debating (with myself) on what would be the best way to expose this information:

 

  1. Add a special “Finder” service.
  2. Implement WSRF ServiceGroup interface (I realize that Apollo currently doesn’t support it and I will be on my own)
  3. Use WSDM relationships among files and let the client “discover” instances. This is much more work but then my objective is to create a test system for a WSDM client.

 

/Pankaj.

 


From: Campana Jr., Salvatore J
Sent: Wednesday, April 13, 2005 12:48 PM
To: [email protected]
Subject: RE: A couple of questions on Apollo and WSRF

 

Pankaj,

 

Good Questions!

 

1. The generated home's super class (AbstractResourceHome) has a protected member m_resources....This gives you access to all the resource ids via the ResourceKeys which are the keys in the map.   Not sure where you want them exposed, but if you needed it available somewhere else you could add an operation on your home to get at the info and then have the other "thing" (service?) lookup the home from the JNDI context and invoke the operation...

 

2. You would need to associate a callback object with the resource property for dynamically changing values...Is ModifictionTime one of the spec properties?  For certain spec properties we handle things..i.e. currenttime....If its not a spec prop then you would need to implement the functionality you are talking about...i.e. a callback object which is a file change listener..when refreshProperty() is called on it, it checks to see if a file changed.....

 

-S

 


From: Kumar, Pankaj
Sent: Wednesday, April 13, 2005 3:19 PM
To: [email protected]
Subject: A couple of questions on Apollo and WSRF

Hi,

 

I had good luck with Apollo today – I was able to write a WSDL for my own “File” service, generate Java files, supply the code, compile the generated and supplied code, deploy it and test the WS Resources corresponding to files.

 

But I did come across a couple of issues/questions:

 

  1. Is there a way for me to retrieve the ResourceIds for all resources behind a particular WSRF service? I guess I could create a separate “singleton” WS Resource with a method to give me all the ids. But what is the recommended method?
  2. The ResourceProperty value I get is the one that is valid at the time when “init()” method was called on a specific resource instance. Changes coming after initialization don’t seem to get reflected. (For example, I “touched” a particular file but “ModificationTime” property still shows the creation time [which was before I started Tomcat]). Do I need to do something special?

 

/Pankaj.

Reply via email to