You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by an...@uk.bnpparibas.com on 2010/07/02 17:26:10 UTC

Desperate for working AMQ-cpp for VS2005

I am having a terrible time with amq-cpp 3.2.x on VS2005. I used MPC to 
generate the missing VS 2005 files and everything rebuilt ok but there are 
still problems:

in Debug mode my app fails to link with the error fatal error LNK1106: 
invalid file or disk full

in Release mode it linked but blew up with a core dump as soon as it tried 
to use AMQ (not sure which call).

I think there may be still something wrong with my build env but I do not 
know what. I note that I have to link with the APR libraries. I thought 
these were C libraries so I took prebuilts from sourceforge. Do I need to 
do my own build of these as well. I am wondering if the C++ macros I am 
forced to use also have to be enabled here. They are:

  macros += WIN32
  macros += _WINDOWS
  macros += NOMINMAX

  macros += _SECURE_SCL_THROWS=1
  macros += _SECURE_SCL=1
  macros += _CRT_SECURE_NO_DEPRECATE
  macros += _CRT_NONSTDC_NO_DEPRECATE
  macros += _MBCS

  macros += _VC80_UPGRADE=0x0600

I assumed I wouldn't need these since the APR is coded in C. However, I 
now remember that VS does not provide a separate C compiler. One has to 
run C code through the C++ compiler so maybe these macros might have an 
effect.

I would really appreciate a release of AMQ-cpp with VS files for VS2005.

Regards,

Andrew Marlow

___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.

Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H  for additional disclosures.

Re: How to run ActiveMQ console in JBoss

Posted by Ha...@gpj.com.
Thanks for the help.
I was able to run the broker by putting the war file in JBoss deploy 
directory and changing the webconsole-embedded.xml inside the war 
(WEB-INF) to point to my configuration
file. It is running file. 

Hammad

Re: How to run ActiveMQ console in JBoss

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Hammad,

it should work, take a look at this thread

http://old.nabble.com/jboss%2Bactivemq-broker%2Bwebconsole-td27156154.html

what exceptions are you seeing?

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Tue, Jul 6, 2010 at 9:08 PM,  <Ha...@gpj.com> wrote:
> I have ActiveMQ running inside JBoss , using resource adapter...I am
> trying to run ActiveMQ console inside JBoss as a web application...putting
> the war file under JBoss deploy is not working..Are there any
> configurations that I need to tweak?
>
> Happy 4th of July!
>
> Thanks!
> Hammad
>

How to run ActiveMQ console in JBoss

Posted by Ha...@gpj.com.
I have ActiveMQ running inside JBoss , using resource adapter...I am 
trying to run ActiveMQ console inside JBoss as a web application...putting 
the war file under JBoss deploy is not working..Are there any 
configurations that I need to tweak?

Happy 4th of July!

Thanks!
Hammad

Re: Desperate for working AMQ-cpp for VS2005

Posted by Timothy Bish <ta...@gmail.com>.
On Fri, 2010-07-02 at 16:26 +0100, andrew.marlow@uk.bnpparibas.com
wrote:
> I am having a terrible time with amq-cpp 3.2.x on VS2005. I used MPC to 
> generate the missing VS 2005 files and everything rebuilt ok but there are 
> still problems:
> 
> in Debug mode my app fails to link with the error fatal error LNK1106: 
> invalid file or disk full
> 
> in Release mode it linked but blew up with a core dump as soon as it tried 
> to use AMQ (not sure which call).
> 
> I think there may be still something wrong with my build env but I do not 
> know what. I note that I have to link with the APR libraries. I thought 
> these were C libraries so I took prebuilts from sourceforge. Do I need to 
> do my own build of these as well. I am wondering if the C++ macros I am 
> forced to use also have to be enabled here. They are:
> 
>   macros += WIN32
>   macros += _WINDOWS
>   macros += NOMINMAX
> 
>   macros += _SECURE_SCL_THROWS=1
>   macros += _SECURE_SCL=1
>   macros += _CRT_SECURE_NO_DEPRECATE
>   macros += _CRT_NONSTDC_NO_DEPRECATE
>   macros += _MBCS
> 
>   macros += _VC80_UPGRADE=0x0600
> 
> I assumed I wouldn't need these since the APR is coded in C. However, I 
> now remember that VS does not provide a separate C compiler. One has to 
> run C code through the C++ compiler so maybe these macros might have an 
> effect.
> 
> I would really appreciate a release of AMQ-cpp with VS files for VS2005.
> 
> Regards,
> 
> Andrew Marlow
> 
> ___________________________________________________________
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited.
> 
> Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H  for additional disclosures.

The latest release of AMQCPP v3.2.1 is now out and includes VS2008
projects and solutions.  With a little Google searching you can find out
how to down-convert them to VS2005 (although you can get VS2008 Express
for free), basically just changing some version numbers in the XML.  

As far as the APR libs go your best bet is to build your own, not sure
of what the state of any binaries you might find on the web is, I don't
think that the APR folks endorse any binary distributions of their
releases.  I usually build mine with the same version of Visual Studio
that I'm using for the AMQCPP lib but its never actually seemed to
matter as it is a C library so name mangling issues don't come into
play.  If using the DLLs though you might run into issues with the
runtime library dependency but I'm not sure on that.  I've used my APR
libs built with VS2005 with AMQCPP build done in VS2008 and VS2010.

Regards


-- 
Tim Bish

Open Source Integration: http://fusesource.com
ActiveMQ in Action: http://www.manning.com/snyder/

Follow me on Twitter: http://twitter.com/tabish121
My Blog: http://timbish.blogspot.com/