OWB client hanging

Installed OWB client 9.2 on my local windows XP machine.
When I start it it's hanging. I have more than 500 Mb memory available.
Any suggestion?
TIA

This is a bug due to an expired java package from Sun...If you have access to Metalink, check out bug # 4452391
To upgrade, get the below referenced files from
http://java.sun.com/products/jce/index-122.html
Then, follow the instructions below.
Here is a little info from bug 4452391:
The Java Cryptography Extension (JCE) 1.2.1 that ships with OCS 9.0.4.2 makes use of a certificate that expires on June 28, 2005. On or after June 28, 2005 applications will no longer be able to use JCE 1.2.1. More information about this issue can be found on the web: .
Upgrading to JCE 1.2.2 should solve this issue.
In a nutshell, the following jar files in the $ORACLE_HOME:
$ORACLE_HOME/jdk/jre/lib/ext/US_export_policy.jar $ORACLE_HOME/jdk/jre/lib/ext/jce1_2_1.jar $ORACLE_HOME/jdk/jre/lib/ext/local_policy.jar $ORACLE_HOME/jdk/jre/lib/ext/sunjce_provider.jar
should be replaced by the following jar files:
jce1.2.2/lib/US_export_policy.jar
jce1.2.2/lib/jce1_2_2.jar
jce1.2.2/lib/local_policy.jar
jce1.2.2/lib/sunjce_provider.jar
Delete the jce1_2_1.jar file (You may have to reboot before it will let you delete it.)
It should then work for you.

