[QFJ-285] Proxy Support for Initiator connections Created: 09/Jan/08  Updated: 13/Dec/16  Resolved: 13/Dec/16

Status: Closed
Project: QuickFIX/J
Component/s: Networking
Affects Version/s: None
Fix Version/s: 1.6.3

Type: Improvement Priority: Default
Reporter: James Furness Assignee: Christoph John
Resolution: Fixed Votes: 3
Labels: None

Attachments: Text File actual_patch_v01.txt     Text File quickfixj-proxy-initial.patch    
Issue Links:
Requires
requires QFJ-664 Upgrade MINA from 1.1.8 to 2.0.x Closed

 Description   

QuickFIX/J doesn't seem to currently support initiator connections via a proxy. MINA may support proxies in the future, but does not at present:

http://issues.apache.org/jira/browse/DIRMINA-415

In the meantime it might be good to implement a workaround in IoSessionInitiator similar to this:

http://www.nabble.com/Proxy-filter-tp10997336s16868p11056766.html

Are there currently any plans for proxy support in QuickFIX/J? If not and the above solution sounds reasonable I would be happy to attempt this and contribute a patch if I can find the time to do so.

Thanks,
James



 Comments   
Comment by Toli Kuznets [ 09/Jun/09 ]

the corresponding MINA RFE that tracked the underlying proxy support feature just got closed - which means proxy support will be available in the 2.0 MINA release.

Do we have plans for testing/incorporating the 2.0 MINA into QFJ?

Comment by oliver jehle [ 24/Jan/12 ]

attached v0.1 of my work to use mina2.0.4 with quickfix/j.

i saw different messages about 2.0 mina in 2008, but no patches. so i did it myself.

the unit and accepance tests run successfully, so i hope i understand the differences
with mina 1.

the patch is against svn trunk and can be applied by patch -p0. you have to replace
the mina 1.1.8 libs with the 2.0.4 libs

Comment by Jörg Thönnes [ 25/Jan/12 ]

Please create sub-ticket to upgrade MINA from 1.1.8 to 2.0.4 as suggested in the mailing list.

Comment by oliver jehle [ 25/Jan/12 ]

open issue QFJ-664 for the upgrade to mina 2.0.4. the issue is the baseline for solve this issue

Comment by oliver jehle [ 13/Mar/12 ]

posted the hopefully "final" patch for QFJ-664 upgrade the mina framework. i prepared already the first sources for proxy support. the problem i have now is to simulate a proxy locally for the ant tests, if somebody has a hint or know a good small http proxy on java base, please give feedback.

Comment by oliver jehle [ 21/Apr/15 ]

as the mina is now merged, i rebased the patches for proxy. i'm still searching a possbility to test with a proxy. i found jsocks.jar , but for http proxy i still need a possiblity to test it somehow..

Comment by oliver jehle [ 21/Apr/15 ]

not tested rebased changes to head

Comment by Christoph John [ 22/Apr/15 ]

Hi Oliver, are you able to open a pull request for this or don't you have a github account? But either way, thanks for the patch.

Cheers,
Chris.

Comment by DaniG [ 23/Feb/16 ]

Hi,

I've tested the solution against a proxy and doesn't work. The ioHandler on IoSession initiation must be an instance of org.apache.mina.proxy.AbstractProxyIoHandler to connect with a proxy.

Best regard.

Comment by Christoph John [ 23/Feb/16 ]

Hi, you are saying that you patched the current version with the attached quickfixj-proxy-initial.patch and it didn't work?

Comment by DaniG [ 23/Feb/16 ]

Hi Christoph,

Yes, I've patched the code and doesn't work, I've tested it with proxy.

Comment by Christoph John [ 23/Feb/16 ]

Hi Dani, are you able to fix this or provide a new patch?

Comment by Christoph John [ 13/Dec/16 ]

Will be integrated based on PR https://github.com/quickfix-j/quickfixj/pull/91

Generated at Mon Apr 29 10:46:22 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.