@ page import="java.util.*" %>
@ page import="javax.naming.*" %>
@ page import="com.oracle.bpel.client.Locator" %>
@ page import="com.oracle.bpel.client.NormalizedMessage" %>
@ page import="com.oracle.bpel.client.dispatch.IDeliveryService" %>
try{
String title="CALLING FROM JSP";
String xml =
"<ns1:DBSensorNotifierProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/DBSensorNotifier\">"
+ "<ns1:input>"+title+"</ns1:input>"
+"</ns1:DBSensorNotifierProcessRequest>";
Hashtable jndi = new Hashtable();
// assign RMI port which can be found in OAS console
jndi.put(Context.PROVIDER_URL, "ormi://localhost:12401/orabpel");
jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
jndi.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
jndi.put(Context.SECURITY_CREDENTIALS, "asdf1234");
jndi.put("dedicated.connection", "true");
// domain id and domain password
Locator locator = new Locator("default","bpel",jndi);
IDeliveryService ds = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
NormalizedMessage nm = new NormalizedMessage();
nm.addPart("payload",xml);
ds.post("DBSensorNotifier","initiate",nm);
out.println("SEND");
}catch(Exception e){
e.printStackTrace();
throw e;
}