Calling a JPD Process using the Stateless Container and EJBLocal Interfaces

Hello all,
We are trying to call a jpd process through EJBLocalcalls. Weblogic wrokshop generate a Stateless container through the one you can obtain the EJBLocalInterface as here:
try {
ServiceLocator serviceLocator = new ServiceLocator();
StatelessContainer_LocalHomeImpl home = (StatelessContainer_LocalHomeImpl) serviceLocator.getLocalHome("PruebaWeb.processes.process.bean.StatelessContainer");
processSLSBContIntf local = home.create();
local.ClientRequest(...);
} catch(ServiceLocatorException se) {
return "JNDI ERROR" + se.getMessage();
catch (CreateException ce) {
return "CREATE ERROR" + ce.getMessage();
ServiceLocator is a class that returns an EJBLocalHome instance from a ContextInterface.lookup() call. We pass the LOCAL_JNDI_NAME of the process as a parameter (this name is defined in weblogic-ejb-jar.xml of the process).
Debugging we see that the type of this returned object is a StatelessContainer_LocalHomeImpl. We have made a cast from EJBLocalHome to this type in order to call the create() method.
The create method returns a EJBLocal object with the methods of the process.
We think that this is the good way to acces to the local EJB interface of a jpd process but the code throw a cast exception when we made the cast from EJBLocalHome object to a StatelessContainer_LocalHomeImpl.
Could you help us??, What is the correct way to call a jpd process through a Local Interface???.
NOTE: Obviously everything is in the same EAR applicattion in order to make the local calls.
Thanks

Hmm, my mistake. First, I thought that it has something to do with literal/document/rpc-style. But instead of using types for input/output message parts in the schema, I should have used elements - that´s all.
Just for the notes :)

Similar Messages

  • Making calls using the Computers microphone and sp...

    We recently dropped our telephone Land lines,
    Stupid question:
    Can I make local phone calls (  after getting Skype credit ) to call non Skype persons, using the computers microphone and speakers only ?
    Thanks

    yes you can, but you will need either some Skype Credit, or a suitable calling subscription
    https://support.skype.com/en/category/CALLING_PHONES_SKYPEOUT/
    http://www.skype.com/en/rates/
    Regards,
    Neil

  • Error in while calling a Soap Adapter using the UDF

    hi,
    i am trying to make a call to Soap Adapter using a UDF.
    The code of the UDF is as follows :
    InputStream isPayloadStream = null;
    AbstractTrace trace= container.getTrace();
    String sService="Business Component";
    String sChannelName="Soap Channel(Sender)";
    SystemAccessor accessor=null;
    trace.addInfo("entered UDF");
    StringBuffer sb = new StringBuffer(" ");
    trace.addInfo("creating the reference file");
    sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
    sb.append("<ns0:MT_123082_UDF xmlns:ns0=\"http//infosys.com/pi/projects/png/n1\">\n");
    sb.append("<INTERCHANGECONTRLNOS>" + var1 + "</INTERCHANGECONTRLNOS>");
    sb.append("<PGPARTNERID>"var2"</PGPARTNERID>""\n""</ns0:MT_123082_UDF>");
    trace.addInfo("trigerring the SOAP channel ");
    try{
    Channel channel = LookupService.getChannel(sService,sChannelName);
    accessor = LookupService.getSystemAccessor(channel);
    isPayloadStream = new ByteArrayInputStream((sb.toString()).getBytes());
    trace.addInfo("creating the xml payload ");
    XmlPayload payload = LookupService.getXmlPayload(isPayloadStream);
    Payload result=accessor.call(payload);
    catch (Exception e){
    trace.addInfo(e.getMessage());
    finally{
    if ( accessor !=null) {
    accessor.close();
    return " ";
    The above code is throwing an error while end to end testing.
    the scenario is such,while graphical mapping a UDF will be used, which will create an Xml payload, and send this payload to another SOAP to file scenario.
    The error in the sxmb_moni is:  "Error when calling an adapter by using the communication channel CC_123085_UDF_SOAP_OUT (Party: , Service: BC_123082_REMADV_D96A, Object ID: fa9c6ee15efc30c68ec34b08034d87d1) XI AF API call failed. Module exception: 'failed to set up the channel fa9c6ee15efc30c68ec34b08034d87d1'. Cause Exception: 'Channel stopped by administrative task.'."
    Please can anyone suggest how this error can be rectified.
    regards,
    Meenakshi

    Hi,
    i have checked the communication channel and the XML. The following error occurs everytime i try to run the scenario.
    Error:
    Error when calling an adapter by using the communication channel CC_123082_UDFRECEIVER_SOAP_IN (Party: , Service: BC_123082_REMADV_D96A, Object ID: 2a895589066d30d4b2686e9d3a8d4c8d) XI AF API call failed. Module exception: 'SOAP Error'. Cause Exception: 'SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 400 Bad Request'
    Please let me know how this error can be resolved.
    Regards,
    Meenakshi

  • How do you use the "Item Containing Start/End Date" in a Calendar?

    Hi
    I want to do a calendar where the days shown will be conditional to a certain interval. Now I though I could achieve that using the Item Containing Start Date of a calendar. But it doesn't seem to work. In the help it says :
    Enter an item in the application which holds the start date of the calendar. The format of the date in this item must be YYYYMMDD.
    This is what I did here
    http://apex.oracle.com/pls/otn/f?p=34530:1::::::
    I have 3 fields. 2 for the Start Date and End Date and 1 for the "Date Item" parameter. Only the latter has an effect on the calendar display, the calendar only displays the month of the "Date Item" (in monthly mode).
    Wether or not I check "Begin at Start of Interval", it doesn't affect the way those fields are affecting the Calendar.
    So, how do we use that "Item Containing Start/End Date" parameter?

    Hello,
    does yout Script work when you begin with ?:
    Start-Process powershell -Verb runAs
    Best regards,
    Stefan
    German Orchestrator Portal ,
    My blog in English

  • Why do I get error -17500 when calling a batch file using the call executable step type?

    I am calling a batch file using the call executable step type. If the path to the batch file contains a space I get error -17500 and a message stating there was an error in "Post". For example the path to the batch file is "c:\TestWin\Test Files\...\Program.bat" When I run this I get the above mentioned error, however if I change my directory structure so the path is now "c:\TestWin\TestFiles\...\Program.bat" it runs fine. I use the browse feature to find my batch file so it is not me typing in a path incorrectly. I have removed the batch file and I get a different error stating that it couldn't find the file so it appears that for my error it can find the file but can't run it. I am
    sure that this has something to do with the fact that batch files are written in DOS but really don't want to resort to changing my directory structure on all my test stations. Is there any way to fix this problem so I can leave a space in my path?

    It appears I have figured it out. This was on another computer so I was unaware of how they used their computer. I like you got it to work in the temp directory and in fact got the program.bat file to work as long as I put it under the temp directory, but when I switched out to my TestWin directory it wouldn't work, so I removed everything from the directory except the batch file it self and it work. What I found out after adding files in one at a time is that the person had a file called "Test" with no file extension in there "c:\TestWin\" directory. Removing this file made it work. Putting the file back broke it. So it appeares that when teststand was running it followed the path saw a space and attempted to grab the "Test" file instead of bro
    wsing into the "Test Files" directory. If you create a file in your temp directory called "temp" with no file extension you will see the same problem. Thank you for your help.

  • Is there any way to not use the plugin container for firefox?

    Is there any way to not use the plugin container for firefox? Ever since I updated, my firefox browser has been crashing almost every day and it always says that the plugin container crashed, but the rest of firefox freezes up as well, so I am forced to end the process itself.

    See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
    You can set the prefs dom.ipc.plugins.enabled.* to false on the about:config page to disable the plugin-container process.
    dom.ipc.plugins.enabled (currently false by default in Firefox 3.6.6)
    dom.ipc.plugins.enabled.npswf32.dll (Flash)
    dom.ipc.plugins.enabled.npctrl.dll (Silverlight)
    dom.ipc.plugins.enabled.npqtplugin.dll (QuickTime)

  • How to Call Custom BPEL Process using JSP

    Hi All,
    I m not able to find out the way " How to deploy Custom BPEL process using JSP." Suppose I m Designing my custom BPEL process , and I want to call process through JSP.
    In order to call the BPEL process using JSP I may get the Reference from Oracle guide, But it is for Existing Example like Hello world, Order Booking.
    But I am facing the problem in order to call the Custom BPEL process.
    In case of Oracle Example it looks Simple but How to call Custom BPEL process using JSP.
    Please help me.
    Thanks&Regards
    Devesh Mishra

    hi
    The BPEL Developer guide give the way to Locate the service.can you please specify where you are getting the problem.
    Thanks,
    Sivakumar

  • I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    go to settings
    then to store
    tap your id then click sign out
    then sign back in and you should be fine

  • I am using the mac QQ and when I login it said login timeout.

    I am using the mac QQ and when I login it said login timeout.

    If you are missing using google maps - try the Nokia map app called "here"

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this?  FYI...under settings i

    If you are missing using google maps - try the Nokia map app called "here"

  • Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."

    If you are missing using google maps - try the Nokia map app called "here"

  • I recently bought a new macbook pro and set it up using the migration assistant and my mac mini.  I can't get the text message forwarding feature to work with both computers.

    I recently bought a new macbook pro and set it up using the migration assistant from my mac mini.  I can't get the text message forwarding feature to work with both computers.  It keeps saying that I only have 2 devices setup, my iPad and my macbook pro.  When I mess with the setting on my mac mini, it goes from saying that that is one of the devices to my macbook pro being the 2nd device.  I think that something happened as a result of my using the migration assistant and now it thinks that my macbook pro and my mac mini are one and the same computer.  Any ideas?

    Thanks, Sig.
    The old computer is a 2.6 Ghz Intel Core 2 Duo
    The new one is a 2.3 GHz intel core i7
    In going over this, thanks to "tallking it out" with you, I did discover the Text Edit problem.  Because I've still been unable to get the new computer text size (fonts or whatever) to match the old computer, I did not notice that the curser is now different--the line midway down the curser has to be placed on the line I am working upon, otherwise the edits go elsewhere on the page.  Now, with a bit of difficulty, I am able to get Text Edit to work correctly.
    If you have any ideas as to why my menu bar and Text Edit type are still so slow, I'd love to have them. 
    (I went through the process you suggested earlier, re my Trackpad preferences, and found no improvement.)

  • Why am I getting the error message "Can't open the illustration. The illustration contains and incomplete or garbled object description."

    I work in a graphic design firm and 4 separate people have received these messages on separate days using separate files on separate MAC computers. We are all using CS6.
    "Can't open the illustration. Could not complete the requested operation."
    "Can't open the illustration. The illustration contains an illegal operand. 1206.3.6006 % 1205.9736 1178.52 m % 1206.2236 1178.8374 I % 1206.3232 1178.% 1206.3.6006"
    "Can't open the illustration. The illustration contains an illegal or misplaced operator. ∘ê 3 0 R 508054 0 R 508055 0 R]/Order 508056 0 R/RBGroups[]>>/OCGs[5 0 R 6 0 R 7 0 R 8 0 R 9 0 R 46702 0 R 46703 0 R 46704 0 R 467"
    "Can't open the illustration. The illustration contains and incomplete or garbled object description."
    After clicking ok the file will open; however, most of the illustration is missing. We are interested in repairing our files, but we are more interesting in figuring out why this is happening and fixing it. We are nervous to even open anything for fear this will happen again.
    Please help!

    brittanyesparks,
    One thing often tried first is to create a new document and File>Place the corrupted one to see how much may be rescued that way (remember to tick Paste remembers Layers in the Layer palette flyout/dropdown first, and to untick it afterwards).
    Here is a website where you can see whether it can rescue the file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    and another similar website,
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    As far as I remember, the former is for Win and the latter for Mac.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html

  • How do I do use the custom code and format for a percentage with 2 decimals in Report Builder 3.0?

    In Report Builder 3.0, I have the following custom code entered:
      Public Function SafeDivide(Numerator as String, Denominator as String) as String
    Try
    If Numerator = “” or Denominator = “” then
    Return “-“
    End if
    If Numerator = “-“ or Denominator = “-“ then
    Return “-“
    End If
    If CDbl(Numerator) =0 or CDbl(Denominator) = 0 then
    Return “-“
    End if
    If IsNothing(Numerator) or IsNothing(Denominator) then
    Return "-"
    End if
    Return Val( ( (CDbl(Numerator) / CDbl(Denominator) )*100 ) )
    Catch
    Return "-"
    End Try
    End Function
    I call the custom code in the cell with the following equation:
      =Code.SafeDivide(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value),sum(Fields!LY_UNITS.Value))
    I have the format for the cell set to 0.00%, but it’s not being followed.
    I want the result to be formatted as a Percentage, but instead I get values like: 
    -78.9473684210
    80
    300
    -100
    I have the format for the cell set to 0.00%, but it’s not being followed.
    How do I do use the custom code and format for a percentage with 2 decimals?

    Hi AngP,
    After testing the issue in my local environment, I can reproduce it. Based on my research, I find this issue is caused by the type of Units_VAR_Percentage cell is string, while the type of CDbl(Parameters!Var_Threshold.Value) is double, so they cannot be
    compared.
    To fix this issue, we can add a hidden column (Textbox91) next to the Units_VAR_Percentage column, and type =(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value)) /sum(Fields!LY_UNITS.Value) as the expression. Then use the expression below to control the
    BackgroundColor:
    =iif(iif(reportitems!Units_VAR_Percentage.Value=CStr(format(reportitems!Textbox91.Value,"0.00%")),reportitems!Textbox91.Value,0)>CDbl(Parameters!Var_Threshold.Value),"Yellow","PaleTurquoise")
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • What is the "Data Transfer Process" in the BI7.0, and how does it work?

    Hi, experts !
    I'm fresh on BI7.0.
    What is the "Data Transfer Process" in the BI7.0, and how does it work?
    And what is it used for ?
    Could anyone help me? Plz send me some doc.
    [email protected]
    Thank u !

    HI,
    Refer this blog
    /people/community.user/blog/2007/06/22/sap-netweaver-70-bi-data-transfer-process-dtp-blog-series
    Also refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/f98e07cc483255e10000000a1553f7/frameset.htm
    Thanks

Maybe you are looking for

  • Oracle installation problem on linux

    HI, I AM TRYING TO INSTALL ORACLE 8.1.7 ON LINUX RED HAT(7.1). AFTER DOING ALL THE STEPS WHEN I RUN(./runInstaller) I am getting message "Initializing java virtual machine from ../stage/components/oracle.swd.jre/1.1.8/1/datafiles/Expanded/Linux/bin/j

  • Trying to duplicate a form in a PDF

    I have multiple PDF files that I have merged together and use as a sales tool.  I would like to create a form to put in the top corner of the page where I can fill in the pertinent data.  I can obviously do this for one page, but is there some way to

  • Unsuitable driver ************ PLEASE PROVIDE ANSWER ******

    Searching these threads shows at least 10 messages posted relating to the 'unsuitable driver' message that appears when accessing data on Internet Explorer. Yet there has been no answer to any of the messages. to reiterate the problem When Using a jd

  • Hierarchy Question

    Hello, I have a question regarding hierarchy. I want to download my hierarchy to an excel file. I found this one link that shows how to do that (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?Q

  • TS1717 iTunes shuts down when Music Match gets to 8495 of 8498 songs.

    Friends:  This is a "wits end" plea!  I've been using iTunes and Windows (all versions) for years with nary a hiccup.  This setup with Windows 7 supporting iTunes 10.6.3 and iOS 5.1.1 supporting my iPhone was working fine until I turned on Music Matc