1 Reply Latest reply: Jan 1, 2013 10:01 PM by tmiddlet RSS

    oracle coherence in BPEL

    praveen435
      HI,
      I am trying to use coherence in bpel.I took one synchronous bpel with default values. I used one java embedded activity where i worte code to invoke coherence.The code in the java embedded activity is as below:
      try
      {               

      String input = null;
      input= input=(String)((oracle.xml.parser.v2.XMLElement) getVariableData("inputVariable","payload","/client:process/client:input")).getFirstChild().getNodeValue();
      NamedCache myCache = CacheFactory.getCache("mycache");
      myCache.put("Name1",input);
      System.out.println("Value in cache is " + myCache.get("Name1"));
      setVariableData("outputVariable","payload","/client:processResponse/client:result", "Hello" +input);       
      }
      catch(Exception e)
      {               
      System.out.println("exception"+e.getMessage());
      }

      I attached coherence.jar in lib folder

      I followed the below link for the same
      http://svgonugu.wordpress.com/2011/09/03/coherence-in-bpel11g/

      The code is executing without any errors.But when i tried to see the value in coherence console(coherence.cmd), by connecting to mycache ,the value is not showing.

      Any suggestions would be great.

      Regards,
      Praveen