Re: Integrating C++ Client with MDB

2007-06-25 Thread emcee21
Tim Bish wrote: > > Creating a Java client to test with might help you rule out the if its > the MDB or the C++ code that is faulty. Its just another Data Point to > try and help figure out what's wrong. > I had a similar problem, using the Java client but it could easily be the same issue.

Re: Integrating C++ Client with MDB

2007-06-07 Thread Timothy Bish
Creating a Java client to test with might help you rule out the if its the MDB or the C++ code that is faulty. Its just another Data Point to try and help figure out what's wrong. alexvs wrote: That's what I tried first, but "topic/SciTegic", according to jboss is the jndi name of the topic.

Re: Integrating C++ Client with MDB

2007-06-07 Thread alexvs
That's what I tried first, but "topic/SciTegic", according to jboss is the jndi name of the topic. The actual topic name is SciTegic, but maybe something else has to be appended to the name, I have no clue. This is for a huge C++ application we're trying to integrate with an APP server, so, unfo

RE: Integrating C++ Client with MDB

2007-06-07 Thread alexvs
Yes, I have. datanga wrote: > > Hello, > >> destination = session->createTopic( "TOPIC.SciTegic" ); // IS THIS THE >> RIGHT NAME TO USE? > > Have you tried to this? > > destination = session->createTopic( "topic/SciTegic" ); > > Cheers, > > Desire > > > -- View this message in contex

Re: Integrating C++ Client with MDB

2007-06-07 Thread Nathan Mittler
BTW, have you tried making a Java client that does not use JNDI? You should have the same result as using the C++ client. Perhaps you could simplify your problem by cooking up a simple Java client and eliminating C++ altogether. On 6/7/07, Nathan Mittler <[EMAIL PROTECTED]> wrote: That would

Re: Integrating C++ Client with MDB

2007-06-07 Thread Nathan Mittler
That would be my guess (use "topic/SciTegic") ... the problem of creating topics vs using pre-existing ones should not be a non-issue. All topics/queues in ActiveMQ are dynamic, so it doesn't matter how you create them (from the client-side or server-side). So long as the names are the same, it

RE: Integrating C++ Client with MDB

2007-06-07 Thread Desire ATANGA
Hello, > destination = session->createTopic( "TOPIC.SciTegic" ); // IS THIS THE > RIGHT NAME TO USE? Have you tried to this? destination = session->createTopic( "topic/SciTegic" ); Cheers, Desire

Re: Integrating C++ Client with MDB

2007-06-06 Thread alexvs
Hi Albert Same here; I see it listed on jboss JMX console as well. If C++ calls with a topic name of TEST.FOO, that topic is added to the list. However, nothing happens when I use the exact same destination name as the one my MDB is listening to. In a sense I am not "creating" a topic, I am me

Re: Integrating C++ Client with MDB

2007-06-06 Thread Albert Strasheim
Hello You could try using JMX to look at the queues and topics on the broker. Maybe JNDI is adding something to name, as you said. If I pass the string "foo" to Session::createTopic, I end up with a topic called "foo" which I can see in JMX. Cheers, Albert

Re: Integrating C++ Client with MDB

2007-06-06 Thread alexvs
Hi Albert - Yes, I have. No luck. Albert Strasheim wrote: > > Hello > > On Wed, 06 Jun 2007, alexvs wrote: > >> I am just trying to replicate what's bound to Java's JNDI. >> (java:topic/SciTegic). Also when I output the message to the console >> from >> the MDB, I get this: >> >> 3:37:45,

Re: Integrating C++ Client with MDB

2007-06-06 Thread Albert Strasheim
Hello On Wed, 06 Jun 2007, alexvs wrote: > I am just trying to replicate what's bound to Java's JNDI. > (java:topic/SciTegic). Also when I output the message to the console from > the MDB, I get this: > > 3:37:45,280 INFO [STDOUT] onMessage() - SpyTextMessage { > Header { >jmsDestination

Re: Integrating C++ Client with MDB

2007-06-06 Thread alexvs
I am just trying to replicate what's bound to Java's JNDI. (java:topic/SciTegic). Also when I output the message to the console from the MDB, I get this: 3:37:45,280 INFO [STDOUT] onMessage() - SpyTextMessage { Header { jmsDestination : TOPIC.SciTegic jmsDeliveryMode : 2 jmsExpirati

Re: Integrating C++ Client with MDB

2007-06-06 Thread Albert Strasheim
On Wed, 06 Jun 2007, alexvs wrote: > destination = session->createTopic( "TOPIC.SciTegic" ); // IS THIS THE RIGHT > NAME TO USE? I think you just want "SciTegic". Do you know of any documentation that would indicate that you should prepend "TOPIC." ? Cheers, Albert

Re: Integrating C++ Client with MDB

2007-06-06 Thread alexvs
Thank you for your reply! Here is what I have on the Java side (ActiveMQ is embedded within JBOSS btw:) ConnectionFactory cf1 = (ConnectionFactory) ctx.lookup("TopicConnectionFactory"); Connection connection = cf1.createConnection(); Session session = connection.createSession(false, Session.AUTO

Re: Integrating C++ Client with MDB

2007-06-06 Thread Timothy Bish
You send the messages to a Destination with the same name as the one you've configured your MDB to listen on. regards Tim On Wed, 2007-06-06 at 10:53 -0700, alexvs wrote: > Hi guys, > > I need help! I have two extra days to finish this project and I can't > figure out how to make my C++ clien

Integrating C++ Client with MDB

2007-06-06 Thread alexvs
Hi guys, I need help! I have two extra days to finish this project and I can't figure out how to make my C++ client send messages to ActiveMQ and have these messages delivered to my MDB. I have the example running in C++, but I don't know how to locate the JMS topic or connection that would rou