Well We have situation to decide now. I thought stackoverflow is best place to discuss.
Background:
We have 2 JVMs Enterprise Application server and one applicat
It doesn't have to be one or the other. You can have all your business logic in EJBs, and also provide a web service facade to access the EJB. Also remember that there are different types of web service architectures. SOAP is what most people think of when they hear "web service", but you might also want to look at JAX-RS.
Sending data as XML over HTTP is horribly inefficient. On the other hand, it gives you much more flexibility on the client side. Web services can be consumed from just about any platform or programming language.
If by "Web Services" you mean SOAP web services, EJBs should be faster no matter how you do it.
Pros:
Cons:
But if you don't need distributed transaction handling, just use RMI. It has the pros but none of the cons of EJBs. It's been around for ages, but it still works just dandy.