Angularjs Application With Ejb Only
Solution 1:
First, you must have an interface to access your EJB methods.
If you're starting a new project I'd highly recommend using REST or WebSocket approach. Further reading on using WebSockets with AngularJS (although with Wildfly) can be found here: http://mgreau.com/posts/2013/11/11/javaee7-websocket-angularjs-wildfly.html
There is also something called AngularFaces project on github:
https://github.com/stephanrauh/AngularFaces
It requires JSF besides EJB. If you deny using REST I assume you're familiar with JSF framework which is complementary to EJB as they both come from Java EE stack. But be careful, as the author of this creature emphasizes that it's only for Java EE developers who are reluctant to learn AngularJS or I think for legacy projects. Here is more on that:
http://www.beyondjava.net/blog/angularfaces-jsf-beyond-ajax/
Once again - this is not the recommended way.
Post a Comment for "Angularjs Application With Ejb Only"