<!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">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;">
    Installing into JBoss 4.2.3 GA
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/Hagar">Martin Husted Hartvig</a> in <i>EJB 3.0</i> - <a href="http://community.jboss.org/message/533716#533716">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Looking at the documentation pages I found little on the matter of installing the jboss-ejb3-plugin into JBoss 4.2.3 GA. We need to update as we have a setup where one JBoss connect to a RemoteJMSProvider on a other JBoss. On the 'client' instance we run a MDB which are setup using ejb3 annotations. Due to the fact that JBossMQ is no longer maintained we started using JBoss Messagning, and changed by following this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.4.GA/html_single/index.html#install" target="_blank">http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.4.GA/html_single/index.html#install</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>(Note that this document doesn't tells much of updating ejb3)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>If the JBoss with the RemoteJMSProvider is running as we start the 'client', there are no problem, but when the if the 'server' is down a "javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered." is thrown... I'll post the exception below... I found this "</span><a class="jive-link-external-small" href="http://www.java2s.com/Open-Source/Java-Document/EJB-Server-JBoss-4.2.1/ejb3/org/jboss/ejb3/jms/DestinationManagerJMSDestinationFactory.java.htm" target="_blank">http://www.java2s.com/Open-Source/Java-Document/EJB-Server-JBoss-4.2.1/ejb3/org/jboss/ejb3/jms/DestinationManagerJMSDestinationFactory.java.htm</a><span>" where you in line 68 try to lookup the jboss.mq:service=DestinationManager from inside of the ejb3 part. I found your 1.0.8 installation looking in your pages of </span><a class="jive-link-external-small" href="http://www.jboss.org/ejb3/ejb3_4-x_docs.html" target="_blank">http://www.jboss.org/ejb3/ejb3_4-x_docs.html</a><span>&#160; and looking at the code I found that it have been corrected to use the right destination manager. I'm not sure if can you tell me how to upgrade or if I should download the sources of JBoss 4.2.3 and make the changes needed.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Regards,</p><p>Martin</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>{code}javax.management.InstanceNotFoundException: jboss.mq:service=DestinationManager is not registered.<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.jms.DestinationManagerJMSDestinationFactory.createDestination(DestinationManagerJMSDestinationFactory.java:75)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MessagingContainer.createTemporaryDestination(MessagingContainer.java:573)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MessagingContainer.createDestination(MessagingContainer.java:512)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MessagingContainer.innerCreateTopic(MessagingContainer.java:471)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MessagingContainer.jmsCreate(MessagingContainer.java:395)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MessagingContainer.innerStart(MessagingContainer.java:166)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:152)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at $Proxy0.start(Unknown Source){code}</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/533716#533716">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB 3.0 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>