Please post the xml you used with the rmiPort set and the full log to debug
level.

Cheers,
Guillaume Nodet

On 5/23/06, mqaiserm <[EMAIL PROTECTED]> wrote:


Servicemix.xml code :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
       xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
       xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:my="http://servicemix.apache.org/demo/";>

  <!-- the JBI container -->
  <sm:container id="jbi"
                useMBeanServer="true"
                createMBeanServer="true"
                dumpStats="true"
                statsInterval="10"
                transactionManager="#transactionManager">

        <sm:activationSpecs>

      <!-- exposing POJO class as JSR181 component -->

       <sm:activationSpec>
       <sm:component>
         <jsr181:component>
           <jsr181:endpoints>
             <jsr181:endpoint
pojoClass="com.rhg.infrastructure.webservices.MessagingService"
                annotations="none" service="my:MessageSender"
endpoint="MessageService"/>
           </jsr181:endpoints>
         </jsr181:component>
       </sm:component>
       </sm:activationSpec>

      <!-- creating endpoint/WSDL for above mentioned JSR181 component -->

       <sm:activationSpec>
       <sm:component>
        <http:component>
        <http:endpoints>
            <http:endpoint service="my:MessageSender"
                                         endpoint="MessageService"
                       role="consumer"
                     defaultOperation="sendMessage2"
                       locationURI="
http://localhost:8194/errorLoggingService/";
                       defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 soap="true" />
         </http:endpoints>
         </http:component>

        </sm:component>
       </sm:activationSpec>

            <!-- Subscribe to a JMS destination -->
                <sm:activationSpec componentName="inputReceiver"

service="my:inputReceiver"

destinationService="my:savetodb">
                  <sm:component>
                    <bean
class="org.apache.servicemix.components.jms.JmsInUsingJCABinding">
        <property name="jcaContainer" ref="jencks"/>
        <property name="activationSpec">
          <bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
            <property name="destination"
value="com.rhg.servicemix.messaging.errorLogging"/>
            <property name="destinationType" value="javax.jms.Topic"/>
          </bean>
        </property>
                    </bean>
                  </sm:component>
                </sm:activationSpec>

        <!-- exposing POJO component as Receiver from above mentioned
services
-->

      <sm:activationSpec componentName="trace" service="my:savetodb">
        <sm:component>
          <bean class="com.rhg.infrastructure.jms.MessageReceiverImpl"/>
        </sm:component>
      </sm:activationSpec>


        </sm:activationSpecs>
  </sm:container>


  <!-- the JCA container -->
  <bean id="jencks" class="org.jencks.JCAContainer" singleton="true">

    <!-- lets use the default configuration of work manager and
transaction
manager-->
    <property name="bootstrapContext">
      <bean class="org.jencks.factory.BootstrapContextFactoryBean">
        <property name="threadPoolSize" value="25"/>
      </bean>
    </property>

    <!-- the JCA Resource Adapter -->
    <property name="resourceAdapter">
      <bean id="activeMQResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter" singleton="true">
        <property name="serverUrl" value="tcp://localhost:61616"/>
      </bean>
    </property>
  </bean>

  <!-- message broker -->
  <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
     <property name="config" value="classpath:activemq.xml"/>
   </bean>

        <bean id="transactionContextManager"
class="org.jencks.factory.TransactionContextManagerFactoryBean"/>
        <bean id="transactionManager"
class="org.jencks.factory.GeronimoTransactionManagerFactoryBean" />

  <bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL">
          <value>tcp://localhost:61616</value>
        </property>
      </bean>
    </property>
  </bean>

</beans>

--
View this message in context:
http://www.nabble.com/rmi+port+of+servicemix-t1669351.html#a4527701
Sent from the ServiceMix - User forum at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to