"And basically my question is, can I deploy the EJB part on the ESB Stand-Alone server at all?"
... and the answer is "no". You would have to bundle it with an app. server (as you did with 4.2.2 and 4.7).
Thanks for the precise answer.
The reason that I split the functionality in a WS and EJB part is that part of the functionality needs a "processor" that requires some time consuming
initialization, and if I place the "processor" in an instance variable in the Webservice class, it gets initialized at each invocation of the webservice - which is why I placed this part in the EJB so it is only initialized once.
Is it possible to have a stateless session behaviour in the ESB webservice, so it e.g. only initializes its instance variables once?
You can use the full SOA Platform (soa-5.0.0.GA) instead of the standalone version. There you will have what you need to deploy and run your EJBs.
I am not sure at all that you can pack everything in a .esb archive though. This is what I am trying to do at the moment and it is not working so well.
I start to believe that you have to have a special jar archive for the EJBs.
You can have a look at the EJB3 tutorial here (especially the entity example, chap 12) http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html_single/index.html. The source code is here: http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/docs/tutorial/