1 2 Previous Next 16 Replies Latest reply on Sep 28, 2007 10:51 AM by Kevin Conner

    Using ${} in jboss-esb.xml

    Linda Haddix Newbie

      I have defined my jdbc configuration parameters in properties-service.xml and am using them in db2-ds.xml with no problems. However, if I try to use them in an application jboss-esb.xml they do not get expanded. I know they are being picked up because I can do System.getProperty("jdbc.url") in the SQLAction class and it finds them.

      Does ${prop.name} replacement not work in jboss-esb.xml?

        • 1. Re: Using ${} in jboss-esb.xml
          Kurt Stam Master

          Are you psychic? I just started work on http://jira.jboss.com/jira/browse/JBESB-832

          We can add this file in too while I'm add it.

          --Kurt

          • 2. Re: Using ${} in jboss-esb.xml
            Linda Haddix Newbie

            Kurt/esb-

            Will you please add jboss-service.xml to your list of configuration files that can use the ${prop.name} ?

            • 3. Re: Using ${} in jboss-esb.xml
              Kevin Conner Master

              Do you really mean jboss-service.xml? If you are referring to jboss-esb.xml then it will be done as part of the task Kurt mentioned above.

              There is also a second task to support the ServiceBindingManager, http://jira.jboss.com/jira/browse/JBESB-870.

              • 4. Re: Using ${} in jboss-esb.xml
                Linda Haddix Newbie

                Yes I did mean jboss-service.xml. We need to have different queuemanagerNames and hostName based on what machine we are using.

                We want to set these names in the properties-service.xml and pick it up in jboss-service.xml

                • 5. Re: Using ${} in jboss-esb.xml
                  Kevin Conner Master

                   

                  "lfhaddix" wrote:
                  We want to set these names in the properties-service.xml and pick it up in jboss-service.xml


                  This should already be possible, why do you believe it isn't?

                  • 6. Re: Using ${} in jboss-esb.xml
                    Linda Haddix Newbie

                    Because I have tried it and the substitution did not happen. Maybe my app is deploying before the system properties is loading. I will check to see if I need a depends on the app.

                    • 7. Re: Using ${} in jboss-esb.xml
                      Linda Haddix Newbie

                      I have added a depends clause to the my application's jboss-service.xml for SystemProperties service. The beans never deploy because it says SystemProperties NOTYETINSTALLED although according to the logs it has.
                      ===============================================
                      007-09-21 09:18:47,200 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=73cc11
                      2007-09-21 09:18:47,200 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:type=Service,name=PropertyEditorManager with code: org.jboss.varia.property.PropertyEditorManagerService
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:type=Service,name=SystemProperties with code: org.jboss.varia.property.SystemPropertiesService
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceConfigurator] Properties set to {jboss.password=tstboss, hostName=snaponpocxp01, ln_res_152=ln_res_252, ln_res_151=ln_res_251, ln_res_150=ln_res_250, boss.orders.exception.email.user=linda.haddix@blue-bird.com, jdbc.password=tstboss, schemaName=db2test, jboss.username=jbosstst, parts123.orders.exception.email.user=linda.haddix@blue-bird.com, jdbc.url=jdbc:db2://aixvpm:6789/testdb, parts123.rga.exception.email.user=linda.haddix@blue-bird.com, jdbc.drivername=COM.ibm.db2.jdbc.net.DB2Driver, jdbc.user=jbosstst, queueManagerName=QM_snaponpocxp01, erp_ln_response_queue=wsmq/SSALNMQBCONNECTOR\SYNCHRONOUSRESPONSEQUEUE, ln_res_203=ln_res_203} in jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.SystemPropertiesService] Merging with system properties: {jboss.password=tstboss, hostName=snaponpocxp01, ln_res_152=ln_res_252, ln_res_151=ln_res_251, ln_res_150=ln_res_250, boss.orders.exception.email.user=linda.haddix@blue-bird.com, jdbc.password=tstboss, schemaName=db2test, jboss.username=jbosstst, parts123.orders.exception.email.user=linda.haddix@blue-bird.com, jdbc.url=jdbc:db2://aixvpm:6789/testdb, parts123.rga.exception.email.user=linda.haddix@blue-bird.com, jdbc.drivername=COM.ibm.db2.jdbc.net.DB2Driver, jdbc.user=jbosstst, queueManagerName=QM_snaponpocxp01, erp_ln_response_queue=wsmq/SSALNMQBCONNECTOR\SYNCHRONOUSRESPONSEQUEUE, ln_res_203=ln_res_203}
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] Creating service jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Creating jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Created jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss:type=Service,name=PropertyEditorManager dependents are: []
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] Creating service jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.SystemPropertiesService] Creating jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.SystemPropertiesService] Created jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss:type=Service,name=SystemProperties dependents are: []
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying properties-service.xml
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] starting service jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Starting jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Started jboss:type=Service,name=PropertyEditorManager
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:type=Service,name=PropertyEditorManager dependent components: []
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] starting service jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.SystemPropertiesService] Starting jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.varia.property.SystemPropertiesService] Started jboss:type=Service,name=SystemProperties
                      2007-09-21 09:18:47,215 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:type=Service,name=SystemProperties dependent components: []
                      2007-09-21 09:18:47,231 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: properties-service.xml
                      2007-09-21 09:18:47,231 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                      2007-09-21 09:18:47,231 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml -> file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml


                      --- MBeans waiting for other MBeans ---
                      ObjectName: jmx.service.wsmq:service=WSMQXAQueueConnectionFactory
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=MQQueueConnectionFactory
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=WSMQRequestQueue
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=WSMQResponseQueue
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=DLQ
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=p2
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=p3
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=p5
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=address
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=responseQ
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=File
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=salesln
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=inventoryln
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=sqlMsg
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=parts123_transform_esb_rga
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      ObjectName: jmx.service.wsmq:service=parts123_transform_gw_rga
                      State: CONFIGURED
                      I Depend On:
                      jboss:service=Naming
                      jboss:Service=SystemProperties

                      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                      ObjectName: jboss:Service=SystemProperties
                      State: NOTYETINSTALLED
                      Depends On Me:
                      jmx.service.wsmq:service=WSMQXAQueueConnectionFactory
                      jmx.service.wsmq:service=MQQueueConnectionFactory
                      jmx.service.wsmq:service=WSMQRequestQueue
                      jmx.service.wsmq:service=WSMQResponseQueue
                      jmx.service.wsmq:service=DLQ
                      jmx.service.wsmq:service=p2
                      jmx.service.wsmq:service=p3
                      jmx.service.wsmq:service=p5
                      jmx.service.wsmq:service=address
                      jmx.service.wsmq:service=responseQ
                      jmx.service.wsmq:service=File
                      jmx.service.wsmq:service=salesln
                      jmx.service.wsmq:service=inventoryln
                      jmx.service.wsmq:service=sqlMsg
                      jmx.service.wsmq:service=parts123_transform_esb_rga
                      jmx.service.wsmq:service=parts123_transform_gw_rga




                      jboss-service.xml




                      WSMQXAQueueConnectionFactory
                      Queue
                      true
                      ${queueManagerName}
                      ${hostName}
                      <!-- MQJMS_TP_BINDINGS_MQ, MQJMS_TP_CLIENT_MQ_TCPIP, MQJMS_TP_DIRECT_TCPIP -->
                      MQJMS_TP_CLIENT_MQ_TCPIP
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      WSMQQueueConnectionFactory
                      Queue
                      false
                      ${queueManagerName}
                      ${hostName}
                      <!-- MQJMS_TP_BINDINGS_MQ, MQJMS_TP_CLIENT_MQ_TCPIP, MQJMS_TP_DIRECT_TCPIP -->
                      MQJMS_TP_CLIENT_MQ_TCPIP
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/RequestQueue
                      Queue
                      ${queueManagerName}
                      RequestQueue
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/ResponseQueue
                      Queue
                      ${queueManagerName}
                      ResponseQueue
                      jboss:service=Naming
                      jboss:Service=SystemProperties



                      wsmq/DLQ
                      Queue
                      ${queueManagerName}
                      DLQ
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/parts123_transform_gw
                      Queue
                      ${queueManagerName}
                      mqparts123_transform_gw
                      jboss:service=Naming
                      jboss:Service=SystemProperties



                      wsmq/parts123_transform_esb
                      Queue
                      ${queueManagerName}
                      mqparts123_transform_esb
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/parts123_transform_Response
                      Queue
                      ${queueManagerName}
                      mqparts123_transform_Response
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/SSALNMQBCONNECTOR\REQUESTQUEUE
                      Queue
                      ${queueManagerName}
                      SSALNMQBCONNECTOR/REQUESTQUEUE
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/SSALNMQBCONNECTOR\SYNCHRONOUSRESPONSEQUEUE
                      Queue
                      ${queueManagerName}
                      SSALNMQBCONNECTOR/SYNCHRONOUSRESPONSEQUEUE
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>



                      wsmq/BB_SALESORDER
                      Queue
                      ${queueManagerName}
                      BB_SALESORDER
                      <depends-list>
                      <depends-list-element>jboss:service=Naming</depends-list-element>
                      <depends-list-element>jboss:Service=SystemProperties</depends-list-element>
                      </depends-list>




                      • 8. Re: Using ${} in jboss-esb.xml
                        Kevin Conner Master

                        The bean name you should be using is jboss:type=Service,name=SystemProperties.

                        You are using jboss:Service=SystemProperties instead.

                        • 9. Re: Using ${} in jboss-esb.xml
                          Linda Haddix Newbie

                          I have gotten the jboss-service.xml mbeans to wait for SystemProperties to load but it looks like it has already assigned the hostName as ${hostName} before it waits.

                          It tries to get a queueManager with ${hostName}:${QueueManagerName}
                          09:44:54,093 ERROR [ResourceUtil] Error while creating a JMS Queue Connection w
                          ith username [ jbossadmin ] password [ jb@ssadm1n ]
                          javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '${hostName}:${queueManagerName}'
                          at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
                          ent.java:586)
                          ==============================================
                          deployment.xml

                          <?xml version="1.0" encoding="UTF-8"?>
                          <jbossesb-deployment>
                          jboss.service:deployment=SystemProperties
                          jboss.esb:deployment=jbossesb.esb
                          </jbossesb-deployment>


                          jboss-service.xml




                          WSMQXAQueueConnectionFactory
                          Queue
                          true
                          ${queueManagerName}
                          ${hostName}
                          <!-- MQJMS_TP_BINDINGS_MQ, MQJMS_TP_CLIENT_MQ_TCPIP, MQJMS_TP_DIRECT_TCPIP -->
                          MQJMS_TP_CLIENT_MQ_TCPIP
                          <depends-list>
                          <depends-list-element>jboss:service=Naming</depends-list-element>
                          <depends-list-element>jboss:type=Service,name=SystemProperties</depends-list-element>
                          </depends-list>



                          WSMQQueueConnectionFactory
                          Queue
                          false
                          ${queueManagerName}
                          ${hostName}
                          <!-- MQJMS_TP_BINDINGS_MQ, MQJMS_TP_CLIENT_MQ_TCPIP, MQJMS_TP_DIRECT_TCPIP -->
                          MQJMS_TP_CLIENT_MQ_TCPIP
                          <depends-list>
                          <depends-list-element>jboss:service=Naming</depends-list-element>
                          <depends-list-element>jboss:type=Service,name=SystemProperties</depends-list-element>
                          </depends-list>



                          wsmq/LN_REQ_203
                          Queue
                          ${queueManagerName}
                          LN_REQ_203
                          <depends-list>
                          <depends-list-element>jboss:service=Naming</depends-list-element>
                          <depends-list-element>jboss:type=Service,name=SystemProperties</depends-list-element>
                          </depends-list>



                          wsmq/LN_REQ_250
                          Queue
                          ${queueManagerName}
                          LN_REQ_250
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties



                          wsmq/LN_REQ_251
                          Queue
                          ${queueManagerName}
                          LN_REQ_251
                          <depends-list>
                          <depends-list-element>jboss:service=Naming</depends-list-element>
                          <depends-list-element>jboss:type=Service,name=SystemProperties</depends-list-element>
                          </depends-list>



                          wsmq/LN_REQ_252
                          Queue
                          ${queueManagerName}
                          LN_REQ_252
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties


                          wsmq/LN_REQ_84203
                          Queue
                          ${queueManagerName}
                          LN_REQ_84203
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties





                          =================================


                          2007-09-27 09:44:13,233 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                          2007-09-27 09:44:13,233 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                          2007-09-27 09:44:13,233 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=4ba778
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:type=Service,name=PropertyEditorManager with code: org.jboss.varia.property.PropertyEditorManagerService
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:type=Service,name=SystemProperties with code: org.jboss.varia.property.SystemPropertiesService
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceConfigurator] Properties set to {jboss.password=tstboss, hostName=ftvint002, ln_req_203=ln_req_203, boss.orders.exception.email.user=linda.haddix@blue-bird.com, ln_req_152=ln_req_252, jdbc.password=tstboss, ln_req_151=ln_req_251, ln_req_150=ln_req_250, schemaName=db2test, jboss.username=jbosstst, parts123.orders.exception.email.user=linda.haddix@blue-bird.com, jdbc.url=jdbc:db2://aixvpm:6789/testdb, parts123.rga.exception.email.user=linda.haddix@blue-bird.com, jdbc.drivername=COM.ibm.db2.jdbc.net.DB2Driver, jdbc.user=jbosstst, queueManagerName=QM_ftvint002, erp_ln_response_queue=wsmq/LN_REQ_203} in jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.SystemPropertiesService] Merging with system properties: {jboss.password=tstboss, hostName=ftvint002, ln_req_203=ln_req_203, boss.orders.exception.email.user=linda.haddix@blue-bird.com, ln_req_152=ln_req_252, jdbc.password=tstboss, ln_req_151=ln_req_251, ln_req_150=ln_req_250, schemaName=db2test, jboss.username=jbosstst, parts123.orders.exception.email.user=linda.haddix@blue-bird.com, jdbc.url=jdbc:db2://aixvpm:6789/testdb, parts123.rga.exception.email.user=linda.haddix@blue-bird.com, jdbc.drivername=COM.ibm.db2.jdbc.net.DB2Driver, jdbc.user=jbosstst, queueManagerName=QM_ftvint002, erp_ln_response_queue=wsmq/LN_REQ_203}
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Creating jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Created jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss:type=Service,name=PropertyEditorManager dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.SystemPropertiesService] Creating jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.SystemPropertiesService] Created jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss:type=Service,name=SystemProperties dependents are: [ObjectName: jmx.service.wsmq:service=WSMQXAQueueConnectionFactory
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=MQQueueConnectionFactory
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue203
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue250
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue251
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue252
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue84203
                          State: CONFIGURED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          ]
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=WSMQXAQueueConnectionFactory
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=WSMQXAQueueConnectionFactory dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=MQQueueConnectionFactory
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=MQQueueConnectionFactory dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=WSMQRequestQueue203
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=WSMQRequestQueue203 dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=WSMQRequestQueue250
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=WSMQRequestQueue250 dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=WSMQRequestQueue251
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=WSMQRequestQueue251 dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=WSMQRequestQueue252
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=WSMQRequestQueue252 dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating service jmx.service.wsmq:service=WSMQRequestQueue84203
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jmx.service.wsmq:service=WSMQRequestQueue84203 dependents are: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying properties-service.xml
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] starting service jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Starting jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.PropertyEditorManagerService] Started jboss:type=Service,name=PropertyEditorManager
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:type=Service,name=PropertyEditorManager dependent components: []
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] starting service jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.SystemPropertiesService] Starting jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.varia.property.SystemPropertiesService] Started jboss:type=Service,name=SystemProperties
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:type=Service,name=SystemProperties dependent components: [ObjectName: jmx.service.wsmq:service=WSMQXAQueueConnectionFactory
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=MQQueueConnectionFactory
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue203
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue250
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue251
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue252
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          , ObjectName: jmx.service.wsmq:service=WSMQRequestQueue84203
                          State: CREATED
                          I Depend On:
                          jboss:service=Naming
                          jboss:type=Service,name=SystemProperties
                          ]
                          2007-09-27 09:44:13,248 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=WSMQXAQueueConnectionFactory
                          2007-09-27 09:44:13,373 INFO [STDOUT] creating new MQXAQueueConnectionFactory object
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=WSMQXAQueueConnectionFactory dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=MQQueueConnectionFactory
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=MQQueueConnectionFactory dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=WSMQRequestQueue203
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=WSMQRequestQueue203 dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=WSMQRequestQueue250
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=WSMQRequestQueue250 dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=WSMQRequestQueue251
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=WSMQRequestQueue251 dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=WSMQRequestQueue252
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=WSMQRequestQueue252 dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] starting service jmx.service.wsmq:service=WSMQRequestQueue84203
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jmx.service.wsmq:service=WSMQRequestQueue84203 dependent components: []
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: properties-service.xml
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                          2007-09-27 09:44:13,373 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml -> file:/C:/jboss-4.2.0.GA/server/erpln/deploy/properties-service.xml
                          200

                          ========================================
                          error when I try to use the queue


                          09:44:54,093 ERROR [ResourceUtil] Error while creating a JMS Queue Connection w
                          ith username [ jbossadmin ] password [ jb@ssadm1n ]
                          javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '${hostNa
                          me}:${queueManagerName}'
                          at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
                          ent.java:586)
                          at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2301)
                          at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1703)
                          at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:157)
                          at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueue
                          ConnectionFactory.java:185)
                          at com.bluebird.integration.util.ResourceUtil.getConnection(ResourceUtil
                          .java:180)
                          at com.bluebird.integration.util.ResourceUtil.getQueueRequestor(Resource
                          Util.java:225)
                          at com.bluebird.integration.util.ResourceUtil.sendMessage(ResourceUtil.j
                          ava:91)
                          at com.bluebird.integration.businessService.SalesOrderBusinessServiceFac
                          adeImpl.create(SalesOrderBusinessServiceFacadeImpl.java:39)
                          at com.bluebird.integration.parts123.actions.Parts123OrderAction.process
                          (Parts123OrderAction.java:192)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                          java:39)
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                          sorImpl.java:25)
                          at java.lang.reflect.Method.invoke(Method.java:585)
                          at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.process
                          Methods(ActionProcessorMethodInfo.java:102)
                          at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcesso
                          r.process(OverriddenActionLifecycleProcessor.java:74)
                          at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(
                          ActionProcessingPipeline.java:262)
                          at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(Messag
                          eAwareListener.java:297)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
                          utor.java:650)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
                          .java:675)
                          at java.lang.Thread.run(Thread.java:595)
                          09:44:54,093 WARN [ActionProcessingPipeline] Unexpected exception caught while
                          processing the action pipeline
                          org.jboss.soa.esb.actions.ActionProcessingException: Unexpected invocation targe
                          t exception from processor
                          at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.process
                          Methods(ActionProcessorMethodInfo.java:127)
                          at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcesso
                          r.process(OverriddenActionLifecycleProcessor.java:74)
                          at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(
                          ActionProcessingPipeline.java:262)
                          at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(Messag
                          eAwareListener.java:297)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
                          utor.java:650)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
                          .java:675)
                          at java.lang.Thread.run(Thread.java:595)
                          Caused by: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager fo
                          r '${hostName}:${queueManagerName}'
                          at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
                          ent.java:586)
                          at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2301)
                          at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1703)
                          at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:157)
                          at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueue
                          ConnectionFactory.java:185)
                          at com.bluebird.integration.util.ResourceUtil.getConnection(ResourceUtil
                          .java:180)
                          at com.bluebird.integration.util.ResourceUtil.getQueueRequestor(Resource
                          Util.java:225)
                          at com.bluebird.integration.util.ResourceUtil.sendMessage(ResourceUtil.j
                          ava:91)
                          at com.bluebird.integration.businessService.SalesOrderBusinessServiceFac
                          adeImpl.create(SalesOrderBusinessServiceFacadeImpl.java:39)
                          at com.bluebird.integration.parts123.actions.Parts123OrderAction.process
                          (Parts123OrderAction.java:192)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                          java:39)
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                          sorImpl.java:25)
                          at java.lang.reflect.Method.invoke(Method.java:585)
                          at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.process
                          Methods(ActionProcessorMethodInfo.java:102)
                          ... 6 more
                          09:44:54,093 ERROR [ResourceUtil]





                          • 10. Re: Using ${} in jboss-esb.xml
                            Kevin Conner Master

                             

                            "lfhaddix" wrote:
                            <attribute name="QueueManagerName">${queueManagerName}</attribute>
                             <attribute name="HostName">${hostName}</attribute>

                            Try adding replace="true" to these elements.


                            • 11. Re: Using ${} in jboss-esb.xml
                              Linda Haddix Newbie

                              I added replace=true with no luck.

                              I even put properties-service.xml into a directory named deploy/bluebird and my app into deploy/bluebird2 which caused the SystemProperties to load before my app.

                              It still did not substitue the ${} properties from jboss-service.xml

                              • 12. Re: Using ${} in jboss-esb.xml
                                Kevin Conner Master

                                 

                                "lfhaddix" wrote:
                                It still did not substitue the ${} properties from jboss-service.xml


                                Can you try adding the properties on the command line using -D?

                                • 13. Re: Using ${} in jboss-esb.xml
                                  Linda Haddix Newbie

                                  -Djava hostName=ftvint002,queueManagerName=QM_ftvint002 does not work either.


                                  It DOES work if I wait until jboss a/s finishes loading and then I hot deploy the app.

                                  • 14. Re: Using ${} in jboss-esb.xml
                                    Kevin Conner Master

                                     

                                    "lfhaddix" wrote:
                                    -Djava hostName=ftvint002,queueManagerName=QM_ftvint002 does not work either.

                                    I hope you meant
                                    java -DhostName=ftvint002 -DqueueManagerName=QM_ftvint002


                                    "lfhaddix" wrote:
                                    It DOES work if I wait until jboss a/s finishes loading and then I hot deploy the app.

                                    Okay, so the configuration file is now doing the substitution but it looks like there may be an issue with the property service. I'll create a simple test and see what I can find out but it won't be until next week.

                                    1 2 Previous Next