MQJMS2005 - IBM wsad/mq pub/sub sample

Has anyone had problems running the IBM pub-sub sample for wsad and wq.
http://www-106.ibm.com/developerworks/ibm/library/i-jms2/
I am running MQ5.3 and WIN2000.
The P2P example works fine, getting the folowing error when trying to test client access:
Exception: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:QM1'
Any help will be greatly appreciated.

I am having the exact problem. I have MQ5.3/WSAD5.0/WIN2000. Try putting the directory where mqji.properties has
to be in the operating system CLASSPATH environment variable, or you will get the error message you indicated. This was suggested by Willy Farrell himself. I am stil running into issues :) But try and see if this works for you.

Similar Messages

  • Looking for sample code to create my own pub/sub!

    I am a new bee in JMS. So I would really appreciate if
    some one could give me some hint to start up with my school project. I am looking for a sample Java code that will:
    For the Publisher:
    1. Connect to a broker [create it, if it does not exist]
    2. Create a publisher/destination.
    3. Create a pub-sub queue
    4. Publish a message
    5. Ack or Nak depending on if the subscriber got or did not get the message.
    For the Subscriber:
    1. Connect to a broker [create it, if it does not exist]
    2. Subscribe to the broker
    3. Subscribe to the Queue
    4. Show an received messages on the console.
    Here are the command line params for both the Publisher and subscriber:
    runPub 127.0.0.1:7676 myTestBroker myQueue "this is my message"
    runSub 127.0.0.1:7676 myTestBroker myQueue
    Please tell me if there are similar java code that will do all this and work with ANY JMS compatible client. i.e. I should not have to use the Admin tool of any JMS Server (MQSeries, iPlanet, SonicMQ etc etc). The code should follow the JMS spec and do this programmatically.
    Thank you very very much in advance for doing this great favor.
    With regards,
    Amir.

    Thanks a lot for that hint. I think that's a great tutorial for a beginner. I could compile those sample codes from chapter 4 with out any problem, but could not run it. I also installed j2sdkee1.3.1 and updated my classpath according to the spec. But when I tried to run the "j2ee -verbose" command it was giving me the following error message:
    ERROR: Set J2EE_HOME before running this script.
    Any advise for me that I should follow next. Thanks again.

  • How to Create web service using JMS with PUB/SUB pattern.

    Hi All,
    I need to expose web service using JMS with PUB/SUB pattern.
    if you have any source for this.
    I tried to use @WLJmsTransport annotation but unable to get it done.
    I have configured all JMS server, topic, and connection factory.
    Thanks.

    Hi, I am having web sample web service program which is simple one.
    But I need to Modify this to JMS enable.
    Can any one help me?
    Thanks.

  • PhotoShop Elements 11 and sub-sampling

    I have just purchased a Smart TV which allegedly can access photos from my various PCs. However the only way I can see any jpeg photos is if I use a memory card taken direct from the camera. That is the photos have not been processed in any way.
    If I look carefully at the Panasonic user manual it tells me there are (amazingly) some very specific requirements that must be met before this brand new TV can process my pictures. I find this a mind blowing restriction in this day and age. These specifications are as follows:
    Image Resolution 8 x 8 to 30,719 x 17,279
    .jpg, .jpeg, .mpo
    DCIF & EXIF standards
    no progressive jpeg
    4:4:4, 4:2:2 or 4:2:0 sub-sampling
    I can meet all the requirements apart from the last one when I use PSE to edit the pictures. However I cannot find anywhere any mention of an option to control sub-sampling or even any mention of which varient of sub-sampling PSE11 uses by default. Can anyone tell me whether I can control the 'version' of sub-sampling when I save jpeg pictures with PSE11, and if so what these supported versions are please?

    You've posted in the Audition forum (Adobe's sound editing software).  Perhaps some helpful Admin can move your post to a more appropriate forum.
    However, for sales queries like this, you may be better off ringing the Adobe Sales people--a user forum can't help much with pricing queries.

  • Please advise regarding implementing pub/sub in a BPEL process.

    Hi guys,
    Requirement
    The customer information comes as HTTP/SOAP message and is sent to the BPEL process as input. BPEL uses ESB and database adapters to create the customer in Oracle apps. Now, we need to send the same customer information with the Oracle apps customer number to some other systems. The number of systems is not know at this time, so we need a pub/sub mechanism where we can publish the customer creation event with the required parameters (customer name, number, etc.). Then we just create subscriptions to that event as an when required. This gives us the flexibility to add subscriptions withougt changing the initial BPEL process.
    My questions
    I can think of three ways to do this, please advise.
    1. Use Oracle workflow business events and subscriptions. At the end of the BPEL process, raise the wf event and the subscriptions to that will be processed by workflow engine. My doubt here is that most of the times the subscriptions is another BPEL process, so does it make sense to go from BPEL to WF and then WF to PL/SQL to invoke a new BPEL?
    2. Use Advanced Queues (Oracle AQ). This is similar to using Oracle WF and to me the issues are also the same.
    3. Use routing rules in ESB -- I am not really sure if this can be done to replicate a pub/sub scenario, please advise and elaborate.
    As a summary, we want the ability to have pub/sub within BPEL and/or ESB. Any other suggestions are also welcome.
    Thanks!

    I have the same question , but could not find the releveant post in ESB forum.. is the response posted ? pls post the link to that thread...

  • IBM WSAD 5.1.2

    In IBM WSAD 5.1.2, can u put EJB Modules as a Jar

    Here is a red book link http://www.redbooks.ibm.com/abstracts/SG246361.html?Open
    IBM tag documentation link http://www.redbooks.ibm.com/redbooks/SG246361/wwhelp/wwhimpl/java/html/wwhelp.htm

  • Need to use JMS in Web service for PUB/SUB pattern

    Hi All,
    I have JMS configured in my Web logic server 10.3.4.
    I have stand alone program for JMS in PUB/SUB pattern.
    I have Web service application with Apache CXF framework.
    Now, the problem I need to integrate JMS in my web service application for new web service with PUB/SUB pattern.
    Can any one guide me to this.
    I am trying to use @WLJmsTransport annotation provided by Weblogic. Is this approach is correct?
    And It is giving error during deployment that weblogic.jws.WLJmsTransport is not allowed as it is a JAX-WS type web service.
    I think It is creating problem with annotation parameters.
    I am using annotation like @WLJmsTransport(contextPath="transports", serviceUri="JMSTransport", queue="Queue", portName="JMSTransportServicePort")
    and ConnectionFactory with name ConnectionFactory and JNDI jms/ConnectionFactory, Queue with name Queue and JNDI jms/Queue, Topic with name Topic and JNDI jms/Topic.
    Thanks
    Thanks in advance.
    Edited by: HBM on 21 Apr, 2011 1:42 AM

    Use this link.
    http://webloic-wonders.com/weblogic/2011/04/30/jms-based-webservice-on-weblogic-server/
    Thanks.
    Harshal

  • Cisco call manager pub & sub definitions

    I'm just beginning to learn Cisco VOIP. Can someone explain to me in a simple way what SUB & PUB mean in relation to Cisco Unity & call manager mean, and how it's used in the real world. My supervisor wants me to do a unity & UCM backup, and I'm not really sure what I'm doing
    Thank You very much.

    PUB = Publisher
    SUB = Subscriber.
    In simple terms, think of the Publisher as the manager of the CUCM cluster. Configuration changes are typically done on the Publisher, and it distributes those changes to the Subscribers. Subscribers perform call processing, phone registration, software conference bridge, music on hold, etc., and in some setups the Publisher will as well (depends on size and design, as Jaime mentioned).
    The Pub-Sub relation for Unity is a little different... which one handles voicemail traffic depends completely on how the connectivity with CUCM is configured. In some setups, they will be distributed voicemail traffic evenly, while in other setups the Pub may get all traffic until its ports are full, and then overflow to the Sub as a backup.

  • Problem publishing using pub-sub adapter

    Hi,
    I want to see events from my EPN in the Visualizer. For that I created an adapter that connects to a channel in side the EPN. It is a httppub adapter.
    When I am trying to start it for publishing from the visualizer I get in the Eclipse (I run the CEP from the Eclipse):
    <18:20:23 IST 08/12/2011> <Error> <EventInspector> <BEA-2060506> <Stage adapter cannot be configured for event tracing because it is not an event source. The stage must implement StreamSource or EventSource to be an event source.>
    Isn't the adapter "automatically" publish the event? Do I need to create a bean for that?
    Below the adapter config and my EPN file:
    Adapter config:
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application">
    <http-pub-sub-adapter>
    <name>adapter</name>
    <server-context-path>/pubsub</server-context-path>
    <channel>/InputChannel</channel>
    <user>wlevs</user>
    <password>welcome1</password>
    </http-pub-sub-adapter>
    </wlevs:config>
    EPN file:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xmlns:ha="http://www.oracle.com/ns/cep/config/cluster"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="StringEvent">
                   <wlevs:class>com.oracle.cep.training.events.StringEvent</wlevs:class>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <!-- HA EPN -->
         <wlevs:adapter id="JMSInboundEventsAdapter" provider="jms-inbound">
              <wlevs:listener ref="HaInputAdapter"/>
              <wlevs:instance-property name="converterBean" ref="CSVInboundMessageConverter"/>
              <!-- <wlevs:listener ref="EventListenerCSV2" /> -->
         </wlevs:adapter>
         <bean id="CSVInboundMessageConverter" class="com.oracle.cep.training.converter.CSVInboundMessageConverter"> </bean>
         <!-- <bean id="EventListenerCSV2" class="com.oracle.cep.training.listeners.EventListenerCSV" /> -->
         <wlevs:adapter id="HaInputAdapter" provider="ha-inbound" >
              <!-- <wlevs:instance-property name="eventType" value="StringEvent"/> -->
              <wlevs:instance-property name="keyProperties" value="messageText"/>
              <wlevs:instance-property name="timeProperty" value="arrivalTime"/>
         </wlevs:adapter>
         <wlevs:channel id="InputChannel" event-type="StringEvent">
              <wlevs:listener ref="Processor" />
              <wlevs:listener ref="adapter" />
              <wlevs:source ref="HaInputAdapter" />
              <wlevs:application-timestamped>
                   <wlevs:expression>arrivalTime</wlevs:expression>
              </wlevs:application-timestamped>          
         </wlevs:channel>
         <wlevs:processor id="Processor">
              <wlevs:listener ref="OutputChannel" />
         </wlevs:processor>
         <wlevs:channel id="OutputChannel" event-type="StringEvent">
              <wlevs:listener ref="CSVBean" />
              <wlevs:listener ref="HaCorrelatingAdapter" />
         </wlevs:channel>
         <wlevs:adapter id="HaCorrelatingAdapter" provider="ha-correlating" >
              <wlevs:instance-property name="correlatedSource" ref="clusterCorrelatingOutstream"/>
              <wlevs:listener ref="JMSOutboundAdapter"/>
              <wlevs:instance-property name="failOverDelay" value="2000"/>
              <wlevs:listener ref="CSVBean" />
         </wlevs:adapter>
         <bean id="CSVBean" class="com.oracle.cep.training.listeners.EventListenerCSV">
         </bean>
         <bean id="CSVOutboundJmsMessageConverter" class="com.oracle.cep.training.converter.CSVOutboundJmsMessageConverter">
         </bean>
         <wlevs:adapter id="JMSOutboundAdapter" provider="jms-outbound">
              <wlevs:instance-property name="converterBean" ref="CSVOutboundJmsMessageConverter"/>
         </wlevs:adapter>
         <wlevs:adapter id="JMSInboundEventsAdapter2" provider="jms-inbound">
              <wlevs:instance-property name="converterBean" ref="CSVInboundMessageConverter"/>
         </wlevs:adapter>
         <wlevs:channel id="clusterCorrelatingOutstream" event-type="StringEvent" advertise="true">
              <wlevs:source ref="JMSInboundEventsAdapter2"/>
         </wlevs:channel>
         <wlevs:adapter id="adapter" provider="httppub" />
    </beans>

    Sorry maybe I should have gave detailed information:
    On the visualizer I opened the EPN->right click on the http pub adapter->open panel-> trace event->put the channel name->start->get a message "you are about to start event tracing"->pressOK
    nothing happens the status stays OFF.
    In the Eclipse (I run the server from the Eclipse) I get:
    <20:44:33 IST 08/12/2011> <Error> <EventInspector> <BEA-2060506> <Stage adapter cannot be configured for event tracing because it is not an event source. The stage must implement StreamSource or EventSource to be an event source.>
    When going to view strean the channel is not there.
    Am I doing something wrong?

  • Pub/Sub Upgrade question

    I'm in the process of upgrading a 4.x CUCM Pub/Sub to 8.5.
    The new hardware I have doesn't support anything below 8.5 so I used a "swing server" for the DMA export/import, etc.
    To upgrade the swing server I used an upgrade ISO I had previously downloaded to 8.5.1.13900-5.
    Then, I installed 8.5 from disk, upgraded it to 8.5.1.13900-5 and did a backup on the swing server and a restore on the new server.
    So far, everything is fine and dandy.
    Now, for the sub...
    At first it wouldn't install because the disk version of CUCM I have isn't the same as the active one.  So I rebooted the Pub into the inactive (downgraded) partion and then I got the sub to install since it recogized that the Pub was on the same version.
    So now I need to get these both on the 8.5.1.13900-5 where the data import is located.  I tried upgrading the sub first (to the inactive partion) figuring once that is done I'll just reboot the Pub into the correct version and then the Sub. 
    However, the Sub failed twice on the upgrade with an error saying it failed reading from the source file.  So, I rebooted the Pub into the correct version and I'm trying again to upgrade the Sub.  Hopefully this will work.
    So, where did I go wrong and what should I do differently?
    All criticism accepted!
    Thanks!

    The upgrade failed again and I noticed that all the services on the Sub were deactivated and they would not start due to a database error.
    I then rebooted the Pub into the inactive partition which is the downgraded version matching the current Sub version.  This allowed me to activate the services on the Sub.
    Then,  I ran the upgrade on the Sub and it seemed to take.  I then rebooted the Pub into the correct (upgraded) version.  I went to switch versions on the Sub but it only show the active version being the lower (incorrect) version.  I rebooted anyway thinking it may boot into the upgraded version but it didn't.
    When both servers came up, the Pub into the correct (upgraded) version and the Sub into the wrong version I checked the services on the Sub and they're activated and running.  I'm trying to run the upgrade again and I selected to reboot into the inactive partition automatically this time.
    Thoughts?  I feel like I'm chasing my tail...

  • Tuxedo calling EJB in pub/sub model

    Hello Everyone,
    I have a tuxedo application which works on pub/sub architecture. I have an eLink
    adapter which publishes the data from the database and an another adapater which
    has subscribed for it. So once this gets the data(tuxedo server-c program) how
    does this call EJB(java)in my WLE Domain 5.1v . does JOLT/JET help in such scenarios?
    Just wondering JOLT enabling of the server (the server which subscribes for the
    data) helps here!
    Please help. It's urgent.
    with regds
    siva

    Hi,
    we have exactly the same problem!! We also use FP14
    Please help!
    Greetings
    Thomas

  • CUCMv8 install pub sub validation error

    I am doing a fresh install of a CUCM pub sub. The version is 8. Cisco sent a DVD with 8.0.1 version of CUCM installation software. The cisco servers probably had a pre loaded installation software with version 8.0.2. Somehow after I started installing the Pub, it installed the 8.0.2.40000-1 version, totally ignoring the 8.0.1.10000-26 on the DVD. Once I finished with the Pub and started installing the Sub, after the first node access configuration there was an error which said the version on Pub does not match the one on Sub. I guess the DVD erased the partition on the Sub which had the 8.0.2.40000-1 on it and went ahead with installing 8.0.1.10000-26
    How do I rectify this? Should I reinstall the Pub with 8.0.1.10000-26 and follow suit on the Sub? Or should I download 8.0.2.40000-1 from the Cisco support and try installing 8.0.2 on the Sub? My question is since the Sub is a blank server with nothing on it, how would I be able to tftp into it from the Pub's CLI and push the 8.0.2 iso? Cisco does not upload bootable iso files and at the same time does not recommend converting non bootable to bootable files. Hence the solution of downloading non bootable 8.0.2 iso files and converting into a bootable DVD and installing is out of question.
    Cisco rep suggested I install 8.0.3. Can I just download 8.0.3, burn a DVD (he said its bootable file) and pop it into the server and commence installation?
    Thanks, appreciate your help.

    Hi
    Basically the download images from Cisco are not bootable (primarily to make life difficult for engineers, but also to discourage piracy I suspect). This leaves you two main choices:
    1) Yes, you can boot the publisher from 8.0.1 media you have, install 8.0.1, and then continue your subscriber build. If you like you can then download any 8.0(x) image from Cisco and upgrade using the normal documented procedures.
    2) Alternatively, if your sub is running 8.0.1, partway through the install it will say 'do you wish to install a patch as part of this installation'... if you pick yes, you can then point the server at a downloaded version (e.g. the same version as your pub is running) and it will apply that version. You would be using your existing media to boot the server, and then applying the latest downloaded version.
    If you intend to go to 8.0.3 you may just upgrade your pub, and then do step two above on your sub (boot from your media, and then apply an 8.0.3 download). You can apply the downlaoded file from an SFTP server or from a burned DVD.
    Regards
    Aaron
    Please rate helpful posts...

  • A question regarding Synchronous, Pub-Sub non-durable model

              Scenario:
              Non-durable, publish-subscribe, syncronous model.
              Publisher1 and Publisher2 both post messages to a Topic at the same time. How to
              design the non durable Subscribers that would be able to obtain both these messages
              in the same thread?
              e.g. if i in my program I create 2 subscribers, with selectors configured for the
              2 different messages...
              program start
              1. create sub1 using selector1 for topic1
              2. create sub2 using selector2 for topic1
              3. sub1.receive(timeout)
              4. sub2.receive(timeout)
              5. further processing using both the obtained messages
              6. program end.
              In the above case, if messages arrive at the same time in the topic, only sub1 will
              be able to get the message, as sub2 won't be active at that time.
              Is there anyway to acheive this considering Synchronous, Pub-Sub non-durable model
              is to be used?
              Many thanks...
              

              Thanks for the response.
              Is a subscriber active the moment it is created?
              e.g. objSub=tsession.createSubscriber(topic,strMessSelector,true);
              or it is said to be active when we call
              objSub.receive() (in case of synchronous subscriber)
              "Shean-Guang Chang" <[email protected]> wrote:
              >I don't know the details of the design. You can use a single subscriber
              >without a selector and then do two receive to get both message.
              >If you have to use selector so sub1 can only select message from pub1 and
              >sub2 can only select message from pub2 then you need sub3 without a
              >selector and sub3 will do blocking receive first and then once the sub3
              >receives a message you can use sub1 and sub2 to do receiveNoWait.
              >
              >e.g.
              >while (true) {
              > if (sub3.receive() ! = null) { // have message in the topic
              > if (sub1.receiveNoWait() != null) { // got message from pub1
              > do something
              > }
              > if (sub2.receiveNoWait() != null) {// got message from pub2
              > do something
              > }
              > }
              >}
              >
              >"vinay s" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Scenario:
              >> Non-durable, publish-subscribe, syncronous model.
              >> Publisher1 and Publisher2 both post messages to a Topic at the same time.
              >How to
              >> design the non durable Subscribers that would be able to obtain both these
              >messages
              >> in the same thread?
              >> e.g. if i in my program I create 2 subscribers, with selectors configured
              >for the
              >> 2 different messages...
              >>
              >> program start
              >> 1. create sub1 using selector1 for topic1
              >> 2. create sub2 using selector2 for topic1
              >> 3. sub1.receive(timeout)
              >> 4. sub2.receive(timeout)
              >> 5. further processing using both the obtained messages
              >> 6. program end.
              >>
              >> In the above case, if messages arrive at the same time in the topic, only
              >sub1 will
              >> be able to get the message, as sub2 won't be active at that time.
              >>
              >> Is there anyway to acheive this considering Synchronous, Pub-Sub
              >non-durable model
              >> is to be used?
              >>
              >> Many thanks...
              >
              >
              

  • Can NitroX be pluged into IBm WSAD 5.1.1 ?

    empty

    We are still working on the WSAD integration. The current build does not
    support it yet..
    M7 Support
    "Alex" <[email protected]> wrote in message
    news:40720c34$[email protected]..
    Hi,I am using IBM WSAD 5.1.1 as my main developing tool.
    How can I use NittoX in IBM WSAD 5.1.1 ?
    Thank you

  • Issues with IBM WSAD

    Is there any issue in deploying applications developed using JDeveloper on IBM WSAD
    Thanks
    Satya

    Can you give some examples of Arabic characters from 420 that won't convert to 8859-6 or 1256 that you think should do so?
    8859-6 and Windows 1256 are overall not very much alike. They are alike in terms of the Arabic characters themselves, but 1256 has a lot of other characters that won't convert into 8859-6. Are you sure you are looking at conversions of Arabic characters? For example, 1256 and 8856-6 are the same from 0xC1 - 0xD6, but not at all the same from 0xAE to 0xBE.
    Another issue that may be tripping you up: code page 420 has a lot of initial, medial, and final form characters in it. Windows 1256 and ISO 8859-6 do not have such characters. 420 is from the era where you didn't have a nice Arabic layout subsystem drawing text on your workstation screen. To convert between 420 and 1256/8859-6 you actually need to do something a bit smarter than a one-to-one conversion. I haven't looked at the conversions in Java lately, but perhaps this conversion has become a bit more rigorous in 1.5.

Maybe you are looking for