Sample invoke COM from JAVA

Hi,
I already tested a sample program for calling EJB from COM.
But, I wanna test calling COM from JAVA.
Where can I get a sample for this?
Thanks in advance.

attached is an example that demonstrates calling a COM
object from a JSP page.
damon
"YI Kim" <[email protected]> wrote in message
news:3be7a4a3$[email protected]..
>
Hi,
I already tested a sample program for calling EJB from COM.
But, I wanna test calling COM from JAVA.
Where can I get a sample for this?
Thanks in advance.
[JSPtoCOM.zip]

Similar Messages

  • Invoke BPEL from Java for 11g

    I searched the forum and here's the code for 10g
    Trying to Invoke BPEL from JAVA
    I'm using 11g, do you know if the way to invoke BPEL is the same as 10g? If not, do you know what the differences are?
    Thanks,
    Andy

    I got the below errors when I try to call a composite in 11g. I wrote it in a simple java program and run it within jdeveloper. I'm using the adf binding. When I passed in an empty NormalizedMessage object then it worked fine. But when I passed in the payload data then I got the errors below. It did create an instance on my soa server but the instance did not call the pbel process. Do you have any ideas?
    StringBuffer inputPayload = new StringBuffer();
    inputPayload.append("<ns1:process xmlns:ns1=\"http://xmlns.oracle.com/BPELScheduler/LineItemProcessEventList\">");
    inputPayload.append("<ns1:input>test</ns1:input>");
    inputPayload.append("</ns1:process>");
    Locator locator = LocatorFactory.createLocator(jndiProps);
    Composite composite = locator.lookupComposite("default/BPELScheduler!1.0");
    Service service = composite.getService("lineitemprocesseventlist_client_ep_java");
    NormalizedMessage input = new NormalizedMessageImpl();
    input.getPayload().put("payload",inputPayload);
    service.post("process",input);
    ============ ERROR ========================================
    oracle.fabric.common.FabricInvocationException: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
         at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:106)
         at com.masyc.scheduler.BPELDriver.callBpel(BPELDriver.java:54)
         at com.masyc.scheduler.BPELDriver.main(BPELDriver.java:24)
    Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1031_WLStub.executeServiceMethod(Unknown Source)
         at oracle.soa.management.internal.ejb.EJBLocatorImpl.executeServiceMethod(EJBLocatorImpl.java:875)
         at oracle.soa.management.internal.facade.ServiceImpl.post(ServiceImpl.java:98)
         ... 2 more
    Caused by: java.lang.RuntimeException: oracle.fabric.common.FabricInvocationException
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:866)
         at sun.reflect.GeneratedMethodAccessor2796.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy238.executeServiceMethod(Unknown Source)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBean_4vacyo_FacadeFinderBeanImpl.java:1610)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: oracle.fabric.common.FabricInvocationException
         at oracle.fabric.CubeServiceEngine.post(CubeServiceEngine.java:538)
         at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:142)
         at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:194)
         at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:204)
         at sun.reflect.GeneratedMethodAccessor1043.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy195.post(Unknown Source)
         at oracle.integration.platform.blocks.sdox.JavaEntryBindingComponent.post(JavaEntryBindingComponent.java:250)
         at oracle.soa.management.internal.ejb.impl.FacadeFinderBeanImpl.executeServiceMethod(FacadeFinderBeanImpl.java:864)
         ... 30 more
    Edited by: user8742475 on Nov 10, 2009 1:39 PM

  • How to invoke Matlab from Java

    Hi, I want to pass some data generated from Java class to Matlab, then invoke Matlab from Java to run the computation program (file written in Matlab, myfile.m). I know Matlab can use classes generated from Java, how to drive Matlab from Java?
    I appreciate your help!
    yaya

    According to their documentation, you can't. Having said that, again according to their documentation, there are plans to support this in future releases.
    m

  • Urgent :: 11g Invoking Composite from Java/From Webservice Proxy

    Hi All,
    i have a requirement where in need to when ever the exception occurs it invokes custom java and then it invoked a BPEL process to handle the errror.
    in 10.1.3.4 i used to Java Api to invoke the BPEL process and it works fine.
    1) . now we are migrating to 11g, i know this API wont work with 11g as the server is on weblogic and client librairies may be different for invoking in composite it in 11g. if any body has invoked a composite using java and the using 11g libraries to invoke the composite ? if so can you please post here ?
    2). otherway i tried to create a Web Service proxy using Jdeveloper for the composite, when i test it using Jdeveloper it is working fine, but when i place it in the lib directory, im getting a bad response from server 503.
    please see logs below for the second approch
    Caused by: javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invokeOneWay(DispatchImpl.java:989)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:224)
         at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invokeOneWay(OracleDispatchImpl.java:102)
         at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:447)
         ... 61 more
    Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:209)
         at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:73)
         at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64)
         at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134)
         at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90)
         at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273)
         at oracle.j2ee.ws.common.async.RequestorImpl.invokeOneWay(RequestorImpl.java:169)
         at oracle.j2ee.ws.client.jaxws.DispatchImpl.invokeOneWay(DispatchImpl.java:985)
         ... 64 more
    Caused by: javax.xml.soap.SOAPException: Bad response: 503 Service Unavailable
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.processHttpResponseCode(HttpSOAPConnection.java:603)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:469)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:1203)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:207)
         ... 71 more
    if any body has already implemented the invocation of composite in one of above approaches, please let me know.
    any pointers to resolve this will be of great help
    Thanks
    Nadh

    Here is sample to invoke a composite from JSP, this should be same from Java Class. Note that the composite should use adf binding and not ws binding.
    Here is snippet of composite.xml service:
    <service name="rmibpel_client_ep" ui:wsdlLocation="RMIBPEL.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/Application1/RmiVsSOAP/RMIBPEL#wsdl.interface(RMIBPEL)"/>
    <binding.adf serviceName="rmibpel_client" registryName=""/> </service>
    Note the binding should be binding.adf and not binding.ws
    Sample jsp:
    <%@page import="java.util.Hashtable" %>
    <%@page import="java.util.Map" %>
    <%@page import="javax.naming.Context" %>
    <%@page import="oracle.soa.management.facade.Locator" %>
    <%@page import="oracle.soa.management.facade.LocatorFactory" %>
    <%@page import="oracle.fabric.common.NormalizedMessage" %>
    <%@page import="oracle.soa.management.util.NormalizedMessageImpl" %>
    <%@page import="oracle.soa.management.facade.Composite" %>
    <%@page import="oracle.soa.management.facade.Service" %>
    <html>
    <head>
    <title>Invoke HelloWorld</title>
    </head>
    <body>
    <%
    String msg = request.getParameter("world");
    if(msg == null)
    msg = "World";
    String xml = "<process xmlns=\"http://xmlns.oracle.com/Application1/RmiVsSOAP/RMIBPEL\"><input>" + msg + "</input></process>";
         Hashtable jndiProps = new Hashtable();
         jndiProps.put(Context.PROVIDER_URL,"t3://strec03-1.us.oracle.com:8001/soa-infra");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL,"weblogic");
    jndiProps.put(Context.SECURITY_CREDENTIALS,"weblogic");
    jndiProps.put("dedicated.connection","true");
    Locator locator = LocatorFactory.createLocator(jndiProps);
         String compositeDN = "default/RmiVsSOAP!1.0";
    Composite composite = locator.lookupComposite(compositeDN);
    String serviceName = "rmibpel_client_ep";
    Service deliveryService = composite.getService(serviceName);
    System.out.println("composite=" + composite);
    System.out.println("deliveryServce=" + deliveryService);
    // construct the normalized message and send to Oracle WLS
    NormalizedMessage nm = new NormalizedMessageImpl();
    nm.getPayload().put("payload", xml );
         NormalizedMessage res = null;
         try {
              res = deliveryService.request("process", nm);
         catch(Exception e)
         e.printStackTrace();
    Map payload = res.getPayload();
    out.println( "BPELProcess HelloWorldService executed!<br>");
    //See below output in log file
    oracle.xml.parser.v2.XMLElement elem =
         (oracle.xml.parser.v2.XMLElement) payload.get("payload");
    elem.print(System.out);
    %>

  • How to invoke javafx from java code

    hi all,
    i'm trying to invoke my .fx class from java class, but getting exception.
    Exception thrown in JavaFX pretty printing: java.io.FileNotFoundException: \tmp\___FX_SCRIPT___.fxdump from StringInputBuffer (The system cannot find the path specified)
    Exception thrown in JavaFX pretty printing: java.io.FileNotFoundException: \tmp\___FX_SCRIPT___.fxdump from StringInputBuffer (The system cannot find the path specified)
    javax.script.ScriptException: compilation failed
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.parse(JavaFXScriptEngineImpl.java:255)
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.eval(JavaFXScriptEngineImpl.java:145)
    at com.sun.tools.javafx.script.JavaFXScriptEngineImpl.eval(JavaFXScriptEngineImpl.java:136)
    at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
    at myclockproject.Main2.main(Main2.java:34)
    I read in article http://java.sun.com/developer/technicalArticles/scripting/javafx/javafx_and_java/ about including javafxc.jar in classpath .. could some one tell me what classpath he meant, i have included it in my environment variable and also project libraries .. still getting error :(

    coolsayan.2009 wrote:
    thanx.is communication api required?but is the communication api available for windows?its available for linux and sparc??Are you referring to the COMM API that is referenced in the first link when you google - the one entitled "How to Send SMS using Java Program (full code sample included)"? If so, Here: [http://java.sun.com/products/javacomm/|http://java.sun.com/products/javacomm/]
    what to do in serverside?is any change required in web.xml or any jndi setup in serverside if i call the java class from a jsp page?I don't know, are you planning on making your class available through JNDI?

  • Trouble to invoke BPEL from Java Client following rmi example

    I still have troubles to invoke my BPEL process from Java Client by following tutorial sample of 102.InvokingProcesses/rmi .
    I created my Java class within NetBeans IDE. And the following line of code return null for url,
    java.net.URL url = ClassLoader.getSystemResource("context.properties");
    I think that I need to have SystemResource set up somewhere, how should I do that?

    if you using oc4j.. then please make a small change in oc4j_context.properties
    from
    java.naming.provider.url=[java.naming.provider.url]
    to
    java.naming.provider.url=ormi://hostname/orabpel
    And please make sure the context.properties file which gets copied to classes/context.properties has this above entry. For more details please refer to build.xml under rmi folder.
    Please do let me know if you face any issue.

  • [HELP] How to invoke BPEL from JAVA program via calling WSDL?

    Dear all,
    Customer want to invoke BPEL process in their Java program by calling BPEL WSDL, but not successfully.
    Does BPEL support this calling way? If so, would pls give a sample?
    BTW, they do not want to use API of OraBPEL.jar.
    Thanks in advance.

    Krishna, Not sure what you mean by 'normal' web service....I mean, is BPEL service not normal, is it not as per WS standards. It would be interesting if you could shed some light on that.
    On the question of calling BPEL, I thought there were two methods - one is using the BPEL PM API, which uses the locator class to get hold of BPEL PM instance and then call a deployed bpel service
    The other way is to develop a web service proxy using JDeveloper. Its a very simple process. Once you do that, you can call the proxy from Java.

  • Invoke bpel from java - Failed to create "ejb/collaxa/system/DeliveryBean

    Hi,
    I have a very simple java class to invoke CreditRatingProcess sample:
    String ssn = null;
    if (ssn == null)
    ssn = "123-12-1234";
    String xml =
    "<ssn xmlns=\"http://services.otn.com\">" + ssn + "</ssn>";
    Locator locator = new Locator("default", "oc4jadmin", "localhost");
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage();
    nm.addPart("payload", xml);
    NormalizedMessage res =
    deliveryService.request("CreditRatingService", "process", nm);
    Map payload = res.getPayload();
    System.out.println("BPELProcess CreditRatingService executed!<br>");
    System.out.println("Credit Rating is " + payload.get("payload"));
    When I try to execute, I have the following error:
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at docsdemo.bpelapi.BPELProcess.callProcess(BPELProcess.java:84)
         at docsdemo.bpelapi.tests.Test1.<init>(Test1.java:14)
         at docsdemo.bpelapi.tests.Test1.main(Test1.java:18)
         at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at docsdemo.bpelapi.BPELProcess.callProcess(BPELProcess.java:84)
         at docsdemo.bpelapi.tests.Test1.<init>(Test1.java:14)
         at docsdemo.bpelapi.tests.Test1.main(Test1.java:18)
    I use SOA suite 10.1.3 Developer Preview and JDeveloper 10.1.3
    Can you help me?
    Cyryl
    Message was edited by:
    cbalmati
    Message was edited by:
    cbalmati

    Hi,
    Thanks fro your answer. But it does not work ...
    My demo runs on my laptop (SOA10.1.3 DP / JDeveloper 10.1.3)
    This is my code:
    public void test() {
    String xml = "<name xmlns=\"http://samples.otn.com/helloworld\">" + "test" + "</name>";
    Hashtable jndi = null;
    jndi = new Hashtable();
    // Change the PROVIDER_URL to your BPEL PM host...
    jndi.put(Context.PROVIDER_URL, "ormi://localhost/orabpel");
    jndi.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    jndi.put(Context.SECURITY_PRINCIPAL, "admin");
    jndi.put(Context.SECURITY_CREDENTIALS, "welcome");
    jndi.put("dedicated.connection", "true");
    Locator locator = null;
    try {
    locator = new Locator("default","bpel", jndi);
    } catch (ServerException e) {
    e.printStackTrace();
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to Oracle BPEL Process Manager
    NormalizedMessage nm = new NormalizedMessage( );
    System.out.println(xml);
    nm.addPart("payload" , xml );
    try {
    deliveryService.post("HelloWorld", "initiate", nm);
    } catch (ServerException e) {
    e.printStackTrace();
    } catch (RemoteException e) {
    e.printStackTrace();
    and that's my error:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
         at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
         at docsdemo.ui.XMLMessageHelper.test(XMLMessageHelper.java:62)
         at docsdemo.ui.tests.Tests.<init>(Tests.java:15)
         at docsdemo.ui.tests.Tests.main(Tests.java:20)
    I don't understand because I created a simple JSP to invoke helloWorld process (same code), it's works !!
    Any suggestion?
    Cyryl

  • Trying to Invoke BPEL from JAVA

    Hi
    I want to invoke a bpel process deployed on 10.1.3.X SOA Server from my java program.
    I have inculded a properties file which have following details:
    orabpel.platform=ias_10g
    java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    java.naming.provider.url=opmn:ormi://adc60009rems.us.oracle.com:6083:oc4j_soa/orabpel
    java.naming.security.principal=oc4jadmin
    java.naming.security.credentials=welcome1
    JAVA Code is:
    Locator locator = new Locator("default","bpel",props);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    NormalizedMessage nm = new NormalizedMessage( );
    nm.addPart("payload", xml );
    System.out.println(nm);
    deliveryService.post("FixXREF", "initiate", nm);
    where xml is the soap message.
    The problem is, BPEL process is getting invoked but not with the given xml.
    Input to BPEL is empty.
    Can someone please let me know, what I am missing or what is the correct process to call a BPEL from Java.
    Thanks
    Sushama

    Hi,
    how does your payload (xml) looks like? I would recommend you to start a Process using the BPEL Console and then compare both payloads. Maybe you are missing some namespaces.

  • Calling a Visual C++ COM from java

    Hi all, I have a problem very strange:
    I have developed , using JNI, a java class wich interacts with a COM Interface.
    When I use the java class that implements jni connection form the main method in my java app, it works fine, but when I try to access this class in a different class outside main, I obtain an error creating the Com instance. Anyone knows why?
    //C++ Com initialize
    BOOL CECardIdWorks::Initialize()
    CUtilLog oUtilLog = CUtilLog();
    try
    // Get our instance of the PrintServer's IDataInput interface:
    HRESULT hr = m_pDataInput.CreateInstance(__uuidof(PrintServer::DataInput2));
    if (FAILED(hr))
         oUtilLog.NuevoLog("CECardIdWorks","InitCard","Fallo en m_pDataInput.CreateInstance.");
              return TRUE;
    catch (_com_error& ce)
    oUtilLog.NuevoLog("CECardIdWorks","Initialize","Excepcion , Initialize exception.");
    LogComError(ce);
    AfxMessageBox("Initialize Exception. Exit");
    return FALSE;
    }

    This is the C++ code part.
    // extract of code in ECard.cpp
    //class intance
    CECardIdWorks* oECardIdWorks = new CECardIdWorks();
    // Initialize
    JNIEXPORT jint JNICALL Java_ECard_Initialize(JNIEnv *env, jobject obj)
         CUtilLog oUtilLog = CUtilLog();
         oUtilLog.NuevoLog("CECard","Java_ECard_Initialize","Begining Initialize.");
         if (oECardIdWorks->Initialize())
              return EC_SUCCESS;
         else
              return EC_ERROR_NOT_INITIALIZED;
    // extract of code in ECardIdWorks.cpp
    BOOL CECardIdWorks::Initialize()
         CUtilLog oUtilLog = CUtilLog(); 
         try
                // Get our instance of the PrintServer's IDataInput interface:
                HRESULT hr = m_pDataInput.CreateInstance(__uuidof(PrintServer::DataInput2));
                if (FAILED(hr))
                     oUtilLog.NuevoLog("CECardIdWorks","InitCard","Fallo en m_pDataInput.CreateInstance.");
                return TRUE;
       catch (_com_error& ce)
             oUtilLog.NuevoLog("CECardIdWorks","Initialize","Excepcion , Initialize exception.");
           LogComError(ce);
           AfxMessageBox("Initialize Exception. Exit");
           return FALSE;
    // extract of code in ECardIdWorks.h
    class CECardIdWorks : public CWinApp
    public:
         // Print Server IDataInput
         PrintServer::IDataInput2Ptr      m_pDataInput;    
         DECLARE_MESSAGE_MAP()
    // Extract of code from StdAfx.h
    #import "D:\Archivos de programa\Datacard\ID Works\bin\PrintServer.DLL"This is the java code part
    public class ECard {
        // Load the dll that exports functions callable from java
        static {System.loadLibrary("ECard");}
           // Imported function declarations
            public native int Initialize();
         public void ECard()
         public static void main(String [] args)
          ECard t = new ECard();
         int intResult=0;
          // Initialize
          intResult = t.Initialize();
          System.out.println("->Initialize. Return value:" + intResult);
    }My problem is that, if this code
    ECard t = new ECard();
         int intResult=0;
          // Initialize
          intResult = t.Initialize();
          System.out.println("->Initialize. Return value:" + intResult);is outside main method, for example, in a method of another class, I get an error like this:
    Com error 80004005
    Source: PrintServer.IDataInput.2
    Description: Error creating instance of card object
    Please help me I�m desperate...

  • Accessing COM from Java using JCOM

    When I tried to access a simple COM component with the com2java generated files,
    I got the following error. Can someone help me with this?
    <Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP> <[WebAppServletContext(366665,Defaul
    tWebApp,/DefaultWebApp)] Servlet failed with IOException
    AutomationException: 0x80070005 - General access denied error
    at com.bea.jcom.bm.b(bm.java)
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.bf.a(bf.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
    at jsp_servlet.__jcom._jspService(__jcom.java:91)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2456)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

    I did everything earlier except the second point you mentioned. Everything started
    working as soon as I added a line to call com.bea.jcom.AuthInfo.setDefault() method.
    I didn't think this was necessary since I already gave permissions to that user
    using DCOMCNFG. Thanks for you help.
    "BEA jCOM Support" <[email protected]> wrote:
    >
    Your jcom.log indicates you are trying to access the COM object with
    Authentication
    "BXDOMAIN/akumar". Add this user to the default access/launch permissions
    (using
    DCOMCNFG) on the machine hosting the COM object.
    Also, make sure you put this in your Java code:
    com.bea.jcom.AuthInfo.setDefault("BXDOMAIN", "akumar", "<password>");
    "Anil Kumar" <[email protected]> wrote:
    Here's the log
    jCOM checkconfig 6.1 Beta - Copyright (C) 2001 BEA Systems, Inc. Copyright
    (C)
    1999-2001 Linar Ltd. and Intrinsyc Software, Inc. http://www.bea.com/jcom/
    --- Checking OS ---
    Microsoft Windows NT 5.0 (Build: 2195) Service Pack 2
    --- Checking Time ---
    Time: 15:20:49
    Date: 11/13/01
    --- opening typelib: JComTestProject.exe ---
    Class Name = JComTest
    Class Id = 742db055-77df-404a-a579-e0cbfd3007a7
    Class Name = JComTestProject.JComTest
    AppID = {742DB055-77DF-404A-A579-E0CBFD3007A7}
    {742DB055-77DF-404A-A579-E0CBFD3007A7} = JComTestProject.JComTest
    Implemented Categories = no value(259)
    {40FC6ED5-2438-11CF-A3DB-080036F12502} = no value(259)
    LocalServer32 = D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe
    ("D:\Program Files\Microsoft Visual Studio\VB98\Projects\JCom\JComTestProject.exe"
    file exists)
    ProgID = JComTestProject.JComTest
    Programmable = no value(259)
    TypeLib = {E0BF28D6-6347-4017-8D2E-52B145CE47DA}
    VERSION = 2.0
    --- Checking Username ---
    USER:WARANGAL\akumar
    GROUP:WARANGAL\None
    GROUP:\Everyone
    ALIAS:WARANGAL\ORA_DBA
    ALIAS:BUILTIN\Administrators
    ALIAS:BUILTIN\Users
    ALIAS:BUILTIN\Power Users
    GROUP:\LOCAL
    GROUP:NT AUTHORITY\INTERACTIVE
    GROUP:NT AUTHORITY\Authenticated Users
    --- Checking DCOM settings ---
    DCOM version supports accessing Java from COM
    EnableDCOM = Y
    DefaultLaunchPermission:
    Access enabled for NT AUTHORITY\SYSTEM
    Access enabled for NT AUTHORITY\INTERACTIVE
    Access enabled for BUILTIN\Administrators
    --- Connecting to SCM ---
    Connecting to SCM on localhost
    Connect successful
    --- IP configuration ---
    Hostname = warangal.bxsys.com
    Address 0 = 172.18.32.102
    Connecting to SCM on 172.18.32.102
    Connect successful
    Address 1 = 169.254.25.129
    Connecting to SCM on 169.254.25.129
    Connect successful
    --- Winsock Information ---
    Version: 202
    Description: WinSock 2.0
    --- Environment Variables ---
    ALLUSERSPROFILE=C:\WINNT\Profiles\All Users
    APPDATA=C:\WINNT\Profiles\anil\Application Data
    BOOKSHELF=D:\ifor\WIN\BIN\EN_US
    CLASSPATH=.;d:\mystuff\javastuff\jarz;d:\weblogic\lib\weblogic510sp6boot.jar;d:/jdk122/javamail112/mail.jar;d:/jdk122/jaf-1.0.1/activation.jar;d:/jdk122/jsdk2.1/server.jar;d:/jdk122/jsdk2.1/servlet.jar;D:\WebLogicCommerceServer3.2\classes;D:\Oracle\Ora81\jdbc\lib\classes111.zip;D:\weblogic\lib\WebLogic_RDBMS.jar;D:\Oracle\Ora81\orb\classes\yoj.jar;D:\Oracle\Ora81\orb\classes\share.zip
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=WARANGAL
    ComSpec=C:\WINNT\system32\cmd.exe
    HELP=D:\IBMVJava3.0\eab\;D:\IBMVJava20\eab\;D:\ifor\WIN\BIN
    HOMEDRIVE=C:
    HOMEPATH=\
    I4_INSTALL_DRIVE=D:
    I4_LANG=EN_US
    IPF_PATH32=D:\ifor\WIN\BIN\EN_US
    J2EE_CLASSPATH=D:\j2ee121\lib\cloudscape\cloudspace.jar;
    JAVA_HOME=d:\jdk13
    LOGONSERVER=\\WARANGAL
    NLSPATH=D:\ifor\LS\MSG\%L\%N
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=d:\jdk13\bin;D:\Oracle\Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStuff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Java2\Bin;C:\Program
    Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0803
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    StarTeam=D:\StarTeam 4.0\StarTeam.ini
    StarTeamApp=D:\StarTeam 4.0
    STLicense=D:\StarTeam 4.0
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=D:\TEMP
    TMP=D:\TEMP
    USERDOMAIN=WARANGAL
    USERNAME=akumar
    USERPROFILE=C:\WINNT\Profiles\anil
    windir=C:\WINNT
    WorkstationID=D:\StarTeam 4.0\ConnectionManager.ini
    "Damon Hon" <[email protected]> wrote:
    hi anil,
    can you run the checkconfig tool as well
    checkconfig /typelib <path to tlb> config.log
    and post the log
    thanks
    damon
    "Anil Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Hi Damon,
    I am just calling the default constructor of the com2Java generatedclass(in this
    case, it is JComTest.class) from a simple JSP. I am not calling anymethods on
    this component. Here are the contents of the log file.
    jCOM version 6.1 Beta logger started in immediate mode at Tue Nov
    13
    12:32:41
    CST 2001 at level 3 (VERBOSE)
    License:
    Classloader is bootstrap
    java.version is 1.3.1
    java.vendor is Sun Microsystems Inc.
    java.class.path is..;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\BEA\wlserver6.1\jcom\lib\jcom.
    jar;D:\Projects\JCom\src
    java.library.path isD:\BEA\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;d:\jdk13\bin;D:\Oracle\
    Ora81\bin;D:\Oracle\Ora81\orb\bin;C:\WINNT;C:\WINNT\system32;C:\WINNT\system
    32\WBEM;d:\jdk13\bin;D:\CVS;D:\ifor\WIN\BIN;D:\ifor\WIN\BIN\EN_US;D:\JavaStu
    ff\jakarta-ant-1.3\bin;D:\BEA\wlserver6.1\jcom\bin;D:\WebGain\VisualCafe\Jav
    a2\Bin;C:\Program
    Files\Common Files\WebGain Shared;D:\WebGain\VisualCafe\Bin;
    os.name/os.arch/os.version is Windows 2000/x86/5.0
    1005676361251 +: New RemOxidResolver initialised for Net={{ 0x7,127.0.0.1[135]}}
    Sec={}
    1005676361271 +: Looking for free connection handler to 127.0.0.1[135]for
    BXDOMAIN/akumar
    1005676361311 : OXID Resolver started. Listening on port 3895
    1005676361321 : Object Exporter binding is Net={{ 0x7,172.18.32.102[3896]},
    { 0x7, 169.254.25.129[3896]}} Sec={{ 0xa, 0xffff, }, { 0x0, 0x0,
    OXID
    is 1005676361311
    1005676361331 +: Opening a TCP/IP connection to 127.0.0.1[135] withauth
    BXDOMAIN/akumar
    1005676361361 : Sending RemoteActivation request to Net={{ 0x7,127.0.0.1[135]}}
    Sec={} to activate cls/iid742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5
    1005676361832 : Sending IRemoteActivation::RemoteActivation request,with
    RPC
    call id 2 on ipid null
    1005676361892 : Received the response toIRemoteActivation::RemoteActivation
    request, with RPC call id 2
    1005676361902 +: Remote server's version: 5.1
    1005676361942 *: Error activating742db055-77df-404a-a579-e0cbfd3007a7/fbcd1246-3557-4b95-8046-cfec093310b5:
    AutomationException: 0x80070005 - General access denied error
    "Damon Hon" <[email protected]> wrote:
    hi anil,
    can you post the snippet of java code that is calling the methods
    from your COM object and post the following logs
    jcom.log
    - In your java code, add the following line to the start of your
    initialization code.
    com.bea.jcom.Log.logImmediately(3, "c:\\temp\\jcom.log");
    config.log
    - Run the checkconfig utility to generate this log
    checkconfig /typelib <path to tlb> config.log
    thanks
    damon
    "Anil Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Thanks for the info. I had already done this before. I checked
    everything
    a dozen
    times. I am not sure why this is happening. Please let me know,
    if
    there
    are any
    other ideas.
    "Damon Hon" <[email protected]> wrote:
    hi anil,
    The exception you are getting, indicates that your java client
    does
    not
    have
    sufficient permissions to access your com component.
    if you are running your java code and com component on the same
    machine,
    - make sure that your jcom/bin directory is in your path environment
    variable
    - run the DCOMCNFG tool to configure accesss for the interactiveuser
    or the
    user you are logged in as.
    if you are not running your java code under windows, add this
    call
    in
    your
    java code:
    com.bea.jcom.AuthInfo.setDefault("nt domain", "user", "password");
    - use the DCOMCNFG tool to configure has dcom access to the
    com
    component for this user
    let me know if this helps
    damon
    "Anil Kumar" <[email protected]> wrote in message
    news:[email protected]...
    When I tried to access a simple COM component with the com2java
    generated
    files,
    I got the following error. Can someone help me with this?
    <Nov 8, 2001 3:37:24 PM CST> <Error> <HTTP><[WebAppServletContext(366665,Defaul
    tWebApp,/DefaultWebApp)] Servlet failed with IOException
    AutomationException: 0x80070005 - General access denied error
    at com.bea.jcom.bm.b(bm.java)
    at com.bea.jcom.Rpc.a(Rpc.java)
    at com.bea.jcom.bf.a(bf.java)
    at com.bea.jcom.Dispatch.createDispatch(Dispatch.java)
    at com.bea.jcom.Dispatch.<init>(Dispatch.java)
    at
    com.ak.jcomtest._JComTestProxy.<init>(_JComTestProxy.java:33)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:105)
    at com.ak.jcomtest.JComTest.<init>(JComTest.java:77)
    at jsp_servlet.__jcom._jspService(__jcom.java:91)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2039)
    at
    weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

  • Invoke DBAdapter from Java Callout

    Hello,
    in OSB I need to invoke a DB-Adapter from a Java Callout. How can I achieve this?
    I cound not find any documentation about this (javadoc etc).
    Horst

    Ideally you should not need to access DB adapter from a Java callout. Use java callout for transformations, get back the transformed data, and call a business service based on DB Adapter.
    Alternatively, call java callout and make write code in Java to access DB directly using Weblogic datasource and connection pool.
    And if you dont want to do it any other way, create a business service based on the said DB Adapter, create a wrapper proxy(which internally calls the DB adapter based business service) of Any XML type with HTTP transport or even a WSDL based webservice, and call this from your Java code.

  • How to invoke browser from java program in Solaris ?

    Hi all,
    Is there any way by which a browser can be opened with specific URL, from a java program in solaris OS ?
    In windows I am able to do so by using "rundll32 url.dll,FileProtocolHandler".
    Thanks,
    ngs

    Well, how is a browser normally invoked on Solaris? And have a look at JDIC, maybe it helps you.

  • Using COM from java

    hi all,
    I'm trying to find a way to call functions from a C++ COM object (.tlb).
    Since I don't have a clue about C++ I thought about using an API or Tool that will help me to generate the appropriate wrappers and stubs to use with java.
    Does someone have any idea of an API or Tool which is suitable for the above scenario?
    many thanks in advance..........

    See
    http://simtel.net/product.php[id]60701[sekid]0[SiteID]simtel.net

  • Accessing com from java

    I wanted to access the com components of Visio using java. Can anyone help me with the source code as the code will help me in understanding how it does muh better.
    Hope some one has worked on this problem and have the solution ready, if so please help me.
    Thanks for all the help in advance.
    Sandy

    You need to use a java-com bridge like
    Jacob -
    http://users.rcn.com/danadler/jacob/
    jcom - http://sourceforge.net/projects/jcom
    bridge2java - ibm alpha/developerworks(i am not sure)
    Hope this helps,
    Ramkumar

Maybe you are looking for

  • How can I update multiple rows in table using a single form button and checkboxes

    I have a project where the visitors can select multiple productos and once the click on the PURCHAS button it updates the selected records.

  • How can I search a PDF document for annotations/comments

    I have a long 50+ page pdf document with many annotations and commnets.  How can I search this document to find each comment?

  • Query Data From Database and set Visibility Accordingly

    Hi there, i have a case where i have to set the rendered property of some items on my screen according to values retrieved from an sql statement. When i change a value in a listbox, that value must be given to an sql statement as a parameter (select

  • Load XLM into pl sql using xmldom

    Hi , I have problems when I use xmldom to retrieve infotmation from xml to storethe information into a table. For the first xml , I can do it , for the second one I have problems ( I can't retrieve the values I need ) and I don't know why. Please don

  • Bdocs not generated

    Hi, I have created a sales order on a stand- alone CRM box and intend to capture the order data in a Bdoc, but no Bdocs are getting generated. Can some of you help me with this. I have attached a particular action profile with the transaction type at