Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

SLB-local, home, endpoint interface

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic