O
Olivier Scalbert
Hello !
I must write an application used to control several electronic devices
accessed via sockets.This applicationprovides also a lot of other services.
As I need Web client interfaces, log utility, persistence, naming
service, message services, I think I can use EJB technology. It is also
for training and fun!
So I am going to start a little prototype based on jboss.
And of course I have some questions !
In this application, I would like to have a bean acting as a proxy, for
each controled device. The problem is that beans are completly managed
by the bean container. They can be recycled at anytime. I do not want
this because enabling the communication between the proxy and the
controled device takes 30 seconds. So, I would like to have all the
proxies constructed only one time when the application start.
Is it possible ? Or do I have a serious flaw in my design ?
One of this device needs a nearly continuous socket polling, so I need
different threads inside the proxy bean. Is it possible ?
Thanks in advance !
Olivier
I must write an application used to control several electronic devices
accessed via sockets.This applicationprovides also a lot of other services.
As I need Web client interfaces, log utility, persistence, naming
service, message services, I think I can use EJB technology. It is also
for training and fun!
So I am going to start a little prototype based on jboss.
And of course I have some questions !
In this application, I would like to have a bean acting as a proxy, for
each controled device. The problem is that beans are completly managed
by the bean container. They can be recycled at anytime. I do not want
this because enabling the communication between the proxy and the
controled device takes 30 seconds. So, I would like to have all the
proxies constructed only one time when the application start.
Is it possible ? Or do I have a serious flaw in my design ?
One of this device needs a nearly continuous socket polling, so I need
different threads inside the proxy bean. Is it possible ?
Thanks in advance !
Olivier