RE: Using QPID behind HTTP proxy

2016-08-26 Thread rat...@web.de
Thanks for the reply ;)

I have read into the AMQP over WebSockets specs. However it seems that it
only supports AMQP 1.0 right?
I am using the c++ messaging API which (I think) only supports 0-9? Anyhow,
it would require me to manually send the AMQP commands using websockets
right? I was searching for something like the QPID c++ messaging api where I
could specify a HTTP proxy. In my understanding something like this does not
exist right?

One alternative that I imagined would be to send the request from the client
via HTTP POST to a webserver (e.g. using curl with proxy setting). This
webserver would then connect to the broker (in the same network) and send
the answer back. I'm not too experienced with these things, but in my
understanding this would be the most easy workaround to solve this problem
without switching to another broker / message queue concept right? If there
is anything more suitable for my usecase, please let me know...

Regards
Tobias



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Using-QPID-behind-HTTP-proxy-tp7649606p7649649.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Using QPID behind HTTP proxy

2016-08-25 Thread rat...@web.de
Hello,
in my c++ application several computations are performed on a remote server.
I have implemented this using QPID and everything works fine if a direct
internet connection is available. However, some of my clients use a HTTP
proxy to access the internet. Is there any possibility to tell QPID (in the
c++ version) to use a specific HTTP proxy?
Regards
Tobias



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Using-QPID-behind-HTTP-proxy-tp7649606.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Max Frame Size for Java Broker

2016-04-06 Thread rat...@web.de
>From my point of view for a solution it should have been enough for the
clients to connect with max-frame-size accordingly set to 16K without
modifying the broker. However, this is not working (the client hangs if
sending messages larger than 16K).

Meanwhile I got it working:

Solution was:
1.) No need to modify the client c++ api
2.) Don't set max-frame-size in the client (i.e. in connection options)
3.) Modify the java broker to have a max-frame-size of 0x3FFF instead of
0X
in org/apache/qpid/server/protocol/v0_10/ServerConnectionDelegate.java

Strangely, if I set a max-frame-size:16384 in the connection parameters of
the client, it hangs if sending larger messages than this. If I remove
max-frame-size parameter from the connection option everything works fine.

However, it rather seems to be a problem of the c++ api from my point of
view.



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Max-Frame-Size-for-Java-Broker-tp7641393p7641504.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: SSL maximum message size?

2016-04-06 Thread rat...@web.de
Meanwhile I got it working:

Solution was: 
1.) No need to modify the client c++ api
2.) Don't set max-frame-size in the client (i.e. in connection options)
3.) Modify the java broker to have a max-frame-size of 0x3FFF instead of
0X
in org/apache/qpid/server/protocol/v0_10/ServerConnectionDelegate.java

Strangely, if I set a max-frame-size:16384 in the connection parameters of
the client, it hangs if sending larger messages than this. If I remove
max-frame-size parameter from the connection option everything works fine. 



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641502.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Max Frame Size for Java Broker

2016-04-06 Thread rat...@web.de
Hi, 
thanks for your feedback. This already helps me a lot. Appearantly I was
doing the changes at the wrong positions (ServerDelegate.java instead of
ServerConnectionDelegate.java of the 0-10 protocol). 
I'll redo my experminents. If it's not working I'll generate the
corresponding client / broker logs as suggested by you.
Regards
Tobias



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Max-Frame-Size-for-Java-Broker-tp7641393p7641460.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Max Frame Size for Java Broker

