How the best way to keep the information user´s?

Hello people.
In my application, I use the method getDBTransaction () .getSession (). getUserData() to store user information, such as the ID, user name, etc...
However when my application is used by more than 20 users. Application loses the information in session variables very often. In most cases the user session is lost in less than 2 minutes of use. Some entities in my application using this information to fuel elements of the entities which are necessary for the table, so that the application generates errors like Houston-27014 and Houston-25017.
I wonder what the best way to store this information so that I can use the methods of the data model and user interface methods.

Thank you once again.

Willian

What is described in the [docs here: http://download.oracle.com/docs/cd/E15051_01/web.1111/b31974/bcstatemgmt.htm#sm0495]

Timo

Tags: Java

Similar Questions

  • 10 workstation online best way to keep the host offline and guests?

    Newbie question: Workstation 10 - have a host Windows 7 Ultimate x 64, several guests Linux Mint 17.3 (KDE). The machine is portable i7 with 16 GB of RAM. The network is wireless only (cannot use cable in current situation).

    I would keep the Windows 7 host permanently out of the network. The guests are online and used for web and similar access. What would be the best way to set up on the side of the network, assuming that it can be done?

    Thanks a lot for your help!

    PH

    Hello

    Well this is... depends on what you intend to 'offline' for the customer.

    If you are planning that the guests to be accessible from the outside (I mean through wifi to your host), the host has (?) to be somehow connected, so online?

    There is perhaps a way to restrict connections from hosts on the outside... so that web page in emails do not work, but the host is will still be able to receive a part of traffic in my humble OPINION.

    With my knowledge and my experience, I know:

    -You can connect a guest with his * own * USB hardware. I mean you can disconnect from host a WiFi USB (or USB ethernet adapt) card and connect it to a given host. So the host could be offline (no wifi, no ethernet), but the guest can be connected through the material, it will set up.

    -guests could communicate with each other via a 'host-only' adapter or a bridge (as your ethernet NiC).

    -When the ethernet NiC host is physically connected (and guests on her bridge), communication between clients is broken... but a software solution is to add a dummy loopback adapter to simulates network card is connected. In this used during travels by train, without ethernet or wifi, to avoid changing the working configuration of the guests in bridge on the ethernet adapter that I used to have to work! :-) Modifying simply physical WMnet0 (eg) to ethernet virtual network configuration microsoft Loopback to tour.

    Took the 3 above stated and your configuration:

    -1 host must be offline

    -several guests that should be online

    -ethernet to the home not connected

    You can try to:

    -installation of a map of looping to the host (http://www.groovypost.com/howto/microsoft/install-a-loopback-adapter-in-windows-7/ )

    -connect and configure a physical map of wifi USB to one of your comments (comments should have a virtual USB controller installed).

    -share your comments above WiFi connection.

    -Configure the * other * invited to use the above share under their gateway address (and DNS I guess?) and set up their virtual connection through the loop (you may need to manually change the address/subnet of the closure to match that of the shared connection).

    It's an idea to dig.

    Own a unique login prompt works for sure, but use it as a gateway to the other guests might be the tricky part (at least for me)!

    My 2 cents! ;-)

    Kind regards.

  • What is the best way to keep the high resolution when recording "for the web".

    the files that I save to the web so I can get them in jpg (or gif) are coming very pixelated.  That's when I print the image.

    What is the best way to save for the web, an image and keep the good resolution.

    using a business card template.  template Avery will allow me to attach images I want to project.  to do this...  I 'get file computer' and it deletes the image in but real little... then you are supposed to expand on your work as you want.  Well, when I enlarge this image file, it gets pixelated bad.  I think it's the way that I am saving it.  I do not adjust anything when I save.  Maybe I should.  This is where I need advice.

    That's what avery model notes on the images, I am allowed to use - when downloading the image, the maximum allowed size is 4 MB.  You can download the JPG and PNG RGB or CMYK images.  so when you recommend things, can you please take this into account

    Thanks for oyur times.

    Aida,.

    When you register with the default template using save for web, it's usually a setting very low.

    While in the registration window, you can set the size in pixels of the image you want with the quality and the resolution too.

    Refer to video tv.adobe.com save for web or Adobe Help file for detailed instructions.

    Florian

  • Best way to keep the battty

    My phone is iPhone 6 Grey, 64 GB with IOS 10.0.2.

    My phone battery screen was error and I have changed a new battery for two times. I want to know is the best way to protect my battery.

    Charge it as often as you can.

  • Battery: What is the best way to keep when not in service

    Hello

    Now you know if it's the thread appropriate to ask.

    I have a 4 GB T400 but I decided to keep it until windows 7 fate because only he is lagging as * & ^ % and using my Office XP instead

    I think that Windows 7 comes out in full on September 09, so I wonder what is the best option to keep my laptop without altering my battery... I just got the laptop 29 Jun

    GAL like sh! t... F * & ^ Vista!

    Thank you

    Have you read the page I linked to?

  • What is the best way to create a limited user account?

    I'm trying to set up a user account which only allows access to the media, optical drive (read-only, if possible), programs 3 cards and records in a folder that is not visible to this account. What is the best way to go about this?

    Thank you!

    Hello

    You can check the links that has information about the types of accounts of user below.

    Types of user accounts: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ua_c_account_types.mspx?mfr=true

    Overview of user accounts: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/usercpl_overview.mspx?mfr=true

    How to create and configure user accounts in Windows XP: http://support.microsoft.com/kb/279783

  • Are there guidelines on the best way to set up multiple users?

    My hard drive has been reformatted; Operating system reinstalled; Windows 7 Home premium operational. I now at least 4 users (one being administrative, each separate passwords and permissions.) I wonder if there is some general guidelines in doing so. I'm not well the language in the OS (c :)) properties/security.)

    Sorry, I'm not sure I follow 100%, but that is the information that you need:

    http://Windows.Microsoft.com/en-us/Windows7/create-a-user-account

    more info - http://www.homeandlearn.co.uk/BC/win7/user_accounts.html

    My apologies if I misunderstood.

  • Best way to keep a list and a synchronized SimpleListProperty

    Hello
    What is the best way to (i. e. - for the moment work) to keep my 'plain' list and JFX SimpleListPropertry synchronized? Currently, I think something like that, but I'm sure that there is a better way:
    public class MyEntity {
        private List<String> myList=new ArrayList<>();
    
        // getters and setters
        public List<String> getMyList() {
            return myList;
        }
        public void setMyList(List<String> myList) {
            this.myList = myList;
        } 
    }
    
    
    
    
    
    public class MyEntityJFX {
        private MyEntity backer=new MyEntity();
        private SimpleListProperty<String> myList=new SimpleListProperty<>(FXCollections.observableList(new ArrayList<String>()));
    
        
        
        
        //Constructors
        public MyEntityJFX() {
            this.bindToBacker();
        }
    
        public MyEntityJFX(MyEntity backer) {
            
            //backer attribute checking logic ommited... 
            this.backer=backer;
            
            //filling the SimpleListProperty
            if(backer.getMyList()!=null && !backer.getMyList().isEmpty())
            {
                for(String s : backer.getMyList())
                {
                    this.myList.add(s);
                }
            }
            this.bindToBacker();
        }
        
        
        
        
        //Service methods
        /**
         * Synchronizes JFX properties' values with backer's
         */
        private void bindToBacker()
        {
            this.myList.addListener(new ListChangeListener<Object>() {
    
                @Override
                public void onChanged(Change<? extends Object> c) {
                    //not sure if this is a good approach
                    //and what exactly to do here
                }
            });
        }
        
        
        
        
        //Getters and Setters
        public SimpleListProperty<String> myListProperty()
        {
            return this.myList;
        }
        
        public final List<String> getMyList()
        {
            return this.myList.get();
        }
        
        public final void setMyList(List<String>myList)
        {
            //don't like this at all
            this.myList.clear();
            if(!myList.isEmpty())
            {
                for(String s : myList)
                {
                    this.myList.add(s);
                }
            }
        }
    }

    Use Bindings.bindContent (list, observableList)

  • Best way to keep 2 VMs on 2 different Macs in sync?

    Hello

    I have a Macbook laptop, Leopard, who inherited an iMac under Tiger, all data and applications running. I just tried to resume the VM on the Macbook & he warns against possible instability if I continue. -He looks so much like that I have to create a virtual machine on the Macbook & then import or attach files hard of the orginal VM on the iMac. Will this work? & what is the best way to then maintain the virtual machines synchronized? (two-way changes possible). Will I have to use the tools of command line or that can do everything in the GUI? Oh - the virtual machine is Win2k Pro, BTW

    Thank you

    GAM

    (1) If you (Mac) sync s/w, who has worked at the block level (IE, avoiding mega-file copies), why don't keep you them synchronized like that?

    It works (assuming that you do not synchronize when the virtual machine is running, and of course). My recommendation against the clock was on the assumption that you do not have block-level backup software and would therefore have to copy everything, which is probably too big to be useful.

    (2) are violate you licensing agreements if you have the exact same virtual machine on 2 different Macs (continue as above) & never run them at the same time?

    WARNING: I am not a lawyer, nor I speak on behalf of someone else. I think it is an acceptable thing to do. The essential fact is no more than a version is never used both - you may think that moving the virtual machine of it around (which I think is undoubtedly very well) and make a backup on another computer (which I think is also unquestionably very well). Synchronization of two guests and never use a version of the virtual machine, you're just swapping which copy the backup and that is in use.

  • What is the best way to keep the block diagram / cleaning of façade?

    Hello

    I'm relatively new to Labview so I'm not able to say if I'm overloading my programs or make my too crowded block diagram. I was wondering if there was some ways to tell if I can simplify my programming just by looking (perhaps only experience contributes to these things)?

    I enclose my VI here. Currently, she is able to monitor the voltage and current of two engines. On the screen, you can see an indicator with the voltage and current values and there are cards that can display signals of different engines with a menu drop-down.

    The façade is pretty clean, in my opinion of novice, but the block schema seems messy to me, just at the first glance. I foresee a problem occurring in the future however. In the future, I will have the VI to monitor 50 engines globally. All of the programming will be the same as the one I have now, but it will have 50 indicators and unfortunately 50 times just about everything. I would like to avoid this, but I don't know how I did.

    I use a USB-6009. I use its four differential inputs to monitor the voltage and current of the two engines. In the future, I will get more units DAQ (25 in total because 2 motors can be monitored for each data acquisition). The new Renault will help will help with more resource space, but I think things complicate with the added option of 24 more Assistants of data acquisition (as used in my code).

    Thanks for any help you might be able to provide!

    Usually, it is above all the experience that will teach you the best methods for making your code to do pretty. I don't know anyone who is proud of his first application of claws. There are some resources out there to help with best practices, as that group on ni.com, but you will learn most of your own development.

    Your façade is superb. FPs in general really are to you. You can do it as ugly or pretty as you want. When you have a few controls in duplicate and the Group of indicators, you should use clusters and berries to simplify. You can use a bit of cleanup in this regard, but not much. In addition, I personally hate read red text unless it is a warning any.

    Your block diagram could use a little cleaning in a sense of modularity. You have a lot of repeated code, which you might consolidate in to a Subvi, which is used in multiple locations, or in a loop For. A general rule is to keep your block diagram within a single monitor. You should not scroll. Your application is quite simple, so it is difficult to BUMBLE

    Here are a few details on your block diagram:

    • Click with the right button on your devices on the block diagram and uncheck the "display as icon". You are welcome.
    • Operations on each waveform "(x*2-4)" / 16 in double ": create a Subvi and/or run the waveforms through a loop."
    • You do a lot of 2-element arrays and then indexing. Just replace the ones that have a Select node based on digital.
    • All your code runs every time, including the knots of your property at the bottom, which is not necessary. As you learn LabVIEW architectures, you will learn how to get around this with the initialization and the output of code, but for now, you should put a case around those structure for only when the engine numbers change.
    • I don't know how you're timing your main loop, but you should put a delay in there because you don't need the DAQmx node shoot as fast as your CPU will allow.

    There are videos of intro free that you can watch to learn what OR think in terms of coding and teach you some of the basic features and such. Here's a three-hour course, and here's a six-hour course.

  • That it is the best way to see what information do not need my computer

    Too many files when I go to Windows and are recently; that's nolmal I see this information, want to know if there are programs to clean up my computer and are safe.

    follow these steps:

    Shenan Stanley tips: will probably want to clean this machine...

     

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    ·                                 MalwareBytes (FREE)

    ·                                 SuperAntiSpyware (FREE)

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know usingGoogle (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Do a house cleaning and the dust of this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 4.5 and 9 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

    Those who can help you discover visually where all space is used. Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Cleaning the components of update on your Windows XP computer

    While probably not 100% necessary-, it is probably a good idea at this time to ensure that you continue to get the updates you need. This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on theroot of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing youpouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

  • What is the best way to keep the two synchronized computers?

    I just got Lr4, which I use in addition to CS5.5 Design Premium, and I want to use Lr as the editor and a primary raw file manager.

    I continue my work and computers synchronized via a 2 TB external drive that fits in my pocket and SmartSync Pro software. With this configuration, I just connect the drive and the software copies all the files that are new or modified, leaving the rest untouched. So it is a very quick and painless process that allows me to work every machine without missing a step.

    This configuration has served me well for a long time, but with Lightroom, there is an additional complication: the catalogue.

    So I need to know the most effective way for the transport of catalog exchange from one machine to another, using the portable player. The directory structure is the same between the two machines - but the drive letters are not the same, so the files are technically not in the same place.

    I see that it is a menu called element Export in the catalog. Who will do it? And how will import on the other machine? To import from a different catalog?

    No need to make things more complicated they must be

  • What is the best way to keep ink in a deskjet 1000 cartridges don't dry out between time of non-use?

    I use this printer for off site events and it can be 2-3 months between uses. When I try to use it it will not print and the nozzles of the cartridges appear to be cloged or parched. If I repalce the cartridges of ink, all works well. Is there a way to store ink cartridges in the meantime use so it won't happen?

    Hi Chililyman,

    I found the following document I have real will respond to your request for your ink cartridges. Storage and manipulation of ink cartridges.

    I hope this helps.

  • Best way to keep the size/scale through drawings?

    I have, for the moment, five vector drawings, I work with Illustrator.  They are reproduced digitally and in print.

    Screen printing, t-shirts, to the scale of the drawings - which contain text - remain the same.  Above all, I need the police to have the same size on each t-shirt.  So there is a piece of art, then underneath a small sentence.  We are moving to a digital process, requiring the vector art.  Initially I did all my drawings in PS, but now I need them into vectors.  I'm so redo all artificial intelligence.  And I'm having a hard time trying to figure out how to implement or interpret them over there so that the police will be the same.  In PS, all I had to do was set the type to 39, "BOLD", and that's it.

    My original vector files are much larger and I guess I should just bring the art to its final size, printed and just set the font to 39 again...  But I'm afraid, it might not work that easily... or am I wrong?

    Thanks in advance for your help.

    Yes, he cut yourself - do not let someone else.  Make sure that the ' scale strokes and effects "are checked in the context menu of the control panel of your transformation.  Then apply your text as you wish.

    You can make the type be it, although if you are really concerned with consistency, I would describe it just to be safe.  If you haven't, make sure you send the font files as well as the file to the printer

    For your art space, select everything and look at the right column of your transformation Panel. (the left is the location)

    If you give the art to the printer as final art, they should have no reason to resize (unless you ask them to)

  • Best way to keep the color to be an indicator of update string

    I wanted to add a feature to my swiss knife armay RS232 application.

    With the help of a string indicator and indicate the read and write strings in different colors.

    The program enclosed works, however since each update of the results of the chain in one color of the solution need a rewrite of all colors after each update which translates the flicker

    and if you connect to data more in the indicator it is a bad solution.

    An improvement would be to store only the blocks of the same color...

    Someone who has a better idea or solution?

    Use them to write strings in an image control.

Maybe you are looking for

  • 8 flow: Flow 8 OTG

    I was told that it is possible to start a stream of 8 from a flash drive if you have enabled OTG in F9 in BIOS I don't see a way to do it, can someone please advise. I don't see any precise means to allow the OTG. I tried to set USB as the first boot

  • Java error message regularly displayed

    I've recently upgraded to El Capitan (10.11.2) on my old MacBook Pro to 8 months. Regularly, I get this pop up message. I installed the latest version of Java (and tested on the Java site).  I do not use the command line tool, and I'm not a developer

  • Fable does not

    Hi, I'm on my 3rd copy of Fable the lost chapters and I'm not one of them to install. All other games install easily, but my system can't get any info from another disk is the disk of the fable and the content.

  • Microsoft flight simulator help!

    When im downloading the game, I get up to 63% and stops. A message comes up saying "Microsoft Flight Sim 2004 has encountered a disk error while writing the leader to C/Program files/Microsoft Games / Microsoft Simulator 9/Sound/Precip/c2prec3.wav.»

  • Unable to get EA3500 routers to connect to internet.

    I'm going through a pair of WRT54G routers to a new pair of routers EA3500, but I can't get the modems to connect to the internet.  I tried new modems and several cable connections between the router and the cable modem Charter, but I still have to g