Re: Request for review/discussion of proposed SSL additions for C++ broker/client on Windows

2010-01-10 Thread James Mansion
Steve Huston wrote: For some background info on Windows Schannel (the native SSL implementation on Windows) I wrote a blog overview of it recently - you may want to read that before the review meeting for this patch (http://stevehuston.wordpress.com/2009/12/29/how-to-use-schannel-for-ssl -sockets

Re: Accepting large contributions (was Re: 10000 msgs limit per session)

2009-12-05 Thread James Mansion
Rajith Attapattu wrote: IMO it's not a very accurate picture. Well, we can debate whether the assortment of protocol support levels actually has that affect, but its not really important. Having said that, there would still be quite a bit of work maintaining them and we would need an owne

Re: Accepting large contributions (was Re: 10000 msgs limit per session)

2009-12-04 Thread James Mansion
Aidan Skinner wrote: On Thu, Dec 3, 2009 at 10:11 PM, James Mansion wrote: Eh, I don't really want to get rid of the actively maintained clients we already have. In particular, Java and C# derive enormous benefits from purely managed code in terms of portability, JITability etc.

Re: Accepting large contributions (was Re: 10000 msgs limit per session)

2009-12-03 Thread James Mansion
Aidan Skinner wrote: It's particularly important where we're importing something which duplicates (fully or partially) existing functionality, if only so that the situation is sufficiently clear to people trying to make an informed decision about what best suits their needs. Perhaps the QPID p

Re: New messaging API - base on AMQP 1.0, or on Java JMS?

2009-09-15 Thread James Mansion
Jonathan Robie wrote: In the languages besides Java, there is no standard messaging API to fall behind. I'll say something more on Java in a separate message. If its market share of deployed MOM components that lie strangely unused, its MSMQ. If market share of paid-for MOM matters, isn't MQSe

Re: [jira] Created: (QPID-2017) Files for Async Store interface layer (NOTE, read carefully - license issues)

2009-08-09 Thread James Mansion
Kim van der Riet wrote: IANAL, you may be correct. However, this decision was made about 2 years ago out of an abundance of caution regarding non-apache-compatible licenses. The reason LGPL was selected was that it is suited for use with libraries (which this is - msgstore.so) which can be run ag

Re: [jira] Created: (QPID-2017) Files for Async Store interface layer (NOTE, read carefully - license issues)

2009-08-01 Thread James Mansion
Kim van der Riet (JIRA) wrote: They are encumbered with BDB, which is used to save the broker state. For this reason, these files are LGPL Why are they encumbered with BDB? You aren't redistributing BDB are you? And even if you deem that referencing symbols in BDB is somehow 'redistribution'

Re: [c++] Warning, major header file move coming.

2009-07-14 Thread James Mansion
Alan Conway wrote: I will be moving the public header files into a separate qpid/include directory tomorrow or the next day, I'm just ironing out glitches now. The idea is to make it clear when we might be breaking source or binary compatibility - if it's in include/ then there's a risk, if not

Re: [c++]: Sketch of a high-level, protocol independent API

2009-04-21 Thread James Mansion
Gordon Sim wrote: Alan Conway wrote: // Pull style: LocalQueue lq; queue.subscribe(lq); while (...) { Message m = lq.get(); ... } // Push style MyListener l; queue.subscribe(l); sessoin.run(); } How does any of this integrate into a single-threaded application's

Re: [c++]: Sketch of a high-level, protocol independent API

2009-04-17 Thread James Mansion
Rafael Schloming wrote: > (good stuff) What he said, +1. Unfortunately, as it were, if you want to go there, don't start from here. Alan, Gordon: How are you expecting flow of control to work wrt number of driver threads and flow of control in any callbacks? This is arguably a lot more imp

Re: [c++]: Sketch of a high-level, protocol independent API

2009-04-16 Thread James Mansion
Gordon Sim wrote: James Mansion wrote: My question is: why do you feel the need to create something materially different, and why in particular does a messaging API need to be much more complex for normal use? Could you elaborate a little on what aspect(s) you feel is/are much more complex

Re: [c++]: Sketch of a high-level, protocol independent API

2009-04-15 Thread James Mansion
Gordon Sim wrote: James Mansion wrote: Sure you couldn't have a C API that is closely based on the MQSeries one, with extra tweaks? Or a C++ API that is much like the COM API from MSMQ? Both with extensions as needed. These are the most widely deployed existing systems. Sure you&#

Re: [c++]: Sketch of a high-level, protocol independent API

2009-04-08 Thread James Mansion
Gordon Sim wrote: All queries, comments, criticisms etc are very welcome. Sure you couldn't have a C API that is closely based on the MQSeries one, with extra tweaks? Or a C++ API that is much like the COM API from MSMQ? Both with extensions as needed. These are the most widely deployed exis

Re: [c++]: race condition in client when handling session close due to execution.exception

2009-04-03 Thread James Mansion
Gordon Sim wrote: However, following the execution.exception is the session.detach as required by the AMQP 0-10 spec. If the session goes out of scope before this is handled, then the whole connection ends up being destroyed due to the NotAttachedException thrown. To me that suggests that some

[jira] Commented: (QPID-1780) Remove boost dependencies from C++ client API

2009-03-30 Thread James Mansion (JIRA)
[ https://issues.apache.org/jira/browse/QPID-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693993#action_12693993 ] James Mansion commented on QPID-1780: - I'm not sure the position is any bette

Re: async server core in qpid code

2009-03-29 Thread James Mansion
Gordon Sim wrote: That is the intention. There are as you say a few AMQP specifics still remaining (mainly around the protocol initiation header) that need to be refactored out of this code and hidden behind the codec abstraction. I had a quick try on the train the other day. Looks like there a

async server core in qpid code

2009-03-26 Thread James Mansion
This code (Poller etc) is currently in common (at least on Windows) - which also has a pile of AMQP-specific code. Would anyone (else) like to have an organisation which would see it usable as a simple general-purpose server core? Not least, this would make it easier to test and measure it, or d

Re: AMQP 1.0

2009-03-26 Thread James Mansion
Robert Greig wrote: JMS may not be perfect but I can just about guarantee that most of the apps written in Java for Qpid using the JMS API will work just fine when we release a Qpid broker than supports the 1-0 protocol. Who's feeling confident about Python?? I'm surprised about that. Do you

Re: [jira] Updated: (QPID-1766) Implemention of selector using Xquery

2009-03-21 Thread James Mansion
chenta lee (JIRA) wrote: [ https://issues.apache.org/jira/browse/QPID-1766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Is this the stuff that Red Hat is trying to patent? James - Apache Qpid

Re: AMQP 1.0

2009-03-19 Thread James Mansion
Aidan Skinner wrote: The Java client uses JMS for this to an extent, but we still need a way of exposing AMQP specific things in ways that are as version independent as possible (such as the mandatory flag). I can see that there is value in reaching out to developers who have JMS code or who wis

Re: AMQP 1.0

2009-03-19 Thread James Mansion
Gordon Sim wrote: For me the first part of the process is a protocol independent API and some thinking around how to support multiple protocols in the broker (allowing messages published over one protocol to be delivered over another etc). You mean an internal support API into which the 1.0 and

Re: AMQP 1.0

2009-03-18 Thread James Mansion
Gordon Sim wrote: Based on past experience I think its best to wait until the final spec is actually published before getting too concerned about an implementation plan. Its not long 'til then though - but I was actually more interested in what the process will be, and who will manage and execu

Re: Problem running tests/client_test

2009-03-18 Thread James Mansion
Gordon Sim wrote: James Mansion wrote: The WindowsSasl implementation doesn't do anything Windows-ish. Why isn't this basic implementation the default if CyrusSasl is not available? There is code in the ConnectionHandler that is intended to cover the case where a specific Sasl

AMQP 1.0

2009-03-18 Thread James Mansion
I notice that just as I start to try to understand the implementation, the AMQP 1.0 spec is 'all change'. Well, significantly so it seems. The current codebase doesn't seem entirely seperated between the 'how' and the 'what' of the implementation - its not clear how much will carry over into a 1

Re: [jira] Created: (QPID-1745) C++ Windows; IntegerTypes.h need not define size_t

2009-03-17 Thread James Mansion
Steve Huston (JIRA) wrote: The qpid/cpp/src/qpid/sys/windows/IntegerTypes.h file typedefs size_t. This is not necessary for VC9, and the definition conflicts with the proper def for 64-bit builds. Removing the typedef for size_t works for both 32- and 64-bit builds. More to the point, why

Re: Problem running tests/client_test

2009-03-17 Thread James Mansion
Steve Huston wrote: Fix is on svn trunk... -Steve How did you test it? It didn't work for me using the rather minimal debug settings in the test_client solution. My analysis of the failure is: In WindowsSasl, if we have PLAIN on offer, then we choose it - even if we do not have a configure

Re: Problem running tests/client_test

2009-03-16 Thread James Mansion
Steve Huston wrote: Hi James, This is a known issue: https://issues.apache.org/jira/browse/QPID-1733 I'm working on a fix for it. Workaround is to start with broker with --auth no. OK, thanks. Perhaps teh JIRA organisation could be improved? - the Java tests have a JIRA section and I look

Re: Internals documentation

2009-03-16 Thread James Mansion
Martin Ritchie wrote: You don't mention which broker you are looking for details on. Sorry - the C++ one. I'd use the comments - but they all seem to be copyright declarations. :-( Except perhaps: Is the comment about broken Thread::current in APR in qpid/sys/Thread.h relevant any more?

Problem running tests/client_test

2009-03-16 Thread James Mansion
I have tried to run client_test from cpp/src/tests. The client is being rejected because it is trying to use an empty mechanism and the server wants 'ANONYMOUS' or 'PLAIN'. 2009-mar-16 08:13:38 notice Broker running 2009-mar-16 08:14:18 debug RECV [127.0.0.1:1716] INIT(0-10) 2009-mar-16 08:14:18

Build failure for C++ tests with VC2008 and Boost 1.38

2009-03-15 Thread James Mansion
Where to Jira? I see: ClientSessionTest.cpp .\ClientSessionTest.cpp(149) : error C2447: '{' : missing function header (old-style formal list?) .\ClientSessionTest.cpp(170) : error C2447: '{' : missing function header (old-style formal list?) I'm using VS2008 with Boost 1.38, QPID_AUTO_TEST_C

Internals documentation

2009-03-13 Thread James Mansion
Is there any documentation on the CPU flow inside the broker and the major elements of the broker? James - Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpi

[jira] Updated: (QPID-1737) qpid C++ will not build with WinSDK 7

2009-03-13 Thread James Mansion (JIRA)
[ https://issues.apache.org/jira/browse/QPID-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Mansion updated QPID-1737: Attachment: SIP.patch Patch attached - replaces STATUS_INVALID_PARAMETER with

Re: Build error for qpid m4 with Win7 SDK

2009-03-13 Thread James Mansion
Steve Huston wrote: Hi James, Svn diff is perfect - thanks. QPID-1737. - Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org

[jira] Created: (QPID-1737) qpid C++ will not build with WinSDK 7

2009-03-13 Thread James Mansion (JIRA)
Environment: XP 32 bit with latest SDK from Microsoft (SDK 7 beta) Reporter: James Mansion I'm trying to build M4 of AMQP on XP with the Win7 SDK Beta, and I'm seeing that Manageable::STATUS_INVALID_PARAMETER is being expanded to: Manageable::((DWORD )0xC00DL); I thi

Re: Build error for qpid m4 with Win7 SDK

2009-03-13 Thread James Mansion
Steve Huston wrote: Hi James, This situation arose a few other times while I was porting Qpid to Windows. The approach taken was to rename the item in Qpid to avoid Microsoft's macro. I haven't tried anything related to Win7, so haven't hit that one, but if you attach a patch to a JIRA entry, I'

Build error for qpid m4 with Win7 SDK

2009-03-12 Thread James Mansion
I'm trying to build M4 of AMQP on XP with the Win7 SDK Beta, and I'm seeing that Manageable::STATUS_INVALID_PARAMETER is being expanded to: Manageable::((DWORD )0xC00DL); I think this is because src\qpid/sys/windows/uuid.h has included rpc.h and included a lot of the SDK as a result. S