Need some explanation about statefull-bean

Hi.
I want to develop a statefull session bean that should store user information - userName of the logged user for example. So I create that bean in my login action and store that information therin (set that field). Then in other action I want to check if the user is logged. Should I create a new instance of the bean?? I do so but the persistent field is null and the user information from login action is lost.
Are there any extra procedures that Statefull Bean should provide??.
Bartek

When using a StatefulSessionBean (SFSB), you should get the Handle of the Remote and pass that along in your HTTP session. This allows your "user session" to maintain state across pages via the SFSB. If you do not, then (as you noticed), you'll "lose" the stateful information because you end up creating/using another instance.

Similar Messages

  • I need some explanation about @manytomany annotation.

    Hi
    Thank you for reading my post.
    imagine the following sample code, please let me know what would be the tables and their relation. Thanks.
    In Customer class:
        @ManyToMany(targetEntity=com.acme.PhoneNumber.class)
        public Set getPhones() { return phones; }In PhoneNumber class:
        @ManyToMany(targetEntity=com.acme.Customer.class, mappedBy="phones")
        public Set getCustomers() { return customers; }Thanks

    Go to the ATT website. Or contact ATT customer service.

  • Need some explanation on nested AMs

    Hello OTN,
    Need some explanation on nested application modules.
    It is descibed in several posts and videos that each AM holds its own connection and to reduce connection number we nest AMs under RootAM.
    So, I have the master application with a RootAM.
    There are some detail applications imported into RootViewController project as ADF libraries. Each containing a taskflow to use on a main page and an application module.
    So in the Data Controls I have RootAM + all of imported. Each holding its own connection. To reduce it I want to nest importeed AMs under RootAM.
    But in RootAM DataModel - Appliaction Module Instances there is just RootAM and nothing more. Seems, RootModel project is not aware of imported AMs.
    http://img72.imageshack.us/img72/4964/nestam.png
    So I deploy each detail Model project as an ADF Library and import it into RootModel project. OK, now I see imported AMs in Application Module Instances section and I can nest them.
    After doing so I open Data Controls section inteding to see only RootAM on the top level, but still there are each of imported AMs on the top level and there are nested AMs under RootAM also.
    http://img7.imageshack.us/img7/5042/nestam2.png
    Seems, I've done something wrong.
    Could someone explain me, please?
    Thanks.
    ADF 11.1.2.1

    I don't think that you made an error. Is just the way application module are imported. You see the nested ones under your root application module and you see the same as root application module on the same level as your real application module.
    It all depend on which one you use. You can however control which artifacts you see in the data control. Check Chris Muirs bloghttp://one-size-doesnt-fit-all.blogspot.com/2011/02/jdev-adf-bc-and-adf-libraries-library.html about this.
    Timo

  • I need some advice about the macbook pro and iPhone 5. I took a video on my iPhone and tried to email it it said it was too big to send? So i downloaded it to my macbook pro and tried to mail it to no avail? The macbook tells me the server won't let it th

    I need some advice about the macbook pro and iPhone 5.
    I took a video on my iPhone and tried to email it it said it was too big to send? So i downloaded it to my macbook pro and tried to mail it to no avail? The macbook tells me the server won't let it through other mail goes through any ideas how to resize it or what it might take to send it?

    I agree with LowLister, the best option for you to share the video online is to upload it to your online storage account for example : Box, Dropbox, SkyDrive (All of them provide free storage beginning from 2GB).
    You can upload the files which you want to share in this online storage and then they have sharing options in which you'll will get the link of the file to be sent and send the email. You're good to go!
    Tip : You can store multiple files for backup purposes.

  • I need some information about jre 1.5 and jre 1.6.

    Hello guys,
    I need some information about jre 1.5 and jre 1.6.
    Suppose if i have jre 1.5 customized with "additional language support" installed in my my desktop, and later on i install jre 1.6. will this jre over write all the esisting settings which was present in jre 1.5?
    In short will the version upgrades disable the features of the old Version even though the old version is present in the desktop?
    Thanks in advance for your answers.

    In <2j_j3.1889$[email protected]> =?iso-8859-1?B?VG9t4XMgU3XhcmV6?= writes:
    > Hi all, I am developing an acquisition data system for biomedical
    >signals and I need to transmit this data from my hardware to PC using the
    >USB port. For this, I am writing a device driver for Windows 98
    ^^^^^^ ^^^^^^ ^^^^^^^ ^^
    That's not a trivial step. I would write a small C/C++ program that
    exercises your driver (for robustness) just to be sure it's working
    right first without crashing your system.
    >The problem is that I don't know to use this driver in LabView.
    >For now, I think to use a "code interface node" with code writen in C or a
    >"call library function" with a DLL.
    That's correct. _After_ you got your C/C
    ++ test program (and USB
    driver) above working, then you can convert this little test program
    into a DLL or CIN, which can interface with LabView. A DLL might be
    easier (slightly) to write, but the CIN will work faster with LabView
    and can be designed to be reentrant. The Code Interface Reference
    Manual should guide you. Remember, this is a task for an _experienced_
    C programmer. You'll need to use handles to pointers into all your
    dynamic arrays and such passed into LabView.
    After you got your CIN or DLL written, you can use a special CIN
    function node to "link" (or bind) your CIN object into LabView's VI
    diagram.
    SOME THOUGHTS:
    There are many hardware devices already on the market today that come
    with Windows 98 drivers and DLL (or even CIN) libraries that would work
    immediately with LabView. Why don't you save yourself three months of
    work and simply buy one of these?
    /\ Mark M Mehl, alias Superticker (Supertickler to some)
    <><> Internet: [email protected]
    \/ Preferred
    UUCP: uunet!iastate.edu!mehl
    Disclaimer: You got to be kidding; who would want to claim anything I said?

  • I need some information about File Download & File Upload

    Hi  All,
    Can any one help me on this, I need some information about File Download & File Upload.
    I read tutorial abt file upload and download but some of methods in tutorial are deprecated so i need clear information abt File upload and Download, if possible Code examples.
    Thanks
    Ragards
    Ravi Golla

    Hi Ravi
    Check out thses links for examples:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    /docs/DOC-8661#22 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f
    Otherwise you can simply follow this code for file download
    Use the code like this.
    1) Create the button and bind the action for it.
    2)then write this code in the action.
    3) do not write any thing in the init method.
    try {
    final byte[] content = this.getByteArrayFromResourcePath("C:
    xyz.properties");
    final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.UNKNOWN);
    try {
    final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getAbsoluteURL(), "WD_Filedownload", false);
    window.open();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    5) writr the method getByteArrayFromResourcePath
    //@@begin others
    private byte[] getByteArrayFromResourcePath(String resourcePath)
    throws FileNotFoundException, IOException {
    FileInputStream in = new FileInputStream(new File(resourcePath));
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    int len;
    byte[] part = new byte[10 * 1024];
    while ((len = in.read(part)) != -1) {
    out.write(part, 0, len);
    in.close();
    return out.toByteArray();
    //end
    Similarly for file upload
    Similarly for upload in to server path also do the same
    IWDAttributeInfo attInfo =
    wdContext.getNodeInfo().getAttribute("upload");
    binaryType =
    (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    uploadedName = binaryType.getFileName();
    File filename =new File("
    <server name>
    <folder name>
    "+uploadedName ); );
    try {
    FileOutputStream out = new FileOutputStream(filename);
    out.write(b);
    out.close();
    } catch (FileNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();

  • I need some resources about flash effects

    Hello,everybody,I'think I need some resources about flash effects.
    Hope someone can provide me some useful site about this.thanks!!

    > Its taking a lot of space in my HDD, like i mentioned earlier i was trying to edit a 6 second intro and it took 20GB on my HDD. What the hell is that... Is that normal???
    See this:
    FAQ: Why is my output file huge, and why doesn't it play back smoothly in a media player?
    Start here to learn After Effects:
    http://adobe.ly/AE_basics
    As the others have said, your computer barely meets the minimum system requirements, so you'll need to be patient and organized when working with video software like After Effects. Rick gave some good advice along these lines. Here is more: http://adobe.ly/eV2zE7

  • [AIR_on_ANDROID] Needs some explanations

    Hi guys,
    I'm an italian flash programmer. I'm so happy that I can finally build apps fdor android and iPhone too. This wouyld be great for my job.
    But first I need some explanations to some issues I found:
    1 If the new Flash CS5 extension allows us to compile a native Android application (.apk file), why people needs to install AIR runtime on its phone? IT shouldn't be just like iPhone and its packeger?
    2 Why when I do set the publish settings to "AIR Android", the functionality  "Control -> Test Movie -> In device central" goes off?
    3 Since I installed the Android ext, every time I start a new AIR 2 project the publish settings goes automatically in "AIR Android". The I set it on "Adobe AIR 2", but when I try to compile it give me always the same error:
    "Error creating file"
    "Name file is invalid in the descriptor file"
    Thank you for help.
    P.S. I use Flash Cs5 in windows Vista x32.

    Well, the latest extension (09/30/10) has some issues qhen you try to visualize "Android settings":
    "The following JavaScript error(s) occurred:
    At line 1 of file "Apollo_OpenSettingDialog.jsfl":
    ReferenceError: Air2_5_Android is not defined"
    This is a bug a lot of people in internet found. So the only solution was to install an older release (09/23/10 works fine on it).
    After all, I tried to run an .apk on Desire HD emulated by Device Central Cs 5, but it occured an error "file not supported on this device".
    I suppose that device central smartphones are still not update, right?
    Thanks for your time. I really appreciate that

  • Hello please i need some information about the blackberr...

    hello please i need some information about the blackberry instant messenger is how does it work , i heard that i send messages for free from a blackberry to a blackberry is it true ? does it need internet ? and does it matter if the other phone is in another country'
    thank you alot

    Hello,
    Here is a page with much information about BBM:
    http://na.blackberry.com/eng/devices/features/im/blackberry_messenger.jsp
    Hope that helps! If not, Please come to:
    http://supportforums.blackberry.com/rim/
    and register an account. Then post to the applicable forum.
    Thanks!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I need some info about the Document Class.

    Hi,
    I need some information about the Document Class, can anybody
    tell me where I can find it.
    thanks

    Emad Zedan,
    > I need some information about the Document Class, can
    > anybody tell me where I can find it.
    The concept of the document class was introduced in Flash
    CS3. What it
    does is allow you to optionally associate a custom AS3 class
    with your FLA
    in the Flash authoring tool. Your document class effectively
    *becomes* the
    main timeline. This is your chance to influence the
    underlying behavior of
    the MovieClip or Sprite instance that serves as the
    foundation for your SWF.
    If you don't associate a custom document class with your
    FLA, the FLA is
    associated automatically with a default document class called
    MainTimeline,
    which extends MovieClip.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Need some info about getting started with the GE70 2PC Apache

    Hi guys!
    I'm about to getting the new GE70 2PC Apache gaming notebook from MSI and since I'm really putting alot of money in this I really wanna handle it gently :p So I got some questions about this, since It'll be the first time I'd but a gaming notebook.
    1) 1st of all, what do I do when I've first started the laptop? Do I place in the CD and install all the newest drivers from that CD? Afterwards install an anti virus and then I should be good to go?
    2) I heard the Haswell i7 processors from Intel produce a hell of a lot heat. When I turn on turbo fan and turbo boost and I reach temperatures of around 90°C, would it harm the hardware of my laptop? Could any damage take place? Or would my processor/graphic card have a shorter life expectancy?
    3) The graphic card would be the GTX 850m. Now I'm wondering, is on this particular laptop -> (MSI-ge70-2pc-019be-apache-azerty), is the graphic card the DDR3 version or the GDDR5 version? Because I heard even the GTX 765m can outperform the 850m DDR3. But I also heard that the GDDR5 version of this graphic card is noticeably better than the 765M graphic card.
    4)Is it wise to keep the processor going on turbo boost (3,4 Ghz) forever?
    5) Will I have internet problems? I heard alot of people having internet problems with the killer lan drivers lately..
    6) What laptop do you think I should pick in overall? The 2PC Apache version or the GE70 2OE version (the one without SSD) ?
    8) My Brother has the GE70 2OE which has the 765m graphics card, but he only has around 60 fps when he's playing League Of Legends, and LoL isn't the most demanding game right.. The FPS sometimes even drops to 40 (even when he's ALONE with no one around him). It feels like his FPS is capped at 60? Because most of the time it's just 60. But when I look at the settings I saw the FPS is uncapped.. I believe with this graphics card he must atleast achieve a constant 70-80 fps on this game right? Might something be wrong in the settings of the graphics card?
    7) Is there anything I should know before I start gaming on this laptop? (something I should do to have best performance or something..?)
    Grtz

    Well...
    1. When you get the laptop, use MSI Burn Recovery and make the backup disks (I prefer DVD's myself...). This way if something happens, you can reinstall all the software like you just bought it.
    2. Haswell does produce quite a bit of heat. As long as you don't get much higher than 90C you should be ok. If you're getting into the high 90's or even 100C range, you probably need to replace the heatsink compound. MSI has had a number of issues with that aspect on notebooks. It is easily done though.
    3. The only way to really answer that question is probably to contact MSI about it.  >>How to contact MSI.<<
    4. Turbo boost isn't really user controlled. I wouldn't worry about it.
    5. You might have issues. I'm honestly  not too sure. I know most people haven't had issues recently, but that's all relative. The drivers seem to be working rather well right now to be honest.
    6. Depends what you want and what is available. Maybe the GE70 20E + buy an SSD will be cheaper than just buying the Apache version. I don't really know, but you could always look into it.
    8. The 765M is a decent card....but remember, it's NOT the same as a 760 on a desktop. It's roughly equivalent to a 750 in the desktop world. That's not a bad card by any means, but you aren't going to be able to get 60+ FPS at 1920x1080 in many games. LOL is rather demanding as a game though to be perfectly honest. (throwing my personal opinion in on this, I always buy the highest end item I can in this case, because you won't be able to get any better really in the end until the next laptop comes out).
    7. I would setup all your games in the NVidia control panel to use the NVidia high performance graphics processor. That way there is no confusion and it will use the right video card.
    You don't really need to update drivers UNLESS you're having an issue (like BSoD's or game freezes or something similar).
    The MSI customer service in the EU really seems to be hit or miss. Some people seem to get good service, some people get really crappy service. I'm honestly not sure what the problem is over there. =/

  • Need some films about component usage

    hi,friends
    i am a rookie for webdynpro. and i want to learn more about how to use component usage.can someone share me some films about it.
    thanks in advance.

    Hi
    Go to the below link of help.sap.com
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    Regards
    _SS

  • I need some information about scripts

    hi,
    i need detailed information about scripts.tell me where it will available.
    bye
    sreenu.

    Hi,
    Posting in the ep forum,I believe you require Information on javascripts and client side eventing(EPCF).
    Here is the link that you need with regard to this:
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm
    (Or go to SAP NetWeaver Developer’s Guide->
    IT Scenario-Driven Enhancements to Applications->Running an Enterprise Portal->Core Development Tasks->Creating and Managing Content->Client-side Eventing)
    The below document can also be useful.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enterprise portal client.pdf
    If you need an illustration of how epcf can be used , you can refer to this blog
    /people/arulraja.ma/blog/2004/12/18/how-to-include-loading-message-in-a-portal-iview-ep6-sp2
    Regards,
    Harish
    (Please award points for helpful answers)

  • I need some information about drivers

    Hi all, I am developing an acquisition data system for biomedical
    signals and I need to transmit this data from my hardware to PC using the
    USB port. For this, I am writing a device driver for Windows 98 that receive
    data and put it in a memory buffer. I have a VI which graphs this data in
    LabView 5.0. The problem is that I don´t know to use this driver in LabView.
    For now, I think to use a "code interface node" with code writen in C or a
    "call library function" with a DLL. But I need some help with the "code
    interface node" because this VI don´t use a .c file. Shortly, I apreciate
    some help with this VI or some idea for use the USB port in LabView. Thanks.
    Tomás

    In <2j_j3.1889$[email protected]> =?iso-8859-1?B?VG9t4XMgU3XhcmV6?= writes:
    > Hi all, I am developing an acquisition data system for biomedical
    >signals and I need to transmit this data from my hardware to PC using the
    >USB port. For this, I am writing a device driver for Windows 98
    ^^^^^^ ^^^^^^ ^^^^^^^ ^^
    That's not a trivial step. I would write a small C/C++ program that
    exercises your driver (for robustness) just to be sure it's working
    right first without crashing your system.
    >The problem is that I don't know to use this driver in LabView.
    >For now, I think to use a "code interface node" with code writen in C or a
    >"call library function" with a DLL.
    That's correct. _After_ you got your C/C
    ++ test program (and USB
    driver) above working, then you can convert this little test program
    into a DLL or CIN, which can interface with LabView. A DLL might be
    easier (slightly) to write, but the CIN will work faster with LabView
    and can be designed to be reentrant. The Code Interface Reference
    Manual should guide you. Remember, this is a task for an _experienced_
    C programmer. You'll need to use handles to pointers into all your
    dynamic arrays and such passed into LabView.
    After you got your CIN or DLL written, you can use a special CIN
    function node to "link" (or bind) your CIN object into LabView's VI
    diagram.
    SOME THOUGHTS:
    There are many hardware devices already on the market today that come
    with Windows 98 drivers and DLL (or even CIN) libraries that would work
    immediately with LabView. Why don't you save yourself three months of
    work and simply buy one of these?
    /\ Mark M Mehl, alias Superticker (Supertickler to some)
    <><> Internet: [email protected]
    \/ Preferred
    UUCP: uunet!iastate.edu!mehl
    Disclaimer: You got to be kidding; who would want to claim anything I said?

  • Need some advice about hot backup under linux

    hi, I want some advice about db files hot backup between two machines(Named A and B).A is primary machine which will write and read database and have the lastest db file. B is backup role and no database file in it.
    Now I want hot backup A's db file to B in order to B have the lastest db file too.
    At A,my db file support transaction and environment, and I set autoremove unnecessary log files.
    The code such as follows:
    dbenv->set_flags(dbenv, DB_AUTO_COMMIT |DB_LOG_AUTOREMOVE | DB_TXN_WRITE_NOSYNC, 1);
    ret = dbenv->open(dbenv, NULL,
    DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN ,0)
    I don't want to use db_hotbackup utility. and db_hotbackup may be backup files to the same machine with different dir.
    How can I make machine A's db files backup to machine B.
    Thanks for your help.
    Best Regards
    hangsy

    Hi Hangsy
    Now I want hot backup A's db file to B in order to B
    have the lastest db file too.What do you mean? Do you want to have the latest version... from when you did the latest backup, or you want to keep it updated in the same time with the main database?
    I don't want to use db_hotbackup utility. and
    db_hotbackup may be backup files to the same machine
    with different dir.You can copy the backup anywere you want.
    If you want to run recovery on a different machine, it must be the same pointer size and endianness as the original machine.
    Database and log file archival: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/archival.html
    It is usually simpler to take the hot backup on the main machine and run recovery there before copying the databases to the remote system.
    In this setup, only the databases are required on the remote system, not the log files.
    Since you are using NOSYNC, you should run a checkpoint which will ensure you that the database files are up to date.
    Please read "Recovery procedures" ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/recovery.html ) first. "you cannot perform a hot backup of databases and log files, restore the backup and then run normal recovery -- you must always run catastrophic recovery when using hot backups."
    Regards,
    Bogdan Coman

Maybe you are looking for

  • N660 TF 2GD5/OC and DOS mode

    I have Dell U2311H 23" FullHD monitor. With N660 TF 2GD5/OC in DOS mode (BIOS setup an so on) I don't have image extension to whole screen - there is 1.5-2cm black border around it. It is very strange because monitor shows 1920x1080x60Hz mode in menu

  • Extended receiver and enhanced interface determination

    Hi, Can somebody list me the business cases when we use the extended receiver and enhanced interface determination.In which scenarios we have to use them? Where we can use these features and whom they can replace? Regards, Anoop

  • Can't place second sidebar?????

    I am trying to place a second identical sidebar on my page for adsense. Here is the CSS: #page {     width: 940px;     margin: 0px auto;     padding: 5px;     position: relative;     top: 20px;     background-color:#F3EFA3;     border: 3px groove #00

  • Putting caps on numbers in cells

    I'm making a spreadsheet for doing my own payroll. (I have just 1-2 part time staff, so I hate having to pay for a service.) Almost done, but I have one remaining bugaboo: In one catagory a tax is levied only on the first $7000 of income per employee

  • Unable to register Photoshop CS 3

    After buying a new PC (the previous one failed), I installed Photoshop CS3. It activated successfully, but immediately gave an error message saying the Registration failed. The screen instructed me to try again through the internet. Clicking "Submit