| Author |
Socket alternativa for EJB
|
|
| just_shame 2005-08-18, 5:57 pm |
| I need EJB that communicate with normal client applications that use
normal TCP/IP socket connections. I reviewed samples of EJB and clients
for them. All the clients in samples use EJB stuffs to connect to
beans. But as I said I need a bean communicate with normal TCP/IP
clients. As said in EJB spec. ServerSocket and Socket classes are
restricted in use in EJB. So what is alternativa?
| |
| Thomas Hawtin 2005-08-19, 4:17 pm |
| just_shame wrote:
> I need EJB that communicate with normal client applications that use
> normal TCP/IP socket connections. I reviewed samples of EJB and clients
> for them. All the clients in samples use EJB stuffs to connect to
> beans. But as I said I need a bean communicate with normal TCP/IP
> clients. As said in EJB spec. ServerSocket and Socket classes are
> restricted in use in EJB. So what is alternativa?
Slip a proxy server process in.
Or you could use web services or CORBA.
Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
| |
| just_shame 2005-08-19, 4:17 pm |
| Can you please tell me more about how to do this with web services or
CORBA?
| |
| Marek Lange 2005-08-19, 4:17 pm |
| just_shame wrote:
> I need EJB that communicate with normal client applications that use
> normal TCP/IP socket connections. I reviewed samples of EJB and clients
> for them. All the clients in samples use EJB stuffs to connect to
> beans. But as I said I need a bean communicate with normal TCP/IP
> clients. As said in EJB spec. ServerSocket and Socket classes are
> restricted in use in EJB. So what is alternativa?
If you are using JBoss, you could take an MBean to realize a socket
connection. This is conform to the spec.
-marek
|
|
|
|