Re: Http File transfer prototcol

2008-03-20 Thread Emmanuel Lecharny
RAJA SEKHAR REDDY MAYALURU wrote: i know to google it :) u people might have worked on these . that will help my search . thats y i have asked . this time i have changed the subject of the mail :) That's better :) You may have a look at asyncweb :

Re: [ftpserver] how to build the ftpServer

2008-03-28 Thread Emmanuel Lecharny
Mark Webb wrote: While I agree that this is an option, none of the other MINA subprojects require this. For consistency, they should all be the same. yes, but nothing is perfect at first :) I am sorry if I am nitpicking and I apologize if I am upsetting anyone, but as this program grows

Re: java.lang.OutOfMemoryError in Direct buffers or not (following DIRMINA-576)

2008-04-30 Thread Emmanuel Lecharny
Prusakova, Jane wrote: Lee, Thanks for your response. I switched to MINA 1.1.7. The behavior is the same - seeing java.lang.OutOfMemoryError: Direct buffer memory. Q : why do you use direct buffers ? -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: Large number of DefaultWriteFuture in jmap

2008-05-05 Thread Emmanuel Lecharny
Frank Kim wrote: Hi guys, Hi Franck, it's something possible that you have slow clients, and in this case, they simply don't read data fast enough, which leads to some bottleneck. This is under investigation. -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com

Re: MINA 2.0 Release RoadMap

2008-05-14 Thread Emmanuel Lecharny
Abhijit Bhatode wrote: Hi, We need to use Apache MINA 2.0 for server development. Apache MINA site recommends using 1.1 version as it is the most stable release. Can you please let us know the possible release timeline/roadmap for the next release for MINA 2.0? Nope... If by the end of this

Re: Financial authorization server using mina

2008-05-23 Thread Emmanuel Lecharny
Hi ! On Fri, May 23, 2008 at 4:16 PM, Cassiano Alves [EMAIL PROTECTED] wrote: Hi everybody! I'm a Java and C developer working to a financial company. I'm working on a project of a Financial Authorization Server. We had the suggestion to use Mina framework insted of using C/C++ socket api.

Re: AW: MINA 2.0 with multiple ProtocolCodecFilters

2008-06-02 Thread Emmanuel Lecharny
Thomas Kistel wrote: Hi, the example of String Larson shows that he is using one ProtocolCodecFilter. Actually I'm asking for using multiple ProtocolCodecFilters or the ability to add several Encoders and Decoders to one ProtocolCodecFilter as you can do with DemuxingProtocolCodecFactory.

Re: slf4j configuration

2008-06-18 Thread Emmanuel Lecharny
arati wrote: I want to print the Filename and Line number of the message that's why I used %F:%L in the conversion pattern. But this information is not getting printed in the file. Instead of filename or line number ? is appears in the log file. Can anybody tell me how to get this info

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-06-18 Thread Emmanuel Lecharny
Hi ! Can you fill a JIRA for this ? Thanks a lot ! On Thu, Jun 19, 2008 at 12:53 AM, Valient Gough [EMAIL PROTECTED] wrote: From page: http://mina.apache.org/downloads.html mina-1.1.7 and mina-2.0.0-m1 files do not match md5, sha1, or gpg signatures! I tested mina-1.1.7.zip ,

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-06-19 Thread Emmanuel Lecharny
Thanks guys, for the initial report and also for Tuure response. For such a problem, even if it's a no-problem, can you fill a JIRA ? This will help to keep a track on what is ok and what needs to be fixed. Mails just vanish after a few days, JIRAs stays for ever, or at leat until they are

Re: multiplayer online game (client/server architecture)

2008-06-19 Thread Emmanuel Lecharny
Hi Daniel, I guess that this is typically what we see frequently on ML : students have some project to work on (multi player game, for instance), they pick some cool library like MINA because it's Apache, but it soon appears that MINA (or whatever cool lib) won't become magically a multi

Re: multiplayer online game (client/server architecture)

