hi, what is the difference between local home & remote home? In weblogic there is a deployment property "local-jndi-name" which is used to specify the local home jndi name..if there are 2 homes i.e. local & remote then 2 separate Jndi names needs to be provided.. thanks in advance trupti
A local home goes along with the local component interface, and the remote home goes with the remote interface. Starting with EJB 2.0, an EJB may have either or both. The remote interface is the same as EJBs have had since the beginning - they are able to be called remotely (from another VM or another computer) using RMI or CORBA. A local interface to an EJB is only allowed to be called from within the same JVM, so only code running on the same app server can use it. The other difference is that parameters passed to (and returned from) a remote are passed by-value. That means they are serialized and the EJB gets a copy of what the client passed. Parameters to local interfaces are passed by reference (just like calling a regular java object). An EJB can have either of these or it can have both. If it has both, they are allowed to have different methods (or the same methods). They will need separate jndi names, although you sometimes don't need a "global" jndi name if you use ejb-ref and ejb-link to reference them.