Hi all,

How can I achieve loose coupling ?

In the EJB spec they say:
 "The javax.ejb.EJBMetaData interface is intended to allow applications
assembly tools to discover informationabout the session bean, and to
allow loose client/server binding and client-side scripting."

I want to use a EJB from an application client *without* having to
reference it in the application-client.xml file.
But how can I do that ?

This is the EJBMetadata API:
 EJBHome  getEJBHome()
  java.lang.Class  getHomeInterfaceClass()
  java.lang.Class  getPrimaryKeyClass()
  java.lang.Class  getRemoteInterfaceClass()
   boolean  isSession()
   boolean isStatelessSession()

The only thing I  can only do with this is getting methods information
from my EJB using the RemoteInterfaceClass.

And, in order to obtain this EJBMetaData I need the home interface of
the EJB (getEJBMEtadata).

   PlaceHome home = (PlaceHome)PortableRemoteObject.narrow(homeObject,
PlaceHome.class);
   Place thePlace =
(Place)PortableRemoteObject.narrow(home.create("pedro"), Place.class);

Where should I use this class ?

Has anybody achieved this loose coupling ?

Regards,

Pedro

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to