2016-04-05 Thread rat...@web.de
Is there any option to set the max frame size of the java broker?
Appearantly there was an option qpid.broker_frame_size (see
https://qpid.apache.org/releases/qpid-0.32/java-broker/book/Java-Broker-Appendix-System-Properties.html)
but it does not seem to be implemented (anymore?).

Background of my question is: Windows c++ clients via SSL currently only
support maximum frame sizes of 16K (see
https://issues.apache.org/jira/browse/QPID-2410 for more information).
However, the java broker seems to be configured to always send with a frame
size of 64K. I'd like to modify it to send 16K frames.

I already tried to modify the MAX_FRAME_SIZE value in
src/main/java/org/apache/qpid/transport/ServerDelegate.java but appearantly
this does not have any effect as indicated by this protocol trace of a
client:



So appearantly the client sends with max-frame-size=16384 (as expected) but
the broker still sends with max-frame-size=65535 (despite the changes in
ServerDelegate.java).

I would appreciate any feedback.



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Max-Frame-Size-for-Java-Broker-tp7641393.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: SSL maximum message size?

2016-04-01 Thread rat...@web.de
True, for the trace I have left the maxFrameSize to its default
value(appearantly 64).
After this I tested with other frame size options in the connection
(max-frame-size:16384 or 8192)
I attached a new trace with the 16K setting, the effect is the same (endless
loop)
Trace16K.txt   

These two lines look suspicious to me
2016-04-01 13:51:35 [Network] trace RECV
[[192.168.21.102:1084-qpid.server.com:5672]]: Frame[BEbe; channel=0;
{ConnectionTuneBody: channel-max=256; max-frame-size=65535; heartbeat-min=0;
heartbeat-max=30; }]
2016-04-01 13:51:35 [Network] trace SENT
[[192.168.21.102:1084-qpid.server.com:5672]]: Frame[BEbe; channel=0;
{ConnectionTuneOkBody: channel-max=256; max-frame-size=16384; heartbeat=30;
}]
Because the max frame size seems to be 16K and 64K?
Do I need to tune this also in the broker?
However the problem occurs when sending to the broker...



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641177.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: SSL maximum message size?

2016-04-01 Thread rat...@web.de
I also tried with max-frame-size 16K or 8K but this does not seem to fix the
problem. I also attached a protocol trace as well as a minimum example to
reproduce the error. Maybe this is of help to someone.
I also tried to understand what exactly is happening within qpid but it is
very hard for me to understand what is the problem in the first place, so
fixing it will be difficult for me. Anyhow, I think this is a major bug. 
Protocol trace:  Trace.txt
  
Example for reproducing the problem:  Code.cpp
  



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641163.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



RE: SSL maximum message size?

2016-03-31 Thread rat...@web.de
Yes, fixing the bug would of course make the most sense.
Just one more question: In a comment on
https://issues.apache.org/jira/browse/QPID-2410 you wrote 
"In a debugger session I forced the AMQP tune max frame size to 16K and
things went swimmingly from there."
Maybe I could first try if this solves my issue. Where would I change this?
In the source code of qpid or in the broker configuration?
Thx



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641156.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



RE: SSL maximum message size?

2016-03-31 Thread rat...@web.de
Hm, this is really getting me into trouble because I need to send encrypted
messages of larger sizes than 16k. Is there really no other option, e.g. to
link qpid with alternative SSL implementations like OpenSSL or NSS? Could I
split up messages into smaller parts and send somehow guarantee that they
are received by the same server and put them together manually?
Any hint would help me.
Thx!



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641154.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: SSL maximum message size?

2016-03-31 Thread rat...@web.de
Sure, I'll do that asap. Meanwhile, I found a bug report that seems to be
very related (its from 2010 but appearantly still unfixed)
https://issues.apache.org/jira/browse/QPID-2410
Even the 16K message size seems to be consistent with my tests. I did not
fully understand the comments in the bug report. Is there some kind of
workaround?
Thank you



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641150.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: SSL maximum message size?

2016-03-31 Thread rat...@web.de
Both c++ client and server are running on Windows 10 64 bit. AMQP version is
0-10. The qpid java message broker is running on Ubuntu, but I suspect that
the bug is already on the c++ client / server side.
Any hints how to resove this issue?
Thx for your help...



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641148.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: SSL maximum message size?

2016-03-31 Thread rat...@web.de
By the way, I'm using the Java Broker version 6.0.1 together with the qpid
c++ messaging api.



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114p7641115.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



SSL maximum message size?

2016-03-31 Thread rat...@web.de
Hi,
I have noticed that there seems to be a maximum message size if connecting
via ssl.
I have a request-reply pattern where the client sends a text and the server
answers with the identical text.
When connecting via "amqp:tcp:servername:5672" I can increase the message
length as much as I want.
When connecting via "amqp:ssl:servername:5672" the qpid::messaging::Sender
hangs forever in the send method when sending large messages.

Example output TCP connection:
Text with size 1024 -> OK
Text with size 2048 -> OK
Text with size 4096 -> OK
Text with size 8192 -> OK
Text with size 16384 -> OK
Text with size 32768 -> OK
Text with size 65536 -> OK
Text with size 131072 -> OK
Text with size 262144 -> OK
Text with size 524288 -> OK
Text with size 1048576 -> OK
Text with size 2097152 -> OK
And so on...

Example output with SSL connection:
Text with size 1024 -> OK
Text with size 2048 -> OK
Text with size 4096 -> OK
Text with size 8192 -> OK
Text with size 16384 
Then it hangs forever.

Is there any way to fix this issue? Probably the maximum message size can be
configured somewhere. But I cannot find an option for this.

Thanks for your help.



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/SSL-maximum-message-size-tp7641114.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Heartbeating - Java broker

2016-01-21 Thread rat...@web.de
Sure, the trace is here  Log.txt
  

>From what I can see in the log, appearantly heartbeats are correctly sent
and received by the client.
I was assuming that if my client locks in an endless loop no heartbeat
signals are addressed. So appearantly there is a detached thread that
handles this, right?

In my test, heartbeats are only performed if setup as an option in the
connection api of the client. The setting in the broker does not seem to
have an effect. So there is no way that the broker can enforce clients to
have heartbeating enabled? Is it always the sole decision of the client to
enable it?



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Heartbeating-Java-broker-tp7636881p7636944.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Heartbeating - Java broker

2016-01-21 Thread rat...@web.de
Thanks, this was very helpful



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Heartbeating-Java-broker-tp7636881p7636966.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Several issues with the Java Broker

2016-01-20 Thread rat...@web.de
Ok, I was able to produce a protocol trace with trace+
The situation is as follows:
First the client is started. The broker is not active and thus the client is
trying to reconnect.
Then, after a while, I start the broker. When the broker is almost booted
completely, the client receives the corresponding exception.

Here is the trace:
protocolTrace.txt
  



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Several-issues-with-the-Java-Broker-tp7636726p7636879.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Heartbeating - Java broker

2016-01-20 Thread rat...@web.de
Hi,
I'm having a problem to find out how heartbeating exactly works for the java
broker (or how to enable it).
Via the http management I configured the broker to have a "heartbeat delay"
of 5s (this was the only option I could find to somehow enable
heartbeating).

My test client connects also with heartbeat:5 in the connection options.
After connection the client perform a while(1); to simulate a client crash.

In my understanding the broker should notice after a few seconds that the
client is not sending a heartbeat back and thus the connection should be
terminated. However, this is not happening.

Am I missing something, or am I performing the wrong test-scenario to test
heartbeating?

Regards



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Heartbeating-Java-broker-tp7636881.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Several issues with the Java Broker

2016-01-19 Thread rat...@web.de
Thx for the answer.
Im using the newest qpid messaging api (c++), v0.34 together with the newest
Java broker (6.0.0). The protocol is AMQP 0-10. I'm afraid that I can't
generate a protocol trace with the c++ api, right? But indeed the startup
phase of the broker seems to be the problem. If it's not fully started,
clients will first try to reconnect and at some point the "Virtual host ''
is not active" exception is thrown if the broker is amost completely
started. The individual reconnect tries are frequent enough to almost always
hit this short timeframe.

Having message auth in all AMQP version would be indeed very useful. Is
there any other reliable way to tell who is the sender of a message?

Regards



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Several-issues-with-the-Java-Broker-tp7636726p7636841.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Java broker - Dynamically add user

2016-01-17 Thread rat...@web.de
Great! Thanks, this helps a lot. Especially the tip with firebug..
Is it also possible to add new users using qmf?



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Java-broker-Dynamically-add-user-tp7636651p7636727.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Re: Java broker - Dynamically add user

2016-01-16 Thread rat...@web.de
Thanks, helped me a lot and its working great!
Is the format of the POST parameters documented somewhere?
E.g. how can I know that the "password" parameter in
'{"name":"mynewuser1","password":"secret"}' is valid.
If opening http://localhost:8080/api/latest/user/passwordFile on a
webserver, I can see that "name" seems to be valid, but there is no hint
that "password" is also valid.
Regards...



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Java-broker-Dynamically-add-user-tp7636651p7636718.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org



Java broker - Dynamically add user

2016-01-15 Thread rat...@web.de
How is it possible to add a user dynamically without having to restart the
broker?
Probably the REST API could help me here. However, I cannot find any
information how such a call would look like.
Would be glad if anyone could point me to the right direction.




--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Java-broker-Dynamically-add-user-tp7636651.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org