Try this: create the directory server/xxx/deploy/last and place your service there. Then it should be deployed last. (Come to think of it, I haven't verified that this behavior is still true in 5.0.0.GA, so let me know if it works.)
Thanks Peter, didn't know that was possible.
But.. it's a self-contained EAR app.
And worse, because everything else depends on this service, it can't start *last*, it has to start first but after the persistence units. :/
What is the order of the components in application.xml? My understanding is that the components are deployed in the order in which they appear in that file.
There is one jar only in application.xml - containing all application code and services.