2 Replies Latest reply on Nov 20, 2012 11:11 AM by peter craddock

    port from 4.2.3 to as7

    peter craddock Novice

      When my application was deployed in a cluster the value for the provider url could be incorrect so I used the following to correct it

       

      HASessionState state = CPClusterHelper.getHASessionState();
      sb.append(state.getCurrentHAPartition().getClusterNode().getIpAddress().getHostName());
      sb.append(":");
      sb.append(state.getCurrentHAPartition().getClusterNode().getPort());

       

      I then used this to set the JNDI lookup PROVIDER_URL

      contextProps.put(Context.PROVIDER_URL, jndiURL);

       

      I dont seem to be able to get the same info from

       

      Object o = cnx.lookup("java:jboss/infinispan/container/web");
      return (EmbeddedCacheManager)o;

       

      or

      Object o = cnx.lookup("java:jboss/infinispan/container/cluster");
      return (EmbeddedCacheManager)o;

       

      Is it possible to get this info ?