Saturday, 15 January 2011

Netty 4 and JCA WorkManager integration -



Netty 4 and JCA WorkManager integration -

the question integrating netty 3 jca resource adapter asked. solution quite straightforward: write custom executor wraps jca workmanager , pass nioserversocketchannelfactory constuctor.

however, threading seems heavily refactored in netty 4 , approach doesn't work (there's no nioserversocketchannelfactory class, start with). there alternative supply own threadfactory, obviously, not plenty jca, since workmanager exposed, not threads, simple facade not possible anymore.

so think i'm stuck. trying possible without lots of code beingness written?

edit: in end asked myself why making resource adapter @ all. instead utilize jms queues (inbound , outbound) integration points between our ee application , standalone server uses netty , works fine.

maybe little late. integrated netty in resource adapter well.

in code, when find message delivered application straight start, execute or schedule work straight @ workmanager in inboundchannelhandler. imo netty 4 there no need separate threading. netty job , implementation has pass work inbound channel handler workmanager.

netty jca

No comments:

Post a Comment