Who understand how Local Interfaces work ?

I'm studying Local Interfaces - I'd like to start

a discussion on this topic.

Local interfaces exist to provide a "local" view

of the bean and to avoid costly remote calls, but how

do I know that it has consistent values ? In other words,

if client access a "local" copy of the Bean, without

communicating with the Container, what do I get ? a cached

copy of the bean at that time ? If so, Local interfaces are

nothing else but a Value Object pattern

The point that I really cannot understand is how can the

Container ensure both a fast client-side Local interface

and database consistency.

Maybe the Container uses behind the scenes some callback

methods in order to keep the Local interface up-todate ?

Thanks in advance

Francesco

[845 byte] By [Marchioni] at [2007-9-26 3:01:03]
# 1

Hi Francesco,

I don't think Local Interfaces are working like this ..

They are just here to avoid remote calls between 2 beans in the same container.

There's no "local" copy of your bean and a client can not access beans with local interfaces but only using the remote interfaces.

jerome.

delattrj at 2007-6-29 10:58:46 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...