OJMS Topic Example?

Hi
I have asking for examples, but I'm attempting to setup a proof of concept using BAM, BPEL and Application Server JMS Queue/Topic.(The queue/topic being on a separate server running iAS Beta 10.1.3.1)
My iAS has some demo topics and queues set up and I would like BAM to listen for messages on this.
There are many example for setting up Enteprise Data Sources for WebMethods, BEA etc, but none for OJMS.
If anyone has done this, I would greatly appreciate some guidance....!
Many thanks
Chris

Hi Sanjeev
Thanks for your prompt response!!
My e-mail is [email protected]
I am looking at the BAM documentation in http://www.oracle.com/technology/products/integration/bam/htdocs/1012_support.html#docs
Specifically, the Architects guide indicates how to setup sources for 3rd party products which is where I'd expect to see the JMS info too...
Many thanks
Chris

Similar Messages

  • Creating a OJMS topic and connecting to BAM

    Hi,
    I have in our database created a topic for errors:
    BEGIN
    dbms_aqadm.drop_queue_table('IPLERRORQTAB',true);
    END;
    BEGIN
    sys.dbms_aqadm.create_queue_table (
    queue_table => 'IPLERRORQTAB'
    , queue_payload_type => 'SYS.AQ$_JMS_MESSAGE'
    , sort_list => 'PRIORITY,ENQ_TIME'
    , comment => ''
    , multiple_consumers => TRUE
    , message_grouping => DBMS_AQADM.NONE
    , storage_clause => 'TABLESPACE OJMS LOGGING'
    , primary_instance => '0'
    , secondary_instance => '0');
    COMMIT;
    END;
    BEGIN
    sys.dbms_aqadm.create_queue(
    queue_name => 'IPLERROR'
    , queue_table => 'IPLERRORQTAB'
    , queue_type => sys.dbms_aqadm.NORMAL_QUEUE
    , max_retries => '5'
    , retry_delay => '0'
    , retention_time => '0'
    , comment => '');
    END;
    BEGIN
    sys.dbms_aqadm.start_queue(
    queue_name => 'IPLERROR'
    , enqueue => TRUE
    , dequeue => TRUE);
    END;
    DECLARE
    subscriber SYS.aq$_agent;
    BEGIN
    subscriber := sys.aq$_agent (
    name => 'BAM',
    address => NULL,
    protocol => NULL);
    DBMS_AQADM.ADD_SUBSCRIBER (
    queue_name => 'IPLERROR',
    subscriber => subscriber);
    END;
    Then in the BAM Architect defined the following:
    TopicConnectionFactory Name: java:comp/resource/ojms_ipl/TopicConnectionFactories/IPLERRORQTAB
    Topic Name: java:comp/resource/ojms_ipl/Topics/IPLERROR
    Durable Subscriber Name (Optional): BAM
    In the enterprise Link i have created a connection between a Oracle BAM message receiver and a grid.
    When i try the connection I get the following error:
    IMessageSourceReceiver->messageReceive: javax.naming.NameNotFoundException: java:comp/resource/ojms_ipl/TopicConnectionFactories/IPLERRORQTAB not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerStart(JMSMessageSourceReceiverImpl.java:1001)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.messageReceive(JMSMessageSourceReceiverImpl.java:326)
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3A]
    Error during Message Receive operation.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3B]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    IMessageSourceReceiver->messageReceive: javax.naming.NameNotFoundException: java:comp/resource/ojms_ipl/TopicConnectionFactories/IPLERRORQTAB not found
         at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerStart(JMSMessageSourceReceiverImpl.java:1001)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.messageReceive(JMSMessageSourceReceiverImpl.java:326)
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3A]
    Error during Message Receive operation.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3B]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "OJMS_Test_Plan" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    Can anyone see where the error might be?
    Regards Eskil

    Hi,
    I solved the problem for him, it was a name resolution problem.
    Machine setup:
    machinebam.domain888.com - hosts bam
    machineias.domain0101.com - hosts ias
    The machine "machineias.domain0101.com" seems to be installed without the domain name (FQDN)
    This means that when the machinebam.domain888.com send the OPMN request to lookup the JMS setup:
    POST http://machineias.domain0101.com:6004/connect HTTP/1.1
    Content-Length: 0
    OPMNtype: pm
    OPMNrequest: /dump?type=dms&dmsarg=[nountype=opmn_ias_instance&format=xml]
    The response is without the FQDN;
    HTTP/1.1 200 OK
    Content-Length: 26486
    Content-Type: text/html
    Response:
    <?xml version='1.0'?>
    <!DOCTYPE pdml>
    <pdml version='9.0.4' name='opmn' host='machineias' id='26954' timestamp='1173813385745'>
    <statistics>
    <noun name="machineias:6201" type="opmn"><noun name="pm" type="opmn_pm">
    <noun name="soa_1013.machineias" type="opmn_ias_instance">
    <noun name="default_group" type="opmn_ias_component">
    <noun name="oc4j_soa" type="opmn_process_type">
    <noun name="default_group" type="opmn_process_set">
    <noun name="process_463551397" type="opmn_process">
    <noun name="opmn_oc4j_proc" type="opmn_header">
    <noun name="specialized" type="opmn_oc4j_proc">
    <metric name="oc4jInstance.value">
    <value type="string"><![CDATA[oc4j_soa]]></value>
    </metric>
    <metric name="oc4jIsland.value">
    <value type="string"><![CDATA[default_group]]></value>
    </metric>
    </noun>
    </noun>
    <noun name="jms" type="opmn_connect">
    <metric name="desc.value">
    <value type="string"><![CDATA[jms]]></value>
    </metric>
    <metric name="protocol.value">
    <value type="string"><![CDATA[jms]]></value>
    </metric>
    <metric name="host.value">
    <value type="string"><![CDATA[machineias]]></value></metric>
    <metric name="port.value">
    <value type="integer"><![CDATA[12604]]></value>
    </metric>
    This means that the name translation fails, ie a ping to machineias from machinebam.domain888.com fails.
    The solution is either of:
    - reinstall iAS with the domain suffix
    - add all the domains to the DNS suffix lookup list (in TCP IP advanced settings for windows)
    - add the host in %systemroot%\system32\drivers\etc\hosts
    Ha en bra dag!
    Örjan Lundberg

  • Frustrated that using OJMS/AQ requires using direct AQ apis

    Well, I'm sure I could be mistaken, but I'm coming to the conclusion that in order to get a workable JMS implementation with OC4J 9.0.2, you have to use AQ (this is known), but what is a surprise to me is that I am unable to get a raw JMS consumer and producer working without coding specific usage of the AQ api on both ends. Note that I'm trying to have a consumer process that is a standalone Java process, whereas the producer will be in EJB session code.
    It appears to be a little easier if you're using MDBs, but I am not.
    In particular, there appears to be no way to get a QueueConnectionFactory using the standard JMS api. You have to use the "AQjmsFactory.getQueueConnectionFactory()" method.
    Once I got past that, I discovered that my normal JMS-compliant lookups through JNDI for the queue name were not working. It's entirely possible I'm using the wrong name, but I've tried several different variations. So, I plugged in the "AQjmsSession.getQueue()" method. Not only is this another AQ-specific API, but I now have to get this in a different order than I did when using JMS-specific APIs. That is, I now have to have a QueueSession before I can get the Queue, which I didn't have to do with the JNDI lookup.

    Vivek,
    I get the following error message (JMS Error: invalid arguments in call). If I remove the connection factories specification in the orion-ejb-jar.xml this error goes away but the application does not run.
    [c:/tools/OC4J_9.03/j2ee/home> java -jar oc4j.jar
    Auto-unpacking C:\tools\OC4J_9.03\j2ee\home\applications\chapter07.ear... done.
    Auto-unpacking C:\tools\OC4J_9.03\j2ee\home\applications\chapter07\chapter07-web
    .war... done.
    Auto-deploying chapter7 (Assembly had been updated)...
    Error deploying file:/C:/tools/OC4J_9.03/j2ee/home/applications/chapter07/chapte
    r07-ejb.jar homes: JMS Error: invalid arguments in call
    Auto-deploying file:/C:/tools/OC4J_9.03/j2ee/home/applications/chapter07/chapter
    07-web/ (Assembly had been updated)...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    [c:/tools/OC4J_9.03/j2ee/home>
    Here are my configuration files:
    =======================> orion-ejb-jar.xml <==================================
    <orion-ejb-jar>
       <enterprise-beans>
       <message-driven-deployment name="ProcessApprovalMessageBean"
         destination-location="java:comp/resource/ojms/Topics/AQ_ADM.PROCESSTOPIC_Q"
         connection-factory-location="java:comp/resource/ojms/TopicConnectionFactories/theTopicConnectionFactory"
         subscription-name="topicSubscriber" >
        <resource-ref-mapping name="jms/emailMessageQueue"
            location="java:comp/resource/ojms/Queues/AQ_ADM.EMAILQUEUE_Q" />
        <resource-ref-mapping name="jms/emailMessageQueueConnectionFactory"
            location="java:comp/resource/ojms/QueueConnectionFactories/theQueueConnectionFactory" />
       </message-driven-deployment>
       <message-driven-deployment name="EmailMessageBean"
         destination-location="java:comp/resource/ojms/Queues/AQ_ADM.EMAILQUEUE_Q"
         connection-factory-location="java:comp/resource/ojms/QueueConnectionFactories/theQueueConnectionFactory">
       </message-driven-deployment>
       </enterprise-beans>
       <assembly-descriptor>
          <default-method-access>
             <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true"/>
          </default-method-access>
       </assembly-descriptor>
    </orion-ejb-jar>
    =======================> ejb-jar.xml <==============================================
    <ejb-jar>
       <enterprise-beans>
         <message-driven>
             <description></description>
             <ejb-name>ProcessApprovalMessageBean</ejb-name>
             <ejb-class>purchase.ejb.mdb.ProcessApprovalMessageBean</ejb-class>
             <transaction-type>Container</transaction-type>
             <message-driven-destination>
               <destination-type>javax.jms.Topic</destination-type>
               <subscription-durability>Durable</subscription-durability>
             </message-driven-destination>
             <resource-ref>
                <description>The topic for EmailMessage</description>
                <res-ref-name>jms/emailMessageQueue</res-ref-name>
                <res-type>javax.jms.Queue</res-type>
                <res-auth>Container</res-auth>
             </resource-ref>
             <resource-ref>
                <description>The Factory used </description>
                <res-ref-name>jms/emailMessageQueueConnectionFactory</res-ref-name>
                <res-type>javax.jms.QueueConnectionFactory</res-type>
                <res-auth>Container</res-auth>
              </resource-ref>
         </message-driven>
         <message-driven>
          <description>EmailMessageBean</description>
             <ejb-name>EmailMessageBean</ejb-name>
             <ejb-class>purchase.ejb.mdb.EmailMessageBean</ejb-class>
             <transaction-type>Container</transaction-type>
             <message-driven-destination>
               <destination-type>javax.jms.Queue</destination-type>
             </message-driven-destination>
          </message-driven>
       </enterprise-beans>
    </ejb-jar>
    ============================> resource provider in application.xml <=======================
    <resource-provider
          class="oracle.jms.OjmsContext"
          name="ojms">
           <description>
              Oralce JMS resource provider.
           </description>
           <property name="url"
           value="jdbc:oracle:thin:@hostname:1521:sid"/>
           <property name="username" value="user"/>
           <property name="password" value="password"/>
        </resource-provider>
    ======================> end of configuration file changes <========================
    Is this the only thing I need to do?
    thanks
    Mathew                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How can a JMS Listener Notified get when a Topic Server Goes Down?

    I'm in the process of looking into pub/sub model for a centeralized data source where vertical applications subscribe to a topic to get updates on person demographic information.
              I was playing with the JMS topic examples and noticed that when I have a Durable Subscriber listener (java main) and the topic Server goes down. It never gets notified. When I restart the Topic server and send msgs to the topic, the Durable Listener doesn't get them.
              Once I restart the Durable Listener (java main), it receives all the messages that were pending.
              I implemented the ExceptionListener and it never gets a shutdown msg either. I shutdown the Topic server via Ctrl-C, Graceful Shutdown and Forced Shutdown.
              Is there a way for the client listener to determine when the Topic Server went down, came backup, and restore the connection to it automatically? Or do we have to implement some type of ping mechanism on the client listener and re-create the connection ourselves?
              Thanks. Later...
              - Wayne
              Edited by wlau1000 at 03/07/2007 8:34 AM

    Hi Wayne,
              I think the exception listener should have fired. Some comments/questions:
              - Does your app call "connection.setExceptionListener" in addition to implementing ExceptionListener?
              - Which version and maintenance/service pack are you using?
              - Is the client using the wl* "thin" client jars or the "thick" client jar?
              - Version 9.2 provides an automatic reconnection capability for consumers. This behavior isn't enabled by default due to natural side effects that some apps might not be prepared to handle (needles to say, I recommend reading the doc thoroughly).
              http://edocs.bea.com/wls/docs92/jms/recover.html#wp1320125
              Tom

  • Error initializing the Oracle JMS Resource provider for Topics

    Getting this error when starting OC4J 9.0.3 standlone on Windows2000.
    Resource provider config'd as
    <resource-provider class="oracle.jms.OjmsContext" name="ojms">
    <description> OJMS/AQ </description>
    <property name="datasource" value="jdbc/ProlianceDS"></property>
    </resource-provider>
    Datasource config'd as
         <data-source
              class="com.evermind.sql.OrionCMTDataSource"
              name="ProlianceDS"
              location="jdbc/ProlianceDS"
              xa-location="jdbc/xa/ProlianceDS"
              ejb-location="jdbc/ProlianceDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="proliance"
              password="******"
              url="jdbc:oracle:thin:@aps67.ere.com:1538:ifstst"
              inactivity-timeout="30"
         />
    ejb-jar config'd as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>Proliance Message Driven Bean</description>
    <display-name>ProlianceMDB</display-name>
    <ejb-name>ProlianceMDB</ejb-name>
    <ejb-class>com.lendlease.bll.ProlianceMDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-selector>
    <method>
    <ejb-name>ProlianceMDB</ejb-name>
    <method-name>onMessage</method-name>
    </method>
    </message-selector>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>Durable</subscription-durability>
    </message-driven-destination>
    <resource-ref>
    <res-ref-name>java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ</res-ref-name>
    <res-type>javax.jms.Topic</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-env-ref>
    <resource-env-ref-name>java:comp/resource/ojms/TopicConnectionFactories/aqTcf</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.TopicConnectionFactory</resource-env-ref-type>
    </resource-env-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>ProlianceMDB</ejb-name>
    <method-name>onMessage</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    orion-ejb-jar config'd as:
    <?xml version = '1.0'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-time="e7f1ce76f6" deployment-version="1.0.2.2">
    <enterprise-beans>
    <message-driven-deployment
    name="ProlianceMDB"
    connection-factory-location="java:comp/resource/ojms/TopicConnectionFactories/aqTcf"
    destination-location="java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ"
    subscription-name="PROLIANCE_SUBSCRIBER">
    </message-driven-deployment>
    </enterprise-beans>
    </orion-ejb-jar>
    Full startup trace is:
    C:\ora\oc4j_9.0.3\j2ee\home>java -Djdbc.connection.debug=true -jar oc4j.jar
    Node started with id=-2143203582
    Auto-unpacking C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB.ear... done.
    Auto-unpacking C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB\ProlianceMDB.war... done.
    Auto-deploying ProlianceMDB (New server version detected)...
    Copying default deployment descriptor from archive at C:\ora\oc4j_9.0.3\j2ee\home\applications\ProlianceMDB/ProlianceMDB
    .jar/META-INF/orion-ejb-jar.xml to deployment directory C:\ora\oc4j_9.0.3\j2ee\home\application-deployments\ProlianceMDB
    \ProlianceMDB.jar...
    Auto-deploying ProlianceMDB.jar (New server version detected)... done.
    Error initializing the Oracle JMS Resource provider for Topics: Not an OracleConnection
    Error deploying file:/C:/ora/oc4j_9.0.3/j2ee/home/applications/ProlianceMDB/ProlianceMDB.jar homes: No javax.jms.Destina
    tion found at the specified destination-location (java:comp/resource/ojms/Topics/PROLIANCE.OUT_AQ) for MessageDrivenBean
    ProlianceMDB
    OrionCMTConnection not closed, check your code!
    Logical connection not closed, check your code!
    Created at:
    java.lang.Throwable: OrionCMTConnection created
    at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:42)
    at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:82)
    at oracle.jms.AQjmsConnection.newDBConnection(AQjmsConnection.java:1681)
    at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:537)
    at oracle.jms.AQjmsTopicConnectionFactory.createTopicConnection(AQjmsTopicConnectionFactory.java:232)
    at oracle.jms.OjmsResource.initT(OjmsResource.java:512)
    at oracle.jms.OjmsResource.initAQ(OjmsResource.java:411)
    at oracle.jms.OjmsResource.init(OjmsResource.java:214)
    at oracle.jms.OjmsContextFactory.getObjectInstance(OjmsContextFactory.java:103)
    at oracle.jms.OjmsContext.getResource(OjmsContext.java:328)
    at com.evermind.server.Application.lookupResource(Application.java:2548)
    at com.evermind.server.Application.lookupResource(Application.java:2563)
    at com.evermind.server.ApplicationContext.handleResourceLookup(ApplicationContext.java:639)
    at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:162)
    at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:66)
    at com.evermind.server.ejb.MessageDrivenHome.<init>(MessageDrivenHome.java:236)
    at com.evermind.server.ejb.EJBPackageDeployment.bindHomes(EJBPackageDeployment.java:304)
    at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:595)
    at com.evermind.server.Application.postInit(Application.java:431)
    at com.evermind.server.Application.setConfig(Application.java:136)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1635)
    at com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1585)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1240)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
    at java.lang.Thread.run(Thread.java:484)
    Auto-deploying ProlianceMDB Poster (New server version detected)...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Using native aqapi.jar with OC4J -didn't copy from 9.2.0.2 DB. 9.2.0.2 patchset ran fully, completed fine. What's going wrong?
    Brian

    Shouldn't I be getting a com.evermind.sql.OrclCMTConnection created instead of a com.evermind.sql.OrionCMTConnection (per the stack trace)? OJMS is complaining that it doesn't have an OracleCOnnection but how do I tell it to use the "OrclCMTConnection" class instead?
    Brian

  • MDB QUeue example

    I looking for a example of a queue in OC4J. AT least I need the configuration for defining the QueueConnectionFactory (there's no example as a queue)

    Here's an example of a jms.xml file we use which works with queues. One of them is persistent while the other one is not.
    Apart from this file (jms.xml) the rest of the stuff is very similar to the topic example given by Oracle.
    A few points to note. Generally just change Topic for Queue in the sample code + don't forget the start the queue with the start() method.
    Hope this helps
    <?xml version="1.0"?>
    <!DOCTYPE jms-server PUBLIC "Orion JMS server" "http://xmlns.oracle.com/ias/dtds/jms-server.dtd">
    <jms-server port="9127" host="127.0.0.1">
         <!--Queue bindings, these queues will be bound to their respective JNDI path for later retrieval -->
         <queue-connection-factory location="jms/appointmentQCF" password="admin" port="9127" username="admin">
         </queue-connection-factory>
         <queue-connection-factory location="jms/objectMessageQCF" password="admin" port="9127" username="admin">
         </queue-connection-factory>      
         <queue-connection-factory location="jms/d0012QCF" password="admin" port="9127" username="admin">
         </queue-connection-factory>
         <!-- path to the log-file where JMS-events/errors are stored-->
         <!-- log>
              <file path="../log/jms.log" />
         </log -->
         <queue name="Appointment Queue" location="jms/appointmentQ" persistence-file="../persistence/MDB/appointment.queue" >
              <description>Appointment Queue</description>
         </queue>
         <queue name="Object Message Queue" location="jms/objectMessageQ" >
              <description>Object Message Queue</description>
         </queue>     
         <queue name="D0012 Queue" location="jms/d0012Q" persistence-file="../persistence/MDB/d012.queue" >
              <description>D012 queue</description>
         </queue>
    </jms-server>

  • How to find out that the database table is empty

    Hello all,
    How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * )  looks to me as not the best way.
    Kind regards
    Radim Benek
    Moderator message: FAQ, please search for previous discussions of similar topics.
    example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Aug 11, 2011 5:06 PM

    Hi,
    One approach is:
    check lt_mytable is initial.
    This will be true if there are no lines.
    Another:
    describe table lt_mytable lines lv_count
    if lv_count = 0.
    "Empty
    Thanks.
    Anitha a

  • EH&S - Label - define multiple language variantions - one template

    Dear all,
    We would like to generate an Product Safety Label from the system (by using a WWI template). The difficulty is that these lables should contain as much as possible languages and they deviate from time to time, as of shipping to other countries.
    As far as we know, we can change the Symbol catagory by using the following IMG path:
    IMG path: EHS > Basic data tools > Report Definiton > Report Symbols > Check and Specify Report Symbols. Here we can change the report symbol type to paramater or change the rep. sym. group so that an pop-up will appear at the display (generation) of a Label from one specification. We would like to use the input parameters to define the specific languages on the Label (e.g. 6 languages for e.g. First Aid measures phrases), this with only one WWI template.
    Would this be feasible? Or are there other options/ways to configure/develop the report so that we can display (on-demand) the specific languages we would like to have on the label?
    Thank you in advance!!
    Kind regards,
    Rob Greijmans

    Hello
    in addition of what has been explaned:
    you need a good understanding how to maintain WWI layouts and what is needed on the level of the generation vairaiant in addition  (GLM topic). This topic is a little bit "sophisticated" and you should start only if you understand the basic concepts in doing so and there will be many "pitfalls".
    Take a look here:
    http://help.sap.com/erp2005_ehp_04_sp/helpdata/en/a1/4eeaa2eaab5f4ebd8272e143831f06/frameset.htm
    and especially using the EH&S sap help you will find the topic:
    "Example: Repeating Group of Type G"
    And you need to have a look here as well in EH&S hel
    "Taking Validity Areas into Account" 
    with best regards
    CB

  • Debit memo request generated second time as opposite ?

    Once a month we create debit memo requests from the serviceorders that are completed. normally that is not a problem but now we noticed that because someone forgot to TECO an serviceorder that was billed individually that a new memo request was batch generated with DP95 which was the opposite in amount than the original debit memo request.
    so I got a serviceorder with a debit memo request from 21-12-2006 of 100,- and an invoinde is created
    and in 2007 a new debit memo request is generated with -100,-  ??
    does anybody got a clue what is going wrong here ? and how to prevent this ?

    so back in business again and the problem remains.
    in this topic Example
    I read about the relation between the coep and the AD01DLISF table
    in the dip profile we declared that we do under material determination 'transfer quantity only'
    when I look in my coep after billing I have 4 lines
    6300     200025900     OR000000103020     45322     1     7     0,00     0,00     0,00     10,000     10,000
    6300     200025900     OR000000103020     45322     2     7     0,00     0,00     0,00     10,000     10,000
    6300     200025901     OR000000103020     87330     1     7     30,00-     30,00-     30,00-     0,000     10,000-
    6300     200025901     OR000000103020     87305     2     7     20,00-     20,00-     20,00-     0,000     10,000-
    I have the feeling that's looking at the first 2 lines and not at the second 2 lines which contain the billed value ?
    anybody got an idea ?
    Message was edited by:
            A. de Smidt

  • What is the best way to run two programs simulataneously using the output from one to run the other?

    I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
    Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
    On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
    Solved!
    Go to Solution.

    There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
    I guess I type too slowly
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • 11g 2 XE 2 Day DBA Documentation E18804-04 July 2011 "sue" s/b "use"

    On pay 10.4 under the topic Example:Exporting Data to a Microsoft Excel File in the sentence
    "You sue the same Database Export wizard, but export only the data, and not the DDL
    (Data Definition Language statements for creating database objects)."
    "sue" should be "use".

    It's fixed. See the second paragraph in the current version of that section.

  • Image Fade In Actionscript

    I was following the steps from this topic,
    Topic
    Example
    , and I got to the fade in action script, and I kept getting
    this error message:
    Scene=graphics, Layer=stuff, Frame=58: Line 2: Statement must
    appear within on/onClipEvent handler
    var reset:Boolean = false;
    Scene=graphics, Layer=stuff, Frame=58: Line 4: Statement must
    appear within on/onClipEvent handler
    function fadeIn(clip) {
    Scene=graphics, Layer=stuff, Frame=58: Line 14: ';' expected
    attach this script to the "holder" mc:
    How can I fix this problem? I am using Flash MX to create a
    photo gallery with thumbnails for my flash portfolio.

    please post your entire code for Frame 58.

  • I want Next/Back links between topics. Are there good examples how to do this?

    I also have multiple books in which I want to have Next/Back buttons. The Help PDF offered by Adobe does not adequately describe how to do this. Does anyone have a good example/description of how I do this?
    Walt Mahan

    Hi again
    To access the link I listed, you just click it in your web browser.
    There are a few different ways you can do this. You can insert the text as you wish to see it, then manually create the links. Ick! That's not very much fun.
    If you are using RoboHelp 8  you could create a Master Page and insert a Breadcrumb Trails placeholder, then apply the Master Page across the topics.
    For any version of RoboHelp you could achieve this by creating a Browse Sequence (Tools > Browse Sequence Editor) and generate WebHelp twice. The first pass to folder A and the second pass to folder B. During the first pass, you use the "Traditional - No skin" output. This would produce topics with code in them that contains the Previous and Next links. Then the second pass would be generated with a skin. You would then copy the topics from folder A and overwrite the topics in folder B to obtain the best of both worlds.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Simple example of having several subscribers to a topic

    Hello,
    I would like experiment with an app that has several subscribers for one topic. How do I do that? Can I have a standalone client sending a message to a topic and the topic being consumed by several MDBs? Can anyone give me some real-life examples of when I would have several consumers for one topic/message.
    Thanks in advance,
    Julien.
    As you can see I am not yet a JMS expert...

    I'd read Sun's JMS overview to get you started working with the JMS API.
    http://java.sun.com/products/jms/tutorial/
    The idea is with topics that each message sent to a topic is delivered to all the consumers who are interested in the message.
    Topics tend to be used to distribute business events (such as price changes on a stock exchange), or if you want to send one message to multiple systems but the sender does not need to know what the other systems are. e.g. you send a purchaseOrder to billing, accounting, CRM and risk systems. Using topics the sender can deliver the message once and all systems interested would consume the message.
    James
    http://logicblaze.com/

  • Help fixing/preventing horrible click/popping in Audition recording - example in topic.

    Hi,
    Looking for help/advice.
    I recently recorded a podcast using Adobe Audition CS6 for Mac and upon listening back noticed that all audio after about the 3 minute mark was plagued with a terrible crackle/pop throughout - hear the example here: https://dl.dropboxusercontent.com/u/28237748/58%20test.mp3
    Now I've had this happen only once before and that was because my I/O Buffer Size was set too low - I had since fixed this by setting it to 2048 and never had te issue again. I was also able to hear the crackle in my headphones that time - however this time there was no warning.
    Is there any way to repair the audio? I have used the click removal effect and while it helps the crackles are still quite noticeable. Any other tips you can give me? I'm desperate to try and clean this up as much possible.
    Also what could have caused this? I use a Mackie mixer and it seemed to start when all 3 of us doing the show started talking simultaneously.
    Very very strange.
    Thanks in advance,
    Chris

    Yes, the fact that it suddenly started also makes it unlikely to be a buffer issue - that would be pretty consistent if it occurred. The only reasonable way to reduce it is to find out what the real cause is - and that may require some detective work on your part, I fear.
    You need to try recording again, and make a careful note of exactly what you're doing. One thing you might try is reducing all the signal levels a bit and see if that stops it - you could, as an outside possibility, have some sort of a signal-handling issue going on in the mixer, although generally Mackies are pretty good.
    As for getting rid of it in an existing recording, then possibly use the Click Eliminator (the Audition effect that you'd normally use for processing scratchy vinyl records), or even try sampling a click and using Audition's Noise Reduction - that would probably get rid of most of the effect, too.

Maybe you are looking for