When you say J2EE server I assume you mean the reference implementation from sun. There are some differences but the really major one is that the reference implementation is not meant to be used in a production environment, whereas JBoss is. (and is in fact being used in production in several places).
Thanks for that.
So can I test Richard Monson-Haefel examples on JBOSS?
can I use deploytool, ANT?
Thank you very much for your insights
you should be able to test those examples.
You need to make sure that you are working with ejb-jars though. Once EJBs have been deployed as an .ear file for a particular app server, they are no longer platform independent as ear files contain deployment info particular to that platform.
Since the deploy tool that comes with J2EE RI does several things, you may be able to use some of those features, but not all of them.
The deploytool helps you to create the ejb-jar files, as well as write the xml deployment descriptor. You can then save those jar files, and add the jboss specific deployment information (in the form of a jboss.xml file).
This is all that you need to deploy ejbs on jboss. The part where click on deploy, to send the jar to the server in J2EE, and the creation of a client jar is all handled differently, (and more simply) in Jboss.
Deployment is handled by just dropping you ejb-jar file into the deploy directory. There are four generic client jars that need to be on the client's classpath. This means there is no need to create a client jar for each ejb-jar. Much simpler.
So in short, while you can use deploytool for some of the work, it is a J2EE RI-specific tool, designed only to be used with J2EE-RI.
Ant on the other hand, can be, and is used (AFAICT) by 99% of Jboss users.
Thank you very much for that bigg help.
I would like to ask you again about Richard Monson-Haefel examples, I see on jboss document, Richards examples can be tested on jboss but only for unix users. There is also link saying modified version which is not working.
Any more insights are very much appreciated.