On Nov 15, 2007 9:34 AM, minatds <[EMAIL PROTECTED]> wrote: > Hi All, > I still have this problem where I cannot send urgent data packets. > In my Gateway application, I basically proxy between legacy applications and > a mainframe. > These legacy applications send urgent data packets for which mainframe sends > a response and > they use as their sync mechanism. > I cannot use SocketConnector as it does not implement raw Java sockets. > There is a defect opened in this regard. > > I am trying to find any work around for this solution. > > How can I combine raw socket with IOHandler. > Can I open the socket when the session is opened and store in the session as > attachment and > write to that socket. > and then immediately wait for any response from the socket inputstream and > wrap it as bytebuffer and write it to session? > > is this a good approach?
As I already commented in the JIRA issue you created, it's impossible with current JDK implementation. There's one alternative I can't think of if you want to use MINA with your use case for now: the implementation of blocking I/O based socket transport. You could contribute in this area, of course. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