2008-06-19 Thread Emmanuel Lecharny
reasonable to get started. Please consider this a long over due thanks to the Apache MINA people for a great job. Emmanuel Lecharny wrote: Hi Daniel, I guess that this is typically what we see frequently on ML : students have some project to work on (multi player game, for instance), they pick

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-07-06 Thread Emmanuel Lecharny
it is to verify the problem, it is silly to hear Tuure's vague assertions of user error. Valient From: Emmanuel Lecharny [EMAIL PROTECTED] Subject: Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads Newsgroups: gmane.comp.apache.mina.user Date: 2008-06-19 09:18:29 GMT (2 weeks, 3 days, 14 hours

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-07-07 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: On Mon, Jul 7, 2008 at 2:32 AM, Valient Gough [EMAIL PROTECTED] wrote: Guys, your responses have been completely unhelpful. I see no JIRA link on the Mina homepage, nor in the FAQ, nor any link for reporting bugs. If you want people to use JIRA, a link would be

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-07-08 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: All that said, why doesn't MINA have a KEYS file? At least I failed to find one. I checked, MINA has a KEYS file, on people.apache.org : /www/www.apache.org/dist/mina/KEYS /niklas -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-07-08 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: On Tue, Jul 8, 2008 at 11:00 AM, Julien Vermillard [EMAIL PROTECTED] wrote: KEYS file is here : http://www.apache.org/dist/mina/KEYS Wen need to add a link on main download page perhaps. Yeah, and it should really be in SVN. And if it's already in there, be

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-07-08 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: On Tue, Jul 8, 2008 at 1:04 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: I agree. What we could also do is to improve the pages we have on MINA to give explicit instructions on how to check the signatures. Here is an exemple on what Pierre-Arnaud Marcelot did

Re: MINA 1.1.7 MD5 and SHA1 hashes do not match downloads

2008-07-08 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: On Tue, Jul 8, 2008 at 1:17 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: Agreed, is that page generated from Confluence or some other way? Yep. I guess that means Confluence :-) Where can I find the corresponding Confluence page? I've browsed through

Re: Apache MINA 2.0.0-M2 released

2008-07-09 Thread Emmanuel Lecharny
Julien Vermillard wrote: The Apache MINA project is pleased to announce the release of MINA 2.0.0-M2. Apache MINA is a network application framework which helps users develop high performance and high scalability network applications easily. It provides an abstract, event-driven, asynchronous

Re: A stupid question

2008-07-16 Thread Emmanuel Lecharny
Dragomir wrote: I am looking for code that implements abstract class IoBuffer with it's methods and especially prefixedDataAvailable(int prefixLength). Seems so trivial but I can't find it in the source code or api doc. The following page on MINA's wiki describe the IoBuffer inheritence.

Re: byte[] usage - not GCd

2008-07-26 Thread Emmanuel Lecharny
Hi, MINA 1.1.7 ? Gerrit Grobbelaar wrote: YourKit shows the Class list as follows: - java.nio.HeapByteBuffer - org.apache.mina.common.SimpleByteBufferAllocator$SimpleByteBuffer - org.apache.mina.filter.codec.ProtocolCodecFilter$HiddenByteBuffer -

Re: Async events with existing NIO sockets.

2008-08-05 Thread Emmanuel Lecharny
Hi Raghu, I may be wrong, but I don't think this is possible with MINA., natively. You may have to define a new NioSocketConnector where you can pass an already connected socket as a parameter (just an idea, not sure this is easy to do). Hope it helps (at least a bit ;) Raghu Angadi

Re: Help with performance issues

2008-08-15 Thread Emmanuel Lecharny
Hi, have you used a profiler to see if you have some bottleneck, and if so, where ? Johan Haleby wrote: Hi, I've basically tried to ask this question before ( http://mina.markmail.org/message/bjpiogngdaxf3fyc?q=Buffering+question) but unfortunately I didn't manage to get much further. So

Re: CumulativeProtocolDecoder

2008-09-03 Thread Emmanuel Lecharny
Anyone see any obvious issues with this? How long will you have to wait to be sure that you have received a full message ? And how do you know that it's full ? Seems to be a very losy protocol you are dealing with :) Jerry -- -- cordialement, regards, Emmanuel Lécharny

Re: problem (bug?) with ByteBuffer.getString(decoder)

2008-09-07 Thread Emmanuel Lecharny
Thanks Jan ! I will take a look at your code later this afternoon (or somebody else will do before :) Seems like you had a short night (me too;). I hope your day won't be too hard ! On Mon, Sep 8, 2008 at 1:16 AM, jan de vries [EMAIL PROTECTED] wrote: after i placed an .decoder.reset();

