how can this pattern work? need help!!

the model i need have 3layers:JSP+EJB+SocketServer, i know EJB can act as Socket Client(not Server),but the

main problem is that i must use a .dll or .lib file(written in

c) in EJB to packge the socket data.someone says EJB

can use JNI while EJB Spec won't allow it, i dont't want

to take the risk also.Is there any other way can work?

(use runtime in EJB?)

if EJB can't work in this pattern,can i have another choice? (JSP and SocketServer can't be replaced)

NEED HELP!

[541 byte] By [xingwuji] at [2007-9-26 7:08:52]
# 1
Use the Mediator pattern.
clstern at 2007-7-1 16:50:36 > top of Java-index,Other Topics,Patterns & OO Design...