« Return to Thread: Spring TCP Endpoint Does Not Start

Re: Spring TCP Endpoint Does Not Start

by Andrew Perepelytsya :: Rate this Message:

Reply to Author | View in Thread

Tom,

Try to strip the config to a bare minimum reproducing the problem (no dependencies on custom non-available classes). Also state the Mule version.

Andrew

On 5/29/07, Tom Purcell <tpurcell@...> wrote:

Hello

Normally when I bring up Mule I'll see a messages like this that indicate
the endpoints are started:
2007-05-29 11:59:56,592 INFO [org.mule.providers.tcp.TcpConnector] -
<Registering listener: CreateEmployeeService60662 on endpointUri:
tcp://localhost:60662/tcpCreateEmployeeService60662?method=createEmployee>
2007-05-29 11:59:56,592 DEBUG [org.mule.providers.tcp.TcpMessageReceiver] -
<Connecting: TcpMessageReceiver{this=93069b,
receiverKey=tcp://localhost:60662,
endpoint=tcp://localhost:60662/tcpCreateEmployeeService60662?method=createEmployee}>
2007-05-29 11:59:56,635 DEBUG
[org.mule.providers.SimpleRetryConnectionStrategy] - <Successfully connected
to
tcp://localhost:60662/tcpCreateEmployeeService60662?method=createEmployee>
2007-05-29 11:59:56,635 INFO [org.mule.providers.tcp.TcpMessageReceiver] -
<Connected: TcpMessageReceiver{this=93069b,
receiverKey=tcp://localhost:60662,
endpoint=tcp://localhost:60662/tcpCreateEmployeeService60662?method=createEmployee}>

When I configure endpoints using Spring I do not see those messages and any
attempt to connect to the endpoints fail. It seems they are not getting
started. Am I missing something?

Thanks
Tom

Here's my Spring Config:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
" http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
  <bean class="org.mule.config.MuleConfiguration" name="muleConfiguratrion"
id="muleConfiguratrion">
    <property name="serverUrl">
      <value>tcp://localhost:60777</value>
    </property>
  </bean>

  <bean id="tcpConnector" name="tcpConnector"
class="org.mule.providers.tcp.TcpConnector">
    <property name="tcpProtocolClassName">
      <value>org.mule.providers.tcp.protocols.MuleMessageProtocol</value>
    </property>
    <property name="connectionStrategy">
      <bean id="connectionStrategy"
class="org.mule.providers.SimpleRetryConnectionStrategy">
        <property name="retryCount">
          <value>3</value>
        </property>
        <property name="frequency">
          <value>2000</value>
        </property>
      </bean>
    </property>
  </bean>

  <bean class="org.mule.impl.MuleDescriptor"
name="createEmployeeService60772" id="createEmployeeService60772">
    <property name="implementation">
      <value>springEmployeeService</value>
    </property>
    <property name="inboundRouter">
      <bean class="org.mule.routing.inbound.InboundRouterCollection">
        <property name="endpoints">
          <list>
            <bean class="org.mule.impl.endpoint.MuleEndpoint"
name="tcpCreateEmployeeService60772"
              id="tcpCreateEmployeeService60772">
              <property name="endpointURI">
                <bean class="org.mule.impl.endpoint.MuleEndpointURI">
                  <constructor-arg index="0" type=" java.lang.String">

<value>tcp://localhost:60772/tcpCreateEmployeeService60772?method=createEmployee</value>
                  </constructor-arg>
                </bean>
              </property>
              <property name="connector">
                <ref local="tcpConnector" />
              </property>
              <property name="name">
                <value>TcpCreateEmployeeService60772</value>
              </property>
              <property name="remoteSync">
                <value>true</value>
              </property>
              <property name="properties">
                <map>
                  <entry key="methodArgumentTypes">
                    <list>

<value>com.chariotsolutions.soalab.crm.business.Employee</value>
                    </list>
                  </entry>
                </map>
              </property>
            </bean>
          </list>
        </property>
        <property name="routers">
          <list />
        </property>
      </bean>
    </property>
    <property name="interceptors">
      <list />
    </property>
  </bean>

  <bean id="springEmployeeService" name="springEmployeeService"
    class="org.springframework.remoting.rmi.JndiRmiProxyFactoryBean">
    <property name="jndiEnvironment">
      <props>
        <prop
key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
        <prop key=" java.naming.provider.url">t3://localhost:7001</prop>
        <prop key="java.naming.security.principal">weblogic</prop>
        <prop key="java.naming.security.credentials ">weblogic</prop>
      </props>
    </property>
    <property name="jndiName" value="EmployeeService" />
    <property name="serviceInterface"
value="com.chariotsolutions.soalab.crm.business.EmployeeManagerInterface" />
  </bean>
</beans>




--
View this message in context: http://www.nabble.com/Spring-TCP-Endpoint-Does-Not-Start-tf3834941.html#a10857221
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Spring TCP Endpoint Does Not Start