Designing the Project? EJBs Stored Procedure JTree etc.
Posted on 2002-04-18
Well I am here in middle of a project which is using Java Swing as the GUI. We are still not decided the middleware tough our database is ORACLE.
BTW: Options of middleware is JSP/Servlet/Oracle Stored Procedure
Now this JTree is hosting data which will have concurrent access.
Swing is divided in two panels : PanelA is JTree with all its nodes and PanelB is with Display area which is nothing but retirves info about the node when the node is clicked.
JTree(PanelA) is downloaded once and then subsequent hits on the node gets data of the node dynamically.
The tree is dynamic and nodes can be added to the existing tree.
Now just imagine the scenario:
User A is working on the JTree and is viewing the data on the Display panel.
User B is working on the JTree and is viewing the data on the Display panel.
Now: User B adds a node to the tree.
User A is working on the JTree and wants access some node.
But now how does this user A gets to have the most fresh copy of the JTree since User B has added a node.
Now refreshing the tree on every request is very very expensive process.
So what is the way to pass some mechanism which makes the User A session aware that the tree is updated and the user refreshes the tree by calling the relevant method.
If I am not further clear I can go in more depth.
A strong strategy will be very very helpful and what is better appraoch to use in middleware. I have mentioned both the approches we are exploring.
we are using websphere as our appserver.
Thanx in advance to all experts.