You should use JBoss 3.2.1 instead.
Thanks, indeed with jboss-3.2.1 I get a correct result.
Does this mean that one cannot write standalone client applications for 4.0DR2 ???????
OK, here is the deal... One doesn't have to downgrade to 3.x to make the standalone applications running under JBoss 4.0DR2.
This is the list of libraries needed:
Also, looks like you DO NOT need to pass this in your environemnt:
And the final key is:
Add a file called jndi.properties to your client class path with the follwing content:
(change the host and the port if needed)
Anyone could argue about the restrictions of this approach, but it will help at least to unit test your beans :)