Sending user data object to another application

Hi All,
I have an application which fetches user data from database and put in session later from one of the jsp page it has to go to another application where i need to pass an object that contains user session information along with its personal information.
How can i do it if i want to avoid using Get() that displays parameters on the browser address bar. I mean to send the object instead of parameters.
Please suggest.
Thanks in Advance.

You mean calling /appB/servletB from /appA/servletA ?
There is an attribute of a webapp called "crossContext" and when set to true allows the request dispatcher to dispatch requests (nah, really?) to OTHER web applications, but AFAIK, it's not considered "a good thing".
I'm sure someone else can elaborate on this. Personally I have never had to do that kind of stuff ;-)
Hope it at least points u in the right direction ;-)

Similar Messages

  • How shall i send user data to servlet by an Applet in way Form does

    it is clear that URL class provides way to connect to remote web resource. and furthermore i am trying to make an applet perform like a Form in html to send user data to a servlet. i may adhere a long name-value string to url sent by applet but this is not a good way to hide information like hidden variables. Is there any class in J2SE package that i can wrap those Form data and send them in the way Form does...?
    cheers!

    It's not a matter of form vs. not-form, it's a matter of HTTP types.
    Basically HTTP allows a connection to be of various types: GET, POST, HEAD, and some lesser used ones like DELETE which many servers won't support anyway. GET is usually used for link clicks, and puts its arguments as name/value pairs as part of the resource name. POST sends it as body data, also as name/value pairs.
    In Java, the way you do this is, starting with your URL object, get an HttpURLConnection object. Then call setRequestMethod on that HttpURLConnection object. If I recall correctly the rest is basically the same.
    Check the docs for details and stuff I may have forgotten or got wrong. Also check RFC 2616, which is the HTTP specification.

  • DOBJ.UPDATE_FAILED error while attaching adapters to Users Data Object

    PROBLEM DESCRITPION:-
    The following error occured while trying to attach entity adapters to Users Data Object (com.thortech.xl.dataobj.tcUSR) in Post-Update section.
    Error Message: The security level for this data item indicates that it cannot be updated.
    Update failed.
    Update failed.
    Error Keyword: DOBJ.UPDATE_FAILED
    Description: Update failed.
    Action: E
    Severity: C
    Kindly suggest to fix this issue.

    Resolved the DOBJ.UPDATE_FAILED problem - I modified the dvt_data_level to 0 for dvt_post_update_sequence selective entries.
    Able to attach the custom event handlers to Users Data Object - No more DOBJ.INVALID_UPDATE error!

  • Sending request object to another application

    Hi
    Is there any possibility to send request object from one Application context to another application context.
    We have two JEE enterprise application that deployed on different application server I want to know if there is any possibilty to send request object to them or not?
    I don't like to redirect reuqest because I want to put some value in req body (POST method)

    It is possible to get a request dispatcher to a servlet in another context by first getting the other context's ServletContext object. For example, in the original servlet's doPost method::
        ServletContext otherContext = this.getServletContext().getServletContext(uriToSecondContext);
        RequestDispatcher dispatcher = otherContext.getRequestDispatcher(uriToForwardTo)
        dispatcher.forward(request, response);In order to work both applications have to be configured to be allowed Cross Context access. In Tomcat you do this in the <Context ...> element of the configuration XML file by defining the crossContext attribute to "true".

  • Need a way to pass object to another application

    Hello Everyone,
    I need to pass an object from one application to another. I wanted to do that using request.setAttribute(Object) but this works only on RequestDispatcher.forward(URL) method and can be used only within the application you are currently in. It does not work for absolute URLs therefore I cannot go to another application. I also tried response.sendRedirect(URL) but then request object is lost when redirected to another application.
    Any help will be greatly appreciated,
    Thanks in advance,
    Y.M.

    if your two application servers are on the same box,
    then you can get the RequestDispatcher object from
    another ServletContext and then use the
    request.setAttribute() call.
    ServletContext newContext =
    getServletContext().getContext(webApp);
         if( newContext == null )
    throw new IllegalArgumentException("Invalid webApp
    p '"+webApp+"' does not exist.");
    request.setAttribute("myobject", objToPass) ;
    RequestDispatcher dispatcher =
    newContext.getRequestDispatcher(urlToGoTo) ;
    dispatcher.forward(request, response);
    Unfortunately those apps are on different servers ...

  • How can i send user defined Object as a argument to the MBean methods in authentication provider to create user?

    I developed our own Authentication, Identity Assertion & Authorization providers
    for weblogic 8.1 SP1. In the authenticator MBean i have one method which takes
    user defined object as a argument and returns a user defined object. i am able
    to call all the methods which takes java objects(for example: String, int, ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when i user
    any user defined object then it gives exception. if in the argument i used user
    defined object then it is not able to call that method telling NoSuchMethodException.
    Is there any way to use user defined object as an argument to MBean method?
    can anyone please help us as we r in the final stage of the project?
    Thanks
    Lakshmi

    "Lakshmi Padhy" <[email protected]> wrote in message
    news:3fc2f50c$[email protected]..
    >
    I developed our own Authentication, Identity Assertion & Authorizationproviders
    for weblogic 8.1 SP1. In the authenticator MBean i have one method whichtakes
    user defined object as a argument and returns a user defined object. i amable
    to call all the methods which takes java objects(for example: String, int,ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when iuser
    any user defined object then it gives exception. if in the argument i useduser
    defined object then it is not able to call that method tellingNoSuchMethodException.
    >
    Is there any way to use user defined object as an argument to MBeanmethod?
    >
    I seem to remember that jmx only supports scalar datatypes. Ask in the
    weblogic.developer.interest.management newsgroup.

  • Moving Tablespaces and other data-Objects to another HD

    Hi,
    XE is running on Win XP Pro SP2 here. It installs the datafiles on C:\ too. That's no proper solution because system loss could cause data loss in a bad crash.
    Otherwise in managed enviroments often the sytemdrive will be autmatically cleaned for new desktop solutions.
    Is there some experience about moving the tablespaces /moving the datafiles to another HD/Partition?
    Doing this on 10g with EMGC is an easy job.
    But how does this work on XE?
    thx for respone
    regards
    Franz

    You can not move tablespaces. They are logical units that do not have a location. The required space allocation for a tabelespace is through one or more datafiles.
    There is no problem moving data files to another drive. Effectively you
    1) shutdown the database
    2) copy the data file to the new location
    3) Update (not edit) the control files to point to the new data file.
    Step 3 is done by bringing up the database into 'control files are available and read into memory, but data files are not available' (the 'Mount' state) and issuing the ALTER DATABASE RENAME FILE ... command.
    Details, with examples in the 10gR2 DBA manual http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#i1106090, at Chapter 9 in the Renaming and Relocating Datafiles section.
    Full command syntax in the SQL Reference manual http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942 in the ALTER DATABASE section.

  • Waiting data file from another application

    Hi,
    I would appreciate your help with the following problem:
    I am executing an application from within my java application as a process and waiting until it finishes. I need the results file from that application to be read from within mine. The problem is that this application creates other processes that dump the results files long after its main process has informed my application about its successfull execution. The question is, how can I be sure that the particular result files are already written to the end and closed by those hidden for me processes.
    Thank you in advance!

    If I understood well, you're saying that :
    1) you have to wait for the results before proceeding with your application, and you do not have control over the writing processes so that you cannot use some kind of async notification (e.g JMS),
    2) Even when your app is informed of the success of the operation, at that exact time you are not getting the result files you need to proceed. So being informed of success and being able to proceed happen at different times ?
    In that case, the one solution that comes to mind is 'polling' :
    When you're being informed of success, spawn a separate thread (to prevent app freezing) that continuously polls the result files in a while loop.Or, if you don't want to waste CPU cycles, make the thread sleep for a while and try again at regular intervals.
    Less than perfect solution, but I don't see any other alternative ..
    You'll then have to figure out what to do with your app while you're trying to get the results...
    Hope this helps a bit.

  • Adding new Data Object while migrating from MI 2.5 to NM7.1

    Dear All,
          We have a custom MI 2.5 application which we need to migrate to 7.1. While migration, we want to add a newly created data object also in migrated application. But when I try to import MBO model, it is not letting me import new data object. The import finishes successfully. But changes in merepmeta.xml are not done. It creates a file with back up of existing merepmeta.xml i.e. merepmeta.xml.bak and create new merepmeta.xml but it is blank. Am I missing something???
           When I import MBO only with existing data objects (syncbos), it is allowing me perfectly. It is changing the merepmeta.xml accordingly as well without creating backup.
    Thanks in advance,
    Saptak Kulkarni.

    Dear Arjun,
         To answer your questions, previously all the SyncBOs were downloaded independently taking username as the import parameter in getList. (Default values). Yes we can provide the same with 7.1 but we wanted to have some sorts of associations between all SyncBOs.
         So first of all, we changed all the BAPI wrappers of old SyncBOs to download all the data independent of user. Now we created new Data Object to only download user specific data. We associated all other Data Objects on this DO. Created a rule for this data object to only download the sync user instance. We were expecting that whenever a user syncs, a single instance of new user data object will get downloaded and subsequently all other data objects having relationship on user will get downloaded. I hope this is not much confusing.
          Now while we import the MBO model, if we don't import new user data object, then also other data object instance get downloaded and fortunately properly filtered. We don't receive any kind of error over here.
          The new data object is not used anywhere in the application. The associations are in new data object and not in the older one. New data object is the leading one wherein others follow.
          Not a single instance is getting dropped for other Data Objects.
          The xml is blank only when we try to import the new Data Object and correctly it gives an error as expected when I try to deploy the application.
    Thanks in advance,
    Saptak.

  • Conversion of a data object of type "C" to type "l" is not supported

    Experts:
    i have below code in my FM; defined as remote-enabled module.
    when i execute i get the error analysis as:
      You attempted to move one data object to another.
    This is not possible here because the conversion of a data object
      of type "C" to type "l" is not supported.
    This at the line    move <FS2> TO <wwa_mdm_name_value_pair>-VALUE .
    what are the steps to debug this?  Thanks!
      DATA: tt_mdm_name_value_pair_table TYPE mdm_name_value_pair_table.
      FIELD-SYMBOLS : <wwa_mdm_name_value_pair> LIKE LINE OF tt_mdm_name_value_pair_table.
      FIELD-SYMBOLS <FS1> TYPE ANY.
      FIELD-SYMBOLS <FS2> TYPE any.
      data:st_mdm_name_value_pair type mdm_name_value_pair.
      assign  st_mdm_name_value_pair to <wwa_mdm_name_value_pair>.
    assign st_mdm_name_value_pair-code to <FS1>.
    assign st_mdm_name_value_pair-value to <FS2>.
      clear wa_ZSTRESULT.
      loop at T_UPDATE into wa_ZSTRESULT.
        assign wa_ZSTRESULT-field to <FS1>.
        <wwa_mdm_name_value_pair>-CODE = <FS1>.
        assign wa_ZSTRESULT-VALUE to <FS2>.
        move <FS2> TO <wwa_mdm_name_value_pair>-VALUE .
        append <wwa_mdm_name_value_pair> to tt_mdm_name_value_pair_table.
      endloop.

    resolved using GET REFERENCE.. code looks as below:  Thanks!
      DATA: tt_mdm_name_value_pair_table TYPE mdm_name_value_pair_table.
      FIELD-SYMBOLS : <wwa_mdm_name_value_pair> TYPE LINE OF mdm_name_value_pair_table.
      FIELD-SYMBOLS <FS1> TYPE ANY.
      FIELD-SYMBOLS <FS2> TYPE DATA.
      TYPES t_dref TYPE REF TO DATA.
      DATA dref TYPE REF TO DATA.
      DATA: TT_UPDATE TYPE ZTYRESULT.
      FIELD-SYMBOLS : <WA_UPDATE> LIKE LINE OF TT_UPDATE.
      data:   st_mdm_name_value_pair type mdm_name_value_pair.
      assign  st_mdm_name_value_pair to <wwa_mdm_name_value_pair>.
    assign st_mdm_name_value_pair-code to <FS1>.
    assign st_mdm_name_value_pair-value to <FS2>.
      clear wa_ZSTRESULT.
      TT_UPDATE = T_UPDATE.
      loop at TT_UPDATE assigning <WA_UPDATE>.
        assign <WA_UPDATE>-FIELD to <FS1>.
        <wwa_mdm_name_value_pair>-CODE = <FS1>.
        assign <WA_UPDATE>-VALUE  to  <FS2>.
        GET REFERENCE OF <WA_UPDATE>-VALUE INTO dref.
    *    MOVE dref TO <wwa_mdm_name_value_pair>-VALUE.
        <wwa_mdm_name_value_pair>-VALUE = dref.
        append <wwa_mdm_name_value_pair> to tt_mdm_name_value_pair_table.
      endloop.

  • MIcrosoft User Data. What is it? And is it taking up Room?

    I got Office 2004, and I noticed this folder in finder titled
    Microsoft user data. Do I need it?
    Thanks everyone.

    Well, I wish I had read these threads before I decided to clean out my HD and delete my folder of Microsoft User Data. I don't really use Microsoft applications, so I figured I didn't need it.
    But I do use applications called EndNote (9.0), and FileMaker Pro 8.0 Advanced. After cleaning out my documents folders, including that pesky "microsoft user data" both of those applications will no longer launch.
    I don't know what to do.
    Actually, I still had Word 2004 installed. Tried to launch that and it worked just fine.
    HELP!!

  • Best way To get data from another application using NDDE lbrary

    My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
    This is my code:
    l : is the list of stocks.
    This Sub connects to server and requests the data :
    Public Shared Sub GetQuotes()
    Try
    client1 = New DdeClient(server, topic)
    client1.Connect()
    For i As Integer = 0 To l.Count - 1
    client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
    Next
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    End Sub
    and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
    Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
    This the client_Advise Sub:
    Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
    For q As Integer = 0 To l.Count - 1
    If l(q).t = w(1) Then
    Dim item() As String = e.Item.Split("$")
    If l(q).Open = "#" Then
    l(q).Open = "0"
    End If
    If l(q).hi = "#" Then
    l(q).hi = "0"
    End If
    If l(q).lo = "#" Then
    l(q).lo = "0"
    End If
    If l(q).Close = "" Or l(q).Close = "#" Then
    l(q).Close = "0"
    End If
    If l(q).pclose = "#" Then
    l(q).pclose = "0"
    End If
    If item(1) = "open" Then
    l(q).Open = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "last" Then
    l(q).Close = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "high" Then
    l(q).hi = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "volume" Then
    l(q).Volume = Val(e.Text)
    ElseIf item(1) = "low" Then
    l(q).lo = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "pclose" Then
    l(q).pclose = Format(Val(e.Text), "0.00")
    If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
    l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
    l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
    End If
    l(q).flag1 = 2
    ElseIf item(1) = "date" Then
    l(q).Date1 = e.Text
    ElseIf item(1) = "time" Then
    l(q).Time = e.Text
    End If
    Exit For
    End If
    Next
    End Sub
    Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
    Thanks in advance.

    Hi MikeHammadi,
    According to your description, you'd like to get data from another app using NDDE library.
    When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
    If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to send User Master Data through XI

    Dear SAP gurus,
    We are currently configuring the e-recruiting module on a separate server than HR (following the SAP standard). 
    As our CUA is not connected to the E-REC systems, we are looking for a way to send properly the User Master Data from HR systems.  We have seen that the report RSCUSND enable us to send iDoc with message type USERCLONE, but this repport can be only run from the CUA then we can t use it.
    Another solution is to make a client copy with the profile SAP_USER, but we can t use this solution because in order to get the User Master Data in a real time we should make the copy each 15 minutes.
    We can t figure out with the question, what is the standard way to send User Master Data to our E-Recruiting module
    Regards
    Hadrien

    HR side:
    1-Below t-code is what you should go through:
    SM59
    BD64
    WE20
    WE21
    2-The key interface object is as below(I used it in LSMW, XI should be the same):
    Business Object      HRMASTER    
    Method               SAVEREPLICAMULTIPLE        
    Message Type         HRMASTER                   
    Basic Type           HRMASTER02                 
    XI side:
    1- The XI has the HR interface package in IR. You just need to select those you need.
    2-Goto ID and do interface mapping between IDOC interface & XI outbound interface
    All above is the skeleton processes. U can consult with XI consultant in details.
    Hope helpful..

  • How do I backup and recover all of user's objects and Application?

    I know that I can export the application ,CSS and images by HTMLDB.But there is not user's data. I can also export user's full schema by sqlplus. Can I recover all of user's objects like this:
    1,import the user's schema.
    2,create a new workspace and reuse the user'schema .
    3,import the application ,CSS,images.
    Then,Is all OK?
    Thank for any help and option.

    Lastgod,
    Yes, you can do what you described. You definitely must use Oracle export/import (or something) to backup and restore the data in the application schema. On the HTML DB side, depending on your purpose, you might find it simpler to export the workspace using the HTML DB site administration pages. Then you would import and install the workspace (using HTML DB admin pages), which will let you confirm the workspace schema, instead of your step 2. After that your step 3 can be performed. When you export a workspace you get the user accounts and group definitions also, so you don't have to recreate accounts when you import/install the workspace in the same or another HTML DB instance.
    Scott

  • Pass data from one web application to another web application

    Hi,
    Please provide suggestion for following scenario:
    Scenario: Basically the aim is to transfer large amount of data from one application to another and display JSP of second application.
    User enteres data on a JSP of one web application. When he submits that data, another web application opens in new window and data from first application should be passed to this second web application. Another web application will display that data on its own JSP. User can perform whatever he wants on second application screen.
    Possible solutions:
    1) response.sendRedirect(): This makes GET request. But, there is large data to send. So, GET is not effective.
    2) forward(request, response): Can't use as I have to pass data to different application that is in another context.
    3) URLConnection: Here, I can make POST request and set attributes in HTTP request and make connection to another application. I can pass data using output stream. But, I can't display second application JSP to user even if I use input stream to read response. Because control will be ultimately in first application only.
    Is there any othe method to achieve this or any of the above options extendable?
    Please give your inputs.

    Hi,
    According to your post, my understanding is that you want to migrate list data from one web application to another.
    We can migrate list data programmatically, there are some articles for your reference.
    http://blogs.msdn.com/b/tejasr/archive/2007/11/12/code-snippet-copy-list-data-between-sites-programmatically.aspx
    http://www.fivenumber.com/copy-sharepoint-list-items-from-one-site-to-another-programmatically/
    http://geekswithblogs.net/AnneBougie/archive/2009/01/23/copy-a-sharepoint-list.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for