On Mon, 30 Mar 2009, mk wrote:
Maybe you have some other suggestions what kind of technology I should
use to establish connetion between client aplication and web
application
on JEE server?
... that's the trouble. I'm not aware of a standard, portable way of
adding application-layer protocols to app servers.
The closest thing i can think of is the J2EE Connector Architecture, one
of the more arcane and mysterious corners of J2EE. You'd write a JCA
resource adaptor to handle the connection, configure an instance of
it in
your app server, and use that from an EJB, just as you'd use a database
connection or message queue. Even JCA has no bearing on server sockets,
but i believe that in a resource adaptor, you're allowed to manipulate
them directly, which you can't do from an EJB.
However, i just had a read of the JCA spec, and i got two thirds of the
way through before going stark raving mad, so i'm not sure this is a
productive approach.
JCA is complex, indeed. For a good overview, try my JDJ article,