Bryan,
I don't think Apollo currently supports having a single endpoint that can act as both a factory and the resource instances. This is because in a service's config, you specify a ResourceKeyName that is the QName of the SOAP header to be used for disambiguation. If no ResourceKeyName is specified in the config, this indicates that the service is a singleton (e.g. a factory). Do you think this is acceptable, or do you think we ought to support having an endpoint that exposes both a factory and instances? I kind of like the way it is because it enforces the notion of one endpoint exposes one "type" of resource, which I find most intuitive.
Ian
Murray, Bryan P. wrote:
I don't know how to write the code to do this. Can you explain what needs to be done? Is this something special in the xxxHome.java generated file?
Thanks,
Bryan
-----Original Message-----
From: Campana Jr., Salvatore J Sent: Tuesday, March 15, 2005 7:30 AM
To: [email protected]
Subject: RE: Reference properties
no reference properties and the same URL withHow do you configure a service to have an endpoint for a factory with
different endpoints, one for the factory as areference properties for the instances? Or would it be better to use 2
singleton, and one for the instances with reference properties?
Exactly...
I would use the pattern as in the WSRF interop...Define your factory as
an endpoint with no resourceid, and then define the services to use a
resourceid....
-Sal
-----Original Message-----
From: Murray, Bryan P. Sent: Monday, March 14, 2005 5:42 PM
To: [email protected]
Subject: Reference properties
The tutorial has some discussion about how to configure an endpoint to accept a reference property to identify a resource or how to configure the service as a singleton.
How do you configure a service to have an endpoint for a factory with no reference properties and the same URL with reference properties for the instances? Or would it be better to use 2 different endpoints, one for the factory as a singleton, and one for the instances with reference properties?
Thanks, Bryan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
