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