ConnectionFactory issue

2013-06-26 Thread Sean Beck
I am trying to compile my java code and need javax.jms.ConnectionFactory. I am pretty sure I am including the right jar files in the classpath (geronimo-jms_1.1_spec-1.1.1.jar) because it does create my .class files properly. However when I run my program it gives me this: Exception in thread

Re: ConnectionFactory issue

2013-06-26 Thread Sean Beck
I am compiling like so: javac -cp /apache-activemq-5.8.0/lib/geronimo-jms_1.1_spec-1.1.1.jar:/apache-activemq-5.8.0/lib/camel/camel-jms-2.10.3.jar:/apache-activemq-5.8.0/activemq-all-5.8.0.jar:/apache-activemq-5.8.0/lib/camel/camel-core-2.10.3.jar:. QueueListener.java So everything already

Re: ConnectionFactory issue

2013-06-26 Thread Sean Beck
christian.po...@gmail.comwrote: yep, compiling will produce the byte code. but when you run it, the runtime libs must be made available to the code that uses it. On Wed, Jun 26, 2013 at 4:58 PM, Sean Beck seanmckayb...@gmail.com wrote: I am compiling like so: javac -cp /apache

Re: ConnectionFactory issue

2013-06-26 Thread Sean Beck
Awesome that did it. Thanks! On Wed, Jun 26, 2013 at 6:06 PM, Christian Posta christian.po...@gmail.comwrote: yah, something might be dependent on spring stuff... check out that link i pasted.. should show how to include whole directories On Wed, Jun 26, 2013 at 5:03 PM, Sean Beck

ActiveMQ won't start

2013-06-25 Thread Sean Beck
I'm trying to run activemq on a new machine. I installed the binary and am starting it with bin/activemq start It gives the following output: INFO: Using default configuration (you can configure options in one of these file: /etc/default/activemq /root/.activemqrc) INFO: Invoke the following

Re: ActiveMQ won't start

2013-06-25 Thread Sean Beck
I checked the log file and it is empty. I went into my configuration as well and set JAVA_HOME to /opt/jdk1.7.0_25/jre/bin/java which is where java is installed and it didn't change anything either.

Re: ActiveMQ won't start

2013-06-25 Thread Sean Beck
Outputs this: INFO: Loading '/etc/default/activemq' INFO: Using java '/usr/bin/java' INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C) Can't start up: not enough memory

Re: ActiveMQ won't start

2013-06-25 Thread Sean Beck
Even though I commented out JAVACMD in the config file and am using JAVA_HOME it still continues to autodetect and use /usr/bin/java which I don't want either

Re: ActiveMQ won't start

2013-06-25 Thread Sean Beck
Just so everyone knows I figured it out. Instead of setting JAVA_HOME which it seemed to be ignoring, I set JAVACMD equal to the path to my jre rather than auto

ActiveMQ functionality to detect if certain messages are in a queue

2013-06-20 Thread Sean Beck
So I am sending files over to a server and there are two files with the same name but of a different type that are merged together on the server side. As soon as a file is received I send a message containing the type and the filename to a queue. Once both files are over on the server I want to

Re: ActiveMQ functionality to detect if certain messages are in a queue

2013-06-20 Thread Sean Beck
:37 PM, Sean Beck seanmckayb...@gmail.com wrote: So I am sending files over to a server and there are two files with the same name but of a different type that are merged together on the server side. As soon as a file is received I send a message containing the type and the filename

Re: ActiveMQ functionality to detect if certain messages are in a queue

2013-06-20 Thread Sean Beck
:47 PM, Sean Beck seanmckayb...@gmail.com wrote: So currently I'm using the libstomp library to send messages to my queue. Would I have to switch to some special Camel API to send messages or does my message get sent to Camel then to ActiveMQ? On Thu, Jun 20, 2013 at 1:43 PM, Christian

libstomp C message being read without me reading it

2013-06-11 Thread Sean Beck
I am using the C library libstomp to send a message to my broker. It sends my message, but it also dequeues my message. I don't want it to do that. I have removed my error checking to decrease verbosity. Here is my setup for the connection: apr_status_t rc; rc = stomp_connect(connection,

Re: libstomp C message being read without me reading it

2013-06-11 Thread Sean Beck
Awesome thanks On Tue, Jun 11, 2013 at 1:05 PM, Timothy Bish tabish...@gmail.com wrote: On 06/11/2013 02:53 PM, Sean Beck wrote: I am using the C library libstomp to send a message to my broker. It sends my message, but it also dequeues my message. I don't want it to do that. I have

