Avega
Avega

Reputation: 186

Using TCP sockets in JBos's servlets

Problem is next: there is a server, that using TCP sockets to connect with it and other server with JBoss. Is there any way to connect from JBos's servlet to other server with TCP socket?

I know that servlet couldn't connect to TCP socket directly. But maybe there is any way to create some lower level interface which would use sockets and available from servlet? Or some other JavaEE-magic exist which could solve my problem.

P.S. I am totally new to JBoss and Java EE.

P.P.S. JBoss AS 7.1.1.

Upvotes: 0

Views: 646

Answers (1)

radai
radai

Reputation: 24192

yes there is. you could write a JCA conenctor and inject that into your webapp, which could use it. JCA (java connector architechture) is a spec that allows Java EE servers to connect to external systems - like JDBC

Upvotes: 2

Related Questions