• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing-Servlet-EJB3 : Best Practices ?

 
chowdary davuluri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a pretty heavy SWING client which would be exposed as an Applet in the future. The business tier is in EJB3. I am now planning to have a servlet layer inbetween the swing client and the EJB tier to maintain user sessions. I would like your help on bestpractices/design patterns/sample codes on calling ejbs from servlets, calling servlets from applets etc. Btw,I am using JBoss as my application server.

Thanks.
 
Aurelian Tutuianu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't give you pages with tutorials or something. I wish only to express my curiosity about one thing: why servlet?
Why not calling EJBs directly from applet? In that way you change only very little and have the best chances to maintain very easily the actual code.
You usually use servlets to produce HTML pages or handle MVC control, which is not the case. For session you have already stateless session beans, which handle user session date, again I don't see the point of using servlets.
You would have only to design a page where the clients would access to applet and where you give the applet some parameters if is necessary.

All the best,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!