I will post the code shortly. As an aside you should
be able to reproduce this by creating an ear with a simple MDB in it. Deploy that ear to deploy-hasingleton, and you will see that you MDB is deployed before jms is finished. If you can get that simple test
to work that would be great because I cannot!
Also I have read that instead of deploying to deploy-hasingleton to get a singleton I can annotate with:
I guess this might save the trouble of creating an ear with just the MDB in it that you want as a singleton, and you can just deploy an ear with a bunch of stuff in it including your MDB in the farm directory. Bummer is that I cannot get this to work either.