Home  
 
  Ask Questions  
 
  Feed Back  
 
  My Questions  
 
  Contact Us  
 
  About Us  
 
 Interview Questions  
 Our Services  

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies

  • NEW INTERVIEW QUESTIONS.COM J2EE INTERVIEW QUESTIONS EJB INTERVIEW QUESTIONS DETAILS


    NewInterviewQuestions.com - Home for World's Largest Interview Questions Website.

    A D V E R T I S E M E N T




    Add to My Questions Add to My Questions | Forward Forward | Print Print


    Question Question What is the difference between local interface and remote interface ?
    Answer Answer We can describe the following common rules for choosing whether to use remote client view or local client view:
    When you will potentially use a distributed environment (if your enterprise bean should be independent of its deployment place), you should obviously choose remote client view.
    Use remote client view when you need to be sure that parameters passed between your EJB and the client (and/or other enterprise beans) should be passed "by value" instead of "by reference." With pass-by-value, the bean will have its own copy of the data, completely separated from the copy of the data at the client. With local client view, you can do pass-by-reference, which means your bean, as well as the client, will work directly with one copy of the data. Any changes made by the bean will be seen by the client and vice versa. Pass-by-reference eliminates time/system expenses for copying data variables, which provides a performance advantage.

    If you create an entity bean, you need to remember that it is usually used with a local client view. If your entity bean needs to provide access to a client outside of the existing JVM (i.e., a remote client), you typically use a session bean with a remote client view. This is the so-called Session Facade pattern, the goal of which is that the session bean provides the remote client access to the entity bean.

    If you want to use container-managed relationship (CMR) in your enterprise bean, you must expose local interfaces, and thus use local client view. This is mentioned in the EJB specification.

    Enterprise beans that are tightly coupled logically are good candidates for using local client view. In other words, if one enterprise bean is always associated with another, it is perfectly appropriate to co-locate them (i.e., deploy them both in one JVM) and organize them through a local interface.


    © NewInterviewQuestions.com


    If you have the better answer, than send it to us. We will display your answer after the approval.
    Answer Answer:*
    Name Name:*
    Email Address Email Address:*
         Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
     


    Rate the above answer. Help us to know about the answer.
    Category Category EJB Interview Questions
    Rating Rating (2.0) By 1 users
    Added Added 7/14/2006
    Views Views 153984
    Rate it Rate it!
    Free Offers Free Offers: 300 Free Magazines for you. No credit card required. No Shipping Charges. Absolutely Free for 1 Year.

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:


    A D V E R T I S E M E N T





     Sponsors  
    Latest 10 Answers
    Hub supports broadcasting.But switch supports unicasting and broadcasting.So many network system using switch.
    Between 2GB And 4GB.
    100000
    A LIST OF BALANCES OF A/CS OF LEDGERS IS CALLED A TRIAL BALANCE.
    log6=e^6 and log5=e^5 then log(a+b)=log(a*b).e^(6*5)=e^30. so,log30 is answer.
    tn=a+(n-1)d. series is 112,126,140,154......994. a=112,tn=994,d=14.sustitute will get n=64. sn=n/2{first term+last term),sn=64/2{112+994},sn=35392
    1.Employee Details 2.Patient details 3.Hospital Location 4.Ambulance Service 5.operation rooms 6.No of Staff doctors,nurse etc. 5.Availabilty of Good service
    Data reader is to read the data .It can read only one row data at a time. Data adapter acts as a bridge between Database and data set.It is used to maintain the connection and it reads whole data at a time.
    # include #include void main() { clrscr(); printf("\n "xxx"\n"); getch(); }
    variable is a place where we can store different type of value. In other word,in computer memory the space where we store constant value i.e.we can say the home of constant in memory.

    G o o g l e Search

    Google

    Newinterviewquestions.com is a part of Vyom Network. Top



    Copyright ? 2009, newinterviewquestions.com. All rights reserved Privacy Policy

    Page URL: http://www.newinterviewquestions.com/interview/5133/Default.asp?cachecommand=bypass


    Download Yahoo Messenger