On Wednesday 21 May 2008 15:26:05 [EMAIL PROTECTED] wrote: Hallo,
> The approach seems great, just don't forget you must have a different
> endpoint for each created resource, using reference parameters. The link I
> sent covers that but it makes a lot of sense to play with it as a learning
I had a look at how subscriptions work. But I cannot find a code exampe on how
a ERP is actually created. Can you give me a hint? For example the
SimpleNotificationProducer as a method #subscribe. But that method get the
ERP as parameter, so It was already created before.
What did I miss?
> public class MyAdvertisementCapability extends AbstractWsResourceCapability
> implements AdvertisementCapability {
>
> // is called to create a new producer
> public EndpointReference addAdvertisement() throws SoapFault {
> ResourceManager manager = getResource().getResourceManager();
>
> String endpoint = getAdvertiseContextPath();
> WsResource advertise = null;
>
> advertise = (WsResource) manager.createResource(endpoint);
>
> EndpointReference epr = advertise.getEndpointReference();
>
> return epr;
> }
>
> @Override
> public void initialize() throws SoapFault {
> super.initialize();
>
> //
> // find pullpoint resource type so we can create instances of it
> // in createPullPoint()
> //
> ResourceManager manager = getResource().getResourceManager();
> advertisePath =
> manager.getResourceContextPath(AdvertisementCapability.class);
> }
> }
Jan
--
Jan Torben Heuer Institute for Geoinformatics
[EMAIL PROTECTED] Robert-Koch-Strasse 26-28
+49 251 83-31960 48151 Münster, Germany
signature.asc
Description: This is a digitally signed message part.
