Hi,

I'm a little confused about initializeCompleted() and resource creation
order.  I modified the wsrf tutorial, removing the resourceCreationThread in
MyFactoryImpl.initializeCompleted() and changing it to create only a single
instance of a WsResource.  I then ran the WsrfTestClient and observed the
following message flow:

---> = outgoing message from client
<--- = incoming message into client

---> Get resource property document of service group
<--- Got resource document with expression dialect property only
----> Get resource properties of type wsrf-sg:Entry
<--- Empty response

Which meant of course, that the test client terminated.

I noticed that the muse.xml configuration initialized resources in the
following order:
WsResourceFactory
WsResource
ServiceGroupEntry
ServiceGroup

When I'd put together my muse.xml file, I'd initialized resources in the
following order:
WsResourceFactory
WsResource
ServiceGroup                     <--- Order changed
ServiceGroupEntry              <--- Order changed

Everything worked when I initialized resources as:
ServiceGroup
ServiceGroupEntry
WsResourceFactory
WsResource

So, I've some questions:
1) I thought initializeCompleted() only ran after all the other capabilities
_in all the other resources_ had completed initialization.  I guess my
understanding was wrong - it only runs after all the capabilities in the
_current resource only_ have completed initialization.

2) Is there a 'correct' order to initialize different resources in?  That
is, should ServiceGroupEntry be initialized before ServiceGroup etc.?

Thanks,
Allen
-- 
View this message in context: 
http://www.nabble.com/Resource-Initialization-Order-and-AbstractFactory.initializeCompleted%28%29-tf4686874.html#a13394522
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to