Similar Messages

  • Cannot launch OWB Client 9.0.3.36.3

    I applied the 9.0.3.36.3 patch Archive successfully without any problems. Post installation, the OWB Client hangs without even bringing up the login dialog box. My desktop OS is Windows XP. Before this patch application, there was no problem with OWB Client. Anyone had this problem or know of this issue?
    Thanks,
    Chida

    Hi Chida,
    What happens if you try to start the client using the .Bat file? It is in your OWB home, owb\bin\wind32
    This gives you and us an idea on what is happening. If you get to the text in the dos box, please copy it and add it to the forum. We'll take a look at it.
    Thanks,
    Jean-Pierre

  • Installing OWB client in windows

    Hello,
    My OWB is running in linux, the version is 11.1.0.7.0. Now every time, i use vncserver to open the owb mapping and it is painful proces. I wanted to install
    client on my local machine and i want to access the OWB.
    I downloaded the OWB client from oracle website. I just found this link and from the below link, i got into oracle site.
    http://humbletrader.blogspot.com/2006/01/install-owb-client.html
    The downloaded zip file name is OWB_10.1.0.4.0.zip
    The installation is successful. Then when i connect Oracle warehouse builder screen, it accept my userid/password(Oracle warehouse builder repositary username, password).
    then it ask me to select repository name(DESIGNCENTER_VIEW/USER). I selected DESIGNCENTER_VIEW. Then it is asking me to register this repository. I pressed YES. But is hanging for ever... Any one has seen this kind of problem??

    Hi ,
    If your OWB server version is 11.1.0.7.0 then you can not connect from any OWB client whose version is not 11.1.0.7.0.
    You can download OWB 11.1.0.6 standalone software from
    http://www.oracle.com/technology/software/products/warehouse/index.html
    On top of it you have to apply 11.1.0.7 patch 6890831
    After that you can connect from OWB 11.1.0.7 client to OWB 11.1.0.7 server .
    Thanks,
    Sutirtha

  • Error while fetching data from OWB Client using External Table.

    Dear All,
    I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
    I facing some issue in fetching data from a Flat File using external table from OWB Client.
    I have perform all the steps without any error but when I try to view the data, I got the following error.
    ======================================
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
         at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
         at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
         at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
         at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ===========================
    In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
    Is anybody face the same issue?
    Do we need to configure something before loading data from a flat file from OWB Client?
    Any help would higly appreciable.
    Regards,
    Manmohan Sharma

    Hi Detlef / Gowtham,
    Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
    One way I have achieved as suggested by you
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copy all flat files on OWB Server
    5) Updated the location which I created at the client.
    Other way
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
    Hence my problem solved.
    Thanks a lot.
    Regards,
    Manmohan

  • OWB Client installation on Solaris

    Hi,
    Is there a OWB client installation available for Solaris 10 x86. What i am looking for is Stand alone client installation without server components, same as we have for Windows.
    If available please tell me from were i can download it.
    Thank You,
    Niranjan.

    Have you check this:
    http://www.oracle.com/technology/software/products/warehouse/index.html

  • Owb client+performance+x-windows

    Hi,
    We are using 11.2.0.1 and finding the performance of OWB slow e.g opening mappings, control center etc.
    Machine has enough memory (2.5 GB and checked memory being used in task manager for owb.exe (about 400 M), total being used on PC at any time for all applications aboout 1.5gb and ruled out network latency as tested other cleint/server applications to access the same machine and dataabse and these are fine performance-wise.
    The server is located in the same building as the cleint and is a UNIX server.
    We are using the cumulative patch recommended by Oracle for performance reasons - still same problem.
    Anybody any other tips to get design center/control center to open quickly etc?
    Used previous suggestions such as Tools/Optimise repository etc and purging of audit tables.
    Another question
    Is it possible to run owb client (i.e. open/amend/deploy/run mapppings etc with the windows interface directly on the UNIX server (~e.g using x-windows) as opposed to the client WINDOWS pc
    Many Thank

    Hi
    There are patches with performance related fixes in this area, if you can upgrade to 11.2.0.2 that is advised otherwise there is a mega patch for 11.2.0.1;
    BEST --> OWB 11.2.0.2 + megapatch v3 (12874883)
    ALTERNATE --> OWB 11.2.0.1 + patch for bug 10270220: Mega Patch v2 (supersedes patch 9802120)
    Cheers
    David

  • Session Bean Client Hangs when one Server in Cluster Fails

    We are testing several failure scenarios and one has come up that concerns us.
    Some background: Were running a WLS6.1 cluster on two separate machines. We
    start a test client consisting of 50 active threads and let them start calling
    into a session bean. After a couple minutes we pull the network plug out of one
    of the machines to simulate an uncontrolled crash of the machine. Once the plug
    is pulled the clients hang and of more concern any new clients that we startup
    also hang. Has anyone successfully solved this problem?

    When we kill one of Weblogic instances in the cluster none of the clients fail.
    All of our clients fail-over to the remaining servers. It's pulling the network
    plug to our of the server that causes everything to hang. Not just or test client,
    but the other servers in the cluster hang. The control panel doesn't respond
    at all either. We currently have a support case open with BEA #348184 about this.
    We've gotten a prompt response in which we were asked to modify our configuration
    by deploying our beans to each individual server rather than the cluster. We
    did this, but the results so far have not changed.
    Thanks for the feedback,
    Howard.
    "Ade Barkah" <[email protected]> wrote:
    We haven't encountered something like that, so it could be a setup problem.
    Can you verify that the t3 url hostname the client threads use resolves
    to the
    ip addresses of each machine in the cluster? Are all machines in the
    cluster
    listening at the same port number? Also, does it matter if you kill one
    of the
    weblogic processes instead of pulling the plug? (i.e., if you leave the
    network
    layer up?)
    Check also that your threads aren't simply blocking each other when the
    server
    goes down? E.g. start multiple test client processes with one thread
    each just
    to test.
    What we notice is (with round-robin cluster policy), as we bring down
    one of
    the servers, the clients will continue to work on the second server,
    but will slow
    down between method invocations as they still attempt to connect to the
    downed
    server.
    After a short period of time (~30 seconds) the clients will fully switch
    to the
    second machine and processing continues at full speed again, until the
    downed
    machine is brought back up, at which point work is distributed evenly
    again.
    Also, when the first server is brought down, some of the clients may
    terminate
    with a PeerGoneException (or something similar to that.) So unless your
    threads
    are catching exceptions, they might terminate as well.
    regards,
    -Ade
    "howard spector" <[email protected]> wrote in message news:[email protected]...
    We are testing several failure scenarios and one has come up that concernsus.
    Some background: Were running a WLS6.1 cluster on two separate machines.We
    start a test client consisting of 50 active threads and let them startcalling
    into a session bean. After a couple minutes we pull the network plugout of one
    of the machines to simulate an uncontrolled crash of the machine. Once the plug
    is pulled the clients hang and of more concern any new clients thatwe startup
    also hang. Has anyone successfully solved this problem?

  • How to import SH Sample Dimensions and Cubes with OWB Client

    Hi, is there a functionality to import the Dimensions and Cubes from the sample to reuse and manipulate them within the OWB Client?
    I can add Dimensions in the Enterprise Manager but mapping should be difficult- right?
    Specs: DB 10g rel2, OWB 10.1.0.4

    dimension - either define a table on your own, or use the data modeler and physically define a new dimension.
    Cube - same as above.
    as for levels and hierarchies, this can also be done in the data modeler. You can specify keys, levels, attributes, measures...all that stuff for dims and facts. There many tabs on the lower half of the dimension modeler screen that control this.
    Check out the oracle by examples for easy tutorials.

  • Facing problem in connection with OWB client

    Dear All
    Greetings!!!
    Im new to Datawarehouse building. I have installed OWB R1 at my own pc.I am facing problems in connecting OWB client..What exactly to put in Host name and Oracle Service name. i am logging in with the same system/password with normal login. Please guide me to enter in the datawarehouse world..
    Thanx and Regards
    Nukesh Bhoyar
    Mumbai(India)

    Hi Nukesh
    I know this doesn't really answer your question but Oracle have just made Release 2 of Warehouse Builder available and based on all of the info through this forum and other places, if I was you I would download R2 and install it instead of R1, as it is deemed to have way more functionality.
    Cheers
    M

  • OWB CLient Application Problem

    Hi All,
    We have the installed the OS as Windows 2003 server Enterprise Edition and on which we have installed the ORACLE 9i Database. Even our OWB Design time installation went on successfuly with the creation of Target schema & Run time repository schema. Still the problem we are facing is as soon as we try to start the OWB Client application it gets hung immediatly after showing the first popup of OWB Client server 9.2.0 screen. Please let us know is there any other setting we need to do for this to start off smoothly. Is there any OWB server installation needed? Your early reply would be very helpful.
    Thanks & Best Regards,
    Ratna

    Hi Ratna,
    Please follow the steps as given:
    1) change datetime in your client machine to current date.
    2) reboot your machine
    3) move the following files to another backup place eg desktop:
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/US_export_policy.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/jce1_2_1.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/local_policy.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/sunjce_provider.jar
    Where $OWB92_CLIENT_HOME is the path to your owb9.2 client home.
    4) Copy the 4 replacement files, (mail me to - [email protected], I'll send you the 4 .jar files), to the directory OWB92_CLIENT_HOME/jdk/jre/lib/ext/
    5)start owb…
    If all has gone well, delete the files moved in step 3.
    Cheers,
    Swagata

  • OWB client standalone 11.2.0.3 error API5036 to repository 11.2.0.2

    Hi
    can we connect to a repository 11.2.0.2.0 with a OWB client standalone 11.2.0.3.0?
    actually we have this error:
    API5036: Client version 11.2.0.3.0 is not compatible with repository version 11.2.0.2.0
    client is windows7 (64bits)
    please, how to solve this issue?
    thanks

    On the client machine :
    Edit <OWB_HOME>/owb/bin/admin/Preference.properties
    set the following option:
    OverrideRepositoryVersionCheck=true
    Disclaimer : Then proceed at your own risk :)

  • Cannot start OWB Client

    My OWB Client was working fine earlier today. When I try to start now I get the OWB Logo screen but I never get to the login screen. When I run owbclient.bat i get the following:
    C:\oracle\ora92\owb\bin\win32>call setowbenv
    JVM LIMIT SET TO: 384M
    Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.Secu
    rityException: Cannot set up certs for trusted CAs
    at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
    at javax.crypto.Mac.getInstance([DashoPro-V1.2-120198])
    at oracle.wh.repos.impl.mcm.foundation.MCMHash.<init>(MCMHash.java:44)
    at oracle.wh.repos.impl.mcm.foundation.MCMHash.getInstance(MCMHash.java:
    29)
    at oracle.wh.repos.impl.mcm.MCMServiceImpl.<init>(MCMServiceImpl.java:16
    4)
    at oracle.wh.repos.impl.mcm.MCMServiceImpl.getInstance(MCMServiceImpl.ja
    va:171)
    at oracle.wh.repos.impl.APIController.init(APIController.java:107)
    at oracle.wh.util.ControllerInitializer.initControllers(ControllerInitia
    lizer.java:118)
    at oracle.wh.util.ControllerInitializer.initBackendControllers(Controlle
    rInitializer.java:36)
    at oracle.wh.util.ControllerInitializer.initAllControllers(ControllerIni
    tializer.java:22)
    at oracle.wh.ui.framework.StaticLoader.main(StaticLoader.java:114)
    Any help provided would be much appreciated.
    Alan

    I'm working now. The solution is given in thread
    Re: OWB client not working by Patrick
    I'll copy it here:
    1. Download the JCE 1.2.2 package from the following web page:
    http://java.sun.com/products/jce/index-122.html
    2. Either reboot your Client machine or Stop all Oracle software.
    3. Rename or remove the following files :
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/US_export_policy.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/jce1_2_1.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/local_policy.jar
    $OWB92_CLIENT_HOME/jdk/jre/lib/ext/sunjce_provider.jar
    4. Copy the following files from the JCE 1.2.2 package to the directory OWB92_CLIENT_HOME/jdk/jre/lib/ext/ :
    jce1.2.2/lib/US_export_policy.jar
    jce1.2.2/lib/jce1_2_2.jar
    jce1.2.2/lib/local_policy.jar
    jce1.2.2/lib/sunjce_provider.jar
    5. Rename jce1_2_2.jar as jce1_2_1.jar
    6. Now try launching OWB 9.2 client.

  • OWB client error

    when i am trying to login into my oracle 10.2.0.4 database repository installed on a linux server from my OWb client 10.2.0.31, i am getting the following error:
    API5036: Client Version 10.2.0.31 is not compatible with repository version 10.2.0.4
    how rectify this error

    Solution: Get the patchset from: https://metalink.oracle.com/CSP/ui/index.html
    Source of the below table is from Metalink website.
    10.2.0.4      7005587      AIX5L Based Systems (64-bit)      10-sep-2008      1.1G           
         7005587      HP-UX Itanium      10-sep-2008      954M           
         7005587      HP-UX PA-RISC (64-bit)      10-sep-2008      808M           
         7005587      Linux-x86-64 (AMD64/EM64T)      30-aug-2008      530M           
         7005587      Linux x86      12-jul-2008      530M           
         7005587      Solaris Operating System (SPARC 64-bit)      10-sep-2008      593M           
         7005587      Windows 32-bit and 64-bit (AMD64/EM64T)      11-jul-2008      528M           
         7005587      Windows Vista 32-bit and 64-bit      1-dec-2008      293M      32-bit patch certified on 64-bit platform also      
         7005587      Windows 64-bit Itanium      1-dec-2008      579M           
    API5036 Error
    please note that the versions mentioned in the above thread might be different but the principles remain the same. Your client and repository verison should be the same at all times.
    Edited by: Darthvader-647181 on Dec 16, 2008 1:24 AM
    Edited by: Darthvader-647181 on Dec 16, 2008 1:31 AM

  • OWB client installation

    hi,
    We have done the server side installation completely along with the client but the OWB Client window is not coming up.
    Please suggest the reasons for the same.
    Regards,
    Pankaj

    Hi Pankaj,
    what version of OWB yor are using? What do you mean by 'OWB Client window is not coming up'? Do you mean to say that you are clicking on design center icon (if its is a 10g version) from start > All programs > OWB HOME > warehouse builder > design center and the login screen is not opening ?
    Please elaborate a bit more !
    Cheers,
    Swagata

  • ActiveMQ-CPP client hangs when connect ActiveMQ-CPP client & OpenMQ broker

    I am trying to connect an ActiveMQ-CPP client with an Oracle OpenMQ broker via STOMP. Both manufacturers claim this will work, and I have been able to get an ActiveMQ-CPP client to connect to an ActiveMQ broker via STOMP, an OpenMQ client with an OpenMQ broker via STOMP, and an OpenMQ client with an ActiveMQ broker via STOMP without problems, but the only one missing is what I need- ActiveMQ-CPP client to connect with OpenMQ broker.
    I am using Fedora Linux and am using the provided "example" script for ActiveMQ-CPP, changing the brokerURL to be "tcp://localhost:61613?wireFormat=stomp" instead, where the OpenMQ STOMP bridge is located at localhost:61613.
    On the OpenMQ end, I receive the request to connect by the client and I start a connection:
    INFO: Create JMS connection for user admin with client id ID:csa-nexus-57767-1281630228652-1:0
    Aug 12, 2010 8:23:48 AM
    INFO: Started JMS connection 8950669406784000768[ID:csa-nexus-57767-1281630228652-1:0] for user admin
    This is where the ActiveMQ-CPP client hangs at "connection->start", or if this is removed, "connection->createSession".
    Any help would be appreciated. Thanks!

    I need to use ActiveMQ-CPP because I need a C++ messaging client which supports failover, which OpenMQ's C client does not. I thought it was unlikely that it wouldn't be able to connect as well. I can't find a good way to debug the ActiveMQ-CPP client enough to know whether the problem is on the ActiveMQ-CPP client's end or the OpenMQ broker's end.
    Here is the source code for installing ActiveMQ-CPP, that is how you install it: http://activemq.apache.org/cms/activemq-cpp-322-release.html.
    The example comes bundled with ActiveMQ-CPP installation, but I'll show you parts of the main.cpp file that does all of the work:
    class HelloWorldConsumer : public ExceptionListener,
    public MessageListener,
    public Runnable {
    private:
    this->brokerURI = brokerURI;
    virtual ~HelloWorldConsumer(){
    cleanup();
    void close() {
    this->cleanup();
    void waitUntilReady() {
    latch.await();
    virtual void run() {
    try {
    auto_ptr<ConnectionFactory> connectionFactory( ConnectionFactory::createCMSConnectionFactory( brokerURI ) );
    // Create a Connection
    connection = connectionFactory->createConnection("admin", "admin");
    connection->start();
    connection->setExceptionListener(this);
    // Create a Session
    if( this->sessionTransacted == true ) {
    session = connection->createSession( Session::SESSION_TRANSACTED );
    } else {
    session = connection->createSession( Session::AUTO_ACKNOWLEDGE );
    // Create the destination (Topic or Queue)
    if( useTopic ) {
    destination = session->createTopic( "TEST.FOO" );
    } else {
    destination = session->createQueue( "TEST.FOO" );
    // Create a MessageConsumer from the Session to the Topic or Queue
    consumer = session->createConsumer( destination );
    consumer->setMessageListener( this );
    std::cout.flush();
    std::cerr.flush();
    // Indicate we are ready for messages.
    latch.countDown();
    // Wait while asynchronous messages come in.
    doneLatch.await( waitMillis );
    } catch( CMSException& e ) {
    // Indicate we are ready for messages.
    latch.countDown();
    e.printStackTrace();
    // Called from the consumer since this class is a registered MessageListener.
    virtual void onMessage( const Message* message ){
    static int count = 0;
    try
    count++;
    const TextMessage* textMessage =
    dynamic_cast< const TextMessage* >( message );
    string text = "";
    if( textMessage != NULL ) {
    text = textMessage->getText();
    } else {
    text = "NOT A TEXTMESSAGE!";
    printf( "Message #%d Received: %s\n", count, text.c_str() );
    } catch (CMSException& e) {
    e.printStackTrace();
    // Commit all messages.
    if( this->sessionTransacted ) {
    session->commit();
    // No matter what, tag the count down latch until done.
    doneLatch.countDown();
    // If something bad happens you see it here as this class is also been
    // registered as an ExceptionListener with the connection.
    virtual void onException( const CMSException& ex AMQCPP_UNUSED) {
    printf("CMS Exception occurred. Shutting down client.\n");
    ex.printStackTrace();
    exit(1);
    int main(int argc AMQCPP_UNUSED, char* argv[] AMQCPP_UNUSED) {
    activemq::library::ActiveMQCPP::initializeLibrary();
    std::cout << "=====================================================\n";
    std::cout << "Starting the example:" << std::endl;
    std::cout << "-----------------------------------------------------\n";
    std::string brokerURI =
    "tcp://localhost:61613"
    "?wireFormat=stomp"
    // "&soConnectTimeout=5"
    // "&connection.sendTimeout=5"
    // "&connection.useAsyncSend=true"
    // "&transport.useInactivityMonitor=false"
    // "&connection.alwaysSyncSend=true"
    // "&connection.useAsyncSend=true"
    // "&transport.commandTracingEnabled=true"
    // "&transport.tcpTracingEnabled=true"
    // "&wireFormat.tightEncodingEnabled=true"
    //============================================================
    // set to true to use topics instead of queues
    // Note in the code above that this causes createTopic or
    // createQueue to be used in both consumer an producer.
    //============================================================
    bool useTopics = true;
    bool sessionTransacted = false;
    int numMessages = 2000;
    long long startTime = System::currentTimeMillis();
    HelloWorldProducer producer( brokerURI, numMessages, useTopics );
    HelloWorldConsumer consumer( brokerURI, numMessages, useTopics, sessionTransacted );
    // Start the consumer thread.
    Thread consumerThread( &consumer );
    consumerThread.start();
    // Wait for the consumer to indicate that its ready to go.
    consumer.waitUntilReady();
    // Start the producer thread.
    Thread producerThread( &producer );
    producerThread.start();
    // Wait for the threads to complete.
    producerThread.join();
    consumerThread.join();
    long long endTime = System::currentTimeMillis();
    double totalTime = (double)(endTime - startTime) / 1000.0;
    consumer.close();
    producer.close();
    std::cout << "Time to completion = " << totalTime << " seconds." << std::endl;
    std::cout << "-----------------------------------------------------\n";
    std::cout << "Finished with the example." << std::endl;
    std::cout << "=====================================================\n";
    activemq::library::ActiveMQCPP::shutdownLibrary();
    // END SNIPPET: demo The places where the code will hang upon connection are "connection->start() and connection->createSession()". Again, this happens with any ActiveMQ client, no matter the language, and via Stomp, both should be supported. But using an OpenMQ client with ActiveMQ broker works perfectly. And using this code with its own ActiveMQ broker still via Stomp works perfectly as well.
    Thanks!

Maybe you are looking for

  • Problem with unicode in MIME text/html

    Hi; I have a java program that sends email by sending it to our exchange server using SMTP. The email has both a To and a Bcc in the single email sent. The bcc addressee receives the email fine. The to address however has a problem with chars that ar

  • How do i add a rescue email to an existing apple id

    Is it possible to add a rescue email to an existing apple ID? If so, what are the steps?

  • IPhone is not syncing with iTunes after iOS 7.1 update

    I have an iPhone 4S and an iPad 2, and neither of them will sync my new music from iTunes after updating both of them to iOS 7.1.  When I press sync on my computer, the steps start at the top of iTunes, but then it just finishes before it actually st

  • Report Layout is not same for excel and odf

    I have a footer created in my report layout When i export the report to pdf it displays at the end of the page but when I export it to an excel the footer displays just below my report data and not at the end Should there be a different layout for pd

  • Extracting files from Portfolio - problem with outlook email created portfolios

    Currently I have developed a plugin that can extract files from portfolios using:- PDNameTree tree = PDDocGetNameTree(pdDoc, ASAtomFromString("EmbeddedFiles")); and PDFileAttachmentFromCosObj But i've noticed with Outlook email created portfolios the