Sessions in jspx between different Application Server

Hello All,
I have two applications running in two different Application servers.
I call the jspx in one applications server from jspx of another applications server using the href.
My requirement is, when I logout the first application it shud automatically inviladate session in the second jspx also.
Is there any way of acheive this..
Also please pass on any links to work on sessions in jspx.
Thanks
Krrish

Hi frank,
Thank you for the reply..
Can you please provide any links to SSO enabling the custom application.
Thanks
Krrish

Similar Messages

  • Manual JNDI lookup for EJB3 between different Application Server Instances

    Hi all,
    i have spent quite some time looking into this problem and searching the net but i just can't figure out for the life of me what i am doing wrong so i hope someone here can give me a clue or a good resource where i can look it up myself.
    I am currently doing some interoperability tests concerning EJB calls between Glassfish and Weblogic 10. In my test setup i have an EJB deployed in a jar file on one server and a servlet in a war file deployed on the other. The objective is to try to look up and call the EJB from the servlet. As there seem to be some issues with injection in Weblogic 10 i set that one aside for now (i have opened a case at BEA support for this) but i would like to do a plain old JNDI lookup to obtain the EJB.
    The online tutorials and FAQs i have read so far all state that this can be done the same way as it works for EJB2.x, at least if i understood them correctly. The interessting thing is, when i deploy an EJB2.x bean i can look it up without problems, but when i try to do the same with the EJB3 bean the name cannot be found. On the other hand when listing all contents of the JNDI tree in Glassfish from a stand alone application i can see entries for both EJBs of the type java.naming.Reference (in Weblogic i can also see entries for both, but the ones for EJB3 are of some weird internal weblogic types, which i put down as a weblogic problem for now).
    The lookup code for the servlet running in weblogic looks like this:
    Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "corbaname:iiop:1.2@localhost:3700");
    Object myEjb = new InitialContext(env).lookup("JNDINameDisplayedByContextListing");
    I know that the preferred way would be to have the corbaname put into weblogic.xml/sun-web.xml and just use an InitialContext without an environment to perform the lookup but i wanted to get rid of any additional indirections to pinpoint the source my problem and it should work this way, too. As i said, it works when i target an EJB2.x bean but not with the EJB3 one, so i guess i am doing something wrong there. The jar file contains the interface of the bean annotated with @Remote and the implementation of the interface annotated with @Stateless, i also tried setting the mappedName attribute for the bean and use that name as JNDI name, but that also fails. In addition i added an ejb-jar.xml to the jars META-INF containing the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
         version="3.0">
         <enterprise-beans>
              <session>
                   <ejb-name>SecurityTest3EJB</ejb-name>
                   <ejb-class>
                        testcase.ejb.SecurityTestBean
                   </ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    But the ejb-name specified there does not show up in a context listing, so i would guess that means the file is ignored or only accessible from within the same application server (note, there is no indication of any problems in the Glassfish log when deploying the jar file).
    This might be just a stupid mistake by me, but i just can't figure it out at the moment, so any advice will be greatly appriciated.
    Thanks, Chris

    I think i stumbled across something now. From some posts it seems to me that the EJB3 spec does not require EJBs to be accessible from a remote location, since this can be achieved by using the @RemoteHome annotation and performing a EJB2.x compliant look up. Is that correct?

  • Is it possible to integrate a different application server with Creator

    It's not love at first sight, but I think i'm gonna fall in love with creator. my question is, is it possible to use/integrate a different application server into creator instead of Sun's Application Server. I prefer to use Jonas

    Alexis, thanks for your help -
    The following was taken from the JRUN logs right after trying to deploy a sample Creator project called teta -
    It works fine with the APP server provided with Creator.
    # Created by JRun on 07/12 18:25:27
    07/12 18:25:38 info JRun Web Server listening on *:8105
    07/12 18:25:39 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/JRun4/lib/jrun-comp.ear
    07/12 18:25:39 info Deploying EJB "JRunSQLInvoker" from: file:/C:/JRun4/lib/jrun-comp.ear
    07/12 18:25:39 info Deploying enterprise application "default-ear" from: file:/C:/JRun4/servers/teta/default-ear/
    07/12 18:25:39 info Deploying web application "JRun Default Web Application" from: file:/C:/JRun4/servers/teta/default-ear/
    07/12 18:25:40 info Web Services in default-ear#default-war:
    07/12 18:25:40 info AdminService
    07/12 18:25:40 user JSPServlet: init
    07/12 18:25:41 info Recovering 1 session(s)
    07/12 18:25:41 info Deploying web application "file:/C:/JRun4/servers/teta/teta.war" from: file:/C:/JRun4/servers/teta/teta.war
    07/12 18:25:41 user JSPServlet: init
    07/12 18:25:41 error Could not pre-load servlet: JSPServlet
    [4]java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
         at java.lang.Class.getConstructor0(Class.java:1762)
         at java.lang.Class.newInstance0(Class.java:276)
         at java.lang.Class.newInstance(Class.java:259)
         at jrun.servlet.WebApplicationService.addListener(WebApplicationService.java:1393)
         at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.listenerclassEnd(JRunTagLibraryInfo.java:602)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:115)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [3]java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:115)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
         at java.lang.Class.getConstructor0(Class.java:1762)
         at java.lang.Class.newInstance0(Class.java:276)
         at java.lang.Class.newInstance(Class.java:259)
         at jrun.servlet.WebApplicationService.addListener(WebApplicationService.java:1393)
         at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.listenerclassEnd(JRunTagLibraryInfo.java:602)
         ... 34 more
    [2]java.lang.reflect.InvocationTargetException
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:119)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [1]jrun.jsp.compiler.JRunTagLibraryInfo$TLDParseException: Exception parsing the TLD null : null
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:198)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [0]javax.servlet.ServletException: Exception parsing the TLD null : null
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:457)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    07/12 18:25:42 error Could not pre-load servlet: Faces Servlet
    java.lang.NullPointerException
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Sending a message to different application server

    Hi all
    I have a session bean that send message to a message driven bean in the same application server.
    I wonder how to send the same message to a message driven bean in a different application server.
    Is Context.PROVIDER_URL (jndi hard coding) important for that matter?

    anyway if i do not want use jndi.properties file it's enough specifing the Context.PROVIDER_URL pointing to the new jboss server???
    // hard coding configurazione jndi
              Properties properties = new Properties();
              properties.put(Context.INITIAL_CONTEXT_FACTORY,
              "org.jnp.interfaces.NamingContextFactory");
              properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
              properties.put(Context.PROVIDER_URL,
              "xxxxxxx");
              try {
                   initialContext = new InitialContext(properties);
              } catch (Throwable ex) {
                   throw new ExceptionInInitializerError(ex);
              }

  • Switch to different application server in ABAP program

    Hello everyone,
    I am currently working on some ABAP objects classes and tool programs for additional user administration functionality. We are runnig a SAP ERP system with distributed application servers and active logon load-balancing for users.
    I'd like to switch to a different application server from within my program in order to get all relevant information for an active user. So far I only found the function TH_SELECT_SERVER (from the function group THFB) for this, but this uses a separate dialog for interactively switching to another application server.
    I could use RFC calls with a lookup table for the destinations of individual application servers, but this would not be as flexible. Also I would have to create some wrapper code for standard functions which are not defined as RFC-usable. So I would rather like to switch to the other server instead.
    What I'd like to do instead is switching to another server from a user-related server list without any additional interaction in order to run a function locally on the other server. Does anybody know some function, object method etc. which will do the trick?
    Greetings,
    Markus.

    Hello Thomas,
    Bingo !!!
    I debugged the report program RSM51000_ALV & found the sub-routine SM51_USER_CMD.
    The SY-UCOMM for our purpose is 'RLOG'. and it utilises the FM 'TH_REMOTE_TRANSACTION' )
    Hope this will be of some help to the thread starter.
    BR,
    Suhas

  • What is diff between oracle application server and weblogic server?

    what is the exact difference between oracle application server and weblogic application server?

    The difference between Oracle Application Server AND WebLogic Server has been discussed in a lot of forums dated 2008 and earlier comparing OAS10g with WebLogic10.0/WebLogic9.2
    But, now since Oracle has taken over WebLogic, this is not really important.
    Now, OAS has no further releases post 10g. WebLogic Server will be the Oracle's strategic application server going forward.
    So, if your query is for choosing one of them for a new environment, you are better of with WebLogic Server 10.3.6 OR WebLogic Server 12g
    As we will not have further releases of OAS and also OAS10g will be end of life soon, we recommend Oracle WebLogic Server.
    If you still want to know the differences, here is one such old oracle documentation link that talks about it
    http://docs.oracle.com/cd/B10467_16/migrate.904/b10425/asmwl02.htm
    Arun

  • (266758030) Can WebLogic Workshop Web Services be deployed on a different Application Server?

    (266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
    on a different Application Server?
    A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
    that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
    however, it is a general goal to expand the functionality of the Workshop tool for
    other App Servers.

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Can Forms 9i run on a different Application Server, e.g. Apache?

    Can Forms/Reports 9i run on a different Application Server, e.g. Apache? i.e. without needing to use 9iAS.
    It is quoted in the document "Migrating Client/Server to the web" that it may be possible, but will not be supported. Is this possible?
    The reason I ask this is due to the costs involved of 9iAS. If I can use an alternative route like Apache / Tomcat, it's free. Then I only need the developer suite licensing.
    Thanks,
    Jacques

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • How to share security context between different application ?

    Hi all,
    I have two applications(ADF faces + BC, JDev 10.1.3.1) deployed into OAS 10.1.3.1.
    The two applications are :
    1) SalesApp -> main menu page = SalesMenu.jspx
    2) ReportApp -> main menu page = ReportMenu.jspx
    I want implement security using CustomLogin.
    The question is :
    How can I share security context between the applications ?
    What I mean is, from SalesMenu.jspx there is one menu item to jump into ReportMenu.jspx, and I want user no need to Login again, Login is once and the user is recognized in the two apps. How to achieve that ?
    Thank you for your help,
    xtanto

    Xtanto,
    actually you can't if these are separate J2EE application deployments. The session is not shared and thus the authentication is lost. I heard that OracleAs is planning to implement a feature that allows you to share the session and thus a context between two J2EE deployments. I am not 100 % sure this is the case and will check with OC4J Product Management
    Frank

  • Unable to use session.setAttribute() method in oracle application server

    i am creating a simple jsp page for two lines of code as
    <%@ page language="java" session="true" %>
    <% session.setAttribute("sam","sam"); %>
    and deploying it in oracle 10g application server. when i am accessing that page, getting an error as
    oracle.jsp.provider.JspCompileException:
    Errors compiling: page url
    Method setAttribute(java.lang.String, java.lang.String) not found in interface
    javax.servlet.http.HttpSession. session.setAttribute("sam","sam");
    can anybody give the solution???

    Here is a diagnostic page which will tell you what version of JSP/Java etc you are using, the session Id, and where the session comes from.
    The standard approach for session tracking is to use a browser "session cookie", using the standard name JSESSIONID.
    Session cookies are different from standard cookies as they just remain in memory, and do not get stored to your hard drive. As such, They are not so easy to monitor. This page also uses javascript to show any cookies.
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    JSP version = <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()  %> <br>
    Java version = <%= System.getProperty("java.vm.version") %><br>
    Session id = <%= session.getId() %><br>
    From cookie = <%= request.isRequestedSessionIdFromCookie() %> <br>
    <h3>javascript cookies</h3>
      <script>
        document.write(document.cookie);
      </script><br>What you described with the IE browsers sharing sessions when you start one from the other with "File:New Window" is the expected behaviour. All "child" windows of a browser share the same session. No, there is nothing you can do to stop this or affect this functionality.
    Cheers,
    evnafets

  • Session time out in Websphere Application Server

    Hi ,
    I am using Websphere Application server 5.1 . I need to set the session time out for my web application. Actually, i edited the web.xml and set the value
    <session-config>
              <session-timeout>10</session-timeout>
         </session-config>But when I am refreshing my jsp page, after 10-15 mts, i am able to get a valid page without any problem. Actually since the session time out is 10 mts , I should not get a valid page after 10 mts . I tried one more option for setting the session time out . I opened the admin console of my App server and set the session time out there too. But session not seems to be timing out after 10-15 mts. I am still able to get a valid jsp page. I have many session attributes in that page. So after 10 mts, i should not get a valid page.. I dont know, what's wrong in my configuration. If some body knows the answer please help me.
    thanks in advance.
    Aneesh K

    So what you're trying to achieve is that the ui closes or becomes invalid if no action has been performed for a certain time? That should be easy enough, install a javax.swing.Timer somewhere in your application and set it to the time you desire. Whenever the user performs an action, invoke reset() on the timer (it's a fairly cheap operation). If the timer fires, you know the timeout occured.
    You have to decide for yourself what you consider a 'user action' in this context. If you want the session to stay alive as long as the user is still doing something, just install an AWTEventListener, which can react to pretty much anything, mouse movement, keyboard input etc.

  • How to check if a user session is active in Java application server

    Hi Experts,
          We have a online scenario with a third party system by which a portal user will launch the third party application in a new window from portal. The SSO will work at the third party web application with the dynamic key that is generated by calling a webservice for that user. Now, as the user works on the launched screen, they will have to check whether the user (logged in portal) session is still active. ie., they will be periodically calling a service hosted by SAP java application server to find out whether the corresponding user who launched the session is still logged in or logged out.
    So, my question is, how can i find out programatically whether a user/user's session is still logged in/active in SAP Netweaver Java AS? We are in version 7.3.
    Kindly help me in this regard.
    Regards
    Vijay.K

    Hi Vijay,
    Could you check below links
    Tracing Single User Sessions - Administration - SAP Library
    Display and Manage User Sessions (SAP Library - Tools for Monitoring the System)
    Hope this helps.
    Regards,
    Deepak Kori

  • Data exchange between different application domains

    is this possible?
    say i have example.com/swf_1.swf which dynamically loads a module example.com/swf_2.swf in a different application domain. is it possible to still exchange data between the two swf files? if so, how?
    thanks.

    Have a study of LocalConnection Class
    link is:
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_13.html

  • URL Rewriting Session ID Length in iPlanet Application Server

    Hi there,
    Does anyone know what the maximum length of the session ID value is when
    using URL rewriting/encoding for session tracking (i.e.: ";jessionid=1234"
    appended to the end of the URL) with iPlanet Application Server 6.0's
    servlet container (or any previous versions)?
    Does the length vary or is it fixed? And does WebSphere encode server or
    failover information into the ID? WebLogic for instance, encodes the
    primary and secondary failover servers into the ID when running in a
    cluster)?
    And finally, is there any way to restrict or specify the maximum length of
    the session ID?
    I ask this due to a limitation with some WAP clients & gateways which
    prevents the URL from exceeding 128 characters.
    Any info on this issue from iPlanet staff or anyone else is much
    appreciated.
    <background-info>
    Please see the following links if you'd like some additional background:
    http://e-docs.bea.com/wls/docs60/////wap/wapdev.html#1024984
    under the heading "Session Tracking" at the bottom
    http://groups.google.com/groups?hl=en&safe=off&th=eb7f38aa5086972e,13&seekm=
    8gaki8%247d5%241%40newsgroups.bea.com#p
    </background-info>
    Regards,
    Sasha Haghani

    Sasha Haghani wrote:
    Hi there,
    Does anyone know what the maximum length of the session ID value is when
    using URL rewriting/encoding for session tracking (i.e.: ";jessionid=1234"
    appended to the end of the URL) with iPlanet Application Server 6.0's
    servlet container (or any previous versions)?
    I'm fairly certain that it is fixed. 18 for the attibute, 16 for the value, plus
    1 for the equals. (Plus 1 for the ? if it didn't already exist.)
    So 35 or 36 depending on how you count it. Someone needs to verify this and
    check my counting though.
    >
    Does the length vary or is it fixed? And does WebSphere encode server or
    failover information into the ID? WebLogic for instance, encodes the
    primary and secondary failover servers into the ID when running in a
    cluster)?I don't know what WebSphere does. iAS does not encode failover information in
    the ID. Because of the way session is propogated, no server information needs to
    be embedded in the id.
    >
    And finally, is there any way to restrict or specify the maximum length of
    the session ID?No.

  • EJB Supporting Different Application Server

    I have a task to develop an session/entity bean(for both select and insert) which needs to be called from both WebSphere Application Server(4.x) and Resin Application Server
    For your information - WAS uses EJB(1.1) and Resin uses EJB(2.0).
    I want to create this session/entity bean which works on both application server without doing any change in code. Is that really possible. If YES - HOW ? Please suggest if you really know anything on this topic. Thanks.
    Zahid.

    So - Which Entity Bean should I use. CMP or BMP. I would prefer CMP as I do not have to write code for callback methods. Cracker - could I contact you. If yes - please email me at [email protected] I really need help on this and want to complete this. Won't take much of your time. Thanks.
    Zahid.

Maybe you are looking for

  • Macbook PRO 2009 running extremely slow all of a sudden

    Hello, I have been encountering recent problems regarding my macbook pro 15" from 2009. All of a sudden it became extremely slow and spinning beach ball every time I click something. It used to be very fast it's as if something happened over night. I

  • Realtime data integration with Third party application

    A customer wants to send data to a third party application when a user modifies some information on a business object (ie PO Amount, Employee Name etc). How can you trap this change as close to realtime as possible within SAP?

  • Found additional log file in Workspace / SharedServices/ BIPlus

    Hi all, My application has implemented since Sept 2009. Then recently we found that there're additional log files found in the system which previously do not have such log file:- 1. stdout_console.log and license_messages.log -> in /hyperion/BIPlus/l

  • WinXP Crashed, need to transfer from iPod to new machine

    My copy of Windows XP Pro crashed, and now I want to transfer my music from my iPod to my computer, with a fresh copy of XP Home. Is there any easy way to do this? I saw a page on the Apple site that talked about switching to disk mode, but it's a li

  • Cloning with rman

    Hi all, cloning the database using rman. i configure everything and finally executed RMAN> duplicate target database to 'clone'; It have executed. but because of some problem with naming convention of directories it is cancelled. I resoleved that and