MBean instead using EntityBean?

Pedro Salazar <[email protected]>
Newsgroups gmane.comp.java.sun.ejb.general
Organization Portugal Telecom Inova????o, S.A.
Message-ID <[email protected]>
Greetings,

this may be stupid, but since I haven't any experience with mbeans I
would like to ask.

Q: Can I create a MBean to overlap the functionality of an entity bean
for the following purpose:

-monitoring client connections:
when a client access the system, login to the entity bean, and logout
after job is done, limiting the connections for the type of service and
client -> this is information is in the entity bean

Why I intend to move from the entity bean?
-slow and requires connections to database; when server goes down, I
don't need to persist the connections ~ it must be 0).

Another approaches:
-stateful session bean -> no shareable for multiple clients
-stored procedure -> still requires database, and no improvement of
performance.

must guarantee:
-work in cluster, if the server instance of mbean is goes down, the
mbean must go to other instance retaining all the information.

regards,
Pedro Salazar.
--
PS
[email protected]
PGP:0E129E31D803BC61

===========================================================================
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".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.