Thanks. I didn't get too far with that either:
$ ant create-db
[delete] Deleting: /home/rich/.programming/java/ejb3-project/build/database.properties
/home/rich/.programming/java/ejb3-project/build.xml:399: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown database 'ejb3-project'
Total time: 0 seconds
Tell it to create the database and it complains it's unknown?
Well, you probably have to setup your database. Follow that ANT script to see what its doing and you should be able to figure out what that error means.
If all you care about it building an EJB3 app, then take that skeleton project and start deleting stuff in there you don't need. This thing that is failing is just part of the build that helps you create the database schema. You probably don't need that if you already have your database setup and you just care about building the java code.
Just start paring down that example to the bare minimum that you need to build it.
Also, that skeleton project did work for me, but I remember a couple people saying that they had to tweek a couple things to get the stuff to work for them. I don't know the circumstances though.
Yeah, the create-db task just called a sql script that created some tables, not a db. The problem with deleting stuff to get down to a minimum is that I don't know what I can or can't delete.
I don't even really know how to tell if the deploy task has worked - it doesn't error and there's a few ejb3-project entries in the JMX-Console but there don't appear to be any beans I can see methods on that relate to the source code under src?
Re: I need a hello world example of ejb 3.0 with jboss 4.2