Re: Which MINA version for new development

2008-09-09 Thread Emmanuel Lecharny
Cameron Ross wrote: Hello, Hi, I'm evaluating MINA for an enterprise application and I'd like to get some opinions regarding the stability of MINA 2. FYI, MINA stability is to be meant by API stability. MINA 2 is solid. The application I'm developing is scheduled to be deployed within a

Re: Controlling the flow of incoming data in Mina.

2008-09-09 Thread Emmanuel Lecharny
Tasneem Yusuf wrote: Hi , Hi, snip/ So I need data from Part A and the response received after the first write. There is some misunderstanding in what MINA does, here. You can't wait for another message from the client when you have sent the response, you have to handle the next message

Re: [ Start with Mina ]

2008-09-09 Thread Emmanuel Lecharny
Bakary Dialaya DJIBA wrote: Hi, Hi, Is there somebody who's got a tuturial about how to create a ftp server with Ftplet and Mina API? Just start with FtpServer web site : http://mina.apache.org/ftpserver/ -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: About the time limit of connection keeps valid from standby mode

2008-09-11 Thread Emmanuel Lecharny
li wrote: Thanks for all replies. I think I have got the answer although a little regret. There is nothing to regret : when it's impossible, it's impossible ;) -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: sharing sessionstata between encoder and decoder

2008-09-11 Thread Emmanuel Lecharny
Hi, jan de vries wrote: Hello, I have a class which stores session specific data with session.setAttribute(SessionState.STATE_KEY, ss); But this contains data like (CharsetEncoder) which usage should not be interleaved by doDecode and encode. H. Don't you use a CharsetEncoder for sent

Re: sharing sessionstata between encoder and decoder

2008-09-11 Thread Emmanuel Lecharny
simnutaneously, and therefore you have to make sure the IoFilter implementations you're using are thread-safe, too. (mmm i believe that should be simultaneously in the documentation) Emmanuel Lecharny wrote: Hi, jan de vries wrote: Hello, I have a class which stores session specific data

Re: sharing sessionstata between encoder and decoder

2008-09-11 Thread Emmanuel Lecharny
jan de vries wrote: Well, it was just an example to make my point clear. My SessionState contaans a lot more then that. For the decoder you are right, but the encoder CharsetEncoder can give problems since Session.write might be called simultaneously if i understand the documentation

Re: How does MINA ensure code quality?

2008-09-12 Thread Emmanuel Lecharny
Wenrui Guo wrote: Hi, MINA contributors Hi Wenrui ! I'm wondering how do you ensure the code quality of MINA? Hmmm... We are using unit tests (but this is far from perfect, as we currently have only 250 tests for the whole project, which is far from being enough). My experience shows

Re: API Issue: ConnectFuture.await()

2008-09-12 Thread Emmanuel Lecharny
Allen Jiang wrote: Hi,ALL, when I use the API :ConnectFuture.await(5000,TimeUnit.MILLISECONDS) ,it performance different resuilt in different PC as follows: First, I use the API in a PC which has only one CPU,when it connect another remote PC (cut the network on purpose),the interval

Re: Load Balancing Socket connections

2008-09-13 Thread Emmanuel Lecharny
Stephane Rainville wrote: Question for the community. In Ip4 we are limited to 2exp16 ports. Which is VERY high for HTTP GET because they are very short lived connections. I think you are confusing the number of available ports with the number of connection a port can handle. A web server

Re: Buffers from PooledByteBufferAllocator are not always initialized to 0

2008-09-18 Thread Emmanuel Lecharny
Stefan Gmeiner wrote: I recognised that ByteBuffer from the PooledByteBufferAllocator are not always initialized with 0. If a buffer gets reused the old value is still present. In my understanding it would be necessary to clear previous data if a buffer is reused. I don't think this is

Re: Mina 2.0.0-M4 test failure

2008-09-22 Thread Emmanuel Lecharny
Simon Trudeau wrote: I am using Hudson to monitor the progress of Mina 2.0.0-M4 and it seems that the build contains a failing test case for weeks now. org.apache.mina.proxy.NTLMTest.testType1Message http://localhost:8080/hudson/job/Apache%20Mina/41/org.apache.mina$mina-

Re: Mina 2.0.0-M4 test failure

