Distributed sessions for multiple web-apps in a single App. Server (v.8.1)

I have 3 applications on App. Server 8.1 (running on JDK 1.5)
App-A handles login
App-B and App-C are functions that are accessible after login is validated.
It works fine with App. Server 6.5 (JDK 1.3)
But the distributed session cannot be shared in App. Server 8.1 (JDK 1.5)
So App-A handles sign on and stores the user's Login Name on the session.
App-B and App-C read the user's login name from the session object and grant access to different modules.
1. Starting App-A and perform login
2. Starting App-B from App-A (it is linked there)
3. Starting App-C from App-A (it is linked there)
In step 1, a new session is created for the user, an attribute ("LoginName") is put in the session - ie. using HttpSession.setAttribute()
In step 2, the program checks for attribute "LoginName" from the session object - ie. using HttpSession.getAttribute()
If not found, redirect to login; if found, then continue with App-B
In step 3, same as in step 2 above.
It works fine with App. Server 6.5 but problem occurs in step 2 and 3.
web.xml of App-A, App-B and App-C:
<i>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>App-A</display-name>
     <distributable/>
</i>
sun-web.xml of App-A, App-B and App-C
<i>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app>
<session-config>
<session-manager persistence-type="memory">
<manager-properties>
<property name="persistenceFrequency" value="web-method"/>
</manager-properties>
<store-properties>
<property name="persistenceScope" value="session"/>
</store-properties>
</session-manager>
</session-config>
</i>

Distributed sessions has nothing to do with different web applications. The concept is about distributing load for the same application between several appserver instances running on the same box(different jvm) or on some other box in the network.
What you used with iAS 6.5 is not available in 8.1 because sharing sessions between web apps is forbidden by the servlet spec. You should consider repackaging your apps. into a single web app. or using other way of signing/verifying user identity(check Sun Access Manager for example).
Have a look at this thread as well: http://swforum.sun.com/jive/thread.jspa?threadID=100931

