I completly agree with you about Ant and Maven when it comes
to building and deploying applications. These examples were made
when I was learning EJB.

My only aim is that a beginner should not be immediately be exposed
to complexities of any system...

Having an Ant build.xml means, before building/deploying an application
he has to give OPENEJB_HOME variable in each build.xml.

Suppose if I build an executable jar as you specified, just imagine the
size of each application, with all the libraries of OpenEJB embedded in
this single jar file.

Instead of this, the learner just has to set OPENEJB_HOME environment
variable, then he can build, deploy and execute the application! Of course,
I pity the Windows users who cannot run my examples that easily. But who
[besides me] cares about them!!

Any way, your advice was timely, and my future contributions will be using
Ant - for building and deploying applications. Thank u!

- Subhash.

Jacek Laskowski wrote:

Subhash wrote:

I have uploaded some ready to run EJB examples:

http://www.indiwiz.com/web/Java/J2EE/92

The examples come with shell scripts for running
them using OpenEJB in Linux environment.

Discussions are welcome!


Great! Although I haven't yet worked with them I'd highly recommend preparing any examples without any shell scripts that are hard to maintain. The effort of maintaining them is not worth it.

What do others think about releasing Java applications (e.g. OpenEJB) with no shell scripts at all. As a replacement I'd propose:

o indicate a main java class with META-INF/MANIFEST.MF's Main-Class attribute
o Jakarta Ant (where a classpath is not easy to set up)
o Apache Maven (mainly to not include jars in source control repository)


with no favorities among them. They all work well if used wisely.

How would you like OpenEJB if one day OpenEJB shell scripts disappeared?

- Subhash.


Jacek



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user





-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to