This content has been marked as final. Show 1 reply
1005410 wrote:It is the ONLY approach you can take with EJBs.
I want to know if this is the correct approach?
Is there any better approach in Java EE 6? Is there any good example which explains this?Sure, use webservices in stead of EJBs directly. In my experience that is more portable and far easier to deploy as you don't need server specific EJB client jars. Check out JAX-WS and JAX-RS (me personally I prefer JAX-RS as it is a very clean API and a more well-defined standard).