Hey
Wong Kok Wai wrote:
> XML document has two forms: well-formed and valid. For a well-formed XML
> document, you just need to follow the XML syntax. To have a valid XML document,
> you need a DTD. So my point is this: in order for your suggestion to work, you
> will need a new DTD which declares the custom elements and attributes for the
> validation to work. Even with DTD, I worry about interoperability of EJB between
> vendors. It seems to me with your approach I would end up having to add the
> customised elements whenever I switch EJB container or need to support multiple
> EJB containers. The deployment descriptor will become a bloat! Why do we use
> Java? To be platform neutral! Why do we use JDBC? To be database vendor neutral!
> I know in reality both are not 100% true and we need to make some compromises.
> But we should still strive to be EJB container neutral, especailly in this early
> stage of EJB specs.
EJB vendors could do their own DTD which inherits the standard one
(there is inheritance in XML, right?).
I don't agree with your comments about switching EJB vendor becoming a
problem. I don't see the problems you describe (well, I see them, but
don't think they're problems).
OTOH, I don't agree with myself :-) It would be easier if the same info
be put into separate XML files but within the EJB-JAR. So for my server,
XS, I'd put a file called "META-INF/xs-jar.xml" into the EJB-JAR which
contains deployment info. Then the info would be a) separated from the
"pure" jar b) several vendors could put deployment info (assuming no
name clash) c) possible to have several deployments in one jar
("xs-jar-1.xml","xs-jar-2.xml", etc.) d) it would be valid relative the
EJB vendors DTD. Tada... all is well.. so disregard last comment(s)
about EJB-JAR XML extensibility...
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".