For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > August 2005 > Socket alternativa for EJB









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com