Hi all,
        i have a question for you EJB gurus.
I am working on an web-based application for managing personnel's data such as 
bank details, salary info, employee's personal data (address ecc).
the main application consists of different services that are visible to
employees depending on their countries (for example, in england all the
abovementioned, in finland only employee personal data ecc..).

The 'services' available for each country are stored in a database.

The previous consultants that did the job followed this way of thinking: since all
the employees from finland that will login to the application will have exactly
the same services available, they write an Entity bean that behaves like an
Entity bean but it is not an entity bean(no wonder, they declared it as 'EntityBean', 
this is true!): instead of
synchronizing the so called 'Entity bean' with the database, they write it like
just a container of data (it never reads from db). When the database is updated, 
another
application will lookup the entity bean, and will update the data contained in the 
bean.
Obviously this never works, and every time there is a change in the database, we 
must restart the servers (and they did not  think that time that the changes are
on a daily frequence).

Now, in my opinion the EJB should have been implemented as a SLSB, and for
each user the data retrieved should have been cached in the HttpSession (for avoiding
multiple calls during the application).

But i am still left with one problem: if each english employee logs in to the 
application, it
will have always the same services available, so a call to the SLSB will return exactly
the same data for each english employee.

I can do a bulk load of all the data for 'english' employees thru a SLSB and then 
store it
into a static class, and solve the updates problem by using another application that 
runs in
the same JVM to update the data in the static class....but at this point i start to get
confused....


can anyone give me an advice on how to proceed?

thanx and regards
        marco

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to