Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is EJB only for web application?  RSS feed

 
Mohamed Iqzas
Ranch Hand
Posts: 77
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like jsp, servlets I'm aware that an EJB application is served in a web based container like jboss. But is there any possibility to tie EJB with the backend for business logic in a thick swing based desktop application? right now we are using stored procedures to do most of the business logic at the back end and java swing at the client side. is it possible to call a ejb running on application server from a thick client environment?
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you ased about EJB3 right? EJB2 we can use in EJB container and EJB3 we can use as simple POJO as well as EJB3 as Enterprise Bean in EJB container.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For both EJB 2 and EJB 3 you need an EJB-compatible runtime container, so that makes no difference. EJBs can be used for web apps, desktop apps, background jobs, or any other kind of code that needs connectivity to SQL databases.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!