ESDL - Enterprise Service Description LanguageScope of ChangeA new API will be added to programmatically discover an Enterprise Bean's functionality. Rationale
With this new API, Enterprise Bean client logic can be auto-generated. Functionality
A) Client Side
Short: Like WSDL, only not in XML. Example
$remote= &Remote::forName('xp://localhost:6449/');
The bean objectContains information about a single Enterprise Java Bean.
B) Server Side
Short: Same as EASC MBean but deploys some helper services at startup. Discovering the deployed applicationsNotes:
deployments= mbeanServer.invoke(
The DeploymentInfo objects contain a list of mbeans that are deployed
in the ejb-jar it represents. By iterating over those, instances of
org.jboss.metadata.BeanMetaData can be retrieved by querying their
"BeanMetaData" attribute (also via JMX). The metadata objects contain
everything we want to know on the beans. Notification-driven
The list of deployed applications is not read whenever a client requests
this information but whenever it is necessary to update this list, that
is, when an ejb-jar is deployed or undeployed. filter= new NotificationFilter() {
Security considerations
The description will only describe remote methods. No internals about the
Bean are revealed. Speed impact
The ESDL should not be used at runtime but to generate classes once and
then use those. Dependencies
n/a Related documents
- Client classes code generator experiment
http://xp-framework.net/downloads/stubclassesfor.phps
http://xp-framework.net/downloads/xp.xsl Comments
| Table of contents |