Hi,

I've two problems related to Client Notification using GT4:

Problem 1)

I'm trying to enable notification on a remote java client with no Globus installed. As soon as I try notificationConsumerManager.startListening(); this results in :

Failed to acquire notification consumer home instance from registry. Caused by 
javax.naming.NameNotFoundException: Name services is not bound in this Context

As this machine is unlikely to have a meaningful $GLOBUS_LOCATION (which I understand is a solution, i.e. -DGLOBUS_LOCATION=$GLOBUS_LOCATION, on machines where globus is installed) is there an alternative for non-globus machines?


Problem 2)

On a machine with Globus installed (and therefore with $GLOBUS_LOCATION) the result for startListening() in

      // returns a 
org.globus.wsrf.impl.notification.ClientNotificationConsumerManager
      notifConsumerManager = NotificationConsumerManager.getInstance();
      notifConsumerManager.startListening();

is :

java.lang.ClassCastException: org.apache.naming.ResourceRef cannot be cast to 
org.globus.wsrf.impl.notification.NotificationConsumerHome
        at 
org.globus.wsrf.NotificationConsumerManager.initializeConsumerHome(NotificationConsumerManager.java:95)
        at 
org.globus.wsrf.impl.notification.ClientNotificationConsumerManager.startListening(ClientNotificationConsumerManager.java:66)
        at CallGRAM2.main(CallGRAM2.java:225)

I don't understand how I'm getting a org.apache.naming.ResourceRef returned for casting!


Any explanations/solutions would be much appreciated.

gef

Reply via email to