2008-09-23 Thread Emmanuel Lecharny
Simon Trudeau wrote: That's pretty weird... Because Hudson, when building mina, does an mvn clean install for building... Ok, that's because you are building MINA on Vista, isn't it ? This test may be buggy if not built on XP. Would worth a JIRA, for sure ! -- -- cordialement, regards,

Re: Mina 2.0.0-M4 test failure

2008-09-23 Thread Emmanuel Lecharny
Simon Trudeau wrote: Yes, I am building on vista. I will fill up a jira. Thanks ! -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: How to write an application for downloading the file using MINA?

2008-10-02 Thread Emmanuel Lecharny
Erix Yao wrote: you mean I embed the ftp server into my applications ? I will try. But Still I wonder how to write it using MINA myself. Can you give me some hints? Nothing more than the current doco, and the samples we have in the code. Reading the code and experiment is the best way to

Re: XOR Filter

2008-10-02 Thread Emmanuel Lecharny
W.B. Garvelink wrote: The ProtocolCodecFilter uses an empty buffer internally as a sentinel value to demarcate the end of a unit of input. More precisely, this empty buffer is a hack : it is used to increment the number of messages sent... As a side effect, it helps to know that the message

Re: Bit access to IoBuffer

2008-10-07 Thread Emmanuel Lecharny
Andres Quijano wrote: You'll have to mask the rest of the byte for the next message... You just have to store the current position in the stored bytes. maybe create a class where you can add bits to it until it reaches the msg length, you'll have to keep count of which bits belong to which

Re: Bit access to IoBuffer

2008-10-07 Thread Emmanuel Lecharny
Pablo Palazon wrote: Hello! I know that I can access to IoBuffer with byte level, I only can get 1 byte each time. Is it possible to get only 1 bit??. My problem is like this: I have a data format with 26 bits (3 bytes and 2 bits more), there are 5 fields (3 fields of 1 byte and 2 fields of 1

Re: Stopping MINA based server

2008-10-11 Thread Emmanuel Lecharny
Ahmed Al-Obaidy wrote: I am sorry, I should post this in here instead of the dev mailing list I am writing a MINA based server. I am looking for a guide lines or best practices of how to stop the server from the Linux service script (/etc/init.d/myserver). I mean: 1) should I write the

Re: I have solved my problem

2008-10-12 Thread Emmanuel Lecharny
liuandy wrote: Dear my friends, I have solved my problem. I set two Handler in my client side. So it does not work. Good to hear :) -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: Difference between ConnectFuture and IoServiceListener

2008-10-14 Thread Emmanuel Lecharny
Ilya Sterin wrote: So I'm trying to figure out the difference between doing this... session.getCloseFuture().addListener(new IoFutureListenerIoFuture() { public void operationComplete(IoFuture ioFuture) { // Handle reconnection here... } }); and this...

Re: What can I do with the XXFuture?

2008-10-15 Thread Emmanuel Lecharny
Erix Yao wrote: I found out that after call session.write(Object) I can get a class called WriteFuture, after checking the doc of the interface, I didn't know what purpose of this interface. The only thing I know is that I can call await() method to wait the operation to complete. Is there any

Re: Caused by: java.lang.IllegalStateException: Current state = RESET, new state = CODING_END

2008-10-16 Thread Emmanuel Lecharny
Dmitriy Frolov wrote: Hmmm... I am using custom written encoders/decoders on both client and server side that should be UTF-8. UTF-8 is encoding chars in 1 to 6 bytes. When converting some String encoded in UTF-8, if you don't get all the bytes, you will have this error. You can check the

Re: Mina 1.1.7 failed test problem

2008-10-16 Thread Emmanuel Lecharny
Chad Lung wrote: I've been trying to build Mina 1.1.7. Grabbed the source code, ran the appropriate Maven vodoo: mvn -Dwith-LGL-dependencies clean install It works up until the testing starts, then throws the following error: http://giantflyingsaucer.com/mina-error.htm - I just put the screen

Re: tuning app with large number of UDP sessions

2008-10-17 Thread Emmanuel Lecharny
Richard wrote: Thanks Peter, I was going to adjust those limits as well as the ulimit and the /proc limits too. I was really worried about the number of threads. I was wondering if there was anyway to tune the number of threads that are created, some way to share threads between handlers. The

