Hello, I got the HEAD revision from SVN and everything is working fine now. I'm using Nabble (Web Interface) to send attachments, maybe the site messed up the file.
The patch is a contribution to ASF, granted all rights.. Thanks ! semog wrote: > > Hi Odilon, > > Thanks for submitting the patch. I applied the changes you submitted. > Would you get the latest and check to make sure everything works OK for > you. > > Also, if you can submit future patches as an attachment, that would be > preferred. The e-mail system messed up the wrapping of the patch lines > and > I could not apply the patch directly because of that. I manually made the > changes you submitted, though, since they were a small set of changes. > > Thanks again for contributing. Also, would you mention that you grant > license to the ASF for this contribution? Thanks. > > - Jim > > On Sun, May 18, 2008 at 10:08 AM, Odilon Oliveira <[EMAIL PROTECTED]> > wrote: > >> >> I got ActiveMQ.NET compiled in VS2003 ! >> >> Im sending the patch file for those interested .. >> >> Could the ActiveMQ dev team merge these changes in trunk ? >> >> If yes, the build script can work with .NET Framework 1.1 again. >> >> =) >> >> >> http://www.nabble.com/file/p17305249/ActiveMQvs2003.diffActiveMQvs2003.diff >> >> >> >> >> Index: Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs >> =================================================================== >> --- Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs (revision >> 657410) >> +++ Apache.NMS.ActiveMQ/trunk/src/main/csharp/Connection.cs (working >> copy) >> @@ -50,8 +50,8 @@ >> this.brokerUri = connectionUri; >> this.info = info; >> this.transport = transport; >> - this.transport.Command = OnCommand; >> - this.transport.Exception = OnException; >> + this.transport.Command = new >> CommandHandler(OnCommand); >> + this.transport.Exception = new >> ExceptionHandler(OnException); >> this.transport.Start(); >> } >> >> Index: Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs >> =================================================================== >> --- Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs >> (revision >> 657410) >> +++ Apache.NMS.ActiveMQ/trunk/src/main/csharp/MessageConsumer.cs >> (working >> copy) >> @@ -194,7 +194,7 @@ >> { >> if(ackSession != null) >> { >> - message.Acknowledger += >> DoNothingAcknowledge; >> + message.Acknowledger += new >> AcknowledgeHandler(DoNothingAcknowledge); >> MessageAck ack = >> CreateMessageAck(message); >> Tracer.Debug("Sending AutoAck: " + >> ack); >> ackSession.Connection.OneWay(ack); >> @@ -247,11 +247,11 @@ >> >> if(AcknowledgementMode.ClientAcknowledge >> == >> acknowledgementMode) >> { >> - activeMessage.Acknowledger += >> DoClientAcknowledge; >> + activeMessage.Acknowledger += new >> AcknowledgeHandler(DoClientAcknowledge); >> } >> else >> if(AcknowledgementMode.AutoAcknowledge >> != acknowledgementMode) >> { >> - activeMessage.Acknowledger += >> DoNothingAcknowledge; >> + activeMessage.Acknowledger += new >> AcknowledgeHandler(DoNothingAcknowledge); >> >> DoClientAcknowledge(activeMessage); >> } >> } >> Index: Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs >> =================================================================== >> --- Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs (revision >> 657410) >> +++ Apache.NMS.ActiveMQ/trunk/src/main/csharp/Session.cs (working >> copy) >> @@ -53,8 +53,8 @@ >> this.acknowledgementMode = acknowledgementMode; >> this.asyncSend = connection.AsyncSend; >> transactionContext = new TransactionContext(this); >> - dispatchingThread = new >> DispatchingThread(DispatchAsyncMessages); >> - dispatchingThread.ExceptionListener += >> dispatchingThread_ExceptionListener; >> + dispatchingThread = new DispatchingThread(new >> DispatchingThread.DispatchFunction(DispatchAsyncMessages)); >> + dispatchingThread.ExceptionListener += new >> DispatchingThread.ExceptionHandler(dispatchingThread_ExceptionListener); >> } >> >> ~Session() >> Index: >> Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs >> =================================================================== >> --- >> Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs >> (revision 657410) >> +++ >> Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransport.cs >> (working copy) >> @@ -80,7 +80,7 @@ >> socketReader = new >> OpenWireBinaryReader(new NetworkStream(socket)); >> >> // now lets create the background >> read thread >> - readThread = new >> Thread(ReadLoop); >> + readThread = new Thread(new >> ThreadStart(ReadLoop)); >> readThread.Start(); >> } >> } >> Index: >> >> Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs >> =================================================================== >> --- >> >> Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs >> (revision 657410) >> +++ >> >> Apache.NMS.ActiveMQ/trunk/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs >> (working copy) >> @@ -103,7 +103,7 @@ >> >> IPHostEntry hostEntry = Dns.GetHostByName(host); >> #else >> - IPHostEntry hostEntry = Dns.GetHostEntry(host); >> + IPHostEntry hostEntry = Dns.GetHostByName(host); >> #endif >> >> foreach(IPAddress address in >> hostEntry.AddressList) >> Index: >> Apache.NMS.ActiveMQ/trunk/vendor/Apache.NMS/src/test/csharp/ConsumerTest.cs >> =================================================================== >> --- >> Apache.NMS.ActiveMQ/trunk/vendor/Apache.NMS/src/test/csharp/ConsumerTest.cs >> (revision 657410) >> +++ >> Apache.NMS.ActiveMQ/trunk/vendor/Apache.NMS/src/test/csharp/ConsumerTest.cs >> (working copy) >> @@ -97,7 +97,7 @@ >> destinationType = DestinationType.Queue; >> // Launch a thread to perform >> IMessageConsumer.Receive(). >> // If it doesn't fail in less than three seconds, >> no >> exception was >> thrown. >> - Thread receiveThread = new >> Thread(doTestNoTimeoutConsumer); >> + Thread receiveThread = new Thread(new >> ThreadStart(doTestNoTimeoutConsumer)); >> >> using(timeoutConsumer = >> Session.CreateConsumer(Destination)) >> { >> >> >> >> >> >> Odilon Oliveira wrote: >> > >> > Hello, >> > >> > Im trying compile ActiveMQ.NET (NMS) with NAnt without success using >> .NET >> > Framework 1.1 >> > >> > Doing these steps: >> > >> > 1. Checkout the source code from SVN >> > 2. Executing NAnt to build in this folder >> > C:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ >> > >> > >> > Could you help me to compile binaries for .NET 1.1 ? >> > >> > Compile error below: >> > >> > ---------------------------------------------------------------------- >> > >> > set-net-1.1-framework-configuration: >> > >> > [echo] Doing an unsigned debug build for the .NET 1.1 framework >> > >> > dependency-init: >> > >> > >> > compile-main: >> > >> > [echo] Building the Apache.NMS.ActiveMQ library >> > [csc] Compiling 230 files to >> > >> 'C:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\build\net-1.1\debug\Apache.NMS.ActiveMQ.dll'. >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\Connection.cs(53,29): >> > error CS0654: Method >> > >> 'Apache.NMS.ActiveMQ.Connection.OnCommand(Apache.NMS.ActiveMQ.Transport.ITransport, >> > Apache.NMS.ActiveMQ.Commands.Command)' referenced without parentheses >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\Connection.cs(54,31): >> > error CS0654: Method >> > >> 'Apache.NMS.ActiveMQ.Connection.OnException(Apache.NMS.ActiveMQ.Transport.ITransport, >> > System.Exception)' referenced without parentheses >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\MessageConsumer.cs(197,30): >> > error CS0654: Method >> > >> 'Apache.NMS.ActiveMQ.MessageConsumer.DoNothingAcknowledge(Apache.NMS.ActiveMQ.Commands.ActiveMQMessage)' >> > referenced without parentheses >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\MessageConsumer.cs(250,36): >> > error CS0654: Method >> > >> 'Apache.NMS.ActiveMQ.MessageConsumer.DoClientAcknowledge(Apache.NMS.ActiveMQ.Commands.ActiveMQMessage)' >> > referenced without parentheses >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\MessageConsumer.cs(254,36): >> > error CS0654: Method >> > >> 'Apache.NMS.ActiveMQ.MessageConsumer.DoNothingAcknowledge(Apache.NMS.ActiveMQ.Commands.ActiveMQMessage)' >> > referenced without parentheses >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\Session.cs(56,46): >> > error CS0654: Method >> 'Apache.NMS.ActiveMQ.Session.DispatchAsyncMessages()' >> > referenced without parentheses >> > [csc] >> > >> c:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\src\main\csharp\Session.cs(57,43): >> > error CS0654: Method >> > >> 'Apache.NMS.ActiveMQ.Session.dispatchingThread_ExceptionListener(System.Exception)' >> > referenced without parentheses >> > >> > BUILD FAILED >> > >> > >> C:\Source\ActiveMQ.NET\Apache.NMS.ActiveMQ\trunk\nant-common.xml(370,6): >> > External Program Failed: >> > C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe (return code was >> 1) >> > >> > >> > >> > >> > Thanks in advance >> > >> >> -- >> View this message in context: >> http://www.nabble.com/ActiveMQ---VS2003-tp17298673s2354p17305249.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/ActiveMQ---VS2003-tp17298673s2354p17347800.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.