|
|
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
Question |
What is the difference between local interface and remote interface ? |
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.
Rate the above answer. Help us to know about the answer.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
A D V E R T I S E M E N T
|
|
|
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.
|
|