Question about operations allowed in methods of stateless and stateful bean

Hello,
Can anyone tell me why ejbRemove and ejbCreate are allowed entreprise beans and resource manager access in stateful session beans and not in stateless session beans?
Thanks in advance,
Julien Martin.

Salut Julien,
Can anyone tell me why ejbRemove and ejbCreate are
allowed entreprise beans and resource manager access
in stateful session beans and not in stateless session
beans?I'm not sure I fully understand your question, but here is some information that may answer it.
The user is the one who creates and removes a stateful session bean. The container is the one who creates and removes a stateless session bean. So the user can pass any parameters to the create of a SFSB because he theorically knows what to pass. The container doesn't, and doesn't want to. It just wants to create SLSB to pool them, but it doesn't pool SFSB.
Maybe it doesn't answer your question. Can you reformulate?
Kexkey

Similar Messages

  • Stateless and Stateful beans.

    Please tell me what are the important differences between stateless, and stateful beans.
    Thanks in advance.

    See this thread
    http://forum.java.sun.com/thread.jsp?forum=13&thread=529706&tstart=15&trange=15

  • Question about operating system

    Hello.
    I just got lenovo T400. I have question about operating system. I choose OS (Windows XP Professional preinstalled through downgrade rights in Genuine Windows 7 Professional). When I get the laptop, Windows XP is preinstalled but I don’t know how to upgrade to Window 7. Please, tell me the way to upgrade.
    Have a nice day

    you'd need the disks, and would need to do a fresh install, i.e. you can't just upgrade it. everything will be gone  
    T400s - 2815RW1 + Win7 Ultimate
    Don't pm me for help! That's what the forum is for. Also, Google's nicer than me. Ask him.

  • Some question about fade in // fade out by hideEffect and showEffect in Actionscript

    Some question about fade in // fade out by hideEffect and
    showEffect in Actionscript
    Please kindly take a look at the following page:
    http://camusmiu.no-ip.com/HounganQuestion/PictureHolderTest.html
    (can view source)
    I tried to make an image preloaded and scale the image to
    it's preferred size.
    When I came to consolidate the stuff into a component, I
    found the application goes weird as I implementation the show/hide
    effect.
    The third trial which just hide and show the images directly,
    instead of using viewstack, fail to bring the second image onto
    screen.
    It just used fadeOut instead of fadeIn(you see there is a
    flash of the second image)
    After some study of showEffect and hideEffect behaviour,
    seems the mechanism of hide/show a component works in this way:
    this._fadeIn:Fade = new Fade();
    this._fadeIn.alphaFrom = 0;
    this._fadeIn.alphaTo = 1;
    this._fadeIn.duration = 1000;
    this._fadeOut:Fade = new Fade();
    this._fadeOut.alphaFrom = 1;
    this._fadeOut.alphaTo = 0;
    this._fadeOut.duration = 1000;
    Component_A.visible = true;
    Component_A.setStyle("showEffect", this._fadeIn);
    Component_A.setStyle("hideEffect", this._fadeOut);
    then when I set Component_A.visible = false, the sequence
    works like following:
    Component_A.visible = true
    Component_A.visible = true, alpha = 100;
    Component_A.visible = true, alpha = 50;
    Component_A.visible = true, alpha = 0;
    Component_A.visible = false;
    The above sequence works visa versa as:
    Component_A.visible = false;
    Component_A.visible = true, alpha = 0;
    Component_A.visible = true, alpha = 50;
    Component_A.visible = true, alpha = 100;
    Component_A.visible = true;
    (Correct me if i am wrong)
    ========================================================================================== ====
    From what I observe from the application, I have two
    question.
    1) When more than one component using the this._fadeIn,
    this_fadeOut as the hide/show effects, the component in instance of
    this._fadeIn? will it mess out if more than one component using the
    fadeIn instance in the same time?
    2) from the third component, i.e. PictureHolder3, when I load
    other the picture , it fade out the new image instead of fading
    in... Seems there is problem if I hide show too frequent. I think
    when I hide then show right the way, the component only do the hide
    part...
    Can someone pls look into it and tell me what I did wrong?
    Cuz in normal practice I don't think appropriate to use ViewStack
    in Actionscript...

    Hello Jack,
    Currently, you can only import an swf file or you can embed videos from youtube, vimeo etc. into Muse / add HTML5 Video to Your Website.
    Take a look at these simple videos that explain the currently available processes for adding videos in Muse, in a step by step method:
    1. http://tv.adobe.com/watch/learn-adobe-muse-cc/inserting-a-youtube-flic kr-or-hulu-video/
    2. http://www.youtube.com/watch?v=5in4swnIFsw
    3. http://www.youtube.com/watch?v=KnBFLQheOk4
    Hope this helps.
    Cheers
    Parikshit

  • Jcom vb-ejb(both stateless and stateful)'s problem

    I try the jcom sample on wls7.0sp4,it's ok.(the sample used entityBean)
    then,I try the session bean(both stateless and stateful),some problem occur :
    <2003/10/29 17:31:54:JST> <Error> <COM> <210000> <IOXIDResolver opNum 5 invoked.
    This method is not implemented.>
    <2003/10/29 17:31:55:JST> <Error> <COM> <210000> <IOXIDResolver opNum 5 invoked.
    This method is not implemented.>
    <2003/10/29 17:31:55:JST> <Error> <COM> <210000> <Export of object: examples.ejb
    [email protected] barred>
    the client vb source :
    Set objTemp = GetObject("examplesServer:jndi:ejb20-statefulSession-TraderHome")
    //the statement is wrong!!
    Set mobjHome = objNarrow.narrowobjTemp, "examples.ejb20.basic.statelessSession.TraderHome")
    can anyone help me?
    thks!
    p.s: the jndi name is correct.

    A deployed bean can not be both stateful and stateless. You must specify the session-type in the deployment descriptor. The reason that deployed beans must be either stateful or stateless is that the ejb container must know how to handle them. Stateful and stateless beans have very different life cycles as I'm sure HeadFirstEJB pointed out.
    What HeadFirstEJB might have been trying to say is that if you have a no-arg create along with other create methods, you may be able to deploy the bean as stateless in one environment and stateful in another. I can't think of any reason you might want to do this but I suppose there might be some valid reasons out there.

  • Stateless and stateful

    Hi all,
    Can any one give some idea about stateless and stateful in BSP's ?

    Hi,
    All is well explained in
    http://help.sap.com/saphelp_nw70/helpdata/EN/cc/d6eefc28f711d5991f00508b6b8b11/frameset.htm
    and
    http://help.sap.com/saphelp_nw70/helpdata/EN/cc/d6eef628f711d5991f00508b6b8b11/frameset.htm
    Eddy

  • Question about get web service result in actionscript and convert data format

    Hi, All
    I have question about how to get dataset from web services
    and put it in tree structure. I have 2 questions about this:
    1, How can I get data correctly in actionscript?
    I have no problem to get data by
    <mx:ArrayCollection id="acFolder"
    source="{mx.utils.ArrayUtil.toArray(MyGServices.getFolder.lastResult)}"
    />
    And display in datagrid.
    But when I try to use
    public function
    handleFolderContents(event:mx.rpc.events.ResultEvent):void{
    arData=mx.utils.ArrayUtil.toArray(event.result);
    acData=new ArrayCollection(arData);
    input.text=acData.getItemAt(0).id;
    Seems I can’t get data, it always say:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    2, how to convert data format
    I get data from web service and want to convert it to tree
    structure, as mention below:
    I get:
    <Array>
    <id>111</id>
    <Name>Production1</Name>
    </Array>
    <Array>
    <id>222</id>
    <Name>Production2</Name>
    </Array>
    Convert to:
    <mx:XMLList id="treeData">
    <node>
    <node label="Production1" data="111">
    <node label="Production2" data="222"/>
    </node>
    </node>
    </mx:XMLList>
    Please help me.
    Thanks.

    First, don't specify the package path in the argument
    declaration. Instead import the event object:
    import mx.rpc.events.ResultEvent;
    The docs state this emphatically.
    Second, try "lastResult", in place of "result":
    arData=mx.utils.ArrayUtil.toArray(event.lastResult); // I am
    not positive about this. I maybe recall reading that result was ok
    for the event object, but maybe not.
    Finally, why do you want to convert the xml? You certainly
    could, but it would be a manual process, recursively reading the
    existing xml nodes and building the new structure, but again, why?
    Just use a labelFunction if necessary to display the nodes as
    you wish.
    Tracy

  • Question about MSN on my new DC G5 and about Burning on Itunes

    Hey guys I have a question about ripping music to itunes, I have a Dual Core 2.0 and was wondering if it was normal that my ripping speed is round 14.5 one some cd's and on other cds 27.5 lol i have ripping to maximum, but the weirdest thing is that if i burn data to a CD, it does it faster than ever, compared to my old comp, but my old comp use to rip I tunes some times faster.
    how cna i check if my super drive is working fine or is this pretty normal? like DVD's work fast on the comp, and stuff installs pretty fast? so i dont think its a reading problem, and ive done hardware tset and eveyrthing passed
    Secondly, my Gf also has a mac and i think she has the smae problem or at least she says she does, and that is when running MSN Messenger i get signed off alot, saying that my network connection has been lost when i run Safari all the time on it, and works perfectly and FAST. is it just that MSN messenger has bugs with mac ? ive heard bout some bugs just dont know if this is one of them

    Make sure you have your CPU speed set to highest. Ripping the CD will depend on CPU and condition of the originial disk. Old disks may take longer.
    As for MSN? If only you and your GF are the users of MSN you might be better switching to AIM or iChat. Here's a review of different IM applications...
    http://www.macworld.com/2005/04/reviews/imsoftware/index.php
    iMAC G5 1.8 GHz w/20 Display and PowerBook G4 1.67 15   Mac OS X (10.4)   Quad G5 w/7800GT on order

  • 4 questions about the the top boxes - SD box and Home media DVR

    Hello. I am going to be getting Fios soon and I have some questions about the boxes. I will be getting the Home Media DVR and 4 SD boxes.
    1) Do these boxes have timers on them to set so the box can turn off at a certain time?
    2) Do these boxes have parental control and if so is it good enough to block things that I do not want my child to see?
    3) How many people can access the home media dvr at the same time to watch already recorded programs
    4) If the Home Media DVR is in the family room can a record be started from the bedroom over the SD set top box (even an hd show)?
    Thanks for any help.

    I have been using two Standard Set Top Boxes for about a year. I have Parental Controls on and all channels locked. When I want to watch a channel, I tune to that channel, note the LOCKED message, which tells me to press the OK button to enter ther Parental Controls PIN and unlock the channel for viewing.
    This has worked flawlessliy for the last year -- ON THE Standard STB's.
    I just ordered the Home Media DVR STB to replace one of my Standardt STB..
    On the Home Media DVR:
    I can set the Parentals Control PIN and lock the channels, in the exact same way I did o nthe Standard STB's. However, when  tuen to ANY channel, I still ge the LOCKED message and instructions to press OK to unlock the channel -- BUT no matter how I press the OK button, the Enter your Parental Conlrols PIN dialog box willl NOT open. Nothing happens -- you CAN NOT view any channel.
    Again, it is the EXACT setup as for the Standard STB, but the OK button will NOT unlock any of the channels.
    If you unlock all channels and LOCK the Ratings, the same problem recurs: OK buitton will never open the "enter your PIN" dialog box.
    I have received two replacement boxes and have spent hours on the phone with some very capable and helpful Techs -- no luck.
    Has anyone else had the same problem? Here's how to test your Home Media DVR:
    1. Menu-Settings-Parental Controls.
    2. You will be prompted to CREATE youre Parental Controls PIN
    3. Enter you PIN twice.
    4. Use the > button to scroll to Enable On/Off and set it on.
    5. scroll down to Control Channels
    6. Press > button to See Locked Channels
    7. Scroll down to Add/Remove Channels
    8. Scroll right to choose LOCK ALL
    9. Press OK and then scroll to YES to lock all channels
    10. Press EXIT to get out of settings.
    11. All channels are now locked.
    12. Go to any channel
    13. A black screen will appear with a lock silhouette with the word LOCKED below, followed by instructions to Press OK to enter PIN and unlock this channel. (plus how to change locks...).
    14.Press the OK button and, if it is working, you will see a dialog box at the bottom of the screen that is titled: UNLOCK, with the channel listed and the instructions to "Enter your PIN using your numeric pad on remote to naje this channel availabe for all users." THere's a PIN box, which shows asterisks for each number entered, with "Press Exit to Cancel" below.
    15. On the Standard STB, it works exactly as described in steps 1 thru 14. On the Media Center DVR, it works up to step `13, but in 14, no matter how you press the OK button, the UNLOCK dialog box never pops us. The Remote STB light flashes on the remove and the REMOTE yellow light flashes on the DVR,  but nothng happens.
    If you have a Home Media DVR, can you please try this and see if it works?
    Thanks,
    John

  • ANOTHER Question about my iMac G3. Mac OS X and RAM

    Hey, I have ANOTHER question about my iMac G3.
    I know that I'm supposed to have the latest firmware updates for my iMac G3 running OS 8.1, which I do, but I read some where these firmware updates could only be updated if you're running OS 9.2. Yet when I run the firmware updater, it says my firmware is up to date. I just wanted to make sure this was correct because I just ordered an OS X 10.2 CD today, and I don't want my mac to be "dead" when I install it.
    My next question is how much RAM can my mac hold. It's an iMac G3 with a 233 mhz processor, if that makes a differemce.
    Again, thanks to the people who have helped me with my first Mac.

    hi there--
    unfortunately you require system 9.1 or 9.2 for the required firmware update 1.2 for your computer http://docs.info.apple.com/article.html?artnum=86117. so you'll have to install that if you want to install 10.2. it may work for you for a little while, but then you could possibly lose all your information. so i wouldn't advise attempting installing 10.2 without the correct firmware. [ : ) ]

  • Question about "operations" button

    Hello all,
    Before my main menu is displayed in the Flow chart I want an 8 second clip to be the first thing that plays and for the viewers not to be able to skip it. So from my blue disc in the flow panel I link to this clip in my timeline. When I select "none' for operations it still allows me to use the "next" button to get to the main menu and skip my 8 second clip.
    What am I doing wrong?
    Thanks,

    Thanks again for your help
    I do have DVD RW's so I will be putting them to good use.
    I just burned my project and everything went well except.....
    All my chapter links play fine but I don't have any control options, i.e. fast forward, back to the main menu etc. When I went back to the project I did see that the "user operations" was set to none for all my links to the various chapters in my timeline. When I tried to open up the dialog box where I could change it to "all" it simply would just not open, no error message as well.
    What am I doing wrong?
    Thanks

  • Question about operating system reinstall on Portege R500

    I have purchased the R500 64SSD version, and for some reason it never struck me to check if there was a DVD drive on it.
    That was rather embarassing.
    I know it is easy to purchase an external drve to copy software etc on to the Portege, so that isnt so bad.
    However, I am considering a re-install, possibly to XP, but maybe just to reduce the repulsive amount of bloatware i got on my machine when i switched it on.
    Now to the crux of the matter: if i use an external USB disk drive, i need USB drivers. If i delete the OS, that will delete the drivers.
    So, finally, my question is: How in the name of Hell is anyone supposed to put a fresh install into an R500?
    Thanks for your patience.

    I understand everything till the point with the bloatware.
    But what I dont understand is: what do you want with a USB disk drive? I hope you dont mean a USB-HDD (its a little bit confusing). ;)
    Usually you can use all drives without the need of some drivers because the machine offers you the option to boot from a USB device after powering the machine up and see the Toshiba logo pass...
    You must only press F12 and choose the option to boot from an external USB CD/DVD drive. Thats all.
    Greets

  • Question about ++ operator

    int i = 0;
    i = i ++;
    System.out.println(i);
    the result is 0.
    i know the executing sequence is: first =, then ++.
    but, ++ operator DOES execute. so, if it doesn't affect the i's value, then it affects what?
    anyway, i couldn't understand why the output is 0!

    i know the executing sequence is: first =, then ++.Check that precedence table again. ++ is a full 13 or 14 levels higher than =.
    This means that i = i++; is equivalent to i = (i++);Because i++ == 0, the above statement has the same effect as i = 0;

  • Quick question about BIS - Allowed websites

    Hi,
    I would like to know if all web browsing is free with the BIS or is this limited to social websites like facebook etc.
    if there is some kind of list, would someone be able to provide me with such list. Because I don't want to go and browse the internet like a worm and get a huge data charge at the end of the month.
    If someone could clarify this for me I would very much appreciate it.
    Regards,
    Hendrik Wiese

    Hello,
    All of your wireless services are provided by and controlled by your wireless service provider. What is "free" and what will be extra charge is dependent on the level of service contract you have with them. Only they can answer your question.
    Good luck!
    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

  • Question about the 'Allow Interlaced Processing' option

    Hello, my source is 1920x1080 (non-anamorphic) recorded at 60i. The sequence preset I chose is in the AVCHD folder and is labeled 'AVCHD 1080i30 (60i)'. When I export and select the 'Windows Media' format, there is an option labeled 'Allow Interlaced Processing.' According to the Adobe documentation (http://help.adobe.com/en_US/PremierePro/4.0/WS81733643-B4A6-45c5-ABD7-D5A90EB388FC.html), this should be turned on if the source is interlaced and the output is progressive. Is this option intrinsic to Adobe Premiere or is it merely Premiere surfacing an option of the Windows Media codec? According to the Microsoft documentation (http://www.microsoft.com/windows/windowsmedia/howto/articles/zerotohdsixty.aspx) of this option within Premiere, this option should only be checked if my output is destined for an interlaced display. To sum up, I don't understand exactly what this option is supposed to accomplish and I'd appreciate any feedback or pointers.
    I am using Premiere Pro CS4
    Thank you,
    Matt

    Hi Ann,
       Thanks for the reply!  So, I guess your answer means that the Adobe documentation is wrong because it says "Select this option if the video content in the sequence is interlaced and you are exporting to a noninterlaced medium."  Is my interpretation of your reply correct and should I therefore submit a correction request to Adobe?
    Thanks,
    Mat

Maybe you are looking for