[ 
https://issues.apache.org/jira/browse/DIRMINA-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Harvey updated DIRMINA-375:
--------------------------------

    Attachment: SumUpClient.java
                EchoClient.java

Attaching some examples.  It's hard to think of a good example that doesn't 
involve some antiquated proprietary system!  A HTTP client comes to mind, but 
it is so well covered elsewhere.

I thought of a potential caveat.  if you're not converting from ByteBuffers 
(like netcat, for example) the ByteBuffer gets passed back out of 
connection.receive() but I think at this stage it will have been released by 
MINA.  You could use an IOFilter to aquire() them if you really needed this to 
work.

> Synchronous Client API
> ----------------------
>
>                 Key: DIRMINA-375
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-375
>             Project: MINA
>          Issue Type: New Feature
>    Affects Versions: 1.1.0
>            Reporter: Brad Harvey
>         Attachments: EchoClient.java, minaClient.patch, SumUpClient.java
>
>
> Hi,
> There was mention of a synchronous client api for MINA on the mailing list, 
> so I thought I'd offer my implementation.
> http://www.nabble.com/forum/ViewPost.jtp?post=10445399&framed=y
> As far as I can tell it works, but I've never given it a good run under heavy 
> load.  The areas I think could use some review are:
> Connection - possible to use generics?  Only makes sense if you can tie it to 
> what the filters are doing I think.
> ConnectionFactoryImpl - is the managedSessions processing required?
> SequentialExecutor/DaemonThreadFactory - are there better/pre existing ways 
> of doing these?
> Connection/NonBlockingConnection - any point having them separate?  Did this 
> initially for JCA resource adapter idea - didn't want to offer non blocking 
> to EJB clients.
> Regards,
> Brad.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to