hi all,
        sorry to post again but i feel i haven't provided enough informations
for my problem.

i have an MBean that in its initializations looks up for JMS ConnectionFactory and 
Topics.
i have packaged the MBean in a jar file, and i have written the proper (i guess) 
MBean-service.xml
descriptor.

i have placed the jar file and hte xml descriptor in the 
<jbossdir>\server\default\deploy.

below is my descriptor

<!DOCTYPE server>
<server>
 <classpath codebase="lib" archives="jmx-services.jar"/>

<!-- ==================================================== -->
<!--        TIMEBOMB SERVICE                              -->
<!-- ==================================================== -->
  <mbean code="com.marco.config.MyTimerTrial" name="WLSPortal:service=TimeTrial">
   <depends>JBossMQ:service=InvocationLayer,type=OIL</depends> 
   <description>sample for jboss xmbean.dtd</description>
   <descriptors>
    <state-action-on-update value="RESTART"/>
    <descriptor name='testdescriptor' value='testvalue'/></descriptors>
      <class>com.marco.config.MyTimerTrial</class>
       <constructor>
        <description>default constructor</description>
        <name>MyTimerTrial</name>
       </constructor>
       <!--operations -->
         <operation impact="ACTION">
          <description>Adds a notification</description>
          <name>addNotification</name>
            <parameter>
              <description>Notification Type</description>
              <name>Notification Type</name>
              <type>java.lang.String</type>
            </parameter>
            <parameter>
              <description>Notification Message</description>
              <name>Notification Message</name>
              <type>java.lang.String</type>
           </parameter>
           <parameter>
              <description>Destination of the notification</description>
              <name>Destination</name>
              <type>java.lang.String</type>
            </parameter>
            <parameter>
              <description>Content of the message</description>
              <name>Content</name>
              <type>java.lang.String</type>
           </parameter>
           <parameter>
              <description>Email of the sender</description>
              <name>Sender</name>
              <type>java.lang.String</type> 
           </parameter>
           <parameter>
              <description>Interval at which notifications will be sent</description>
              <name>Timeout</name>
              <type>java.lang.String</type>
            </parameter>
            <parameter>
              <description>Number of times that the repetition will be 
sent</description>
              <name>Repetitions</name>
              <type>java.lang.String</type>
           </parameter>
           <return-type>void</return-type>
        </operation>
        
        <operation impact="ACTION">
          <description>Adds an SMS notification</description>
          <name>addSMSNotification</name>
            <parameter>
              <description>Notification Type</description>
              <name>Notification Type</name>
              <type>java.lang.String</type>
            </parameter>
            <parameter>
              <description>Notification Message</description>
              <name>Notification Message</name>
              <type>java.lang.String</type>
           </parameter>
           <parameter>
              <description>Destination of the notification</description>
              <name>Destination</name>
              <type>java.lang.String</type>
            </parameter>
            <parameter>
              <description>Content of the message</description>
              <name>Content</name>
              <type>java.lang.Integer</type>
           </parameter> 
           <parameter>
              <description>Interval at which notifications will be sent</description>
              <name>Timeout</name>
              <type>java.lang.String</type>
            </parameter>
            <parameter>
              <description>Number of times that the repetition will be 
sent</description>
              <name>Repetitions</name>
              <type>java.lang.String</type>
           </parameter>
           <return-type>void</return-type>
        </operation> 
        <operation impact="ACTION">
          <description>Removes a notification</description>
          <name>removeNotification</name>
          <parameter>
            <description>Notification Type</description>
            <name>Notification Type</name>
            <type>java.lang.String</type>
          </parameter>
          <return-type>void</return-type>
        </operation>
        <operation impact="ACTION">
          <description>Removes all the notifications</description>
          <name>removeAllNotifications</name>
          <return-type>void</return-type>
        </operation> 
   </mbean>
</server>


now, it looks like JBoss tries to load this MBean before what i specify on <depends>, 
since
i am always getting the following exception 

14:22:06,116 ERROR [STDERR] javax.naming.NameNotFoundException: ConnectionFactor
y not bound
14:22:06,126 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(Naming
Server.java:495)
14:22:06,136 ERROR [STDERR]     at org.jnp.server.NamingServer.getBinding(Naming
Server.java:503)
14:22:06,146 ERROR [STDERR]     at org.jnp.server.NamingServer.getObject(NamingS
erver.java:509)
14:22:06,156 ERROR [STDERR]     at org.jnp.server.NamingServer.lookup(NamingServ
er.java:282)
14:22:06,166 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(Namin
gContext.java:492)
14:22:06,176 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(Namin
gContext.java:471)
14:22:06,186 ERROR [STDERR]     at javax.naming.InitialContext.lookup(InitialCon

can anyone tell me what is the problem? do i have to edit some additional jboss 
configuration files?
or, what do i have to put into the <depends> tag in order to load my MBean after the 
ConnectionFactory has
been created?

the name of the XML descriptor is MyTimerService, and no matter what i put on 
<depends> it is always loaded
after mail-service.xml...

regards
        marco





-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to