Similar Messages

  • One Search service application for multiple web applications in a single server

      We are planning to host 17 Web applications in a single Server. Do I need to create search service application for each web application or I need to create one  Search service application , create a Content source for each web
    application and create a Result source for filtering. Which is the best approach. And which approach takes more RAM memory.
       In my application I am using Search web part, "Recently Changed Items", "Popular Items" web parts. when I created only one one  Search Service application for all web applications and using Result sources ,
    I am not getting the results. What could be the problem.

    Hi,
    One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
    Multiple SSA's will eat up RAM/CPU like a mother :)
    As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
    Thanks,
    Mikael
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Multiple Web Sites on OS X Mavericks Server

    I want to run multiple test web sites off my home Mac OS X Mavericks Server 10.9 can someone point me to a good "How to" on the specific of how to use the Server application to create and operate multiple web sites of a single Mavericks Server?
    Example
    MyServer.inno.com          10.0.2.5
    Basic web is up and running....
    I want to host four other web sites off the same machine for testing purposes how do I do that?
    MyServer.inno.com          10.0.2.5
    MyServer.web1.com          10.0.2.5
    MyServer.web2.com          10.0.2.5
    MyServer.web3.com          10.0.2.5
    MyServer.web4.com          10.0.2.5
    so if I go to the server and load
         MyServer.web1.com          10.0.2.5
    it load a different web server.
    My thought is to use virtual host how does Apple / Community recommend I set this up...
    T.

    Please do not squat in the "home.com" domain.  If you're going to use a bogus domain, please use a bogus to-level domain such as server.home.jarvis — .jarvis is not currently a valid top-level domain, though that might change with the way ICANN has been bringing many new top-levels online, so a real registration is safer here.
    Peter Jarvis wrote:
    Assumptions:
         1. The Server is not intended to be publicly accessable from the Internet
    How will it be accessed?  Entirely privately?  No external access?  OK.
         2. Private Network - 10.0.1.X
    I'd probably pick something a little further into 10, such as 10.8 or 10.10, or 10.20.1.x — if you're ever using a VPN, it's best to use a weirder subnet, and I've worked with several folks that have 10.0.1.0/24 subnets.
         3. DHCP Reservation for the Mac Server - 10.0.1.2.
    I usually prefer keep the server and the other fixed-address hosts outside the DHCP pool.
         4. Server Domain name MacServer.home.com
    Are you the registrant for the home.com domain?  (I'd tend to doubt that, and would therefore suggest use of a real and registered domain or subdomain that you have permission to use or (less desirably) use a bogus top-level domain.)
         5. Example Web Site http:www.rouxacademy.com to also run off the same server...
    Is that going to be public?
    Prequisites:
         1. Static Server IP Address / DHCP Reserved IP Address against MAC Address
         2. DNS Service Configured and Running
         3. Web Service Configured and Running
         4. Example Web Site http:www.rouxacademy.com
         5. You have a basic website (with mysql) files available
                   Directory roux_academy (Contains Basic Web SIte files etc)
    OK.
    Steps:
         1. Static Server IP Address / DHCP Reserved IP Address against MAC Address
    The Airport Airport allows you to Reserve and IP address against a MAC (Media Access Control) physicall address of Server Ethernet Card. You can do this or have the Airport allocated DHCP address from 10.0.1.50 and above and statically allocate the server address of the machine.
    I'd leave the server out of the address pool.  So long as the pool and all static IP hosts are in the same block (usually a 255.255.255.0 or /24 subnet) it'll all work, and you won't need to entangle the OS X Server with the DHCP server.
         2. DNS Service Configured and Running
    Install Mavricks, install OS X Server application, launch server app...
    Go to DNS tab, define a new host name MacServer.home.com and associate with 10.0.1.2 IP Addresss
    Start DNS Service...
    Note: DO not publish DNS service via airport to Internet...
    Other than not squatting in that domain, yes.  There's no reason to open TCP or UDP port 53 inbound.
         3. Web Service Configured and Running
    Go to Web Sites tab...
    Click + and create new web site entry
    Domain Name:                http:www.rouxacademy.com
    IP Address:                     Any
    SSL:                               None
    Store Files in:                /Volumes/dev/Library/Server/Web/Data/Sites/roux_academy
    Who can access:          Anyone # I would restrict to a single user
    Additional Domains:     rouxacademy.com
    no http: prefix there, but yes.
    If you're not exposing the server to the 'net (as mentioned above) there's probably no need to restrict.  If you do need to restrict, you'll need to edit configuration files for Apache, or some other technique — maybe a VPN, if you're allowing (controlled, VPN-based) inbound access into your network.
    Start Web Service...
         4. Back to DNS
    Add host name....
    www.rouxacademy.com / 10.0.1.2
    # Do not create an MX record or publish DNS via airport...
    AirPort does not know from MX records, and does not provide DNS services.  AirPort will know about your local DNS server, since you are apparently using the AirPort for DHCP.
    You can also add the DNS translation during step 2; Apache and DNS are not tightly linked here.
    Launch Safari and type
         www.rouxacademy.com          - should launch web site...
         rouxacademy.com                   - should launch web site
    Caveat: the Real rouxacademy.com will not be accesable from the server or local machines on 10.0.1.X network...
    Ah, so there's a key detail — you're playing games and mimicking a real web site?  OK.
    The rouxacademy.com web site will be accessible from the server, as that'll (also) have the DNS translation (and remember the basis for virtual hosting is the client — the server in this case — has a translation for the host — the rouxacademy.com or www.rouxacademy.com domain in this case — and passes that string over the HTTP or HTTPS connection to the web server.   If you really want to keep the server from accessing this web site, then you'll have to push the local translation of that domain into the hosts file, or to a separate DNS server. 
    I'd try to avoid this configuration though, particularly as your references to MX earlier implies that this domain might be more active than just the web services discussed here — trying to run split-horizon DNS means you'll get what's internal and external somewhat tangled, and you'll have to keep mail — for instance — aimed outside and web services aimed internally.  This is possible for many cases, but gets tricky.
    Best to test the web site with a different domain name, and to use /-relative notation for accessing the files, or using the web content management system's configuration settings to control the "published" name of the site.

  • Storing SessionManager or Server for multiple web applications

    We currently have one enterprise application with 2 web applications installed. These 2 web applications must share the same session cache.
    Toplink is installed as a shared library for both of these web applications.
    What I am wondering is how Server and SessionManager should be utilized.
    In our servlet initialization of web application one we get an instance of the SessionManager and assign the SessionManager to a static instance variable.
    static SessionManager sessionManager;
    sessionManager = SessionManager.getManager();
    Now whenever we want to get a client session from either web application we make the call
    Server serverSession = (Server) sessionManager.getSession("XXX");
    From looking at the code for the sessionManager.getSession("XXX") I see that this
    results in a synchronized method invocation which is in turn bottlenecking our database access code.
    My question is should we not just be storing the Server in a static instance variable to distribute client sessions to both web applications and not the SessionManager.

    Hi,
    One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
    Multiple SSA's will eat up RAM/CPU like a mother :)
    As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
    Thanks,
    Mikael
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Use single realm for multiple web applciation in sharepoint 2013 and adfs 2.0

    Use single realm for multiple web applciation in sharepoint 2013 and adfs 2.0
    Please help!!

    I dont think you can do this, because you have to name/url of the web application in realm. You have to add new realm for each web application.here is script to add another realm.
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
    $sts = Get-SPTrustedIdentityTokenIssuer | where {$_.Name -eq "ADFS2.0"}
    $uri = new-object System.Uri("http://url/")
    $sts.ProviderRealms.Add($uri, "urn:sharepoint:Name")
    $sts.Update();
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • OWSM and Webservices -Define policies once for multiple web services

    I thought that through using OWSM we had the possibility to use the same Policy Lines for multiple web services.
    Mostly when web services are used/integrated within an application, the same rules need to be defined and I thought this requirement could be met when using OWSM.
    But you need to define the policy requirements on each web service that's passing through a gateway or agent, why isn't it supported to define policy lines one level higher to be able to use the same requirements for multiple web services?

    Nathalie,
    For this purpose OWSM allows you to use Template Policy Pipelines.
    For individual services, you can than replace the pipeline with the Template.
    But I have to agree with you here: the templating functions are rough on the edges, e.g. limited editing capabilities.
    Hope this helps.
    Best regards, Sjoerd

  • Configuring multiple web sites in a single OC4J instance with 10g OEM

    Hi There,
    there doesn't seem to be a way of configuring multiple web sites within a single OC4J instance using the 10g Enterprise Manager Website, so can i assume that there's some performance related issues with doing this, or is it just a case of if you want multiple web sites, configure it manually?
    We currently use 9iAS release 1 (which has been configured to use multiple web sites - with normally 1 j2ee app in each website - in a single OC4J clustered instance, using mod_proxy to forward the http requests onto oc4j), but we are looking to migrate to 10g very soon...
    The initial configuration was done by an external company, so i'm not entirely sure of the reasons why it was chosen (perhaps so that if there was a problem with a single website, it wouldn't impact all our applications)..
    Does anybody else currently use multiple *-web-site.xml's in a 9iAS release 2 or 10g in a production environment, and if so did you encounter any problems with the OEM website (assuming you configured them manually)?
    Thanks in advance,
    Andy

    Hello,
    Something like this:
    New-OWAVirtualDirectory -WebSiteName "FBA"
    Enable the Basic authentication via running the following command:
    Set-OWAVirtualDirectory -Identity "yourservername\owa (FBA)" -BasicAuthentication $true
    Restart the IIS admin service in services.msc
    Thanks,
    Simon Wu
    TechNet Community Support

  • Can I exchange a multi app with a single app?

    Is it possible to update/replace a multi-folio app with a single-app version ?

    the key to sharing apps is that they all have to be on the same Apple ID. So if you have the same Apple ID on all the devices, they can share apps.
    You may want to research into messages, etc because that can be one of the pitfalls of sharing the ID's.

  • WL 8.1: Configuring a document root for multiple web applcations in a domain

    Subject: Application - document root
    I am using the Apache web server with the BEA proxy plug-in. All requests to the
    apache server are proxied to WebLogic.
    http://localhost/wip-gl/xxx.jsp?param1...
    http://localhost/wip-am/xxx.jsp?param1...
    http://localhost/stg-gl/xxx.jsp?param1...
    etc
    For weblogic I have a domain where I have deployed 6 web applications. Each application
    represents a web site.
    .../wip-gl
    .../wip-am
    .../stg-gl
    etc
    But when processing jsp's it appears that the document root (web root) is not
    defined correctly.
    For each application how do I define the document root?
    Thanks for the help.

    Distributed sessions has nothing to do with different web applications. The concept is about distributing load for the same application between several appserver instances running on the same box(different jvm) or on some other box in the network.
    What you used with iAS 6.5 is not available in 8.1 because sharing sessions between web apps is forbidden by the servlet spec. You should consider repackaging your apps. into a single web app. or using other way of signing/verifying user identity(check Sun Access Manager for example).
    Have a look at this thread as well: http://swforum.sun.com/jive/thread.jspa?threadID=100931

  • Create a session for a web service in jdeveloper10g

    Hi All,
    Question 1: How to create a session for a java web service created in jdeveloper10g.
    Question 2: How to restrict a particular user for accessing a java web service.
    I have done this by using key store. But when creating the java web service client, again we have to configure the key store, which should not happen in my case. Hence i like to create a method for login in a web service, create a session id for the user if he is a valid user and send the session id back to web service client. Using the session id they can access other methods in the web service.
    Can any one suggest how I can accomplish this. Thanks in advance.

    I don't know this can be disscussed or not.
    Please delete my topic if this can't be disscussed here.
    Thank you.

  • How to make Adobe acrobat feature to convert SAP  Pages to PDF available for multiple users connected to the same Citrix server

    Hi,
    In my previous endeavours to solve this business requirement where multiple users will be able to use the Adobe acrobat feature to convert SAP pages inside SAP to PDF, I was told that it is not possible to do this for multiple users at the same time. However I have found an article according to which it says it is possible. Could you check it once and let me know if this article can be used for implementing the requirement stated above as this link clearly indicates that Adobe Acrobat is supported on Citrix.
    Please find the link below where it states it is adobe acrobat is supported in Citrix for multiple users.
    http://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/citrix.html.

    1. What is the Acrobat feature that you mean? There's nothing specific to SAP included with Acrobat.
    2. Yes, some Terminal Server configurations appear supported (check carefully). All users of the terminal server will need a license, so far as I know - total licenses = total individual people using.

  • After Effects CC (AERENDER) licensing errors for multiple CORE renders on a SINGLE machine.

    I am hoping someone  can assist me with an issue I am having in After Effects CC, or know who I should reach out to.
    I currently use SMEDGE as a render farm tool. It can launch multiple instances (per core of a licensed machine) of aerender to render a project. This was worked beautifully on CS6, but with CC is breaks. It shoots out the following error: "After Effects error: Unable to obtain a license. Please run the full application to correct the problem or get a more detailed message."  My machine is licensed with me logged in and I can run AE CC GUI with no issue.
    Is there a way to activate multiple aerender nodes on a single licensed machine? I have an 8-proc machine that used to be able to launch 8 instances of aerender on CS6, since A.E.CC, no more.
    Any help would be appreciated as it has cut my render time down drastically.
    Thanks,
    -Eric

    Yes.
    ... though we think that what we have in store for next year will make such little hacks seem silly. (We have a large portion of our team working on some projects that should make folks like you who want faster rendering very happy.)

  • Multiple Installations on Creative Cloud Single App Purchase

    - Is it possible to install a second copy of my Creative Cloud Single App purchase on my second computer?
    Thanks

    The license is generally for 2 installations for your use. You can read the license that should be under legal of the Acrobat folder. You can also obtain the EULA from the Adobe.com site.

  • SSM - Configure Multiple Webserver's with a Single Database Server

    Hi,
    I need to install SSM using the following system landscape: Distributed system using a single database server and two webserver's.
    The system is configured to use the Microsoft Network Load Balancing and that's the reason why exist two webserver's. When the user put the URL, the connection can be done to the webserver 1 or webserver 2 (the Microsoft Network Load Balancing will manage that).
    I was checking the install guide "NW CE 7_1 SP5 SQL Server Install Guide.pdf" but there is no reference to this system landscape. The only "similar" is for High Availability System using Microsoft Cluster Service (MSCS), but that's not what I need.
    I was planning to do a distributed installation and in the database server I will install:
    - the Database Instance of NetWeaver
    - the Database components of SSM (PAS)
    In the Webserver I will install:
    - the SCS Instance of NetWeaver
    - the Primary Application Instance of NetWeaver
    - the Web components of SSM (PIP, etc...)
    For a scenario of a single webserver and a single database server, this work just fine.
    My questions are:
    - how can I configure SSM to work in a scenario of two webserver's and a single database server?
    - Should I install the same components in both WebServer's?
    - Should I use the same instance number or a different one?
    - It is possible to have two netweaver instance sharing the same database?
    Thanks in advance for all the help
    Regards
    Pedro

    Hi Pedro,
    - how can I configure SSM to work in a scenario of two webserver's and a single database server?
    Yes see below. But also make sure SAP will support the configuration you're planning!
    - Should I install the same components in both WebServer's?
    yes.
    - Should I use the same instance number or a different one?
    The same makes configuration eaiser
    - It is possible to have two netweaver instance sharing the same database?
    Not for the SCS but yes for application server (your Java instances)
    The central services, SCS instance, are one per a SAP System. So you cannot install one on each Web Server and operate them simultaneously.
    Given your database is also a single point of failure then I would suggest you install the SCS with it on the database server.
    On each of the Web Servers install an application instance of SAP NW CE.
    Since the instance are on different servers they can share the same instance number.  It is not mandatory but it may make configuration easier. e.g. for the the webservice the port will not change.
    There can only be one Interactive Publisher (PIP) running so this may as well also go on your database server.
    The Pilot Application Server (PAS) there can be multiple of so install one on each Web Server.
    See section 5.2.3 of Server Installation Guide SAP Strategy Management Release 7.0 Support Package 2 and higher for configuring SAP NW CE to point to the one instance on Interactive publisher.
    See section 5.2.7 of Server Installation Guide SAP Strategy Management Release 7.0 Support Package 2 and higher for setting up the Web Service target in Interactive publisher this will need to use the virtual ip(or hostname) of your Network Load Balancer.
    Best of luck.
    Marcel.

  • How do you switch apps in a Single App subscription?

    Am currently using Id, would like to try Ps, but don't wish to lose access to the latest Id that I'm using. When you switch, are you actually downloading a trial version that you can use simultaneously to the chosen single app already being used? Then when the 30 days are up you have to choose one?
    Thanks for the clarification.

    Hi...
    Apple's policy is to list by Purchase date but you can provide feedback to here.

Maybe you are looking for