Meaningless Drivel is fun!*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes SLB-local, home, endpoint interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "SLB-local, home, endpoint interface" Watch "SLB-local, home, endpoint interface" New topic
Author

SLB-local, home, endpoint interface

Yi Si
Ranch Hand

Joined: Nov 12, 2003
Posts: 54
Hi erveryone

Hi erveryone

if there is local interface, the corresponding SLB can be exposed to local client.
if there is home interface, the corresponding SLB can be exposed to home client.
if there is endpoint interface, the corresponding SLB can be exposed to web service client.

I want to confirm whether we can have three interfaces simultaneous?

If can , can someone give some advice about such archtecture?


Sun(java)-SCJA SCJP SCWCD SCBCD SCDJWS SCEA<br />Sun(solaris)-SCSA SCSN<br />IBM-486 Object-Oriented Analysis and Design with UML Test <br />IBM Certified System Administrator - WebSphere Application Server Network Deployment V6.0<br />Oracle-OCA
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
That should be:

if there is local interface, the corresponding SLB can be exposed to local client.
if there is remote interface, the corresponding SLB can be exposed to remote client.
if there is endpoint interface, the corresponding SLB can be exposed to web service client.

Originally posted by Yi Si:
If can , can someone give some advice about such architecture?


Short answer: Don't do it.

Each interface is intended and effective at a different level of granularity because of the varying marshalling and invocation overhead. The coarser the granularity becomes the less object-oriented and the more service-like it becomes.
In order of ascending granularity (increasing marshalling and invocation overhead): Java method invocation, local EJB invocation, remote EJB invocation, Web service invocation.

For a more detailed explanation see: Local Client Vs. Remote Client
 
jQuery in Action, 2nd edition
 
subject: SLB-local, home, endpoint interface
 
Similar Threads
WebService using Local Interface
JAXWS : Service Enpoint Interface and the Service Endpoint Implementation class
Implementing Remote and local interface at the same time ?
A mock question
Doubt in EJB Stubs