Hello all,
I am still new to using MINA - I read the tutorials, javadoc, and I've
combed the mailing list archives, but I did see anything that addresses one
of my needs on a project.
I need to do alot of asynchronous UDP communications - generally that is
easy enough, but I not sure how to accomplish what I need to be able to do
with my IoHandler implementation. I can create an implementation that can
receive packets from a port, or send a packet back to a sender, and they all
work great. What I need to be able to do, is to receive any packets that
come to that port, as well as send a packet to whatever IP is provided when
a separate thread (JMS consumer or webservice, etc) calls for it.
I had initially thought that I could create new sessions to send a new
packet using my acceptor by calling acceptor.newSession(), but I get an
error: java.lang.IllegalArgumentException: Unknown local address:
localhost:1721. I seem to be getting that error no matter how I specify my
local address. Does anyone have any ideas, or does anyone know of a another
(preferably better) way to do this?
Thanks,
Jeremy
- Datagram server implementation question Jeremy Fox
-