Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Session bean and confirmation from the client

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I’m starting with EJB3 and I’m doing a little application to help me learn. The application is an EDMS (electronic Document Management System).

For the sake of simplicity I have decide to put all documents in a directory called a repository.

For this I have to create a repository with a session bean called RepositeryAgentBean.

I’m just working right now on the middleware. I don’t know if I’ll be using struts, gwt, zk for the presentation layer. So my session bean has to be general.

I have an entity bean named Repositery.

The creation of a repository goes like this :

The user enter info about the repository, the server checks if the info is valid, then it asks for confirmation, if it receives confirmation it creates the repository.

Right now my session bean looks like this.

I don’t know how I could implement this:
Check if the information provided by the client is valid
Ask for confirmation on the client
Persist in the database

Do I have to use a stateful session bean to be able to ask for confirmation and then validate. If I use a stateful session bean how do I send back a message asking for confirmation to the client.

Happily living in the valley of the dried frogs with a few tiny ads.
create, convert, edit or print DOC and DOCX in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!