Say we have a Refrence/Directory table TIMEZONE having 2 columns code and description.
The desciptions has to be shown in a choice in the UI.
 
As the data is more or less static it would make sense to get the data once and store it at the server
which multiple clients can share.
 
I can use Workspace in Weblogic , but then it would be vendor specific and thus portability would be lost.
 
The only possible way i can think of implementing it is by making a RMI server which can be shared
by multiple user.
 
RMI server would publish following methods in the interface
String[] getAllDescriptions()  // would be used by the UI client
String getCodeForDescription(String desc) // would be used by session bean to do the mapping ( to store in the db )
String getDescriptionForCode(String code) // would be used by session bean to do the reverse mapping ( to show in the UI)
 
Is this a right way to do in a EJB Server Environment?
Would appreciate any better pointers....
 
Thanks,
Shiraz Wasim Zaidi
 
 
 
 
 
 
 
 
 
 

Reply via email to