Servlet to servlet communication in the same server

Hi everybody!
I have two .wars in the same JBoss + Tomcat web server. Both .war have their own login system throught j_security_check. I'm using Struts for development and Win 2003 for OS.
I want to login into .war 1 and "use" Action class of .war 2. Is there any way I can do this? I found piece of code to put response and request to other servlet (from servlet 1) with RequestDispatcher, but how can i catch this new response and request in .war 2 (servlet 2)? And how to fix login in servlet 2?
Piece of code that i found:
ServletContext context = session.getServletContext();
RequestDispatcher rd = context.getRequestDispatcher("/ServletName/Action.do");
rd.include(request, response);          Tnx,
Stanislav

Not realy...
The way I do it is that I put the data I need in webapp2/Servlet2 in the session >in the webapp1/Servlet1 and then redirects. The session should be managed >over the different web-applications.
Have to check the documentation if you need to set something to have >cross-application session...How can you share session between two different .war files (i presume different context and diferent session)? In mine situation i have two different realm, also...

Similar Messages

  • Securing applications communications running in the same server

    Hi everybody,
    I want to share critical information between two applications (medical information about patients) using JMS queues, moreover due to this criticity i was planning to secure this communication using SSL. The problem is that one of the client applications, because of his architecture, have problems when accessing the JMS queues.
    But I have to say that both applications will run in the same server (physical machine), knowing that, what kind of security problems could we encounter if, finnally we don't cypher the communication?
    I guess that the danger is lower than if the two applications would run in different machines, wouldn't it?
    Thanks!!!

    hi,
    add crossContext="true" in server.xml under tomcatx.x\conf\ in your <Context tag

  • Two Communication Server in the same Server ?

    Hi All,
    do you know which are the steps and recommendations to install TWO Communication Station in the same server (Windows 2003) ?
    The first one is connect to CRM develop system, and the second one to the CRM Quality System.
    Regards,
    Davide
    [email protected]

    Hello Davide,
    Note 503340 is not valid for 5.0 and above but its major points are still true:
    1. Only one default destination can be setup in the DCOM Connector
    which is used by the mobile clients after the installation.
    2. Only one default COM4ABAP instance can be setup on the
    communication station. This COM4ABAP instance is started
    automatically after reboot.
    DCOM Connector is now .NET Connector and COM4ABAP is now NET4ABAP in 5.0 and higher.
    Clearly, connecting to TWO (or more) CRM system has two parts:
    a.) For Data Transfer with Conntrans. You can configure A SINGLE COMMSTATION INSTANCE to communicate with MULTIPLE destinations by just adding destinations in the QmtCnfg tool on the CommStation. You can then specify this Commstation and the destination value as you created in the QmtConfg tool on the client and data transfer will work.
    b.) For changing passwords of Employees in Tx: SMOEAC. This uses the NET4ABAP service running on the CommStation which is called by the CRM Server. There can be ONLY ONE NET4ABAP service running on a CommStation and this connects to ONLY ONE CRM SYSTEM at a time. Hence it is not possible for one NET4ABAP service to serve multiple CRM systems.
    If you need both a and b, it is not possible. If you need only a, it is possible and detailed above and also in the CommStation installation guide.
    I also believe you have a message running with SAP Support on this same issue and you would have gotten the same details from them.
    Best Regards,
    Ankan

  • How can I migrate file shares & permissions from one volume to another on the same server?

    I am replacing a storage array and as part of that process, I need to move files/folders and Shares/permissions from one Volume to another volume within the same server.
    The server is Windows 2003 file server.  The file transfers are not a problem, moving all 40 shares with permissions etc. is my main concern because in order to maintain everything I need to change the drive letter of the new volume to match the old
    one so that links to various resources throughout the network do not break.

    Hi, 
    If you want to copy files/folders from one Volume to another volume within the same server, you could use the File Server Migration Tool (FSMT) or Robocopy to accomplish your goals. The tool can move all of the files from the shares on your original volume
    to the new volume.
    For more detailed information, you could refer to the articles below:
    File Server Migration Toolkit
    http://technet.microsoft.com/en-us/magazine/2006.10.utilityspotlight.aspx
    The File Server Migration Toolkit (FSMT) is a free download available at:
    http://www.microsoft.com/en-us/download/details.aspx?DisplayLang=en&id=10268
    Robocopy
    http://technet.microsoft.com/en-us/library/cc733145.aspx
    FSMT and Robocopy will not copy Share permissions but only NTFS permissions. So if the drive letter will not be changed, you can backup and restore the Share permission with steps here:
    Saving and restoring existing Windows shares
    http://support.microsoft.com/kb/125996
    Regards, 
    Mandy
    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.

  • Communication problem the web server extension (WGATE) failed to receive a

    Hi,
    When a user tries to access his timesheet he get the below error:
    <b>communication problem the web server extension (WGATE) failed to receive a response from the ITS web service</b>
    Only ONE user is getting this error. If everyone get\s the same we can check on the ITS side, but if only ONE user is getting it.
    Please help.
    Regards,
    PK

    HI ALL,
    Thanks for your time. The issue got resolved however without cheking the logs itself. The problem was with the scripfile. All other users and all other scripts were working, except one. And it got recified.
    Regards,
    P. Kumaravel.

  • Not all of my photos upload to my website when I publish it. when my site finishes publising I get an error that says, "There was an error communicating with the FTP server. Try again later, or check with your service provider."

    Not all of my photos upload to my website when I publish it. when my site finishes publising I get an error that says, "There was an error communicating with the FTP server. Try again later, or check with your service provider."

    I am publishing directly to an FTP server (option 1).  Is this the optimal method or should I be publishing to a folder and then (how do/would I?) publish to my hosting domain?
    I'm wondering if this has really anything to do with the publishing process, or whether it just has to do with the photos and/or the photo albums.  I've deleted the photo albums with the missing pictures from my site on iweb thinking a file might be corrupt. (I'm getting the albums from iphoto -- drag/drop method into iweb) I then replaced these albums with the same albums as the previous ones from iphoto and then published my site again -- and the EXACT same photos were once again missing in the NEW albums as were missing in the old albums...
    Maybe it is a publishing issue, or it could be a photo/file issue.  However, these albums aren't very large -- the largest containing 135 photos --
    Please! if you have any suggestions or ideas as to what is happening I would be greatly appreciative!
    I'm pulling my hair out here trying to diagnose the problem...

  • Exchange 2013 Windows Server 2012 NLB and DAG on the same server

    Hi all, I am installing Exchange 2013 infrastructure with two servers. 
    Both servers have the CAS and Mailbox roles. 
    For mounting on High Availability, will create a DAG. 
    Client Access I have no external Network Load Balancer. 
    I thought about installing the NLB servers in the DAG members, this could not be done before. 
    I do not know if in Windows Server 2012 and Exchange 2013 
    Can I install NLB on members of a DAG? 
    regards
    Microsoft Certified IT Professional Server Administrator

    Hi,
    I’m afraid that WNLB and DAG cannot coexist in the same server. Because WNLB is incompatible with Windows failover clustering. If we're using an Exchange 2010 DAG and we want to use WNLB, we need to have the Client Access server role and the Mailbox server
    role running on separate servers.
    For more information, you can refer to the following article:
    http://technet.microsoft.com/en-us/library/ff625247(v=exchg.141).aspx
    Thanks,
    Angela Shi
    TechNet Community Support

  • Server 2012 R2 DC and File Server on the same server

    alexthefourth wrote:
    what i plan on doing is running esxi as the hypervisor and running a vm with server 2012 r2 and another server with windows 7 due to a fax application not being able to run on server editions.
    You can still run two Windows 2012R2 Servers on Esxi, just like Gary said.  For 10 users, it's really not that big of a deal either way.

    KOOLER (StarWind) wrote:You're breaking up the whole thing! Virtualize both DC and FS and live your long & happy life!https://technet.microsoft.com/de-de/library/virtual_active_directory_domain_controller_virtualizatio...http://community.spiceworks.com/topic/448752-server-2012-r2-virtual-file-server-best-practiceGood luck :)--is it okay to run a domain controller with dhcp, ad, and dns on the same server? this is mostly due to budget concerns for purchasing a second server 2012 license.
    1 License covers two V servers doesn't it? +1

  • Activating MS Office 2013 ProPlus via KMS running on the same server

    Given: Microsoft Windows Server 2008 R2 Enterprise 64-bit, all the latest security updates applied.
    KMS service set up and running, all the recommended updates applied (to handle possible activation issues for Windows 8 etc)
    Microsoft Office 2013 Standard deployed on the server mentioned above and on workstations on intranet, volume licensing in effect (proper KMS key for activation of Microsoft Ofice 2013 has been entered).
    Problem: I can't activate MS Office 2013 installation running on the same server where KMS service is being run.
    There are no entries in KMS event log related to this failure.
    Everything was restarted, reinstalled etc several times already (including installing 32-bit and 64-bit versions of the Office).
    Output of slmgr.vbs /dlv 2E28138A-847F-42BC-9752-61B03FFF33CD:
    Windows Script Host
    Software licensing service version: 6.1.7601.17946
    Name: Office 15, KMSHostVL edition
    Description: Office 15, VOLUME_KMS channel
    Activation ID: 2e28138a-847f-42bc-9752-61b03fff33cd
    Application ID: 0ff1ce15-a989-xxxx-xxxx-xxxxxxxxxxxx
    Extended PID: 55041-00206-234-486666-03-xxxx-xxxx.xxxx-xxxxxxx
    Installation ID: 01683679734050124078134659xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: xxxxx
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/05/2015 10:00:12 AM
    Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal
    Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0
    OK
    Output of cscript ospp.vbs /dstatus
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    ---Processing--------------------------
    SKU ID: b13afb38-cd79-4ae5-xxxx-xxxxxxxxxxxx
    LICENSE NAME: Office 15, OfficeStandardVL_KMS_Client edition
    LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
    LICENSE STATUS: ---OOB_GRACE---
    ERROR CODE: 0x4004f00c
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x4004f00c
    Last 5 characters of installed product key: GVGXT
    DNS auto-discovery: KMS name not available
    Activation Interval: 120 minutes
    Renewal Interval: 10080 minutes
    KMS host caching: Enabled
    ---Exiting-----------------------------

    Given: Microsoft Windows Server 2008 R2 Enterprise 64-bit, all the latest security updates applied.
    KMS service set up and running, all the recommended updates applied (to handle possible activation issues for Windows 8 etc)
    Microsoft Office 2013 Standard deployed on the server mentioned above and on workstations on intranet, volume licensing in effect (proper KMS key for activation of Microsoft Ofice 2013 has been entered).
    Problem: I can't activate MS Office 2013 installation running on the same server where KMS service is being run.
    There are no entries in KMS event log related to this failure.
    Everything was restarted, reinstalled etc several times already (including installing 32-bit and 64-bit versions of the Office).
    Output of slmgr.vbs /dlv 2E28138A-847F-42BC-9752-61B03FFF33CD:
    Windows Script Host
    Software licensing service version: 6.1.7601.17946
    Name: Office 15, KMSHostVL edition
    Description: Office 15, VOLUME_KMS channel
    Activation ID: 2e28138a-847f-42bc-9752-61b03fff33cd
    Application ID: 0ff1ce15-a989-xxxx-xxxx-xxxxxxxxxxxx
    Extended PID: 55041-00206-234-486666-03-xxxx-xxxx.xxxx-xxxxxxx
    Installation ID: 01683679734050124078134659xxxxxxxxxxxxxxxxxxxxxxxxxxx
    Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342
    Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343
    Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345
    Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344
    Partial Product Key: xxxxx
    License Status: Licensed
    Remaining Windows rearm count: 4
    Trusted time: 2/05/2015 10:00:12 AM
    Key Management Service is enabled on this machine
    Current count: 0
    Listening on Port: 1688
    DNS publishing enabled
    KMS priority: Normal
    Key Management Service cumulative requests received from clients
    Total requests received: 0
    Failed requests received: 0
    Requests with License Status Unlicensed: 0
    Requests with License Status Licensed: 0
    Requests with License Status Initial grace period: 0
    Requests with License Status License expired or Hardware out of tolerance: 0
    Requests with License Status Non-genuine grace period: 0
    Requests with License Status Notification: 0
    OK
    Output of cscript ospp.vbs /dstatus
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    ---Processing--------------------------
    SKU ID: b13afb38-cd79-4ae5-xxxx-xxxxxxxxxxxx
    LICENSE NAME: Office 15, OfficeStandardVL_KMS_Client edition
    LICENSE DESCRIPTION: Office 15, VOLUME_KMSCLIENT channel
    LICENSE STATUS: ---OOB_GRACE---
    ERROR CODE: 0x4004f00c
    ERROR DESCRIPTION: Run the following: cscript ospp.vbs /ddescr:0x4004f00c
    Last 5 characters of installed product key: GVGXT
    DNS auto-discovery: KMS name not available
    Activation Interval: 120 minutes
    Renewal Interval: 10080 minutes
    KMS host caching: Enabled
    ---Exiting-----------------------------

  • XI and R/3 Running on the same Server.

    Hello Friends!
    One year ago I've installed XI on a machine that already had a R/3 instance. Although there were different instances, one for SAP R/3 and one instance for the ABAP part of XI, I couldn't get to connect XI to the R/3, appartently XI searched for the instance through the IP address, ignoring the instance ID parameter.
    Now I have again the same challenge, I have only one machine to run R/3 and XI.
    Does anyone know if it is possible to do?

    Hi Tadeo,
    from ERP 2004 you can install XI on the same server.
    Regards,
    Udo

  • How can i deploy two different versions of the same application on the same server??

    I have two different versions of an application. One is a released version. And another version under development. I need to port this version of the application to the same server. I'm using the same classes and packages(except for some new ones). Is it sufficient if i change the name of my ear(application name). Or should i change my code also.

    Hi
    You can repackage the new versions of ear,jar and war with different names. I hope that should work well.
    Cheers
    -pradeep

  • Can different cluster  of SAP Business One installed on the same Server

    Hi!
       Can anyone tell me if B1 different cluster version installed and run on the same server. Example B1 2005A AND B1 2005B. If it can, could you please include the procedure how can it be done.
    Thanks,
    Jo Borlagdan

    No, A and B have different patch cycles - so there would be conflicts in SBO-Common. Therefore it will not work.
    You could try to workaround that with named instances of MSSQL, but installation & update would need additional care + workarounds.
    The best way to combine 2 SAP Business One cluster "servers" but still on one hardware would be to use a tool like VMWare... - but such a configuration has not been released by SAP - i.e. if there's an issue that could be traced back to the VMWare system, SAP might not be (li?)able to fix it
    Sorry,
    Frank
    Message was edited by: Frank Moebius
    BTW: Please note that you need to think eventually about conflicts with MS licenses. SAP has an agreement with MS which ASFAIK covers the license for 1 VMWare Windows system on 1 Windows PC so that we can use WMWare for SAP Business One sandbox systems - after RAM upgrades () it works fine...

  • How can I using tpcall from one service to another service in the same server

    When I using tpforward between two services in one server, it's working ok. However,
    when I using tpcall from one service to another service, it's failed?
    anybody can tell me why?
    thanks
    george

    "george" <[email protected]> wrote:
    >
    When I using tpforward between two services in one server, it's working
    ok. However,
    when I using tpcall from one service to another service, it's failed?
    anybody can tell me why?Basically, tpcall:ing another service in the same server is a no-no, unless you
    a) are running a multi-threaded server (requires TUXEDO 7 or newer + compilation
    options) or
    b) use tpacall() instead of tpcall() and specify the flag TPNOREPLY. This is probably
    not what you want to accomplish, though.
    The reason is that TUXEDO servers by default (and always in versions before 7)
    are single-threaded. If service A and B both reside in server X, server X will
    be busy taking care of the call to A. If A makes a call to B, the call will be
    put on the queue to X, but X will not look at the queue until it is done with
    A, which won't happen until B returns... deadlock!
    You can play tricks with starting multiple instances of X, but in the end you
    will always face a risk (something lika a race-condition) for a dead-lock.
    Solution: Move service B to another server (usually quite easy) OR switch to multi-threading,
    if that's possible. Just make sure all code your service calls is MT-safe as well...
    thanks
    georgeHope this helps you,
    /Per

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

    We have installed Adobe Acrobat X Pro- English,Francais,Deutsch version 10.1.9 in our test environment and tried  testing it for converting SAP pages into PDF with a few pilot users. In doing so we faced a challenge, where only one user at a time can use Adobe Acrobat PRO to convert SAP pages in to PDF.As long as the first user who  is connected to Adobe Acrobat Pro via SAP isn’t logged off, other users connected to the same  server  are not being able to get the “Save As” dialog box to save the PDF in their preferred location.
    This is a business requirement and we need an urgent solution for the same. Can anyone help us in telling us if this is possible and if yes the how to go about?

    It's not something we deal with here, the LiveCycle products are a different world. Key points: Adobe LiveCycle is a range of products, some desktop, some server. LiveCycle PDF Generator is the one you should look at, it comes in 3 editions. License terms are by negotiation. Key management is via its Java API.

  • Multiple users connected to the same server

    Hi there,
    I was wondering if this scenario would be possible to be implemented on a Snow Leopard Server installed on Mac Mini 2.66:
    - one iphone developer that needs to be remotely connected to the server to develop apps
    - one project manager that will handle the project files and documentation. He will login to the server and upload/download files
    - one app GUI designer that will login from time to time, to make the design in photoshop.
    Can these 3 users be logged in the same time on the same server without any lag? Or this version of server will only support one user at a time?
    Thank you!

    Yes, you can do ssh and terminal connections, but I'm guessing that's not what you want here; I'm guessing you're headed over from X Windows or (more likely) Windows Terminal Services.
    Google for Aqua Connect and related for the path that you're headed toward.
    In general, Apple Mac OS X and Mac OS X Server runs one seat and one keyboard and one display per station, whether it's an Xserve server or a MacBook or whatever.

Maybe you are looking for

  • Keys on the Keyboard not working.

    A couple keys on my keyboard are not working. The Y is one of them. Every time I click Y it makes this noise but it doesn't type Y. I know the problem is not with the hardware because I replaced the keyboard with a brand new one and it still is the s

  • Neen help with date range searches for Table Sources

    Hi all, I need help, please. I am trying to satisfy a Level 1 client requirement for the ability to search for records in crawled table sources by a date and/or date range. I have performed the following steps, and did not get accurate results from A

  • Tool to verify IDSM signature

    Looking for tool like virus/worm simulator to verfiy/test working of different Signatures specially related to worm/virus

  • "An error occurred while installing OS X" message

    I've got this message during the installation of OS X Maverick : "An error occurred while installing OS X" It seems blocked since a half hour right now, I can't proceed in any way because there are no "buttons", just turning off the power. What shoul

  • 3rd gen. wont charge on my computer

    Yesterday I received my 3rd generation Ipod. I bought it off ebay and it was just the ipod so i went outy and bought some ear phones and a Belkin USB 2.0 to 30 pin cable for Ipod To charge and sync it. Well This morning my Ipod died from a low batter