Problem mixing connectors TCP & HTTP
Fernando Zuriaga <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have an openjms server (0.7.7-alpha1) configured with two
conectors: one for http clients (tunnel servlet) and one for local
access (TCP). The configuration file is:
<Configuration>
<!-- Optional. This represents the default configuration -->
<ServerConfiguration host="localhost" embeddedJNDI="true" />
<Connectors>
<Connector scheme="http">
<ConnectionFactories>
<QueueConnectionFactory name="HTTPQueueConnectionFactory" />
<TopicConnectionFactory name="HTTPTopicConnectionFactory" />
</ConnectionFactories>
</Connector>
<Connector scheme="tcp">
<ConnectionFactories>
<QueueConnectionFactory name="TCPQueueConnectionFactory" />
<TopicConnectionFactory name="TCPTopicConnectionFactory" />
</ConnectionFactories>
</Connector>
</Connectors>
<HttpConfiguration port="3030"
webServerHost="elputoFer.homelinux.com" webServerPort="80"
servlet="/openjms-tunnel/tunnel"/>
<!-- Required -->
<DatabaseConfiguration>
<RdbmsDatabaseConfiguration
driver="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:openjmsdb;create=true"
user="openjms"
password="openjms"/>
</DatabaseConfiguration>
<!-- Required -->
<AdminConfiguration script="${openjms.home}/bin/startup.sh" />
<!-- Optional. If not specified, no destinations will be created -->
<AdministeredDestinations>
<AdministeredTopic name="GenericNotifications"/>
<AdministeredQueue name="OperationsQueue"/>
</AdministeredDestinations>
<!-- Optional. This represents the default configuration -->
<LoggerConfiguration file="${openjms.home}/config/log4j.xml" />
</Configuration>
http access works fine, but when I try to connect from tcp (inside the
same machime), appear the followin error message:
javax.naming.ServiceUnavailableException: Failed to connect to
URI=tcp://66.35.250.177:3035/ [Root exception is org.exolab.jms.net.c
onnector.ConnectException: Failed to connect to URI=tcp://66.35.250.177:3035/]
I don't know why openjms try to connect to 66.35.250.177 ???. I want
to connect to localhost, I don't write this Ip direcction into my
program.
Thanks in advanced:
F.Zuriaga
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click