session-bean

JBoss: What does the warning EJBTHREE-1246 from the InterceptorRegistry mean?

I am currently developing an EJB 3.0 based application on the JBoss AS 5.0.0.GA and just recently the following warning showed up in the server log: 09:50:19,735 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container 09:50:19,735 W...

Session Bean returning another Remote Session Bean reference [JBOSS]

Hi all, I have a Stateless Session Bean in my JBoss Server that contains a function returning an instance of another Session Bean (this one is stateful). My problem arises because this returned object doesn't seem to keep its persistence model (the EntityManager is null). What is the right way to return from a Session Bean another Ses...

EJB 3 Session Bean Design for Simple CRUD

I am writing an application that's sole purpose in life is to do CRUD operations for maintaining records in database. There are relationships between some of the tables/entities. Most examples I've seen for creating session beans deals with complex business logic/operations that interact with many entities which I don't have. Since my...

Simple but good pattern for EJB

What would you suggest as a good and practical but simple pattern for a soloution with: HTML + JSP (as a view/presentation) SERVLETS (controller, request, session-handling) EJB (persistence, businesslogic) MySQL DB And is it necessary to use an own layer of DAO for persistence? I use JPA to persist objects to my DB. Should I with...

JSF + HashMap and its key

I have a database with 2 tables CD and Song. Session bean access then entity classes of those two tables. In my backing bean, I just have a String cd and HashMap<CDName, CDName> cds that will hold the list of CD return back from my sessionbean, so in JSF I would do something like this. <h:selectOneMenu id="cd" value="#{backingBean.cd}"...

Session beans per every entity class OR single session bean for all entity classes?

Hi all, I dont know is this question make a sense. Which approach is better, what are the differences, Using/creating session beans per every entity class OR single session bean for all entity classes? Thanks. ...

Why not use Session Beans instead of Message Driven Beans ?

I'm wondering, why not use Session Beans instead of Message Driven Beans ? If you can call remote methods from EJBs, so why bother sending/receiving messages with Message Driven Beans (which is more difficult to develop than session beans) ? In which scenarios Message Driven Beans become useful ? ...

How can I gracefully handle JSF application failures?

If my JSF applications, I'll sometimes come across a bug that, for example, corrupts a user session bean somewhere and the user is stuck looking @ a bunch of java exception gobbly-gook on their screen. The only way they can fix this is to restart their browser. Instead, I would like the application to handle something like this gracefu...