Capturing session id in WEBDYNPRO environment

Hi Friends,
I am trying to pass the parameters from webdynpro to BSP using the set server cookies technique.  Initially i did it through the same technique from BSP to Webdynpro and i am successful in it.  However i am unable to apply the same from webdynpro to BSP. 
Below is the one i am using.
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
    EXPORTING
      name                  = 'modeldata2'
      application_name      = application_name
      application_namespace = application_namespace
      username              = username
      session_id            = session_id
      data_name             = 'modeldata2'
    importing
      data_value            = ostream.
Here the parameter 'session_id' is picked up from the available RUNTIME object of BSP.  And rest of all parameters are some string constants which i could find out. 
What is the equivalent object for RUNTIME in webdynpro?
And how do i get the session id in the webdynpro environment.
Any inputs on this?
regards
Nalinikanth.

Thanks for all tthe people who took a look at my question patiently.  I got the resolution for the question.  I missed out putting the cookie retention time while setting the cookie.

Similar Messages

  • How to capture the parameter in webdynpro application?

    Hi ,
    We have a requirement like this :
    the scenario is :
    user will get a mail to  inbox(here mail is coming from SAP Workflow) saying that :"proposal is waiting for your approval".for details please click on the below link:
    once user clicks on the link it has to open up the webdynpro application and has to display the details of the particular proposal no.
    how to pass the proposal no to the webdynpro application URL and how to capture the proposalno in webdynpro java?
    Thanks in advance.
    Regards,
    Pavani

    From the workflow when you create the link, also add the proposal number as an url parameter.
    For example if the url for requesting WD application is <WD_URL>, then URL with parameter would be
    <WD_URL>?PROPOSAL_NO=<actual_proposal_number>
    In the webdynpro, you can access this parameter with the following piece of code(ideally in wdDoInit of component controller).
    String proposalNo = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PROPOSAL_NO");
    Regards
    kk..

  • Stateless session bean in clustered environment

    Is there any option in ejbc (Stateless Session Bean) for clustered environment?
              Do I have to take care for clustered environment?
              

              Mukesh <[email protected]> wrote:
              >Is there any option in ejbc (Stateless Session Bean) for clustered environment?
              >Do I have to take care for clustered environment?
              Use the following line in your weblogic-ejb-jar.xml
              <stateless-bean-is-clusterable> true </stateless-bean-is-clusterable>
              This will make the container aware that your stateless bean is to be clustered.
              The ejbc can be run as usual.
              

  • How to call the methods of JAR file into webDynpro Environment

    Hi All ,
             I have a requirement to call the methods of a JAR file into
             WebDynpro Environment. can anybody suggest me How this can be achieved. I Have a JAR file named FastTrack.API
    which contains few methods and i want these methods to be accessable into WebDynpro as other methods.
    Plz Somebody help me to sort this out.
    Regards,
    Deepak.

    Deepak,
    Please follow these 2 steps:
    1. Add jar into webdynpro project
            Right Click on ur project -> Select properties -> Java Buil path -> Choose Libraries Tab -> Add External Jars -> add the file from ur computer
    2. Use the jar
          write the import statement in your webdynpro code to utilize the properties of added jar.
    Thanks & Regards,
    Ram

  • Find session id from Webdynpro in 04s?

    Do you know how to find the j2ee session id from webdynpro?
    In NW 2004, we used this code:
              HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
              HttpSession session = request.getSession();
              String sessionId = session.getId();
    How can you find this using 2004s with the IWDProtocolAdapter class??

    Hi,
       Modifying your posted code a bit:
    HttpServletRequest request = (HttpServletRequest) WDProtocolAdapter.getProtocolAdapter().getRequestObject().getProtocolRequest();
    HttpSession session = request.getSession();
    String sessionId = session.getId();
    Regards,
    Satyajit.

  • Capturing session level resource usage in RAC environment

    I have used Tom Kyte's runstats.sql to capture resource usage by a session in a single instance environment. http://asktom.oracle.com/tkyte/runstats.html
    The procedures in the package take before and after snapshot from v$mystat. My question is how does in change in RAC enviornment with more than one instance?
    There is an equivalent table gv$mystat which has an additional column inst_id. I will appreciate if somebody can provide me some insight.

    I wish everyone would stop using V$ objects where GV$ objects exist. Everything you write using V$ is a minimal or no value when run on a RAC cluster. However everything written using GV$ will always run on a stand-alone database.
    Just convert the code and you should be fine.
    At the University of Washington I never even teach about V$ dynamic performance views beyond the concept that they are a legacy of the time before RAC. There are about 107 V$s that have no global equivalent but they mostly related to instance recovery (RMAN).

  • Portal Session Timeout - ICM/Webdynpro/POWL

    Hi Experts,
    We are having SRM Portal which has POWL Webdynpro and other applications running.
    SRM Portal is a seperate JAVA Instance and integrated to backend with SSO enabled.
    We have Logon Ticket Timeout set as default 8 Hours and the Session Timeout in Portal set as 2 Hours (Server>services>webcontainer>properties>Session Timeout).
    For the ABAP backend, we have rdisp/plugin_auto_logout-->7200 (2 Hours) and ICM timeout as remommeded by SAP as icm/server_port_0     = PROT=HTTP,PORT=8012,TIMEOUT=90,PROCTIMEOUT=600
    Now the problem is:
    1. Users connected to portal and work on any POWL Iviews has an idle time of two hours-->we get the ICM session timeout error page.
    2. Sometimes Users get the Login screen of portal within the Navigation Frame which can be identified as the Ticket Expiration
    Is there a possibility to control the behavior of portal to avoid these error pages to Users like if the timeout happened in backend, there should be auto refresh if the user clicks the application.
    And if the ticket expired, the portal should refresh to the home screen on clicking any Iview.
    We tried the IDLE timeout pop up and in Vain, you could see my another post on the same.
    Portal Idle Pop Up
    Regards,
    Sethu

    Hi,
    Read SAP note 705013,
    I think adjusting the kernel parameters, rdisp/gui_auto_logout and  rdisp/plugin_auto_logout will help.
    Try adding below parameters in the Instance profile.
    icm/keep_alive_timeout 3600
    icm/conn_timeout 5000
    Regards,
    Venkata S Pagolu

  • Deploy Error when using Stateful Session Bean inside Webdynpro

    Hi,
    I'm trying to create a webdynpro project that uses a stateful session bean
    I have created DC's for a EJB Module project, Enterprise Application and Webdynpro component. Created the bean, built it, added it's package to the public part, added the EJB Module to the EAR project. Built the EAR project. Added the EJB Module project and Enterprise Application project as a used DC in the Webdynpro DC.
    In the Webdynpro DC I added com.sap.archive-packaging.default.update-descriptors=true in the build.properties file of the cfg directory. (using the navigator view) That resolved an error while building it.
    Deployed the Enterprise Application DC without problems.
    Tried to deploy the Webdynpro DC but I get the following error:
    Jun 16, 2008 9:40:46 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [012]Deployment finished with warning
    Settings
    SDM host : 10.64.36.74
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME~1/JESCHA~1/LOCALS~1/Temp/temp59822company.nl~projempactcmp.ear
    Result
    => deployed with warning : file:/C:/DOCUME~1/JESCHA~1/LOCALS~1/Temp/temp59822company.nl~projempactcmp.ear
    Finished with warnings: development component 'projempactcmp'/'company.nl'/'local'/'20080616094022':Caught exception during application startup from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error occurred while starting application company.nl/projempactcmp and wait. Reason: Clusterwide execption: server ID 6060950:<--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Failed implicit start for company.nl/projempejb : Unknown state(5)', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Failed implicit start for company.nl/projempejb : Unknown state(5) (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    Does anyone know what this error means and how to resolve it. I searched the forum but only found errors that look like this relating to XI not to Webdynpro.......
    Thansk,
    Jeschael
    Edited by: J.V. Lebbink on Jun 17, 2008 6:52 AM

    Default is 30mts.
    This is done as a parameter in orion-ejb-jar.xml. Please look at the EJB Guide at http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97677/dtdxml.htm#634197 for details
    regards
    Debu

  • How to capture multiple change in webDynPro(ABAP) Table

    Hi ,
    I would like to know 'How to Capture Multiple Change' of a node . For example , a table is bound to a node and I select Multiple entries in the table . Then, how to capture Multiple entries of the table  . Is there any method ?
    There is a method 'GET_CONTEXT_CHANGE_LOG' of 'if_wd_context' which captures single change of the node .
    Regards
    Sid

    Post this in Webdynpro forum at
    Web Dynpro Java
    have you seen these tutorials.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783
    Regards
    Raja

  • Page Not displayed error upon Session Expiry in Solari Environment

    Hi All,
    I have a web application deployed in Solaris environment.
    Session expiry is handled from the application.
    I have this code for session expiry in my filter class:
    ((HttpServletResponse) _response).sendRedirect("/myapp/view/sessionExpired.jsp");
    When this code is executed Im getting "Page Cannot be Displayed " error is thrown.
    The same scenario works fine windows environment.
    Im facing this issue when it is on Solaris environment.
    Thanks in Advance.
    Cheers,
    Shorath

    I am using basic in my local environment. When we deploy to DEV/QA/PROD server, it will be SSO enabled. The requirement is, when user clicks on Ok button on session expired popup, it should just stay(refresh) on the same page with the pretty URL. Currently it refreshes the page with full URL.
    URL in Browser before session expiry: http://localhost:7101/MyApp/faces/page1
    URL in Browser after session expiry(click ok on popup, refreshes the same page): http://localhost:7101/MyApp/faces/oracle/webcenter/portalapp/pages/page1.jspx

  • Handling Session Object in WebDynpro Java

    *After Validation in WebDynpro Component, if the user is not authorized to access the page, i want to close the session of that Particular login user and sent back to the login page (home page)*
    i don't want to close the window
    come out of the application to the login page
    In Java, i can get session object by request.getSession(true);
    in webDynpro how can i get the Session Object.
    Thanks
    NSM

    Hi,
    try to use the following method
    WDClientUser user;
          user.forceLoggedInClientUser()
    Regards
    Ayyapparaj

  • Depenency Injection and Session Facade in WebDynpro DCs

    Hi all,
    for the sake of decoupeling the business logic and persistence from the view i introduced a session facade.
    I wonder how to acess the session facade bean from my webdynpro?
    am i right that dependency injection inside a wd dc is not working?
    does jndi work in a wd dc?
    regards,
    christian

    Hi Christian,
    First - welcome to SDN!
    To your questions:
    1) JNDI access to EJBs works from any client application, which means also from WD apps. <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/e692b2cfaa5591e10000000a1553f7/frameset.htm">Here</a> you can find more information on that.
    2) Dependency injection does not work within WD.
    3) I would suggest you to consider the <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/f7f744aea471fae10000000a1553f6/frameset.htm">EJB Model Importer</a> which is the easiest and recommended way for using session beans inside WD components. This is a new feature coming with <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/ce">SAP NW CE</a> aiming to increase developers productivity by reducing the need for manually written code for accessing and calling the EJB business methods.
    Please do not hesitate to come back should you have any further questions.
    Best regards,
    Vladimir
    Message was edited by:
            Vladimir Pavlov

  • Session expired application Webdynpro java

    HI:
    I am developing an application in WebDynpro Java (J2EE Engine 7.0), which does not run in the portal but is simply displayed on the WAS server.
    The problem is I need to catch the exception from the code to not get the error 500: session expired.
    I can not change the session time from the properties of the application because it is a customer requirement with 15 minutes session expires.
    How I can resolve this?
    Thanks and best regards.
    Maria Elena

    HI:
    I've been reading the note and I have a question.
    To change the error page, it is in the web.xml, for example:
    <error-page>
    <error-code>500</error-code>
    <location>/customerrors/500.jsp</location>
    </error-page>
    With this code if I have a 500 error, will launch the jsp (500.jsp).
    my question is: where I have the web.xml?
    Do I have to develop a J2EE aplicaion or is directly in my WebDynpro application or is on the server?
    Thanks and best regards

  • Best way to capture session attributes?

    I want to gather usage data from my Servlet. For example, when a user visits the Servlet and performs a keyword search, I want to capture the term(s) searched for and the number of hits.
    I have this working with a listener that's defined in the deployment descriptor. Each time an attribute is replaced in or removed from the session, the Listener captures it and saves it with the session info.
    My problem is that knowing which attributes go together (from one submission to the next) is pure conjecture, and while it may work, it doesn't seem like a very good design.
    What is the proper way to gather this sort of information? Can the attributes be sent as a group to the Listener for each submission? Or is there another (better) way?
    Thanks for reading.

    Hi Quirky,
    I'm not sure what you mean exaxtly, post a little code please, from your listener where you are collecting the data. However wouldn't it be better to cache the data in the session object for each client? If you are gathering data from the whole app and you don't care about following the path of each client through the app then a filter would be less fine grained and simpler I would think.
    See ya
    Michael

  • Correct way to aqquire session on a J2EE environment

    Hi.
    I'm working on a software that uses session beans (configured with JTA) accessing TopLink through a Data Acess Object. The DAO is a sigleton (used by all session bean instances) that has private getActiveSession() method that returns the session to be used by each DAO method.
    The method is codded like bellow:
    private Server server = null; //class attribute
    ... getActiveSession(){       
    if (server == null){
    server = (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(), mapeamento, this.getClass().getClassLoader(), true, false, true);
    return server.getActiveSession();
    Is it the correct way to work with the architecture I'm using? (holding a server Session and working with it)
    I'm having problems when a database exception is thrown and when a database connection become stale. I don't know how to solve it because some times the application recovers themselves and some times not (intermitent).
    Thanks,
    Eros

    Hello Doug. Thanks for your post.
    I'm using the Container Datasource. How I can handle the connection failures?
    Another question: This code is causing the following error in a multithread environment:
    Exception [TOPLINK-7001] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 050912)): oracle.toplink.exceptions.ValidationException
    Exception Description: You must login to the ServerSession before acquiring ClientSessions.
    Environment:
    - The toplink jar is within the APPLib OC4J instance classpath
    - The DAO is within EAR
    - The OC4J instance has 6 applications (EARs)
    - The EJB with the business rules calls the DAO singleton object to access the Database
    The error happens some times and some times not. Please Help.
    Eros