Re: Bug in AbstractIoBuffer.getSlice(index, length) ?

2008-10-20 Thread Emmanuel Lecharny
John Fallows wrote: Folks, I think there might be a bug in AbstractIoBuffer.getSlice(index, length) in Mina 2.0.0-M3. public final IoBuffer getSlice(int index, int length) { if (length 0) { throw new IllegalArgumentException(length: + length); } int

Re: SSL tunneling in proxy server

2008-10-20 Thread Emmanuel Lecharny
No need to send the same message 3 times ! -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: IoHandler and LoggingFilter question

2008-10-20 Thread Emmanuel Lecharny
Chandrajeet Padhy wrote: Hi All, I am having a trouble with the IoHandlerAdapter. I can see messages transmitting and only messageSent gets invoked. Even if there is a message reply it doesn't come into messageReceived method. Thus I reused the logging filter to handle message receipts as a

Re: IoHandler and LoggingFilter question

2008-10-20 Thread Emmanuel Lecharny
Chandrajeet Padhy wrote: Hi Emanuael, Thanks for replying. I am using log4-jboss configurations and my root looks like. root priority value=INFO/ appender-ref ref=CONSOLE/ appender-ref ref=FILE/ /root I don't want any log message from apache SessionLog. I went added a new

Re: Bug in AbstractIoBuffer.getSlice(index, length) ?

2008-10-20 Thread Emmanuel Lecharny
Squee wrote: Why is IoBuffer being removed? The dynamic resizing is very handy. What's the plan to replace that functionality? The idea (still in discussion) is to offer an InputStream instead of a flavor of ByteBuffer. This will be helpfull as all the filter will manipulate this

Re: MINA - design guidelines

2008-10-20 Thread Emmanuel Lecharny
Ask Me wrote: I am neither a network programming expert nor have any experience with MINA before and would need to design develop a system to communicate with a remote server (passing xml documents using TCP/IP) The requirement is like this: 1. A remote server will open up a TCP/IP socket

Re: MINA - design guidelines

2008-10-20 Thread Emmanuel Lecharny
newToMina wrote: I totally agree with you that, determining the completeness of the xml documents will be the trickiest part. What I have in mind right now is that in the TextLineDecoder once I encounter the root end tag /message, find the total number of occurances of message /message tags. If

[XML sample] was :Re: MINA - design guidelines

2008-10-21 Thread Emmanuel Lecharny
Hi, Maarten Bosteels wrote: I think that - given the protocol - your approach is fine. We also do the XML parsing in the message-handling thus not with a separate IoFilter. The advantage is that you can test this code independent of MINA. I was just thinking that it may help to have a short

Re: [ Build failed caused by a failed test ]

2008-10-21 Thread Emmanuel Lecharny
Bakary Dialaya DJIBA wrote: I can't create a new issue. You have to register first. -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: Hey Has anyone made any progress on the troubles with MINA 2.0 in Glassfish? We have had some FtpServer users who have run into problems when deploying FtpServer in Glassfish, and they seem to be related. I just tried deploying our WAR example in Glassfish V2 UR2 b04

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: Hey Has anyone made any progress on the troubles with MINA 2.0 in Glassfish? We have had some FtpServer users who have run into problems when deploying FtpServer in Glassfish, and they seem to be related. I just tried deploying our WAR example in Glassfish V2 UR2 b04

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: On Tue, Oct 21, 2008 at 1:09 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: I think there is something wrong in MINA code : protected NioSession accept(IoProcessorNioSession processor, ServerSocketChannel handle) throws Exception { SelectionKey

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
I'll do it now, however it might take a time to get mina compiled from source, I didn't do that before. Ok, I did it, but it didn't help :-( At least, this is not the same NPE :) It was used in a .war file with the following web.xml: When I deployed the war file to a glassfish

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Mezei Zoltan wrote: However it yielded the following log messages only: 16:44:01.530 [pool-1-thread-1] DEBUG test - Before connect... 16:44:01.546 [pool-1-thread-1] DEBUG test - After connect... 16:44:01.546 [pool-1-thread-1] DEBUG test - Before await... And nothing else. The same code from a

Re: MINA - design guidelines

2008-10-21 Thread Emmanuel Lecharny
newToMina wrote: What if the client writes multiple requests at once as follows. rootmsgthis is message 1/msg/rootrootmsgthis is message 2/msg/root How does the messageReceived() see it? How do I seperate and process these 2 xml messages (remember there are no controll characters seperating the

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Jeanfrancois Arcand wrote: Salut, this is a problem with GlassFish: https://glassfish.dev.java.net/issues/show_bug.cgi?id=5321 Mainly, there is a severe bug (we all whine about this %$#% mechanism, which has been dropped in v3). Just add, in domain.xml:

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Jeanfrancois Arcand wrote: Niklas Gustavsson wrote: On Tue, Oct 21, 2008 at 7:52 PM, Jeanfrancois Arcand [EMAIL PROTECTED] wrote: the exact bug is (we got so much issues related to that :-)) https://glassfish.dev.java.net/issues/show_bug.cgi?id=3027 Thanks (I'll buy you a beer when I get

Re: WriteFuture.join() hangs if flushSession() channel sends throw Exception

2008-10-22 Thread Emmanuel Lecharny
I don't really know -yet- if it's a real problem, but the thing is that JIRA is remanent, when a mail will be buried pretty quickly. So having a JIRA, even if it's not a bug, is a better way to be sure that it's addressed, even if it's in one month, as we usually check the list of JIRAs before

Re: MINA - design guidelines

2008-10-22 Thread Emmanuel Lecharny
Smith wrote: Hi , i'm following your discussion and i remember that the guys from JiveSoftware have created an XMPP server using mina , and the XMPP protocol use XML Stream. The software is under GPL so you can take a look a the source to see how they handle this problem :) There is also an

Re: MINA - design guidelines

2008-10-23 Thread Emmanuel Lecharny
Ashish wrote: Thanks Emmanuel! The pointer was helpful. Though I though about implementing somewhat in a different way. Np. Hopefully, there are many possible ways :) The decoder was implemented just to see the xml is complete and then pass-on the buffer to an abstract function, to be

Re: MINA - design guidelines

2008-10-23 Thread Emmanuel Lecharny
You can also use JAXB with a byte stream unmarshaller (but a one which will be statefull). You may have to write your own unmarshaller, i'm afraid (but i'm not a specialist, so anyone with better knoweldge, please catch the ball ;) Well the problem of getting multiple xml mesages back to

