• 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

Session bean and confirmation from the client

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

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.

thanks
reply
    Bookmark Topic Watch Topic
  • New Topic