Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlets  RSS feed

 
Dilpreet Singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we call an Entity Bean from a Servlet?
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, this is not really a threads question. Maybe it would help if you posted in the the servlet forum.

But to answer your question, a servlet is just code running in a container. You should be able to access an entity bean the same way if it was an application. For most application servers, the answer would be to make a JNDI call to get a remote reference.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!