Re: Writing Unit Tests: Hard to do with Final Classes/Final Methods.

2008-10-24 Thread Emmanuel Lecharny
Barrie Treloar wrote: I wanted to write a unit test that showed AbstractPollingIoProcessor.write() threw an exception that the WriteFuture doesn't get notified. But all the places I would sneak in such a change for testing have been denied. The classes I want to modify are final or the methods

Re: [ FTPServer ] unit test simulator tools

2008-10-24 Thread Emmanuel Lecharny
Bakary Dialaya DJIBA wrote: Hi, I want to simulate unit test on my ftp server. Is there tools for doing that? Have you tried JMeter ? (http://jakarta.apache.org/jmeter/usermanual/build-ftp-test-plan.html) -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org

Re: Checking a session is created? (see AbstractTrafficControlTest.testSuspendResumeReadWrite)

2008-10-28 Thread Emmanuel Lecharny
Barrie Treloar wrote: I'm a bit worried about the comments in this method for AbstractTrafficControlTest: public void testSuspendResumeReadWrite() throws Exception { ConnectFuture future = connect(port, new ClientIoHandler()); future.awaitUninterruptibly(); IoSession

Re: Checking a session is created? (see AbstractTrafficControlTest.testSuspendResumeReadWrite)

2008-10-28 Thread Emmanuel Lecharny
Barrie Treloar wrote: tcp/ip has an easy enough state diagram to google for. udp being connectionless doesn't seem to have such a diagram. I don't think it ha anything to do with the underlying newtork state. The session states I'm talking about is the application session : if you don't

Re: Packet loss when using MINA UDP

2008-10-30 Thread Emmanuel Lecharny
Hi Danyy, thanks for the feedback ! Dannyy wrote: Thanks to all for helping out. The problem is gone. FWIW, here is what happened: my test client timed out more and more frequently, and finally stopped getting any response back. This looked more like a hardware or OS problem than a framework

Re: Blog Posts about using Apache MINA

2008-11-02 Thread Emmanuel Lecharny
Ashish wrote: Have been using Apache MINA for a while and while working posting some blog post on the way I have used. Will appreciate Dev/User community feedback on the posts. Hi Ashish, I just spent a few minutes on your blog, and I must say I'm impressed ! At some point, I think this is

Re: Lifecycle of Server and Clients

2008-11-03 Thread Emmanuel Lecharny
Hi Steve, which MINA version are you using ? Steve Ash wrote: I am trying to create a simple client server application, and am a bit confused about the intended lifecycles of the acceptor and connector. Currently, I am doing the following: 1) (Server) NioSocketAcceptor is

