Java EE: EJB vs JavaBean? How to organize my classes in a web project? -


i developed java application 3 classes , main. have web interface in order replace main. example : function (in 1 of classes) called html button , result visible in combo list.

then, used java ee but, after reading severals tutorials, begin mix everything. classes must modified respect java ee model? understand must either ejb or javabean. how know type belong?

a bean java object managed container. container environment in deployed project. there various possible container, spring, servlet container, java ee one...

the same java class may managed bean if deployed in jsf project or cdi 1 ; or ejb bean if deployed in ejb project ; or spring bean if application using spring ioc container, it's matter of configuration (using annotation or xml configuration).

to deploy project web project need web server (tomcat, jetty...) or java ee 1 (glassfish, jboss...) or lightweight http server (https://github.com/codestory/fluent-http example).

i'd advise use tomcat , jsf framework begin according requierement (jsf 2.0 tutorial eclipse , tomcat). otherwise try tomcat rest services exposed javascript client (http://www.vogella.com/tutorials/rest/article.html)

for information, have balusc anwser javaee : what java ee?

good learning


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -