• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can use Remote Interface With CMP ???  RSS feed

 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can use remote interface with CMP Entity bean.

I'm confuse to use it, please comment

1. I'm use Local interface with CMP entity bean When CMP have relationship to another Bean

2. I'm create Remote interface with CMP entitty bean When i allow for another bean in remote machine(another JVM) to connect (look up) this Bean.
??? Can i use this ???

3. In one CMP or Bean can have either Remote and Local interface yes or not ??

Thank you for all answer...
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can use remote interface with CMP Entity bean.

YES, you can use Remote home/component interfaces to get access to CMP Entity bean, although it is not the common practice.


1. I'm use Local interface with CMP entity bean When CMP have relationship to another Bean

This is correct. CMR is better to use local interfaces.


2. I'm create Remote interface with CMP entitty bean When i allow for another bean in remote machine(another JVM) to connect (look up) this Bean.
??? Can i use this ???

YES, as I said above, this is uncommon, but you can still use it.


3. In one CMP or Bean can have either Remote and Local interface yes or not ??

EJB (except MDB) can have either Reomote or Loca interface. They can also have both interfaces, although the Remote/Local interfaces cannot be switched.

Nick
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's very clear.

Thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!