Re: TextLineCodecFactory protocols and missing line delimiter

2008-11-06 Thread Emmanuel Lecharny
Andreas Schildbach wrote: Hi everyone, I'm implementing a client for a text based protocol (lined terminated by \n) However, the last line issued by the server before the connection is closed is missing the line delimiter. Mina swallows the line in this case. I'd like that last line to

Re: Operation not permitted SocketException

2008-11-06 Thread Emmanuel Lecharny
Rob Scales wrote: I am new to MINA, and have not been able to sort out an issue that I have encountered by reading the documentation or FAQ. Hi Rob, I see that you are posting for the second time, because you didn't get any response. It seems that there are not that much peeps out there

Re: Eclipse/OSGi classpath issues?

2008-11-11 Thread Emmanuel Lecharny
Barrie Treloar wrote: My application is trying to use mina inside an Eclipse RCP. I get the following error: Exception in thread Thread-3 java.lang.NoClassDefFoundError: org/apache/mina/common/ExceptionMonitor at

Re: Problem with UDP: 2406 bytes sent, but only 2048 bytes received?!

2008-11-13 Thread Emmanuel Lecharny
Alexander Christian wrote: On Thu, 13 Nov 2008 11:43:56 -0200, Andres Martinez Quijano [EMAIL PROTECTED] wrote: MINA can't do anything about it, it's the underlying transport. What MINA does is let you swap transports very easily, use TCP and forget about that problem It's not an

Re: Problem with UDP: 2406 bytes sent, but only 2048 bytes received?!

2008-11-13 Thread Emmanuel Lecharny
Alexander Christian wrote: On Thu, 13 Nov 2008 14:56:25 +0100, Emmanuel Lecharny [EMAIL PROTECTED] wrote: Exactly. You buy speed by having an unreliable transport. That's somehow fair, if you can accept loosing packets (for instance to transmit voice or video, as you can fill the blanks

Re: Issue with ExecutorFilter

2008-11-14 Thread Emmanuel Lecharny
Mina version ? Alexander Christian wrote: Hi together, I have some questions about the ExecutorFilter: To transfer messages, i primary use my own ProtocolCodecFactory which converts my message objects into bytes and back. I read on some presentations on the web, that it's a good idea to use

Re: Issue with ExecutorFilter

2008-11-14 Thread Emmanuel Lecharny
Alexander Christian wrote: On Fri, 14 Nov 2008 15:49:33 +0100, Alexander Christian [EMAIL PROTECTED] wrote: Hmm, I changed to following code --code-- acceptor.getFilterChain().addFirst(executor, new ExecutorFilter(filterchainWorkerPool)); --/code-- to this one: --code--

Re: Issue with ExecutorFilter

2008-11-14 Thread Emmanuel Lecharny
Alexander Christian wrote: You're right. MINA is a really great framework, and my library benefits from it massively. But it's not that easy to get a application, bigger than the samples working. The thing I'm mostly missing is the JavaDoc in several source files. How strange ... ;) But

Re: read messages in a processing loop

2008-11-15 Thread Emmanuel Lecharny
Boubennec Aurelien wrote: Hi all, I am new at Mina. On both server and client side, there is a loop running at a certain frequency. I just wonder which way is the best to read received messages on both sides to get a pretty low latency. What I plan to do is to add the messages into a

Re: Mina setting up listening ports in client

2008-11-17 Thread Emmanuel Lecharny
Gunnar Bjørgum wrote: Sorry about beeing too little specific. np. I am running Windows Vista Business version [Version 6.0.6001] (latest patches) Java 1.6.0_update10 32bit (latest) MINA 1.1.7 This is a client application that is not supposed to listen to any ports, but it is supposed to

