WSRP - Pass Custom Data between Consumer and Producer

Hello All,
I am having a couple of queries with respect to Custom Data Transfer. Consider I have a Map of values which I need to transfer between both Consumer and Producer.
For eg: the map that Consumer sends would contain "firstName", "lastName", etc... On the other hand Producer needs to do some business function based on the data and add more values to the map like "rewardPoint" etc....
On Consumer Side:
I have choice to use Backing File or IGetMarkupInterceptor to implement the preInvoke to pass the data using SimpleStateHolder.
Question: I am not able to send a simple Serializable POJO Object... I can only send primitive / default java objects like Strings, Maps of String etc. Is my understanding correct?
On Producer side:
I am able to receive the Custom Data from request. No problems. Now how to send more data from Producer to consumer. I need to add the "rewardPoints" into the map and send back.
My understanding is that if the Producer puts any values into StateHolder objects, Consumer will receive it in IGetMarkupResponseContext object in the Interceptor's postInvoke method.
Question: How do I get a handle to the IGetMarkupResponseContext object @ Producer end???
Question: Do I need to write some interceptors on Producer end? If so which file I need to use?
Any help / pointers would be greatly appreciated.
Thanks,
Paz

Hi All,
I tried to set the data in the producer using the following command
SimpleStateHolder stateSimpleOuterReq = (SimpleStateHolder)request.getAttribute(MarkupRequestState.KEY);;
          if (stateSimpleOuterReq == null) {
               SimpleStateHolder state = new SimpleStateHolder();
               state.addParameter("name", "data1");
               request.setAttribute(MarkupResponseState.KEY, state);
I am not able to retrieve the same in consumer.
The above is a WSRP struts request.
I also tried setting the data by unwrapping the request in producer and still value is null in consumer :-(
          HttpServletRequest requestq = (HttpServletRequest)((HttpServletRequestWrapper) request).getRequest();
          SimpleStateHolder stateSimpleReq1 = (SimpleStateHolder)requestq.getAttribute(MarkupRequestState.KEY);
               if (stateSimpleReq1 == null) {
                    SimpleStateHolder state = new SimpleStateHolder();
state.addParameter("name", "data1");
                    requestq.setAttribute(MarkupRequestState.KEY, state);
Please help me in resolving the issue. Correct me if i am doing anything wrong.
Thanks
T. Deena
Edited by: user11261911 on 12/06/2009 19:49

Similar Messages

  • Passing session data between jsp and servlet

    I have a servlet that I pass data to my jsp.
    I do a session.setAtrribute in the servlet. No problem.
    I get the data no problem in the jsp that I call.
    How do I pass this same data to the another servlet?
    I basically have an array of values that I already have in the existing jsp that has been set in session.
    When I call the secondary servlet, I don't have anything in this session variable related to my array.
    Prior to posting to my next servlet, do I need to do another setAttribute inside the jsp to get the data passed to the servlet?
    Thanks.

    Two different things. The encoding adds this to the URL (after the page, before the query string
    ;jsessionid=ABC123 but only if the user isn't using cookies.
    So in your example, you would do this (maybe):
    <%
      String url = response.encodeURL("Servlet");
    %>
      <form name="form1" method="post" action="<%= url %>?cmd=pay"> ... Or some modification.
    So the difference between encodeing and using a post is that
    1) encoding adds the jsessionid to the url string if necessary. It does nothing else
    2) POSTing will send a request to the provided URL via the POST method, including the inputs of the form as parameters to the URL.
    They really don't interact with each other. It is like asking what is the difference between the Color Orange and thr Size Big? They can both be applied to the same thing, or not... and have no real relation to each other.

  • How to pass series of dates (between startdate and enddate) to subreport, which takes only one date as parameter

    Relatively new to Microsoft report services. I have created a report which takes a single parameter named 'SelectedDate'. This report runs fine (uses complex query of hours of the selected date and complex joins & aggregate calculations between SQL
    database tables). I created a new report with two parameters, namely, StartDate and EndDate. Also created a sql stored procedure which gives all dates between StartDate and EndDate. Added subreport to this report which calls my first report and defined 'SelectedDate'
    parameter to get the value as "=First(Fields!dt.Value, "DataSet1") - where dt is the resultset of procedure called in DataSet1. When I run this report, in the subreport, all I see is the report for 'StartDate' which is the passed
    value of the first parameter. I can't find a way to pass entire array of dates as parameter, to which user can browse forwards and backwards. Any idea? Thanks in advance for your help!

    HI Visakh16..Never mind my comment..I tried it again. This time I went to the completion of previewing..and noticed that the table with DataSet1 does display dates and first report underneath but once I click any other date, it displays the subreport on
    full page and navigation back arrow (with hint 'back to Parent Report) solution is not bad..so unless you a way to achieve my desired layout mentioned above - I am good for now! Thanks for your pointer in right direction!
    One small observation for thread readers: When I published the report to the report server, the back button (back to Parent Report) which was available to me at design time, is not displayed at client's browser. Upon checking pertinent threads, concluded
    that this is known issue for years and recommendation I concluded from various threads is: Use back button of browser and it should (& did) keep the parent report page, with table with selected dates intact. A few have noticed different behaviour
    for older browser versions. 

  • Jms Adapter Consume and produce

    Hai guys,
    i don't know anything in soa. i have got a usecase which is to
    1) Read a .csv file
    2) Send it to a bpel (in bpel do nothing to payload). Again i have to send the payload to jms adapter( which i dnt knw how )
    3) From the same jms adapter passing the payload to mediator
    4) Pass the input to another jms( jms2 ). from jms2 pass the payload to another bpel
    5) from bpel to db adapter
    am using
    Oracle jDevloper 11.1.13
    Weblogic server is a 10.3.6
    my problem is how to create the same jms in two ways like consuming and producing
    Thanks in advance
    Edited by: Beckyard on Sep 26, 2012 9:49 PM

    Hi,
    Why do you need 2 JMS queues? Can't you consider following pattern?
    Read .csv --> BPEL --> JMS Q
    JMS Q --> Mediator --> BPEL (only if some payload processing required) --> Db Adapter
    Assuming the above pattern, you'll have to develop 2 processes (in your pattern 3 processes).
    - One that will enqueue the data in JMS in which the JMS Adapter will be placed in the External references and will be invoked with Produce operation.
    - Another process in which Mediator will consume the message using Consume operation from JMS and pass it to BPEL for inserting into database. In this case, JMS Adapter will be placed in Exposed Service swim-lane.
    Let us know how you proceed.
    Regards,
    Neeraj Sehgal

  • How to pass XML data between applications

    Hi,
    can any one tell me how to pass XML data between applications
    Thanks in advance
    Sudheer

    Steve,
    I tried the code in the http package in the Appendix A section of your book. Each time i try a POST I get a HTTP/1.1 400 Bad Request error from the server. I can successfully do a GET from URLs. I have pretty much copied your code verbatim. Any ideas?
    Thanks,
    Sunder
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    See the "Working with XML Messages" section starting on page 242 of my Building Oracle XML Applications. It covers how to Send and Receive XML messages over the web through HTTP GET and HTTP POST as well as specifically Example 6-30 that illustrates how to receive a posted XML message in a servlet and process it.
    Hope this helps.<HR></BLOCKQUOTE>
    null

  • Transfer customizing data between SAP System

    Hi to all!
    How I can transfer PS customizing data between R/3 4.5B and R/3 4.7?
    Thanks,
    Gianluca

    Hi,
    Can I suggest a slightly more robust approach?  What Andreas is suggesting, is that in fact you should be able to transfer the customising data by doing a standard transport.  You can create a transport in your 4.5B system and then it can be physically copied (at the operating system level, for example FTP) to your 4.7 system and then imported.
    I think that this is probably the right way to go, but you may have some troubles if the PS system has some changes in 4.7 (as the destination config tables may have different structures to the source tables).
    The change I suggest from Andreas is start by using the IMG to generate the transport.  If you go to every area of customising that you wish to transfer to the 4.7 system and make a change (save to a change request) then change it back and save, you will make sure that you have every table required to be transferred in your change request.  You can then edit the change request (in SE09) and change the keys (by putting an *, rather than the specific data) to ensure you get all the data. 
    I just feel that given the complexity of configuration tables (and the sheer number of them) it would flow smoother if generated the initial list via the IMG, rather than trying to figure them all out yourself.
    After the change request has all the correct entries you will need to release it (to ensure that the object in Unix has all the data from the SAP system).  You can then FTP it to the 4.7 system and do an import of the change request (and cross your fingers that you don't get import errors due to config tables changing in 4.7).
    Hope that helps,
    Brad

  • How to build a stable, reliable application with consumer and producer

    Hi all,
    As a frontend solution, Flex is really powerful and fascinate. On the other hand, it inevitiably needs to exchange data. And I am trying to find a good way to build a stable and reliable application.
    Here's the workaround. On server side, blazeDS or LCDS is involved and on frontend component Consumer and Producer are used to interact. A group of users cooperates on the whole processing. Everybody will send an update once he finished current job.
    Of course each frontend need to subscribe first. But if one frontend is disconnect temporarily and other frontends send message to backend during that time, how can the disconnect one get message it missed? How can I fix the inconsistent status?
    Thanks and regards,

    Hello meshgraphics,
    Your reply is useful, but feasible I have to say. Creating DB tables, updating entries and synchronizing contents involve a lot of work. As we can use blazeDS and LCDS, that'll be good option. From online help, it doesn't explain what will happen if consumer disconnects temporarily which is very important to me. If some messages are missed, the whole process can't move on smoothly.
    Simply speaking, I hope below issues can be solved with blazeDS or LCDS:
    1) how to ensure messages are delivered to subscribed consumers if they are temporarily disconnected?
    2) how to recover work if consumers are thoroughly disconnect?
    Thanks and regards,
    Felix

  • Why replicate Master Data between CRM and IS-U?????

    Hello colleagues,
    I am at a customer who is already replicating Business Partner and Contract Accounts between CRM 5.0 and IS-U (ECC 6.0).
    He is using CRM IC WinClient where most of the processes are implemented as transaction calls in IS-U.
    There is a possibility to replicate all objects (Accounts, Connection Objects and Installations) but what is the purpose of doing it.
    Could anybody tell me what is the advantage of replicating all objects and having them redundant?
    Why to replicate?
    I just found information on how to replicate but not why.
    Thank you very much for your help in advance,
    Edgar Kauter

    Hi All,
    The major thing is we should not use ISU as stativ and CRM dynalic system. As we all aware When SAP is launching any module or technology its beleives in re-usabilty.
    Now the issue data replecation between CRM and ISU-
    1. In a utility market if the customer,retailer and the network operator initiate any business flow they should start with CRM as CRM is handling FOP part.It means CRM has not only build only for ISU.
    2. In ISU before billing so many things is getting triggered - like new connecion,transfer,move-in,move-out etc....these process cant be done with the CRM business module as I mentioned earlier CRM is not only designed for IS-U
    So for a smoother process and with proper business SAP introduced CRM IS-U.
    Without replacting the data between CRM and IS-U we cant process the steps which will at last billed a customer.
    Regards.
    Abinash

  • Events limit can only be dates between 1 and 9 on the day field

    Im an student, and im trying to put my timetable into ical as did last year
    it goes ok, i set it up to repit every week mondays lessons for example
    but when i am trying to set up a limit for this event to repit itself ical only allows me to
    put a date between 1 and 9 on the day field.
    Does anyone know why is that?
    sorry is my english is not so good im from spain and i might not explained very well
    thank you

    The x86 architecture has a standard formatting for disks that uses up to four primary partitions on a disk. On DOS or UNIX, you can view the partitions with 'fdisk'.
    This is layer that Windows and Linux tends to use for filesystems.
    Solaris though uses only one of those partitions for its own use (marking it a Solaris partition) and places a label similar to that on a SPARC disk (VTOC). So within the single x86 partition are several further subdivisions (slices).
    On solaris, the disk might be /dev/dsk/c0t0d0. You could access one of the Solaris (VTOC) slices as /dev/dsk/c0t0d0s0. As far as I know, Linux does not understand how to address the Solaris VTOC slices (If this isn't true, I'd love to know what the syntax for doing so is).
    You'd access the (non-Solaris) x86 parititions like /dev/dsk/c0t0d0p1 or so. While Linux can address extended x86 partitions, Solaris can only address primary partitions.
    Darren

  • How to sinck data between  production and R12 instance

    Hi,
    I am working on Oracle Apps up-gradation project.
    Now I have upgrade 11.5.7 to R12 (12.0.4) successfully. I started up-gradation task with 1 May of production data (backup) on new machine.
    Client wants to live R12 from 1/August/2009.
    Please suggest how to sinck data between production and R12 instance.
    Thanks
    Anup

    Hi,
    It is not possible to do what you propose (sync data from an 11.5.7 system to a 12.0.4 system). You will need to re-run the upgrade against the August 1 data, following your original upgrade procedures.
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • Custom Integration between CLM and SRM

    Hi
    Can any body help me how to do custom integration between CLM 2.0 and SRM for contracts using PI. On SRM side we have customised API. More specifically I need what is to be done in PI for custom integration between CLM and SRM.
    Thanks in Advance
    M G REDDY

    Hi There,
    Has anybody managed to custom integrate CLM & SRM?
    If so please kindly share how this was achieved.
    Thanks,
    Sheena

  • Using EPMA to transfer data between HFM and Essbase on 11.1.1.3

    Can we use EPMA to transfer data between HFM application and Essbase cubes on Hyperion version 11.1.1.3?
    As far my understanding we can only link HFM and Essbase through EAL.
    I would be very keen to know from the audience if we can use EPMA to transfer data between HFM and Essbase
    Hyperion version 11.1.1.3
    Windows 2003 64-bit
    Regards
    Yogananda Bharadwaj

    Hi Yogananda,
    Check epma admin.pdf, page 439. Chapter 19 describes how to synchronize and map data between Hyperion applications, interface tables, and external files via EPMA Data Synchronization.
    Regards,
    Thanos

  • How to  pass data between JDialog and its parent window ?

    Hi,
    I am new to swing. I want to know how pass data between a JDialog and its parent window.
    If you have any information please reply with example code.
    Thank You

    hi Encephalopathic ,
    I was looking for something like as it was given in the link provided by you.
    Thank you for reply It really helped me.

  • Whats the difference between data in customer data management dashbord and customers under sales?

    Hi,
       In the navigator>sales i have a menu customers, there i can see accounts (customers) and contacts, however in the navigator>Customer data management under menu Customer data management dashboard i have organizations and persons. Whats the difference between the information shown in one place and in the other? Why is the information shown with different names in different menus?
    thanks

    Hi, The present project has the requirement to Delete the data from Sales Force objects.Have following set up: 1. Parent Objects2. Child Objects3. Cloud Data Synchronization tasks to delete these objects Parent and Child have LOOKUP relationships between them.Deleing data from Child objects did not give any error. Tried 2 scenarios to delete data from Parent object: Scenario 1: Tried to delete to data from PARENT first before deleting CHILD.                  Result: Failed Scenario 2: Tried to delete to data from PARENT after deleting CHILD.                  Result: Failed Error mesge received in both cases: "Error loading into target [SF_Object] : Error received from salesforce.com. Fields []. Status code [DUPLICATE_COMM_NICKNAME]. Message [Too many records to cascade delete or set null]." Kindly help to resolve this error and suggest a method to delete data from PARENT salesforce objects. Please feel free to ask for more inputs, if required.

  • Best way to pass secure data between servers

    Hello,
    In the not to distant future my company wants to expand our
    site to include a single sign-on, this will be made possible with
    the 3rd party group that handles our customer info. Can someone
    enlighten me as the most secure method of transferring user data
    between these locations?
    What has been proposed is to pass the login from our site to
    the 3rd party, if successful pass back certain data, display and
    possibly update on our site and then pass this back to the 3rd
    party server.
    Is CFLogin the most powerful method for login? I've used
    query checks in the past, is that adequate or is CFLogin much
    better? Any pointers are appreciated.

    "Is CFLogin the most powerful method for login? I've used
    query checks
    in the past, is that adequate or is CFLogin much better?"
    Neither, CFLogin is really just a specific purpose IF block.
    Code
    within the opening and closing <cflogin...> tags is run
    when a user is
    not logged in with the <cfloginuser...> tag. Inside
    this block one
    still needs to validate the credentials provided by the user,
    often with
    a query check.
    The <cflogin...><cfloginuser...> combination
    provides an easy to
    interpret and use mechanism to run conditional code and
    persist a user
    login state from request to request. It is basically
    equivalent to ones
    own <cfif...> logic combined with session data for the
    user state.
    Under the hood it is using the same mechanisms.
    I usually prefer to roll my own solution because I often want
    to store
    more state data about a user then is allowed with the
    <cfloginuser...>
    tag and the related getAuthUser() and isUserInRole()
    functions.

Maybe you are looking for