EAR application packaging / deployment -- Part I. (ejb-jar module)

Standard structure for ejb-jar module:


project-ejb.jar
+- META-INF
   +- ejb-jar.xml (optional)
   +- persistence.xml (optional)
+- <class-hierarcy>

My sample eclipse directory hierarchy:


project-ejb
+- src (dir for sources)
+- build (dir for compiled classes)
+- dist (dir for packaged module)
+- etc
   +- ejb-jar.xml (optional)
   +- persistence.xml (optional)
+- build.xml

Sample build.xml for packaging ejb-jar module:
[code]

[/code]