Re: Mina setting up listening ports in client

2008-11-18 Thread Emmanuel Lecharny
Gunnar Bjørgum wrote: Great! I was thinking about making some test-code here, but now that is not necessary anymore. Thanks for the nice work you do! We have to thank Alexander here ! He was the one who jumped into the mud and found the original problem ! This is where having smart users

Re: JavaDoc for MINA AsyncWeb

2008-11-19 Thread Emmanuel Lecharny
huican ping wrote: Hello, Is there any specific JavaDoc for AsyncWeb? I noticed on the website: http://mina.apache.org/documentation.html, there are JavaDoc links for Mina 1.0.x, 1.1.x and trunk. I suppose those are for MINA (not AsyncWeb). Can someone show me where is the JavaDoc for AsyncWeb?

Re: Multi client connections

2008-11-24 Thread Emmanuel Lecharny
Shiran wrote: Hi, Hi, I need to write application that open socket connection to server and send/receive multi requests/responses simultaneously. Your client will send/receive multiple reques/response from one server only ? (assuming this is what you have in mind for the

Re: Continuous XML document processing

2008-12-03 Thread Emmanuel Lecharny
newToMina wrote: Thanks for the quick response Ashish... I don't have any control over the protocol. The root element is Message/Message. The communication is always between 2 machines. A 3rd party machine connects to our server and keeps sending xml documents (it could be one at a time or

Re: Continuous XML document processing

2008-12-03 Thread Emmanuel Lecharny
newToMina wrote: Emmanuel Lecharny-3 wrote: What do you mean by 'simultaneous messages' ? I meant the system should be able to handle upto 5000 simultaneous customer scans. (maximum system load) Ok. It's more or less an architecture problem, not really a MINA issue. As soon as you have

Re: Continuous XML document processing

2008-12-04 Thread Emmanuel Lecharny
newToMina wrote: Ashish, That is correct. It is 5000 concurrent sessions. MINA can handle the load, no problem. Some tests have already been conducted on MINA 1 with 10 of thousands connected sessions. The communication is always going to be between 2 machine, our server and the 3rd party

Re: Streaming files over predefined structures

2008-12-09 Thread Emmanuel Lecharny
Pat Chang wrote: Hi, We would like to build a document server, where the user can upload multiple documents of varying size in MB's. Ever thought about using the FtpServer project ? Perfect fit for such a description, IMHO. -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com

Re: Disposing an IoConnector blocks forever in Mina 2.0.0-M3

2008-12-09 Thread Emmanuel Lecharny
Thomas Berger wrote: Hi, nHandles in the class Worker (AbstractPollingIoConnector) gets negative: -1 in my case. Then the dispose() method blocks forever as the while loop in this worker class never breaks. Reproducing this error is pretty hard, as it usually happens after several hours. I

Re: Streaming files over predefined structures

2008-12-09 Thread Emmanuel Lecharny
philippe.tseyen wrote: I'm trying to do something similar here, but the files I'm sending over are bigger (100MB or larger). So I would rather not load this into memory. The protocol I would like to have is as follows. Client - Server: Request (message) Server - Client: OK (message) Client -

Re: Questions on MINA as relates to SEDA, and web services

2008-12-11 Thread Emmanuel Lecharny
Steve Rehrauer wrote: Hi - I've spent the last couple of years on a team building a WAN server for an older LAN product. The server design was fixed before I joined the team (not to cast blame, just to say that it was in-flight and deemed immutable). The implementation uses JEE technologies

Re: Questions on MINA as relates to SEDA, and web services

2008-12-11 Thread Emmanuel Lecharny
Steve Ash wrote: I can't offer any answers, but have many of the same questions you do as it sounds. Also- I think anyone saying excellent MINA documentation must be speaking sarcastically. Indeed ;) There are a few examples, but I have found the documentation lacking with regards to

Re: Questions on MINA as relates to SEDA, and web services

2008-12-11 Thread Emmanuel Lecharny
Steve Rehrauer wrote: First, thanks for the response! Emmanuel Lecharny-3 wrote: Anything that take minutes to give back an answer to a decent request needs to be reviewed, that's for sure :) Well, I'm being a bit vague on purpose, to shield the innocent. :-) But suffice to say

  1   2   3   4   5   6   >