0 Replies Latest reply on Sep 7, 2011 9:54 AM by Carmen Teich

    @Service Annotation in JBoss6 not solved

    Carmen Teich Newbie

      Hello,

       

      I have a Bean wich have  the Annotations: (using JBoss6.1Final)

       

      import org.jboss.ejb3.annotation.Depends;

      import org.jboss.ejb3.annotation.Service;

       

      @Service(objectName="eDesk:service=IndexingService")

      @Depends("jboss.jca:service=ConnectionFactoryDeployer")

      public class SearchEngineImpl extends ServiceMBeanSupport implements SearchEngine {

      ...

      }

       

      My problem is, that JBoss the two services

      (1) eDesk:service=IndexingService and

      (2) jboss.jca:service=ConnectionFactoryDeployer

      are not installed  (not seen at JMX-Console)

       

      The service jboss.jca:service=ConnectionFactoryDeployer is defined in the file: jbossjca-service.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      
      <!-- ===================================================================== -->
      <!--                                                                       -->
      <!--  JBoss JCA Configuration                                              -->
      <!--                                                                       -->
      <!-- ===================================================================== -->
      
      <!-- $Id: jbossjca-service.xml 37786 2005-11-02 20:35:46Z adrian $ -->
      
      <!-- 
         |  This contains configuration for the RARDeployer 
            and some xsl based deployers.
       -->
      
      <server>
      
        <!-- ==================================================================== -->
        <!-- JBossCX setup, for J2EE connector architecture support               -->
        <!-- The RARDeployer is needed only until xslt based deployment is written.-->
        <!-- ==================================================================== -->
      
        <mbean code="org.jboss.util.threadpool.BasicThreadPool"
               name="jboss.jca:service=WorkManagerThreadPool">
           <!-- The name that appears in thread names -->
           <attribute name="Name">WorkManager</attribute>
           <!-- The maximum amount of work in the queue -->
           <attribute name="MaximumQueueSize">1024</attribute>
           <!-- The maximum number of active threads -->
           <attribute name="MaximumPoolSize">100</attribute>
           <!-- How long to keep threads alive after their last work (default one minute) -->
           <attribute name="KeepAliveTime">60000</attribute>
        </mbean>
      
        <mbean code="org.jboss.resource.work.JBossWorkManager"
               name="jboss.jca:service=WorkManager">
           <depends optional-attribute-name="ThreadPoolName">jboss.jca:service=WorkManagerThreadPool</depends>
           <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends>
        </mbean>
      
        <mbean code="org.jboss.resource.deployment.RARDeployer" 
                name="jboss.jca:service=RARDeployer">
            <depends optional-attribute-name="WorkManagerName">jboss.jca:service=WorkManager</depends>
           <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends>
        </mbean>
      
        <mbean code="org.jboss.deployment.XSLSubDeployer" name="jboss.jca:service=ConnectionFactoryDeployer">
          <attribute name="DdSuffix">-ds.xml</attribute>
          <attribute name="EnhancedSuffixes">300:-ds.xml</attribute>
          <attribute name="XslUrl">stylesheets/ConnectionFactoryTemplate.xsl</attribute>
          <attribute name="ValidateDTDs">false</attribute>
        </mbean>
      
        <!-- 
           | The CachedConnectionManager is used partly to relay started UserTransactions to 
           | open connections so they may be enrolled in the new tx.
         -->
        <mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager" 
               name="jboss.jca:service=CachedConnectionManager">
          <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager</depends>
      
          <!-- Enable connection close debug monitoring -->
          <attribute name="Debug">true</attribute>
      
        </mbean>
      
      </server>
      

       

      The Server install only two services from this xml-file, all other services wehre not installed.

       

      Please help me..I need this services!!!!!!