Alternative to new ThreadPool(..,..)

29 views
Skip to first unread message

Titus Rakkesh

unread,
Jan 31, 2017, 6:02:13 AM1/31/17
to jpos-...@googlegroups.com
Hi Friends,
     We are using JPos in one of our projects. we have the following implementation to start the ISOServer.

ISOServer server = new ISOServer(port, channel, new ThreadPool(10, 100));

But the source complains that "new ThreadPool(.., ..)" has been deprecated. What will be the alternative?

Thanks,
Rakkesh

Andrés Alcarraz

unread,
Jan 31, 2017, 9:10:39 AM1/31/17
to jPOS Users
I think by now, there is no alternative to the ThreadPool in ISOServer. t is deprecated to prevent future uses of the class, since in some point it will be deprecated and replaced by native java ThreadPool implementations present in newer versions of java.

But that class is used by legacy code in several components that need to be refactored/tested. So by now you have to live with that warning.

Andrés Alcarraz

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CABm7V62xdriAUrpS0TL4kz1cAqpLjusLjPm2uN%2Bh95gFyv%3Dz8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Victor Salaman

unread,
Jan 31, 2017, 9:12:31 AM1/31/17
to jpos-...@googlegroups.com
Hi:

Also you might want to move your code to Q2. You'll be happier too. 

:)

Reply all
Reply to author
Forward
0 new messages