Skip to Content
0
Former Member
Jan 04, 2011 at 05:00 PM

JNDI lookup on a specific server node

85 Views

Hi experts

I am facing the following issue, we are loading data from ECC tables on PI JAVA memory to improve performance at runtime, this is done by a JCO,

it works fine within one Java node. But when we tested it in Productive system (with 2 java nodes) it failed because data is stored in just one Java node, so if the message does not go through

that node it does not find that data.

This is part ofe the code from the UDF where we are loading data to java memory:

props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");

* props.put(javax.naming.Context.PROVIDER_URL, "sapms://localhost:8110 ");*

* props.put("domain", "true");*

And this is part of the code from the UDF where we are getting data from memory

javax.naming.Context ctx = null;

* java.util.Hashtable props = new java.util.Hashtable(1);*

* props.put("domain", "true");*

* props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");*

props.put(javax.naming.Context.PROVIDER_URL, "sapms://localhost:8110");

Can someone give me some light about how to send data to both nodes or how to do the data lookup into a specific node??

Thanks in advanced.

Emmanuel