Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session bean and confirmation from the client  RSS feed

Tadili Saad
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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!