[jboss-user] [EJB3] - @Service Annotation in JBoss6 not solved

Carmen Teich do-not-reply at jboss.com
Wed Sep 7 09:54:28 EDT 2011


Carmen Teich [http://community.jboss.org/people/catares] created the discussion

"@Service Annotation in JBoss6 not solved"

To view the discussion, visit: http://community.jboss.org/message/625288#625288

--------------------------------------------------------------
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!!!!!!
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/625288#625288]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110907/4e0b6559/attachment-0001.html 


More information about the jboss-user mailing list