Questions tagged [session-bean]

A session bean encapsulates business logic that can be invoked programmatically by a client over local, remote, or web service client views.

To access an application that is deployed on the server, the client invokes the session bean’s methods. The session bean performs work for its client, shielding it from complexity by executing business tasks inside the server.

96 questions
0
votes
2 answers

Java EE EJB understanding

I am very new to developing enterprise applications using Java EE. I have been using jdeveloper for this. Although I have gone through some books, I am still finding it difficult to understand the practical use and benefit of some modules. It would…
Mustofa Rizwan
  • 10,215
  • 2
  • 28
  • 43
0
votes
1 answer

Cleanup JSF session scope bean when application shutdown

I need to invalidate and cleanup active session objects when the JSF application shutdown or tomact shutdown. The following is the code I have written in application scoped bean @PreDestroy public void shutdown(){ Map appMap =…
vels4j
  • 11,208
  • 5
  • 38
  • 63
0
votes
2 answers

Can't Serialize Session Beans - Warning thrown

I'm running an enviroment with JSF + Primefaces + tomcat 6.0.32 in netbeans using EclipseLink (JPA 2.0). My application works fine, but everytime I run it, I get a lot of warnings saying that cannot Serializate my session beans, and shows me blocks…
oriuken
  • 653
  • 3
  • 7
  • 19
0
votes
4 answers

Stateless Session Bean - Stopping Multiple Calls

So I read from this post from BalusC about how to stop a stateless session bean from continually thrashing a data store (e.g. DB) when accessed by JSF (which may/will make multiple calls) and so I've implemented my code in what I'd like to think is…
user573151
0
votes
1 answer

Java-EE6: What's the proper way to call a stateless bean from a sub-project?

My Enterprise Application (E-APP) features an additional class library project (CLP) that acts as interface lib between my E-APP and my stand-alone Java SE fat-client (E-APP references the built jar-file of CLP). Now I need to call methods on…
salocinx
  • 3,715
  • 8
  • 61
  • 110
-2
votes
1 answer

What is the default type of a Session Bean?

I was reading best practices related to JavaEE APIs and came across a suggestion to use @Stateless and @Path together to make thread safe. That prompted me to inquire that when we do not mention anything, what is the type of session bean? Is it by…
1 2 3 4 5 6
7