JBoss tries to connect to port 1521 even if a different port is configured for the Datasource
Issue
- DB is running on a port other than 1521, still JBoss is trying to open port 1521. Since JBoss is running behind a firewall,
there is very limited access to the ports. Due to this JBoss server fails to connect to the DB using datasource throwing
the following error:
IJ000610: Unable to fill pool: javax.resource.ResourceException: Could not create connection
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:460)
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:397)
Caused by: my.NetException: The Network Adapter could not establish the connection
at com.myProtocol.connect(myProtocol.java:333)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 14 more
Caused by: .ConnectException: Connection timed out
at .PlainSocketImpl.socketConnect(Native Method)
at .PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at .PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at .PlainSocketImpl.connect(PlainSocketImpl.java:200)
at .SocksSocketImpl.connect(SocksSocketImpl.java:366)
at .Socket.connect(Socket.java:529)
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.