• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Bean Packaging

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The scenario is like this.

1. Jsp will call session bean(Manager) to insert number of records.
2. The session bean(Manager) starts the transaction. And calls the Entity bean/s in loop.
3. The Session bean(Manager)commits the transaction.

I have packaged session bean and all entity beans separately. That is one jar for session bean and one for entity bean and deployed in the same application server. Here started my problem.

The problem is even though entity bean/s calling loop is not finished its iterations the method ejbRemove of sessionBean is called and the session Bean is destroyed.(within 2-3 secs)

Note : None of the Exceptions is thrown and also the return value is not coming.

Now I saw the CD bean example here session bean and entity bean are packaged together.
I did the same and surprisingly ITS WORKING FINE.

I am using JBOSS-2.4.4 on NT2000 server, SQL 2000, Microsoft driver for JDBC.

My questions are

1. IS IT REALLY NECESSARY TO PACKAGE THE SESSION AND ENTITY BEANS WHICH SHARE THE TRANSACTIONS.
OR
2. I MISSED OUT ANY SETTINGS FOR WHEN THE BEANS ARE PACKAGED SEPARATELY, IF SO WHAT IS THAT SETTING I HAVE TO DO?

Thanks in advance.

regards
Rajakumar.
:roll:
reply
    Bookmark Topic Watch Topic
  • New Topic