The target name should probably be more like:

target="/wsrf/services/SubscriptionEndPort/home"

We're not using the "java:/comp/env"...
target="java:/comp/env/SubscriptionEndPort/home"

-----Original Message-----
From: Samuel Meder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 03, 2005 1:45 PM
To: apollo-dev
Subject: Re: Same instance of ResourceHome for 2 services

On Thu, 2005-03-03 at 19:15 +0100, Stefan Lischke wrote:
> Hi Sam
> 
> >That is the way jndi works. To create a link you need to use the 
> >resourceLink element (it has a name attribute and a target
attribute).
> >This should allow you to declare the home in one service (or where 
> >ever you want really) and link to it from the other services.
> >  
> >
> It does not seem to work, if i'm doing it right.
> First my service where i define the resource nad after this the
> resourceLink:
> 
>    <service name="SubscriptionEndPort">
>       <resource name="home"
type="org.apache.ws.eventing.SubscriptionHome">
>          <resourceParams>
>             <parameter>
>                <name>serviceClassName</name>
>                
>
<value>org.apache.ws.eventing.services.subscriber.SubscriberService</val
ue>
>             </parameter>
>             <parameter>
>                <name>resourceClassName</name>
>                <value>org.apache.ws.eventing.Subscription</value>
>             </parameter>
>             <parameter>
>                <name>wsdlTargetNamespace</name>
>                
>
<value>http://ws.apache.org/eventing/services/SubscriptionEndPort</value
>
>             </parameter>           
>             <parameter>
>                <name>resourceKeyName</name>
>                
>
<value>{http://schemas.xmlsoap.org/ws/2004/08/eventing}Identifier</value
>
>             </parameter>
>          </resourceParams>
>       </resource>
>    </service>     
>   
>    <service name="NotificationPort">
>         <resourceLink name="home" target="SubscriptionEndPort" />
>    </service>
> 
> but it still gives me the error " Name SubscriptionEndPort is not 
> bound in this Context"
> 
> any ideas

Yea, you're not using the right target name. You need something like
target="java:/comp/env/SubscriptionEndPort/home".

/Sam

> >/Sam
> >
> >  
> >
> >>I need this for the following stuff: i have a Resource which is a 
> >>Subscription, but i need 2 different services for it. The first one 
> >>gets all notifications with usenotify=false (that means with no 
> >>notify tag around, so im using my own WSRFMsg Handler) the second 
> >>one gets the SubscriptionEnd Message.
> >>
> >>any ideas?
> >>
> >>stefan
> >>
> >>
> >>--------------------------------------------------------------------
> >>- To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>    
> >>
> 
> 
--
Sam Meder <[EMAIL PROTECTED]>
The Globus Alliance - University of Chicago
630-252-1752



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


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

Reply via email to