Session should be marked "distributed"?

Hi, i have heard that If an HTTP session needs to be shared between two WAR files in an EAR file, the session should be marked "distributed" in the deployment descriptor. I do not know what is the tag that im' suppose to implement here to make this work. And is it as simple as adding a tag to the application.xml to make it work? thx ahead for your help

http://forum.java.sun.com/thread.jspa?threadID=5138542&messageID=9509767#9509767
http://forum.java.sun.com/thread.jspa?threadID=5138534&messageID=9509564#9509564

Similar Messages

  • HT201365 I just I just updated to iOS 7 and now my calendars are not keeping the information on the days that should be marked.  The info is there in my iCloud on my computer, just not on the iPhone.  Has anyone had the same problem and what can I do abou

    I just update to iOS 7 on my iPhone 4s. The calendars on my iPhone are not keeping the information on the days that should be marked.  The info is there in my iCloud on my computer, just not on my phone.   Has anyone else had the same problem and what can I do about it?  Is it at bug in the iOS 7 update?

    What do you mean by "on the days that should be marked"?  Are you calendar events displayed on the wrong days?

  • R12:  License Manager - what should be marked?

    Our contract has the following:
    Oracle Order Management - Application User Perpetual
    Oracle Order Management - Electronic Order Line Perpetual
    Oracle Supply Chain & Order Management Intelligence - Application User Perpetual
    Oracle Advanced Pricing for Oracle Order Management - Application User Perpetual
    With this module / licensed products, what items should be marked on the Oracle License Manager?
    R12.0.6
    Thank you.
    Edited by: user10950423 on Jun 24, 2010 5:20 PM

    Hi,
    From OAM, go to License Manager Home > License Products, and select:
    Order Management
    Supply Chain Intelligence
    Advanced Pricing
    You could log a SR and confirm this with Oracle support.
    Thanks,
    Hussein

  • What kind of visa session should i use to communicate with a serial instrument?

    I´m trying to communicate with a serial board, i don´t want to use the Measurement and automation explorer, so the resource name should be COM1 instead of ASRL1::INSTR, how can i do this?. What king of session should i use? Waht visa VI should i use to open, close read and write from the srial port?. I want this to work with out MAX. Thanks in advance

    The below link dtalks about LabVIEW.ini settings.
    Go to this link and scroll down to the entry for serial. It will show you the syntax you need and alos provide another link for more info.
    I seem to remeber (not sure) that Visaconfig.ini defines the aliases normally assigned by MAX.
    http://labview.brianrenken.com/INI/undoc.shtm
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Session should logoff on click of save button in webgui window

    Hi All
    I am directly changing section 80 details using WEBGUI ervices( PA30 tcode with infotype 585 in change mode) WITH BELOW URL
    'http://XXXXXXXXXXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*pa30%20RP50G-PERNR=' lv_aempid
    ';RP50G-choic=0006;RP50G-SUBTY=4;RP50G-begda=01.01.1800;RP50G-endda=31.12.9999;DYNP_OKCODE=CHG'
    So user able to change their details using above URL, but when user clicks on save button, it is showing PA30 main screen..I want o know how to avoid this screen...
    My requirement is when user clicks on Save button, it should save and logoff from session.*
    Regards
    Srinivas

    Try to use CALL FUNCTION 'ITS_END_SESSION' in the user-exit.
    Of couse you must check that it is webgui session (not sapgui).
    Hope this helps

  • System should be marked as productive in the Solution Directory

    Hi
    I have to change Sand box system in Productive system,where i have to change it? Is this possible to define 2 systems as Productive system?
    Regards,
    Swaroop

    Hi Swaroop
    You mean where to hang the system on a logical component? If a system is
    its type of change for example from "development" to "Test", the system
    should be included in the appropriate column in the Logical Component. 
    You know  following System Roles  were deliveried from SAP.
    C           Source Systems        Development System                     
    E           Target Systems        Training System                        
    T           Target Systems        Quality Assurance System               
    P           Production Systems  Production System                      
    S           Target Systems         SAP Reference System                   
    D           Single System          Demo System                            
    V           Single System          Evaluation System      
    The fact is the role  "P  Production Systems  Production System"   is delivered only one times.
    But you can define other requested  roles for the system by your self.       
    You can create a new System Roles for example as a "Second Prodcutive     
    System" under the logical component. If you define the new system role
    and give the name for example "Second Productive System"   Other system can
    be assigned in the logical component as "Second Productive system"  .  If
    you synchronize the logical compoente in solman_dierectory. You see new role
    will be appeared there.  
    Best regards,
    Volkan

  • Edit update should be marked as mandatory.

    Dear Moderators,
    I would like to suggest here if anybody has posted any thread then after sometime if he is editing it then if anybody watching this thread he should know what was previous thread what edit done.
    Regards,
    Kaushal Rai

    >
    Kaushal Rai wrote:
    > Dear,
    >
    > You mean to say once I post new thread I can't do any change after 15 mins or once responded?
    >
    > Another things if i have replied to anybody then I can do changes as many as time I want? Reason behind it I want to know.
    >
    > Regards,
    > Kaushal Rai
    Hey when u r replying him....u can see the some symbols above ur writings like '' this quotation just select that one.. just u r words appeaed before my(This) post..will some what answer u r problem....
    Hope this will solve u r problem dear kaushal....and what vijay said is relevant...if u rpost is the last one u can edit when u want..
    Regards
    Sas

  • How should I mark a message as spam when using Mail with IMAP Gmail

    Hi,
    I've been using Apple Mail 3.2 with Gmail's IMAP for several month's and am very happy with the setup. One feature of Gmail that's great is the spam filtering, however, every day a couple spam messages get through the filtering. My question is this: What's the best way to train Gmail of a spam message?
    Accessing Gmail through the Safari allows you to mark a message as Spam. I assume that Gmail then does something to train its algorithm that spam has been received so that a similar message will go direct to the Spam folder the next time its received.
    I prefer to deal with my email via Apple Mail or via the iPhone Mail and have been moving spam messages to the Spam folder. Does this action do anything to train Gmail's spam filtering so that a similar message will go direct to the spam folder?
    Thanks

    Hello Hal:
    I think you will get a better answer to your question by contacting G-mail. In my case, I use AOL mail in Apple's mail application. AOL catches the vast majority of spam/junk and it is placed in a spam folder. The few that get through seem to be trapped by Apple's mail and placed in the Junk folder.
    Barry

  • How Session based web Application should work even after session expiry??

    I am looking for an experts opinion that how could I develop an application that should work after the expiry of web session too in the same way as it works in web session.
    How the session should be activated.
    As I understood, what if I store all the required information in xml and then on unlock session reload all the information from XML.
    Am I right or is there any other better way to do using servlets.
    Basically I need to implement Lock and UnLock mechanism in an application.
    Thanks

    I'm not sure I understand your question. But since no one answered this yet, here is my idea:
    If the user's session expires, any unsaved data is lost. The user should expect this.
    If do need to save any data, normally you store it it a database table with the user's ID so you can retrieve it. Two free databases are Oracle Lite and MySql. However, this will take quite a bit of time to learn if you are not already familiar with databases. Storing it in a database and retrieving it is much much faster than storing it in a file.

  • TS2167 iWeb: publish by ftp to GoDaddy webhosting service - get "publish error" at end of ftp session - always 1-2 files not successfully transferred - Why?

    Why do I get message "Publish error There was an error communicating with the server.  Try again later, or check with your service provider" when i publish websites to webhosting service (GoDaddy.com) from iWeb 3.0.4  even though most webpages have been transferred and are marked blue?   There are always a few pages marked red after each ftp transfer?   It seems that the ftp session is terminated by web hosting service too fast for iWeb 3.0.4. to register that files have been transferred successfully.  When I check pages marked red in iWeb with browser, they are often available and functioning.     I have to add many extra webpages (which I do not want) to get iWeb to register all my pages as transferred (marked blue).  If I do not do this, all pages on website are marked "red" after I close iWeb and restart it.   This means that everytime i make one little change to one page on a website of 8-10 Gigabytes,  I often have to republish the entire site!  
    I think (without understanding enough/anything about ftp protocolls and termination negotiations) that iWeb is not getting enough time at end of each ftp session to register that all the pages have in fact been transferred successfully.   Could this be the explanation?  If so, how do I "slow down" the termination of ftp session by my web hosting service GoDaddy so that iWeb 3.0.4 can see that all files have been successfully transferred and therefore should be marked blue?

    You're rather prone to problems, aren't you. It's not the first time.
    2 months ago :
    https://discussions.apple.com/thread/3822198
    5 month ago :
    https://discussions.apple.com/thread/3664339
    Which is the culprit site :
         http://www.melissaveres.com
         http://www.mveres-engraver.com
    And since you do not use iWeb's ftp, but publish to a folder, iWeb's job is done.
    You are now 100 percent responsible for your actions.
    Upload the files properly. And if you're not blind visually challenged, you can see for yourself where the files are on the server. No need for GoDaddy eyes.
    And why not use iWeb's FTP. Then at least you eliminate the human error.
    And no, GoDaddy won't have to help you with iWeb, because there's nothing to fix.
    And practice FTP first on your computer :
    http://www.wyodor.net/Tutorials/iWebDemo/sFTP.html
    Good luck.

  • Session and Access Restriction

    Hi:
    I have this problem with access restriction. I was trying to build a "secure" site with sessions where users are able to login and access secure webpages upon successful login. And these webpages are not available as soon as the user session expires or terminated. However, from time to time, these web pages are still accessible after logging out by pressing "back" button on the browser or book-marking these pages.
    I noticed that Hotmail and old Yahoo mail system have the same problem as the one that I have just described.
    I am not using https or virtual host or anythind like that, because I didn't have the resource. It is supposed to be a Basic Authentication (login/password) scheme.
    Could any one light me some fresh ideas?
    Thanks
    Tian Lei Xia ":)

    To avoid the bookmarking problem, set a session attribute with the login details.
    Once they login:
    if(request.getParameter("username")!=null)
         session.setAttribute("username","personA");
    if(session.getAttribute("username")==null)
         //don't display the page
    else
         //show them the pageThis is a very basic technique and there are other ways of doing this. As for logging out then the session should just be invalidated.
    An alternative would be to use the security features of the web deployment descriptor and get the web container to handle the sessions for you (See servlet API specs 2.3 for more details).
    Good luck,
    Anthony

  • How to handle sessions in struts

    i have created a session. even after logout its not destroying the session.
    //here i am creating session object
    public ActionForward setupdate(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) {
              ApplicationForm applicationForm = (ApplicationForm) form;
              String eid=applicationForm.getEid();
              HttpSession session = request.getSession(true);
              try {
                   PrintWriter out=response.getWriter();
                   if( applicationForm.getEid() != null && ! applicationForm.getEid().equals("") )
              session.setAttribute("User",applicationForm.getEid());
              System.out.println("you are logged in");
              out.println("you are logged in");
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                        return mapping.findForward("update") ;
    //this my logout method
    public ActionForward logout(ActionMapping mapping,ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response)
              { ApplicationForm applicationForm = (ApplicationForm) form;
              //PrintWriter out=response.getWriter();
              HttpSession session=request.getSession(false);
              try {
                   PrintWriter out=response.getWriter();
                   if(session == null)
                        out.println("FIRST YOU NEED TO LOGIN");
                        System.out.println("FIRST YOU NEED TO LOGIN");
                   else
                        out.println("THANKS FOR USING OUR APPLICATION!!!!");
                        System.out.println("THANKS FOR USING OUR APPLICATION!!!!");
                        out.println("id---->"+session.getId());
                        session.getAttribute("User");
                        session.invalidate();
              } catch (IOException e) {
                   e.printStackTrace();
              return mapping.findForward("logout");}
    please me help me out.
    saju

    You might want to check the API on that method again.
    public void setMaxInactiveInterval(int interval)
    Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.
    With regards to tracking who is logged on there are two issues.
    1 - tracking who is logged on
    - I would probably use a Map in application scope. Database table will also work. Its the same idea. When they log in, mark their presence. When they logout/expire then remove it.
    2 - responding to login/logout/expire events.
    - I would recommend using a HttpSessionBindingListener
    public class User implements HttpSessionBindingListener {
      String name;
      public User(String name){
        this.name = name;
      public void valueBound(HttpSessionBindingEvent event){
        // record login of this user
        if (userLoggedIn(this)){
          //user already logged in - throw an error and invalidate session
        else{
          // mark user as logged in.
      public void valueUnbound(HttpSessionBindingEvent event){
        // record logout of this user.
    }The code is invoked by the object being added/removed from a session.
    User user = new User("Bob");
    session.setAttribute("user", user);Cheers,
    evnafets

  • JTA Transaction and CUrrent Session

    We have the following problem. We configured hibernate with
    jta and when we execute a simple code that performs some hibernate
    queries we get the following error:
    "org.hibernate.LazyInitializationException: could not
    initialize proxy - the owning Session was closed"
    We discovered that if we leave the session opened the error
    disapears, but on the long run this crashes the server throwing a
    JDBC connection error.
    We tried to use getCurrentSession() instead of opening the
    session manualy but in this case we get the following error:
    "org.hibernate.HibernateException : Unable to locate current
    UserTransaction"
    This its quite strange because the current session should be
    bound to the current user transaction and its seems to us that our
    hibernate cfg file its ok.
    I´am posting part of my hibernate cfg file and the code
    that I execute.
    hibernate.cfg.xml
    <hibernate-configuration>
    <session-factory name="java:/hibernate/SessionFactory">
    <property
    name="hibernate.connection.datasource">java:fiap</property>
    <property
    name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
    <!-- Enable Hibernate's automatic session context
    management -->
    <property
    name="hibernate.current_session_context_class">jta</property>
    <property
    name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactor y</property>
    <property
    name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransact ionManagerLookup</property>
    <property
    name="jta.UserTransaction">java:comp/UserTransaction</property>
    <!-- <property
    name="connection.release_mode">after_statement</property>
    -->
    <!-- <property
    name="hibernate.transaction.flush_before_completion">true</property>-->
    <property
    name="hibernate.transaction.auto_close_session">true</property>
    and my java Code:
    try {
    tx = HUtil.getTx(); //JNDI lookup
    tx.begin();
    session = HUtil.getSessionFactory().getCurrentSession();
    //JNDI Lookup
    //session = HUtil.getSessionFactory().openSession();
    Query query = session.createQuery("from Persona where
    username = ?");
    query.setString(0, userName);
    persona = (Persona) query.uniqueResult();
    query = session.createQuery("from Festival where id = ?");
    query.setInteger(0, idFestival);
    festival = (Festival) query.uniqueResult();
    if (persona != null && festival != null) {
    query = session.createQuery("from Inscripcion where
    inscribeA = :persona " +
    "AND inscriptosEn = :festival");
    query.setParameter("persona", persona);
    query.setParameter("festival", festival);
    inscripcion = (Inscripcion) query.uniqueResult();
    return inscripcion;
    } catch (Exception e) {
    e.printStackTrace();
    throw e;
    } finally {
    tx.commit();
    //session.close();
    thanks

    The scenario you described is typical ... "If a client calls m1" ... there are 2 cases:
    (1) the client is already in a trans
    (2) not (1)
    Let (1). This is the case of a Client Controlled Transaction ... etc ... when s1 is called it begins a transaction in the client transactional context ... hence s1 can't call a kind of roolback but can force the rollback of the global transaction marking EJBContext.setRollbackOnly() ... s2 uses the same transactional context ... anayway the client is the only one that can commit. This happens because of "transaction required" as the transaction attribute, that in this case forces a flat transaction model. Different is the case if you uses "requiredNew" --> nested trans model ...
    (2) is the same of (1) except that the trans starts at application tier.
    "I still have one doubt. Wouldn't the stateless session bean loose the transaction context once I exit the second stateles session bean's method? Isn't that what stateless means? "
    No:
    stateless doesn't stay for the transaction context but for the conversational state with the client ... that is serializable ... it makes the beans more poolable ... that the stateful session bean has
    bye

  • Add VM to a Port Mirroring Session

    I need every VM added to a given folder in vCenter to be added to an existing distributed switch port mirroring session.  Is this possible using PowerCLI?

    The following will add the VM ($vmName) to a specific port mirroring session ($mirrorSessionName) on a distributed switch ($dvSwName).
    You can define the traffic direction(s) for which the VM needs to be added with the variables $Ingress and $Egress.
    Note that there isn't any error checking in the script.
    For example if the mirror session does not exist, the script will fail without an informative messages.
    To repeat this script for all VMs in a specific folder should be not too difficult, I assume ?
    $dvSwName = 'dvSw1'
    $mirrorSessionName = 'Test'
    $vmName = 'VM2'
    $Ingress = $false
    $Egress = $true
    $dvSw = Get-VDSwitch -Name $dvSwName
    $vm = Get-VM -Name $vmName
    $vmNic = $vm.ExtensionData.Config.Hardware.Device |
        where{$_.Backing -is [VMware.Vim.VirtualEthernetCardDistributedVirtualPortBackingInfo]}
    $spec = New-Object VMware.Vim.VMwareDVSConfigSpec
    foreach($mirrorSession in $dvSw.ExtensionData.Config.VspanSession){
        if($mirrorSession.Name -eq $mirrorSessionName){
            $vspan = New-Object VMware.Vim.VMwareDVSVspanConfigSpec
            $vspan.Operation = [VMware.Vim.ConfigSpecOperation]::edit
            $vmInRc = $mirrorSession.SourcePortReceived | where{$_.PortKey -contains $vmNic.Backing.Port.PortKey}
            if($Ingress -and !$vmInRc){
                $mirrorSession.SourcePortReceived.PortKey += $vmNic.Backing.Port.PortKey
            $vmInTx = $mirrorSession.SourcePortTRansmitted | where{$_.PortKey -contains $vmNic.Backing.Port.PortKey}
            if($Egress -and !$vmInTx){
                $mirrorSession.SourcePortTransmitted.PortKey += $vmNic.Backing.Port.PortKey
            $vspan.vspanSession = $mirrorSession
            $spec.vspanConfigSpec += $vspan
    $spec.ConfigVersion = $dvSw.ExtensionData.Config.ConfigVersion
    $dvSw.ExtensionData.ReconfigureDvs($spec)

  • Invalid HTTP session

    In my web application, I use session object to carry variables cross pages. After the data is no longer need, I call
              session.invalidate();
              session = request.getSession(true);
              to invalid the old session and open a new one.
              The problem here is that oftenly, I will get a error saying:
              java.lang.IllegalStateException: HttpSession is invalid
              It happens when I am trying to set or get certain Attribute from the session object. I cannot find out what the problem here is. Any help will be greatly appreciated!
              By the way, I am using WebLogic 8.1 with service pack 2.
              

    session.invalidate() does not remove the actual session; It just marks it as
              invalid.
              So, you should remove all attributes from the session and keep using the
              same session again (instead of creating a new one).
              for(Enumeration enum = session.getAttributeNames() ; enum.hasNext() ; )
              session.removeAttribute((String)enum.next()) ;
              Eventhough, it is a little expensive in performance, it will work for sure
              Thanks,
              Selva-
              "Clare" <[email protected]> wrote in message
              news:3f8ca9e8$[email protected]..
              > In my web application, I use session object to carry variables cross
              pages. After the data is no longer need, I call
              > session.invalidate();
              > session = request.getSession(true);
              > to invalid the old session and open a new one.
              > The problem here is that oftenly, I will get a error saying:
              >
              > java.lang.IllegalStateException: HttpSession is invalid
              >
              > It happens when I am trying to set or get certain Attribute from the
              session object. I cannot find out what the problem here is. Any help will be
              greatly appreciated!
              >
              > By the way, I am using WebLogic 8.1 with service pack 2.
              

Maybe you are looking for