EJB help guys

Hello Java Gurus,
i have some questions, please some help :)
1. What is the difference between ejbCreate() found in the Bean class & the create() method found in the Home object. (Is there a difference in functionality ? )
2. I hear some developers say the "EJB class", do they mean the Bean class ??
3. SessionContext , can we use it to get & set attributes as the regular Session object that we create in a servlet or in a jsp ?? Or is there a difference
Thanks in advance :)

A create() method is invoked on the EJB home stub,which communicates the method to the EJB home.
The create() and ejbCreate() methods pair are responsible for initializing the bean instance so that the container can insert a record into the database. In the case of the ShipBean, the minimal information required to add a new ship to the system is the ship's unique id and a name. These fields are initialized during the ejbCreate() method invocation

Similar Messages

  • Navbar alignment issue in IE. OK in Chrome. [was:Please help guys!]

    I just spent days and nights trying to learn as much as possible about web design and i think i was doing pretty good until i got to this problem. I dont know what to do, the navbar sits well in google chrome, but in internet explorer it doesnt. And i dont know what to do anymore!! please help guys!
    Heres how it shows up in google chrome:
    And heres how it sits in internet explorer:
    I have tried everything guys i dont know how to fix it!!
    Heres my html:
    <!doctype html>
    <html>
    <head>
    <meta charset=&quot;utf-8&quot;>
    <title>General Concrete Solutions</title>
    <link href=&quot;styles/gcs_cs6.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;>
    <script type=&quot;text/javascript&quot;>
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf(&quot;?&quot;))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    </script>
    </head>
    <body onLoad=&quot;MM_preloadImages('images1/images/navbar/images/images/navover_01.png','image s1/images/navbar/images/images/navover_02.png','images1/images/navbar/images/images/navove r_03.png','images1/images/navbar/images/images/navover_04.png','images1/images/navbar/imag es/images/navover_05.png')&quot;>
    <div id=&quot;container&quot;>
      <div id=&quot;header&quot;>  
        <div id=&quot;logo&quot;><img src=&quot;images/logo4.png&quot; width=&quot;186&quot; height=&quot;69&quot; alt=&quot;logo&quot;></div>
        <div id=&quot;navbar&quot;><a href=&quot;#&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('Home','','images1/images/navbar/images/images/navover_01. png',1)&quot;><img src=&quot;images1/images/navbar/images/navbar_01.png&quot; width=&quot;190&quot; height=&quot;50&quot; id=&quot;Home&quot;></a><a href=&quot;#&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('Services','','images1/images/navbar/images/images/navover _02.png',1)&quot;><img src=&quot;images1/images/navbar/images/navbar_02.png&quot; width=&quot;190&quot; height=&quot;50&quot; id=&quot;Services&quot;></a><a href=&quot;#&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('Portfolio','','images1/images/navbar/images/images/navove r_03.png',1)&quot;><img src=&quot;images1/images/navbar/images/navbar_03.png&quot; width=&quot;190&quot; height=&quot;50&quot; id=&quot;Portfolio&quot;></a><a href=&quot;#&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('Company Info','','images1/images/navbar/images/images/navover_04.png',1)&quot;><img src=&quot;images1/images/navbar/images/navbar_04.png&quot; width=&quot;190&quot; height=&quot;50&quot; id=&quot;Company Info&quot;></a><a href=&quot;#&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('Contact Us','','images1/images/navbar/images/images/navover_05.png',1)&quot;><img src=&quot;images1/images/navbar/images/navbar_05.png&quot; width=&quot;188&quot; height=&quot;50&quot; id=&quot;Contact Us&quot;></a></div>
      </div>
      <div id=&quot;main_image&quot;></div>
      <div id=&quot;left_column&quot;>Content for  id &quot;left_column&quot; Goes Here</div>
      <div id=&quot;center_column&quot;>Content for  id &quot;center_column&quot; Goes Here</div>
      <div id=&quot;right_column&quot;>Content for  id &quot;right_column&quot; Goes Here</div>
    </div>
    </body>
    </html>
    And heres my CSS:
    @charset &quot;utf-8&quot;;
    /* CSS Document */
    #container {
    width: 968px;
    background: #FFF;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    overflow:hidden;
    #main_image {
    background-image: url(../images/concrete-driveway.jpg);
    background-repeat: no-repeat;
    height: 376px;
    width: 968px;
    #left_column, #center_column, #right_column {
    width: 316px;
    float:left;
    #center_column, #right_column {
    margin-left: 10px;
    #header {
    color: #FFF;
    background-color: #000;
    height: 100px;
    body {
    font-family: &quot;Trebuchet MS&quot;, Arial, Helvetica, sans-serif;
    color: #3b3b3b;
    background-color: #FFF;
    margin: 0px;
    #logo {
    width: 170px;
    height: 70px;
    float: left;
    background-color: #000;
    position: static;
    padding-top: 15px;
    padding-right: 19px;
    padding-bottom: 0px;
    padding-left: 0px;
    left: auto;
    right: 400px;
    margin-left: 390px;
    #navbar {
    height: -36px;
    width: 950px;
    margin-right: auto;
    margin-left: 10px;
    position: absolute;
    left: 59px;
    top: 362px;

    For best possible help with layout issues, we need to see a link to the live page.  Please upload your work so far to a TEST folder on your remote server and post the URL here.
    In the meantime, remove borders from linked images with the following CSS rule.
    a img {border:none}
    Nancy O.

  • Hi, dear friends,   I have a big problem:   Since I installed OS 10.9.3 MAV (Maverick), I am unable to use Adobe CS6. Each opening Photoshop attempt, the system tells me an error of type 6 or 16.   Thank you for your help, Guys,   Marius SANNA

    Hi, dear friends,
    I have a big problem:
    Since I installed OS 10.9.3 MAV (Maverick), I am unable to use Adobe CS6. Each opening Photoshop attempt, the system tells me an error of type 6 or 16.
    Thank you for your help, Guys,
    Marius SANNA

    Which version of Photoshop do you have? The current version is 13.0.6.

  • I need help guys..

    i need help guys....
    Project Specification:
    Develop a software package using HTML, servlet for a company called BookWorm Pte Ltd. This company rents out its books to the general public. This software package allows them to check if books are available in the store. If books are not available, they can join as members and put a reservation for the book. A title can only be reserved by a member. Members are given a userid and password to perform this function.
    Features of program:
    Compulsory:
    1. A main page allowing user to select what they want to do.
    2. For the general public, the program must be able to separately:
    a.      Display all titles in the store. It should include current quantities in the store and status of each title. i.e. Available, on loan, Reserved by someone.
    b.      Display only books that are available for loan.
    c.      Display books that are out on loan but are available for reservation. (These books are not reserved by anyone yet.)
    3. For members of the book store, the program must be able to:
    a.     Request user for userid and password.
    b.     Reserve a book that is out on loan but not reserved by anyone else.
    c.     Cancel his/her reservation.
    d.     View the books he/she has reserved so far.
    Additional:
    1. For book store administrator, the program can:
    a.     Request administrator userid and password.
    b.     Add/Remove members.
    c.     Update members� userid and password.
    d.     Change administrator�s password.
    e.     Change quantity of books whenever it is return or loan out.
    f.     Remove or add in new titles.
    g.     � etc... Features you think are helpful to administrator�
    2. For members, the program can:
    a.     Allow users to send comments to administrator.
    b.     View all books he/she has rented so far.
    c.     Reserve for books already reserved by other members.
    d.     � etc� Features you think are helpful to members�
    Required Database:
    You will need a database with two tables to store information on books and members. Please create the database & tables with the exact names shown below. You can use your own names for any additional tables or fields in the database.
    Microsoft Access Database
    Database name: BookWorm Pte Ltd.mdb
    Table for storing books information:
    Table name for Books: BookRec
    Structure of table for compulsory features:
    Field Name     Type     Explanation
    Title     Text     Title of book
    Author     Text     Author�s name
    Price     Currency     Cost of rental
    Qty      Number     Current quantity in store
    ResvUserID     Number     For storing of member�s userid if reserved by him/her
    Table name for Members: UserRec
    Structure of table for compulsory features:
    Field Name     Type     Explanation
    UserID     Number     Member�s userid
    UserName     Text     Member�s name
    Password     Text     Member�s password

    There's an old saying at the forum:
    Do your homework yourself.
    Post only if you are stuck somewhere... no spoon-feeding.

  • HT204382 i need help guys mi karaoke videos aren't playing anymore how can i download some drivers for it ?

    i need help guys mi karaoke videos aren't playing anymore how can i download some drivers for it ?

    Drivers? You need a program to run them such as K-Jams. Then you will need to check your connections from the laptop to the monitor and make sure your settings are correct in System Preferences.
    Good Luck
    Pete

  • Hi. Deeeep trouble here. I get overload (only 1 core working, it should manage easyly though anyway) with only 1 audio instrument playing. No other things in arrange. iMac i7 2.8, 8gb. Newest Logic Studio. Plz help, guys.

    Hi. Deeeep trouble here. I get overload (only 1 core working, it should manage easyly though anyway) with only 1 audio instrument playing. No other things in arrange. iMac i7 2.8, 8gb. Newest Logic Studio. Plz help, guys.

    TimboDJ wrote:
    Right people, I really hope you can help... here's the story:
    I produce with a friend and approx 4 months ago we both upgraded to brand new MacBook Pro's each and Logic Pro 9 each.
    I bought a 13" MacBook Pro with 4GB and the 2.53Ghz Intel Core 2 Duo processor.
    He bought a 15" MacBook Pro with 4GB and the 2.66Ghz Intel Core i7 processor.
    We both have bought the full version of Logic Pro 9, both done the upgrade to 9.1 and have both set our copies of Logic to 64 bit.
    Why? The only advantage you have from 64 bit is that Logic can use more than 4 GB RAM - which neither of you have. I would strongly recommend setting Logic to 32 bit. On both Books. It might alleviate some or even all the problems - I hope.
    Here's a list of unavailable features in 64 bit mode:
    http://support.apple.com/kb/TS3171
    My friends copy of Logic on his Mac is so buggy its sometimes unusable.
    My mate is about to throw the **** thing out of the window and buy Cubase!
    More often than not it is hard to install new software on computers that have been thrown about.
    Can anyone shed any light please??
    I think 32 bit is your answer. However, the mobile i7 processor does at least have one issue with Logic:
    http://discussions.apple.com/message.jspa?messageID=11460744#11460744
    (same topic, summary)
    http://discussions.apple.com/message.jspa?messageID=11525406#11525406
    regards, Erik.
    Message was edited by: Eriksimon

  • Hi guys urgent please help me ASAP my ipod touch 4g reboots/restarts over and over again and i cant enter DFU mode cause my home button is stuck/broken please help guys i cant enter itunes too cause it said it needs my passcode

    hi guys urgent please help me ASAP my ipod touch 4g reboots/restarts over and over again and i cant enter DFU mode cause my home button is stuck/broken please help guys i cant enter itunes too cause it said it needs my passcode the problem is i cant even enter my passcode in my ipod touch cause its rebooting over and over again help please guys

    - See if this program will place it in recovery mode since that erases the iPod and bypasses the passocode.
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    - Next try letting the battery fully drain. The try again.

  • Need help urgently, I upgraded my iPhone 4 with new OS 5, but at the last restore failed. Apple Customer Care helped me to resynch my phone with all that available in Library. I've got all back except my Contact no. Pls help guys, thnx

    Need help urgently, I upgraded my iPhone 4 with new OS 5, but at the last restore failed. Apple Customer Care helped me to resynch my phone with all that available in Library. I've got all back except my Contact no. Pls help guys, thnx Plz guys anyone can help plzz....I've lost all contact and I dont even have any secondary back up also...!!!

    If you've had it for less than a year, then it's still under warranty.  Take it to an Apple store or an authorized service facility.  See http://support.apple.com/kb/HT1434

  • My iPhone 3g has 2 white horizontal lines i don't know where did it came from. I turn it off then on but its still there. the lines spreads everyday. I dont know how to fix it. need some help guys.

    my iPhone 3g has 2 white horizontal lines i don't know where did it came from. I turn it off then on but its still there. the lines spreads everyday. I dont know how to fix it. need some help guys.

    If you take a screenshot (Press the home button and Lock button at the same time), does it appear on the screenshot? Zoom in on the screenshot and see if it's still there.
    If not, then your display is failing. I would recommend taking it to an Apple Store if you can, if you can't then to an authorised Apple reseller.
    If it does appear on the screenshot when you zoom into the spot, then it's a really weird software issue! You might have to backup and restore the device.
    Let me know!
    xeni

  • Please help me!!! Right now i stay in Malaysia but i use USA itune account for buy an apps. Here ive screwed up because of my payment were decline. Any help guys!

    Please help me!!! Right now i stay in Malaysia but i use USA itune account for buy an apps. Here ive screwed up because of my payment were decline. Any help guys!

    If you've had it for less than a year, then it's still under warranty.  Take it to an Apple store or an authorized service facility.  See http://support.apple.com/kb/HT1434

  • I cant track my lost Iphone 5 2 days ago .... any help guys??

    I cant track my lost Iphone 5 2 days ago .... any help guys??

    Is Find My iPhone turned on (on the phone)

  • Hi. I am reinstalling Macbook Pro OS X from the "question mark icon". During process, there is a question "select the disk where to install Mac OS X" but there is no option/selection in the box. I really need your help guys. I need it badly. :'(

    Hi. I am reinstalling Macbook Pro OS X from the "question mark icon". During process, there is a question "select the disk where to install Mac OS X" but there is no option/selection in the box. I really need your help guys. I need it badly. :'(

    If you got the question mark and you do not see any partition to install OS X to, it is not good.
    Close the OS X installer by pressing the red button at the top left corner of the Install OS X window, and open Disk Utility. Then, look at the left sidebar and tell me if you see your hard drive. You should see something like this:
    Do not worry if you do not see Macintosh HD or if the option with an arrow shows a different name. This is normal.
    If you see it, choose it, go to the Erase tab and erase the drive. Finally, close Disk Utility and reinstall OS X. You will lose everything if you do not have a backup.
    If you do not see the drive, it is damaged and it has to be replaced. You can replace the hard drive of a MacBook Pro without voiding the warranty, and any 2'5" SATA hard drive is valid. If you are not an experienced user or you do not want to go inside the MacBook, take it to an Apple Store or reseller.

  • I NEED YOUR HELP GUYS!! I WAS DOWNLOADING OSX LION WHEN MY NET CONNECTION STOPPED. THE ICON DISAPPEARED AND IT WILL TAKE 48HOURS FOR THE INTERNET CONNECTION TO BE RESTORED. WHAT SHOULD I DO? PLEASE HELP ME. IM NOT TECHIE AT ALL SO PLEASE.. PLEASE HELP ME.

    The internet was working fine til 10:31am philippine time. Was downloading OSX Lion, at that time it was somewhere half. Then all of a sudden internet failed and lost connection. Called my ISP immediately and was told it would take 24-48hours for the service to be restored. THen after ending the call the OSx Lion icon disappeared. I dont know what to do. Im not techie at all. Please guys. HELP ME>

    Hey allan. I dont know. Nothing seems to change. I still dont have net connection. Im at a net shop right now. (Not using mac.)  What will happen to the OSX Lion that I payed for? The icon was gone. Im still in the middle of downloading it.

  • Obtaining principal in EJB helper classes

    I have a pretty typical EJB setup where the actual EJBs delegate a lot of work
    off to helper classes which are simple java classes. Some of these helpers need
    access to the principal currently executing on this container thread. Currently,
    I am passing the principal as a parameter in every method signature on the helpers
    which need it. But as you can probably guess that approach is quickly becoming
    unweildy.
    Ideally, what I would like to do is to have access to the principal associated
    with the currently executing thread. I can mimic this by setting thread-local
    variables in the EJB prior to calling helpers. But I was wondering (ok, hoping)
    that there was already a way to access this information (either through weblogic
    classes or MBeans). At this point, I dont even care if it is not portable.
    P.S., I use WL6.1
    Thank you in advance,
    Steve

    >
    The helper methods do database querries etc and return results that the EJB sends onwards to clients. If these methods
    are NOT synchronized (and the ejbs share the static class) won't it cause concurrency errors? I think most of our methods are not
    synchronized (and it doesn't seem to cause any concurrency errors so far... though the system have not beeen stressed test that much,
    and concurrency bugs tends to pop up later and randomly :P).
    >
    No, if you dont have any static data variables in the Java classes, static method as such will not cause concurrency errors, and the methods should not be synchronized.
    If you have any synchronized methods and they take a while to execute, that could become a bottleneck in itself, because different threads waiting for each other,
    so make sure you dont have any synchronized methods where it is not explicitly needed.
    Think of a static method (without static data in the class being manipulated) as a plain function in another programming-language.
    >
    We have some scaleability problems with the EJBs... It seems as if they do not run concurrently. If we do a stress test with several threads calling the EJBs their response time increases by a too large factor to feel comfortable...
    >
    Apparently, you do have a some scaling/concurrency problem, which could have many causes -- transaction locking and clashes in the database, poorly configured database, network congestion, problems in the EJB architecture, etc -- can be many reasons...
    The general idea to debug, is first to find out exactly what calls in your code that take longest time to execute (profiling, logging, System.out.println's are useful) when you put parallel load on your system -- rather than just seeing "the whole application seems slow" -- from there you can move on, "divide&conquer" the problem, etc...

  • Code for send button. I need your help, guys!

    I would appreciate a Java code for a "send" button or a "send page" link that would send a complete web page to my email address. I have some forms for my users to fill out online and send them to me, and so the problem I am having is that when I use FrontPage forms (text boxes, check boxes, radio buttons, etc.,)for them to use, I am getting the input from those form only. What I NEED to get is the complete page, exactly what the users see on the screen with all the text in the forms. The need for this is that these forms (reports) will later be printed out, so they MUST look exactly as on the screen.
    So I am thinking a bit of Java code could help me out. Would you give me a hand guys? Thanks!

    Do some JNI and take a snapshot of the screen, it is the ONLY way I know to ensure EXACTLY what you ask for: even the HTML from the page may look different than what the users sees when filling out the form when that HTML is displayed on a different machine and system.
    Otherwise your agument seems a little trivial and you could just replicate the form on your local machine and insert the data you captured with a normal post operation into the local copy of the HTML form.

Maybe you are looking for

  • Description name of the purchase order

    Hello experts, My problem is the following : we change the description name of the purchase order in SRM, then we save the document and the old name is coming back. It doesn't take into account the modification. Regards, Kiolla

  • Document type SK

    Hi, the  document type AB is used for cash payment(FBCJ) and  reversal so its create confusion. As per requirement if we use document type SK for cash payment(FBCJ) then its reversal document will be AB,this is the scenario . Please advise me Thanks,

  • Why is PayPal still preferring a RC4 cipher with TLS 1.2? Is RC4 with TLS secure?

    My connection with Paypal is using RC4_128 as the preferred cipher with TLS 1.2. I was under the impression that RC4 was quite vulnerable and that AES-GCM is strongly preferred with TLS 1.2 as a more secure alternative? Am I incorrect? How much of a

  • Calendar Page

    Hi, Can someone explain to me the benefit of the calendar page in apex. Is it only to view the data entered by a form in the calendar format? Thank you

  • FW 3.0 Photo app not functioning properly

    Has anyone elso noted that the 3.0 Photo app is broken? The orientation can no longer be changed. So now landscape photos viewed while holding the iPod in the landscape orientation are displayed on their side. There does not seem anyway to flip the p