Maybe you are looking for

  • ICloud and iTunes Match forced me to create a new account?

    I've always used one account to login and purchase from iTunes. It was just a username, DAVEINLA. With this recent migration of MobileMe to iCloud, I believe I have two logins. When migrating I tried using the daveinla account and it said that the ac

  • Tag to take a java class in JSP page

    Hi, � need to get a tag to get a java class for example Test.java into a JSP page like MyJSP.jsp so that � can ,after doing this, call its methods, variables etc. Thank you !

  • Msg_server.exe not appearing in SAP management console

    Hi Experts, First of all I want to tell you that I am new to BASIS activities. I am trying to learn installation and error handling. I have installed R3 Enterprise 4.70x 2.00 SR1 on Win SQL Server and everything was successful. Now when I try to star

  • Portugese Language Installation

    Dear all, I am intending to install Portugese language on my SAP system. I went to SAP MP, and I downloaded 51033495_2:      ZIP      51033495_2      AR,BG,CA,CS,DA,EL,FI,HR,HU,NO,PL,PT,RO,RU,SH,SK,SL,SV,TR,UK PT is from Portugese: But this is what i

  • Iphoto & HP Photosmart C7250

    Does anyone know how to get iPhoto (6.0.6) to print pictures on a wireless HP Photosmart C7250's photo tray? No problems printing on the main tray, but can't find the right setting to use the 4x6/5x7 photo tray.