<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    @Service Annotation in JBoss6 not solved
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/catares">Carmen Teich</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/625288#625288">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have a Bean wich have&#160; the Annotations: (using JBoss6.1Final)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import org.jboss.ejb3.annotation.Depends;</p><p>import org.jboss.ejb3.annotation.Service;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>@Service(objectName="eDesk:service=IndexingService")</p><p>@Depends("jboss.jca:service=ConnectionFactoryDeployer")</p><p>public class SearchEngineImpl extends ServiceMBeanSupport implements SearchEngine {</p><p>...</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My problem is, that JBoss the two services </p><p>(1) eDesk:service=IndexingService and </p><p>(2) jboss.jca:service=ConnectionFactoryDeployer </p><p>are not installed&#160; (not seen at JMX-Console)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The service jboss.jca:service=ConnectionFactoryDeployer is defined in the file: jbossjca-service.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!-- ===================================================================== --&gt;
&lt;!--&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;
&lt;!--&#160; JBoss JCA Configuration&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;
&lt;!--&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;
&lt;!-- ===================================================================== --&gt;

&lt;!-- $Id: jbossjca-service.xml 37786 2005-11-02 20:35:46Z adrian $ --&gt;

&lt;!-- 
&#160;&#160; |&#160; This contains configuration for the RARDeployer 
&#160;&#160;&#160;&#160;&#160; and some xsl based deployers.
 --&gt;

&lt;server&gt;

&#160; &lt;!-- ==================================================================== --&gt;
&#160; &lt;!-- JBossCX setup, for J2EE connector architecture support&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --&gt;
&#160; &lt;!-- The RARDeployer is needed only until xslt based deployment is written.--&gt;
&#160; &lt;!-- ==================================================================== --&gt;

&#160; &lt;mbean code="org.jboss.util.threadpool.BasicThreadPool"
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name="jboss.jca:service=WorkManagerThreadPool"&gt;
&#160;&#160;&#160;&#160; &lt;!-- The name that appears in thread names --&gt;
&#160;&#160;&#160;&#160; &lt;attribute name="Name"&gt;WorkManager&lt;/attribute&gt;
&#160;&#160;&#160;&#160; &lt;!-- The maximum amount of work in the queue --&gt;
&#160;&#160;&#160;&#160; &lt;attribute name="MaximumQueueSize"&gt;1024&lt;/attribute&gt;
&#160;&#160;&#160;&#160; &lt;!-- The maximum number of active threads --&gt;
&#160;&#160;&#160;&#160; &lt;attribute name="MaximumPoolSize"&gt;100&lt;/attribute&gt;
&#160;&#160;&#160;&#160; &lt;!-- How long to keep threads alive after their last work (default one minute) --&gt;
&#160;&#160;&#160;&#160; &lt;attribute name="KeepAliveTime"&gt;60000&lt;/attribute&gt;
&#160; &lt;/mbean&gt;

&#160; &lt;mbean code="org.jboss.resource.work.JBossWorkManager"
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name="jboss.jca:service=WorkManager"&gt;
&#160;&#160;&#160;&#160; &lt;depends optional-attribute-name="ThreadPoolName"&gt;jboss.jca:service=WorkManagerThreadPool&lt;/depends&gt;
&#160;&#160;&#160;&#160; &lt;depends optional-attribute-name="XATerminatorName"&gt;jboss:service=TransactionManager&lt;/depends&gt;
&#160; &lt;/mbean&gt;

&#160; &lt;mbean code="org.jboss.resource.deployment.RARDeployer" 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name="jboss.jca:service=RARDeployer"&gt;
&#160;&#160;&#160;&#160;&#160; &lt;depends optional-attribute-name="WorkManagerName"&gt;jboss.jca:service=WorkManager&lt;/depends&gt;
&#160;&#160;&#160;&#160; &lt;depends optional-attribute-name="XATerminatorName"&gt;jboss:service=TransactionManager&lt;/depends&gt;
&#160; &lt;/mbean&gt;

&#160; &lt;mbean code="org.jboss.deployment.XSLSubDeployer" name="jboss.jca:service=ConnectionFactoryDeployer"&gt;
&#160;&#160;&#160; &lt;attribute name="DdSuffix"&gt;-ds.xml&lt;/attribute&gt;
&#160;&#160;&#160; &lt;attribute name="EnhancedSuffixes"&gt;300:-ds.xml&lt;/attribute&gt;
&#160;&#160;&#160; &lt;attribute name="XslUrl"&gt;stylesheets/ConnectionFactoryTemplate.xsl&lt;/attribute&gt;
&#160;&#160;&#160; &lt;attribute name="ValidateDTDs"&gt;false&lt;/attribute&gt;
&#160; &lt;/mbean&gt;

&#160; &lt;!-- 
&#160;&#160;&#160;&#160; | The CachedConnectionManager is used partly to relay started UserTransactions to 
&#160;&#160;&#160;&#160; | open connections so they may be enrolled in the new tx.
&#160;&#160; --&gt;
&#160; &lt;mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager" 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; name="jboss.jca:service=CachedConnectionManager"&gt;
&#160;&#160;&#160; &lt;depends optional-attribute-name="TransactionManagerServiceName"&gt;jboss:service=TransactionManager&lt;/depends&gt;

&#160;&#160;&#160; &lt;!-- Enable connection close debug monitoring --&gt;
&#160;&#160;&#160; &lt;attribute name="Debug"&gt;true&lt;/attribute&gt;

&#160; &lt;/mbean&gt;

&lt;/server&gt;</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The Server install only two services from this xml-file, all other services wehre not installed.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please help me..I need this services!!!!!!</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/625288#625288">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>