Yes, we/you should. That's exactly the recommendation in JCiP btw :)
Hanson Char
On 5/15/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
Hi,
I found an interesting blog entry:
http://blogs.sun.com/dave/entry/java_util_concurrent_reentrantlock_vs
It seems like Sun engineers have done a lot of op
Hi,
I found an interesting blog entry:
http://blogs.sun.com/dave/entry/java_util_concurrent_reentrantlock_vs
It seems like Sun engineers have done a lot of optimization on
'synchronized' keyword. I just have been thinking that ReentrantLock
performs better than synchronized like this article p
On 5/16/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
Please let me know if I make a mistake. Otherwise I will revert it back.
I make a mistake of course. I meant 'if I made a mistake'. ;)
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x02
Hi folks,
I was reviewing DefaultIoFuture implementation in 1.1 which used
CountDownLatch and AtomicBoolean, and found a possible bug. Please
verify my idea.
Current implementation:
protected void setValue( Object newValue )
{
if( ready.compareAndSet( false, true ) )
{
On 5/3/07, Julien Vermillard <[EMAIL PROTECTED]> wrote:
Hi everyone,
After a successful vote (with 5 +1), Mark Webb was added to MINA
commiter list. You probably all already know his implication in the
project, with patch and excellent documentations.
The Apache MINA PMC members believe he will
[
https://issues.apache.org/jira/browse/DIRMINA-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496189
]
Mark Webb commented on DIRMINA-364:
---
I have added the following constructor:
public SocketAcceptor(Executor execu
[
https://issues.apache.org/jira/browse/DIRMINA-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496180
]
Mark Webb commented on DIRMINA-364:
---
I will add this in to the 2.0 baseline...
> Include Runtime.getRuntime().ava
Hi Rob,
On 5/16/07, Rob Butler <[EMAIL PROTECTED]> wrote:
Hello all,
I'm a bit confused with SocketAcceptor( int processorCount, Executor executor ).
Internally this creates a new SocketIoProcessor for each processorCount. But
the SocketIoProcessors all share the same Executor. What's the a
[
https://issues.apache.org/jira/browse/DIRMINA-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Trustin Lee closed DIRMINA-366.
---
Resolution: Fixed
It should be fixed now. :D
> Default socket option values are retrieved incorrect
[
https://issues.apache.org/jira/browse/DIRMINA-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Trustin Lee updated DIRMINA-366:
Fix Version/s: (was: 1.0.3)
1.1.1
1.0.4
A
[
https://issues.apache.org/jira/browse/DIRMINA-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Trustin Lee reopened DIRMINA-366:
-
reuseAddress is still false if a user creates a new SocketAcceptorConfig or
DatagramAcceptorConfig.
Hello all,
I'm a bit confused with SocketAcceptor( int processorCount, Executor executor ).
Internally this creates a new SocketIoProcessor for each processorCount. But
the SocketIoProcessors all share the same Executor. What's the advantage of
having multiple instances of SocketIoProcessor?
On 5/16/07, peter royal <[EMAIL PROTECTED]> wrote:
On May 15, 2007, at 12:10 PM, Maarten Bosteels wrote:
> tests failed here as well.
>
> I had to change
> public class RequestResponseFilterTest
> into
> public class RequestResponseFilterTest extends TestCase
That's a JUnit 4 test, so it doesn't
On 5/16/07, mat <[EMAIL PROTECTED]> wrote:
2007/4/25, Trustin Lee <[EMAIL PROTECTED]>:
>
> I'd like to add more pepper to Peter's comment. :)
>
> On 4/25/07, peter royal <[EMAIL PROTECTED]> wrote:
> > On Apr 21, 2007, at 8:38 AM, mat wrote:
> > > I implemented my protocol encoding in the procotol
Reduce memory consumption of DefaultIoFuture
Key: DIRMINA-377
URL: https://issues.apache.org/jira/browse/DIRMINA-377
Project: MINA
Issue Type: Improvement
Components: Core
Affects Ve
On 5/16/07, peter royal <[EMAIL PROTECTED]> wrote:
On May 15, 2007, at 2:11 PM, Haviv wrote:
> Recently I am profiling memory on my application which is based on
> MINA
> 1.0.1.
> During my tests I found that there are many instances of ArrayList
> allocated
> from DefaultIoFuture constructor(aro
On 5/16/07, mat <[EMAIL PROTECTED]> wrote:
1) If I only want to compress the body part of my message (NOT head). How
could mina compression filter be applied for this purpose?
You need to compress by yourself. There's no way to do that for now.
2) If 1) answer is NO. Can I add my own compre
On 5/16/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
On 5/16/07, mat <[EMAIL PROTECTED]> wrote:
> Is it possible to do some figuration in LoggingFilter? For instance, can I
> only log the incomging message? Can I only log some types of messages? Or I
> have to write my own Logging? Otherwises, it s
Fine-grained logging control in LoggingFilter
-
Key: DIRMINA-376
URL: https://issues.apache.org/jira/browse/DIRMINA-376
Project: MINA
Issue Type: New Feature
Components: Filter
On 5/16/07, mat <[EMAIL PROTECTED]> wrote:
Is it possible to do some figuration in LoggingFilter? For instance, can I
only log the incomging message? Can I only log some types of messages? Or I
have to write my own Logging? Otherwises, it seems logging filter is less
useful. Correct me if I am wr
On 5/16/07, mat <[EMAIL PROTECTED]> wrote:
Can anyone give me a hint why migrate spring into mina? Is Spring for web
development?
Well, Spring is basically a IoC (or DI) container. It's not directly
related with web application development. Of course, it provides many
bells and whistles which
On 5/15/07, satish viswanatham <[EMAIL PROTECTED]> wrote:
Hi Trustin,
Good morning. Yes my application hangs, no exceptions. Here is the thread
dump. I see that my main singleton object's init method acts like the
server. May be it is possible that - that object initialization method is
still ho
Can anyone give me a hint why migrate spring into mina? Is Spring for web
development?
Hi,
Thanks for the reply Pete.
StreamWriteFilter looks promising, i found the following mail in the archive:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01657.html
It even demonstrates on how to set it up in combination with the
TextLinkCodecFactory.
Archives are definately handy.
-twan
Is it possible to do some figuration in LoggingFilter? For instance, can I
only log the incomging message? Can I only log some types of messages? Or I
have to write my own Logging? Otherwises, it seems logging filter is less
useful. Correct me if I am wrong. Thanks.
1) If I only want to compress the body part of my message (NOT head). How
could mina compression filter be applied for this purpose?
2) If 1) answer is NO. Can I add my own compression(de-compression) filter
and encryption(de-encryption) filter? If NOT, should I do it inside the
encoder(decoder)?
On May 15, 2007, at 2:11 PM, Haviv wrote:
Recently I am profiling memory on my application which is based on
MINA
1.0.1.
During my tests I found that there are many instances of ArrayList
allocated
from DefaultIoFuture constructor(around 10-20%
of the total memory), after reviewing the code
2007/4/25, Trustin Lee <[EMAIL PROTECTED]>:
I'd like to add more pepper to Peter's comment. :)
On 4/25/07, peter royal <[EMAIL PROTECTED]> wrote:
> On Apr 21, 2007, at 8:38 AM, mat wrote:
> > I implemented my protocol encoding in the procotol filter and I
> > used one
> > session one object met
BTW, what is the good point to use LRU cache?
2007/5/15, mat <[EMAIL PROTECTED]>:
Thanks. Trustin.
2007/4/30, Trustin Lee <[EMAIL PROTECTED]>:
>
> On 4/27/07, mat <[EMAIL PROTECTED]> wrote:
> > So cache has to be global variable?
> > Following is my Encoder class. Where should I put the cache?
Hi
Recently I am profiling memory on my application which is based on MINA
1.0.1.
During my tests I found that there are many instances of ArrayList allocated
from DefaultIoFuture constructor(around 10-20%
of the total memory), after reviewing the code there is indeed an allocation
of the "listene
On May 15, 2007, at 12:10 PM, Maarten Bosteels wrote:
tests failed here as well.
I had to change
public class RequestResponseFilterTest
into
public class RequestResponseFilterTest extends TestCase
That's a JUnit 4 test, so it doesn't need that, but Maven isn't smart
enough to do JUnit 4 test
I have been voted in, but have not received an account yet...
--
..Cheers
Mark
On 5/15/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote:
On 5/15/07, Rob Butler <[EMAIL PROTECTED]> wrote:
>
> Will you be commiting that change?
I wish I could :-)
Unfortunately I am not a MINA commiter.
Mark, I g
On 5/15/07, Rob Butler <[EMAIL PROTECTED]> wrote:
Will you be commiting that change?
I wish I could :-)
Unfortunately I am not a MINA commiter.
Mark, I guess you can do the fix ?
Maarten
- Original Message
From: Maarten Bosteels <[EMAIL PROTECTED]>
To: dev@mina.apache.org
Sent: T
Will you be commiting that change?
- Original Message
From: Maarten Bosteels <[EMAIL PROTECTED]>
To: dev@mina.apache.org
Sent: Tuesday, May 15, 2007 3:10:54 PM
Subject: Re: Trunk build failure / Mina 2.0 ETA?
tests failed here as well.
I had to change
public class RequestResponseFilterT
At revision 538285. It would appear I am more "up-to-date" than you are.
Perhaps that's why your not seeing the problem?
Rob
- Original Message
From: Mark Webb <[EMAIL PROTECTED]>
To: dev@mina.apache.org
Sent: Tuesday, May 15, 2007 3:05:49 PM
Subject: Re: Trunk build failure / Mina 2.
tests failed here as well.
I had to change
public class RequestResponseFilterTest
into
public class RequestResponseFilterTest extends TestCase
Maarten
On 5/15/07, Mark Webb <[EMAIL PROTECTED]> wrote:
Just performed the same commands and
org.apache.mina.filter.reqres.RequestResponseFilterTest
Just performed the same commands and
org.apache.mina.filter.reqres.RequestResponseFilterTest
passed 5 of 5.
When you perform 'svn st', what revision are you up to? Should be 538278.
--
..Cheers
Mark
On 5/15/07, Rob Butler <[EMAIL PROTECTED]> wrote:
I just did an svn update, which showed wha
I just did an svn update, which showed what I have is fully up-to-date.
Then did:
mvn clean
mvn install
Still fails in the exact same way.
Rob
- Original Message
From: Mark Webb <[EMAIL PROTECTED]>
To: dev@mina.apache.org
Sent: Tuesday, May 15, 2007 11:41:13 AM
Subject: Re: Trunk buil
On May 15, 2007, at 7:15 AM, Twan wrote:
I rather read a couple bytes from a file that is on the server and
send it directly to the client. Can somebody please tell me which
combination of classes i should use to make this work?
Give the StreamWriteFilter a whirl.
-pete
--
[EMAIL PROTECTED
I just performed an svn up, and mvn test with no errors.
--
..Cheers
Mark
On 5/15/07, Rob Butler <[EMAIL PROTECTED]> wrote:
Hello all,
It looks like Mina's got a failing unit test in the trunk.
Maven output:
Running org.apache.mina.filter.reqres.RequestResponseFilterTest
Tests run:
Hi Matt,
You could request a thread-dump to see where the handler is stalled.
(or connect to your server with jconsole)
Maarten
On 5/15/07, Matt Mehalso <[EMAIL PROTECTED]> wrote:
Actually, I turned off the ExecutorFilter and I'm still having the same
problem, so scratch the last message. It
Hello all,
It looks like Mina's got a failing unit test in the trunk.
Maven output:
Running org.apache.mina.filter.reqres.RequestResponseFilterTest
Tests run: 5, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
<<< FAILURE!
I was wondering if there is any timeline for Mina 2
Actually, I turned off the ExecutorFilter and I'm still having the same
problem, so scratch the last message. It looks like the handler is stalling
in the sessionOpened event method when trying to load a new
ClassPathXmlApplicationContext. I wonder if this is some sort of security
issue with Ser
Hello,
I'm developing a client and server where the client retrieves
information from a server. This information is retrieved by sending
text queries to the server and the server returns a the information
(text format). For this i am using the TextLineCodecFactory which works great.
But at a
Hi All -
We have developed a simple request - response server using Mina 1.0.3. The
server uses a logging filter, a custom codec, and an ExecutorFilter to
intercept incoming events/messages before hitting our custom
HandlerAdapter. The server has been fully tested on our development
machines.
Thanks. Trustin.
2007/4/30, Trustin Lee <[EMAIL PROTECTED]>:
On 4/27/07, mat <[EMAIL PROTECTED]> wrote:
> So cache has to be global variable?
> Following is my Encoder class. Where should I put the cache?
You can use MessageEncoderFactory. :)
If you specify MessageEncoder class in
DemuxingPro
I think you have to write your own decoder class to reassemly the whole
message. The good starting point is to take a look at sumup example. It
really helps.
2007/5/15, 李健 <[EMAIL PROTECTED]>:
Hi, All
i wanna to use MINA to improve my ApplicationServer, the old
application's socket part is
[
https://issues.apache.org/jira/browse/DIRMINA-344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495907
]
Paulo Taylor commented on DIRMINA-344:
--
No I haven't tried 1.0 so I can't really tell. It's quite difficult to
Trustin Lee wrote:
>
> On 5/9/07, seven <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>>
>> I have a problem with mina-filter-ssl-1.1.0 release: sometimes for
>> unknown
>> reasons and in an arbitrary way, after a client connects to a SSL enabled
>> server, it does not send anything. On the server sid
49 matches
Mail list logo