Regarding Stateless Operations in OSB Coding

Hi,
In my osb coding i have a scenario that that there are three operations. In one case i need the output of second operation(Not fully one some of the outputs) as the input to the third operation. I know that osb operations are stateless. Is there any possibility to get the output and give as input to the third operation in osb coding itself.
Please help me.
Regards
Prabhu

Is it the service consumer which is doing the orchestration? (first calling the first operation on OSB and getting back a response, then initiating a call to second operation on OSB and getting a response and so on)
If thats the case then the consumer has the responsibility to send you the data needed to call second operation as well, when he sends the request for the third operation.
Best possible solution is to have a single service on OSB which will own the orchestration logic and will call all these operations in whatever order as needed. Within an instance of this proxy service you can save the requests and responses of first and second operation which will be available for that instance only. Service consumer can call this service once, with request data for operation1, operation2 and operation3 clubbed together in a single request and from there you can do orchestration in this Proxy Service.

Similar Messages

  • OSB: Retrieve list of proxy service/business service operations via OSB API

    Hi,
    I would like to retrieve the list of proxy service/business service operations using OSB API. I was able to retrieve References to all services on given server using examples from documentation (http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html). I'm also able to retrieve the Reference to any given service I want.
    My problem is - what do I do next? I've read here[http://www.theserverlabs.com/blog/2012/03/14/alsbosb-customization-using-wlst/] , that one can use ServiceConfigurationMBean.
    But when I execute this code:
              ServiceConfigurationMBean servConfMBean = (ServiceConfigurationMBean) domainService
              .findService(
                        ServiceConfigurationMBean.NAME + "." + sessionName,
                        ServiceConfigurationMBean.TYPE,null);
    The servConfMBean object is null.
    I know that there might be some useful info in the statistics, but my proxys are enabled for monitoring, and therefore I'm unable to obtain statistics programatically.
    I've also learned that thereis a TransportManagerHelper.getWsdlDescription(ref) method. But it throws null pointer exception. I dont understand how to use it.
    Any help would be greatly appreciated.
    Veronica
    Edited by: Veronica on Apr 11, 2012 2:33 AM

    There is an API change from the OSB release 11.1.1.3 and later....
    There is a solution, but this is based on Java & JMX:
    See support on this note:
    WLST scripting needed for note [ID 1431254.1]

  • Problem regarding Bit operation

    I am currently trying new approach to speed up my current operation, for this I have to know the bit operations :-( but I am having trouble in finding the references for that.
    Can you please send me some references regarding bit operation.
    Thanks for taking keen interest in this post.

    By default, commit operation will save all rows to db. You can write update query in a button
    by taking jdbc connection reference from environment. After updating row in db you should
    refresh your ADF UI to see changes.
    You can use this code for creating db connection.
                    InitialContext initialContext = new InitialContext();
                    DataSource ds = (DataSource)initialContext.lookup("java:comp/env/jdbc/conDS");
                    --

  • Overloaded operations in OSB..

    Hi,
    I have a .net web service. Its WSDL has defined overloaded operations. But when i create business service using the WSDL in OSB, OSB reflects one operation only when i create branching. Is OSB (10.3.1) able to handled overloaded operations?
    Thanks,
    Kuppusamy.V.,
    Edited by: Ichiban_indian on Jun 14, 2010 6:09 PM

    Hi Kuppusamy,
    I am not able to see the WSDL as my n/w has blocked this site but just wanted to know whether you tested operations using SOAPUI? Are you getting proper response when you post request through SOAPUI?
    I am asking this question because web-service overloading has always caused issues (specially with .net web-service on webmethods) and if I am not wrong then it is NOT recommended to use overloading in web-services.
    You may consider raising a SR with Oracle Support, in parallel.
    Regards,
    Anuj

  • Regarding email notification in OSB

    Hi,
    I have a two Proxy services proxy service A and Proxy Service B
    Proxyservice A takes the XML request from the consumer and puts the message in JMS queue(queueA) and gives an immediate acknowldgment. Proxyservice B picks that message from queue and invokes the provides, if we get any binding fault or remote fault 5 retries are made (Proxy service XA enabled) and message is put into error queue( if we get any business fault the message is put into undelivered queue. So whenever the message is put into the errorqueue an email notification must be sent to the sustain team. and the message must be moved back from error queue to the queueA so that the message is not lost. I could put my message into the error queue. Can any one help me in providing the steps required for email notification and steps required to move the message from errorqueue to queueA
    Your help is appreciated. Need urgent help on this.
    Thanks,
    Bharath

    you must configure an email "alert destination" and raise an alert each time a message is written to the error queue.ie you can set an alert for each request count of one.
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/operations/monitoring.html

  • Regarding stateless bean create() method problem

    hi every body,
    I am Learning EJB now for this i created one StatelessBean with a eho functionality with jsp. it is working good for the first time but when i am trying to run that jsp once again it shows the following error in server console
    11:32:13,090 ERROR [LogInterceptor] EJBException in method: public abstract beans.StatelessRemote beans.StatelessHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException:
    javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract beans.StatelessRemote beans.StatelessHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
    i am using Netbeans and J2EE 1.4 version and using Jboss 4.2.2.GA
    please help me in this regard
    yours,
    -sat-

    Bean :::::::::::::
    package beans;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    public class StatelessBean implements SessionBean {
    SessionContext context;
    // The public business method. This must be coded in the
    // remote interface also.
    public String getEchoString(String clientString) {
    return (clientString.toUpperCase() + " - from session bean");
    // Standard ejb methods
    public void ejbActivate() {
    System.out.println("ejb activate called");}
    public void ejbPassivate() {
    System.out.println("ejb passivate called");}
    public void ejbRemove() {
    System.out.println("ejb remove called");}
    public void ejbCreate() {
    System.out.println("ejb create called");}
    public void setSessionContext(SessionContext context) {
    System.out.println("setSessionContext called");
    this.context=context;
    Home interface::::::::::::::::::::::::::
    package beans;
    import java.rmi.RemoteException;
    import javax.ejb.EJBHome;
    import javax.ejb.CreateException;
    public interface StatelessHome extends EJBHome {
    // The create() method for the SimpleSession bean
    public StatelessRemote create()
    throws CreateException, RemoteException;
    Remote interface::::::::::::
    package beans;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    public interface StatelessRemote extends EJBObject {
    // The public business method on the SimpleSession bean
    public String getEchoString(String clientString)
    throws RemoteException;
    client ie.. index.jsp
    <%@ page import="java.util.*,java.io.*,java.lang.*" %>
    <%@ page import="beans.*,javax.naming.InitialContext,javax.naming.Context,javax.rmi.PortableRemoteObject" %>
    <%--
    Document : index
    Created on : Dec 2, 2008, 11:33:10 AM
    Author : sathish.kumar
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    Properties pro=new Properties();
    StatelessHome home;
    StatelessRemote simpleSession;
    String result=new String();
    try {
    // Get a naming context
    pro.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
    pro.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");     
    pro.put(Context.PROVIDER_URL,"localhost:1099");
    InitialContext JContext = new InitialContext(pro);
    System.out.println("context::::::::::::::>"+JContext);
    // Get a reference to the SimpleSession JNDI entry
    Object ref =JContext.lookup("StatelessBean");
    // Get a reference from this to the Bean's Home interface
    home = (StatelessHome)PortableRemoteObject.narrow(ref, StatelessHome.class);
    // Create a SimpleSession object from the Home interface
    simpleSession = home.create();
    // Loop through the words
    for (int i = 0; i < 10; i++) {
    String returnedString = simpleSession.getEchoString("hello"+i+"::>>");
    System.out.println("sent string: " +"hello"+i+"::>>" +
    ", received string: " + returnedString);
    result+=returnedString;
    } catch(Exception e) {
    e.printStackTrace();
    %><form name="my" method=post>
    <h2>Hello World!<hr><br><%= result%><hr></h2></form>
    </body>
    </html>

  • Regarding pushbutton operation in alv report

    hi,
    I have a requiement in which i will get list display which contains certain no of records(let us say 10  records)...now the issue is *if i selet one record and if it is correct record* and if i hit the insert pushbutton it should go and insert into z-table which i hav created.....and if the record which i hav selected is error record.....it should throw an error message saying that it is the error record....as error record stops further process i hav used it as information message and i used 'display like 'E''....so that it wont affect further proceedings.....
    and if i select the 2nd record and if i hit the pushbutton it is taking to the sap initial screen which i dont want .....
    how to solve this issue?
    can anyone plz help me in this issue....

    Hi Needy ,
      M giving you a sample code where you can set your pf-status and how to handle the check box etc .
    This code shows you hoe to select and deselect the check boxes ..
    All that you have to do is apply your logic...
    set pf-status 'SELECT' .
    at user-command .
      describe table t_lpr lines w_lines .
      case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          do w_lines times .
            read line w_line field value w_check . " INTO W_CHECK .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.    "INTO W_CHECK .
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .                          " DO W_LINES TIMES
          clear w_line .
        when 'DESELECT' .
          set pf-status 'SELECT' excluding 'DESELECT' immediately.
          do w_lines times .
            read line w_line field value w_check .
            if w_check = 'X' .
              w_check = space .
              modify line w_line field value w_check .
              add 1 to w_line .
            endif .                        " IF W_CHECK = 'X' .
          enddo .                          " DO W_LINES TIMES
          clear w_line .
         Here w_line : Line that is being read
                 w_lines : Total number of lines in your table(or list if you use 'list number of lines w_lines)
                w_check is my checkbox .
    Hope your need will be done!!
    Much Regards ,
    Amuktha .

  • Regarding Run operating system command

    Hi experts,
    I have a requirement of creating an empty file onto the same folder where my reciever file adapter writes the result file. Is it possible in case of FTP as well or is just supported for NFS?
    Regards,
    Amol

    Hi Amol,
    I have no experience with scripts. But if my understanding is correct, you can achieve this. The script file to be called should be placed in your XI server. The script file will have commands to do the FTP and create file in the remote FTP server. Although I have never worked on scripts to be 100% sure. May be a person familar with scripts can give the cirrect info.
    Regards,
    Jai Shankar

  • Question regarding container operations in BPM

    Hi there,
    i used a container operation to retreive a value from an Idoc, later in the process i need to put that value to a different message on a specified field, the thing is the container operation box only allows me to set a container as the target, any ideas how can i do this?, or if this should be done in a message mapping??, thanks!!
    Roberto.

    Hi if you can use a variable in a mapping use this code and write and UDF function
    Set the Variable
       import com.sap.aii.mappingtool.tf3.rt.*
        public static void setGlobalVar(String gvName , String gvValue , Container container) {       
            GlobalContainer gc = container.getGlobalContainer();
            gc.setParameter(gvName, gvValue);
    Get the variable
        public static String getGlobalVar(String gvName , Container container) {
            GlobalContainer gc = container.getGlobalContainer();
            String output = "";
            if (gc.getParameter(gvName) != null)
                output = String.valueOf(gc.getParameter(gvName));
            return output;

  • Regarding string operations and value alignment below heading

    Hi all,
    I have a requirement of sending the data in the form of table in mail thought me program.
    Am sending the mail content form int table.
    The issue is the table getting displayed like this(I used internal table of strings for this)-
    Name            |          Old value               |       New value                              -->Heading string
    Description     |          Material for production of tractors  |  Material for tractors  -->value string1
    weight               |       123   | 124                                                                   -->value string2
    Value 124 should have been well below New value.
    In short am not able to arrange the values (Because of variable length of values)well below table field so that i can distinguish  various values in same row.Please guide me for this issue .
    Thank you,
    Edited by: sanu debu on Mar 22, 2009 1:43 PM

    hi,
    use UNDER option.
    like
    write:
      / 5 text-001(give text ele as carrid)
        10 text-002(give as connid)
    loop at itab into fs_itab.
    write: / fs_itab-carrid under text-001,
               fs_itab-connid under text-002.
    endloop.
    Regards,
    jaya

  • Regarding string operations

    Hi All,
    i've a string holding the value as given below.
    AA,17,2/19/2003,"9,999.00",USD,00,10,318,"193,275.31"
    by performing some string operations i want the result string in the format as given below:
    AA,17,2/19/2003,"9999.00",USD,00,10,318,"193,275.31"
      i.e., i want to remove all the commas(,)that are included in between a pair of " " only.
    can anyone provide me a sample code for the same

    Hi vijay,
    A bit complex but works for sure, check the following logic,
    REPORT zsritest.
    DATA: gs_string TYPE string.
    gs_string = 'AA,17,2/19/2003,"9,999.00",USD,00,10,318,"193,275.31"'.
    WRITE: / gs_string.
    PERFORM string_trim CHANGING gs_string.
    *       FORM string_trim                                              *
    *  -->  LS_STRING                                                     *
    FORM string_trim CHANGING ls_string.
      DATA: lt_string TYPE string OCCURS 0 WITH HEADER LINE,
            lv_tabix TYPE i,
            lv_start.
      SPLIT gs_string AT '"' INTO TABLE lt_string.
      CHECK sy-subrc EQ 0.
      CLEAR gs_string.
      LOOP AT lt_string.
        lv_tabix = sy-tabix MOD 2.
        IF lv_tabix EQ 0.
          TRANSLATE lt_string USING ', '.
          CONDENSE lt_string NO-GAPS.
        ENDIF.
        IF lv_tabix EQ 0 OR lv_start EQ 'X'.
          CONCATENATE gs_string lt_string INTO gs_string SEPARATED BY '"'.
          IF lv_start EQ 'X'.
            CLEAR lv_start.
          ELSE.
            lv_start = 'X'.
          ENDIF.
        ELSE.
          CONCATENATE gs_string lt_string INTO gs_string.
        ENDIF.
      ENDLOOP.
      IF lv_start EQ 'X'.
        CONCATENATE gs_string '"' INTO gs_string.
      ENDIF.
      WRITE: / gs_string.
    ENDFORM.
    Hope this helps..
    Sri

  • Regarding Stateless Session Bean

    This is the file i have created to invoke Stateless Sessionbean.
    package stateless;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import stateless.Display;
    import stateless.DisplayHome;
    public class DisplayClient {
    /** Creates a new instance of DisplayClient */
    public DisplayClient() {
    public static void main(String args[])
    try
    Properties props = System.getProperties();
    Context ctx = new InitialContext(props);
    Object objref = ctx.lookup("Display");
    DisplayHome home = (DisplayHome) javax.rmi.PortableRemoteObject.narrow(objref, DisplayHome.class);
    Display d = home.create();
    d.display();
    catch(Exception e)
    System.out.println("Exception Occured");
    e.printStackTrace();
    But i am unable to execute this program because of the following error:
    Exception Occured
    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:640)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at stateless.DisplayClient.main(DisplayClient.java:35)

    Hi,
    Use the following code to invoke an ejb from an standalone class:
    Hashtable env = new Hashtable();
    env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:3700"); //3700 is default iiop port
    ctx = new InitialContext(env);
    Object objref = ctx.lookup("ejb/test");
    testHome home = (testHome)PortableRemoteObject.narrow(objref,testHome.class);
    Get back in case of any issues.
    -Amol

  • Regarding the Operation System

    Hi All,
    1) Will Hyperion 9.3.1 support the HP-UX-Itanium 11.3.1 Operating system. Its need any patches.
    2) My client using Oracle e-business financial application and actual are in that application. i want to take the actual from oracle ebusiness application to hyperion, is there any interface(any ETL tools or adapter for connecting the oracle e-business application with Hyperion
    9.3.1.
    Thanks,
    PC

    You could try and have a look here http://www.oracle.com/technology/products/bi/performance-management/data-integration-management.html
    It does mention oracle EBS
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Question regarding 3560 operating temperatures.

    Hi. The operating temprature of a 3560 switch is stated as:
    Operating temperature: 32 to 113ºF (0 to 45ºC)
    Is this is cumulative internal temperature or a recommendation on ambinet temperature in the cabinet/computer room? A client is proposing to delpy 3560s in a currently empty room which is already over 30 degrees celsius, there is no active equipment in yet (only active equipment will be 4-6 switches). I am trying to find out whether I say air conditioning is a 'must' or a 'strong requirement'. Any info much appreciated indeed.
    N.

    To prevent the switch from overheating, do not operate it in an area that exceeds the maximum recommended ambient temperature of 113?F (45?C). To prevent
    airflow restriction, allow at least 3 inches (7.6 cm) of clearance around the ventilation openings.
    Here is the doc that states the same as above, search for "warning" statements:
    http://www.cisco.com/en/US/products/hw/switches/ps5528/products_installation_guide_chapter09186a008045029a.html#wp1151405
    Please rate helpful posts.

  • Regarding Relational operator in PL/SQL

    Hi,
    I want to use not greater than operator in query.
    where id !> 7
    but it gives error.
    Kindly give syntax for the not greater than.

    or if you like
    ... where not id > 7

Maybe you are looking for

  • Error while creating spfile from pfile

    i am creating spfile from pfile and i am facing some issue regarding this i am getting error as ORA-01127: database name 'bbcomdev''' exceeds size limit of 8 characters as my db name is 8 characters only.. Please help.

  • IPad syncing problem - HELP!

    iPad sync problem - HELP!  I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)"  and yet I seem to have plenty of space on the iPad.  This

  • Set_block_property('emp',default_where,...) with variables

    db and dev 10g rel2 , i am trying to learn about this built-in with variables and the equal(=) operator , i can not use it with variables , so show me please how to use it with number , charachter and date variables . 1- working with number variables

  • Why doesn't iPhoto backup as easily as iTunes?

    iTunes will span across several DVDs while backing up my data. But iPhoto, from what I understand, does not support a feature like this. Don't I have to go into my iPhoto library and actually copy the folder? Or am I missing something in how iPhoto b

  • Random roll over with CO Pulse Ticks

    I'm using the 6036E with a random signal (linear encoder) to measure ticks and trigger analog samples.  I have it setup to count 2 rising/falling edges and have the analog input trigger off of the counter's output. The counter is setup for the count