The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

sangnam18 (2) [Avatar] Offline
#1
hi,

example -> chapter2-cbr building..
I issued Error.
My environment is as follows.
IDE : SpringSource Tool Suite Version: 2.9.2.RELEASE
JDK : jdk1.6.0_21

[ main] BrokerService WARN Store limit is 102400 mb, whilst the data directory: C:[book]Camelcamelinaction-sourcechapter2cbractivemq-datalocalhostKahaDB only has 29218 mb of usable space
[ main] BrokerService ERROR Temporary Store limit is 51200 mb, whilst the temporary data directory: C:[book]Camelcamelinaction-sourcechapter2cbractivemq-datalocalhost mp_storage only has 29218 mb of usable space

How to resolve the above issue that matters?

thx..
davsclaus (413) [Avatar] Offline
#2
Re: chapter 2-cbr building Error..
Its the embedded Apache ActiveMQ message broker server that has a default of 50gb as free disk space, when being used.

Your computer has only 30gb free disk space.

You can fix this by making more free space on your computer.


Another way to fix this is to tell the message broker to not use persistence (then its in memory only).

You can do this by editing the source code, eg in

src/main/java/camelinaction/OrderRouter.java

Change the following

// connect to embedded ActiveMQ JMS broker
ConnectionFactory connectionFactory =
new ActiveMQConnectionFactory("vm://localhost");

To

// connect to embedded ActiveMQ JMS broker
ConnectionFactory connectionFactory =
new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
davsclaus (413) [Avatar] Offline
#3
Re: chapter 2-cbr building Error..
Also the very latest source code with Camel 2.12.1 uses the new ActiveMQ 5.9 release in the example. ActiveMQ 5.9 will readjust its free disk space accordingly to what you have as free space, so that version ought to say that it would require 50gb of free disk space, but there was only 30gb so resetting the limit to 30gb.
sangnam18 (2) [Avatar] Offline
#4
Re: chapter 2-cbr building Error..
thx..

default of 50gb as free disk space.. hmm.

I will increase the amount of disk space.

have a nice day~^^