What kind of connection does ActiveMQ-CPP use?

2013-06-04 Thread Sean Beck
I am having problems using SELinux and ActiveMQ + Apache together. Currently I have SELinux disabled and everything works, but I need it running eventually. I assume I just need to allow the applications to connect over certain ports, but I'm not positive on that. Do ActiveMQ-CPP and Stomp

Re: What kind of connection does ActiveMQ-CPP use?

2013-06-04 Thread Sean Beck
4, 2013 at 8:06 AM, Sean Beck seanmckayb...@gmail.com wrote: I am having problems using SELinux and ActiveMQ + Apache together. Currently I have SELinux disabled and everything works, but I need it running eventually. I assume I just need to allow the applications to connect over certain

Re: Connection to message broker hanging

2013-05-30 Thread Sean Beck
christian.po...@gmail.comwrote: What protocol are you using to connect to the broker? STOMP? Can you see what frames have gone to the broker? Can you take a thread dump of the broker and post here? On Tue, May 28, 2013 at 9:45 AM, Sean Beck seanmckayb...@gmail.com wrote: So I am using

Re: Connection to message broker hanging

2013-05-30 Thread Sean Beck
I ran setenforce 0 and all the problems disappeared. Why would disabling SE Linux fix this? On Thu, May 30, 2013 at 8:00 AM, Sean Beck seanmckayb...@gmail.com wrote: I am using fusemq, the C wrapper for ActiveMQ-CPP. The problem is I am using the broker with an Apache server module

SE Linux causing problems

2013-05-30 Thread Sean Beck
I sent out an email earlier and didn't really get any feedback. However I did manage to solve the problem by putting selinux in permissive mode. I would like to keep selinux in enforce mode though, and I was curious as to any suggestions on what policies I need to create or what ports I need to

Re: Help with OpenWire C

2013-05-28 Thread Sean Beck
all the library info, etc. it needs, and cms_destroyProducer() is definitely a part of the library. On Thu, May 23, 2013 at 3:23 PM, Timothy Bish tabish...@gmail.com wrote: On 05/23/2013 05:10 PM, Sean Beck wrote: does --prefix=/usr install it in the /usr directory? I moved everything

Connection to message broker hanging

2013-05-28 Thread Sean Beck
So I am using a consumer/producer with an apache module of mine and I have a script to test that the module is working properly. I started the message broker as root. I run my script as root. It seems to get stuck waiting for a response from the server. When I run httpd in gdb and step through

Help with OpenWire C

2013-05-23 Thread Sean Beck
I am new to ActiveMQ and am trying to use it with some C programs I am working on. I was unable to find a download link for the source, so I just copy-pasted the files one-by-one from the svn repo. Also, is there some sort of installation process I need to do in order to use this source? Or do I

Re: Help with OpenWire C

2013-05-23 Thread Sean Beck
I downloaded the svn copy of the trunk so hopefully that will take care of it. Thanks for being so helpful! On Thu, May 23, 2013 at 1:00 PM, Timothy Bish tabish...@gmail.com wrote: On 05/23/2013 02:56 PM, Sean Beck wrote: While installing ActiveMQ-CPP it terminated because of an error

Re: Help with OpenWire C

2013-05-23 Thread Sean Beck
/openssl/libactivemq_cpp_la-OpenSSLContextSpi.lo] Error 1 make[2]: Leaving directory `/root/activemq-cpp/activemq-cpp/src/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/activemq-cpp/activemq-cpp' make: *** [all] Error 2 On Thu, May 23, 2013 at 1:04 PM, Sean Beck

Re: Help with OpenWire C

2013-05-23 Thread Sean Beck
:32 PM, Timothy Bish tabish...@gmail.com wrote: On 05/23/2013 03:26 PM, Sean Beck wrote: Now it won't compile because it can't find OpenSSL files, but I have OpenSSL installed: decaf/internal/net/ssl/**openssl/OpenSSLContextSpi.cpp:**42:25: error: openssl/ssl.h: No such file or directory

Re: Help with OpenWire C

2013-05-23 Thread Sean Beck
OK I fixed it by replacing ~/ with /root/ Now it won't make...just one thing after another! Do you actually use FuseMQ? On Thu, May 23, 2013 at 2:38 PM, Sean Beck seanmckayb...@gmail.com wrote: Well I am using ./configure --with-activemqcpp=~/activemq-cpp/activemq-cpp/activemqcpp-config