This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm running weblogic 9.2, but I did not think this topic is product specific, so I'm posting it here:
I need to write or implement a connection pool to another piece of hardware that I communicate with over ethernet. It's not a database. Does something like this already exist, and if not, does anyone know of any examples of this? Thanks.
Thanks for the response. To use the J2EE connector arch, does the other end need to be an EIS? The piece of hardware that i'm communicating with communicates via tcp/ip , and i just send ascii or binary data to it. What i am doing currently is each time i need to send it a command, i open up a socket, send the command, get a response and close the socket. This does not scale well, so I'm looking to use a connection pool or something like it. I'm not even sure something like this exists for non db or EIS stuff.
Joined: Aug 19, 2005
It seems that you should be able to create network sockets inside your ManagedConnection class.
ManagedConnection: A javax.resource.spi.ManagedConnection instance represents a physical connection to an underlying EIS. The creation of a ManagedConnection instance typically results in the allocation of EIS and resource adapter resources (for example, memory and network sockets) for each physical connection. Since these resources can be costly and scarce, an application server pools ManagedConnection instances in a managed environment. This interface is used only internally within the application server; applications do not use this interface.