On 22 Mar 2011, at 16:20, Roberto Cahanap wrote: Hi Roberto
> Is there a way to run FOP as a listener to a certain port? I was told that > this was possible with FOP. It is definitely /possible/, just as any other Java program, but not out-of-box, i.e. it will take /some/ extra development effort and is not just a matter of passing a command-line switch, if that is what you're looking for... If you're already familiar with servlet programming, you can opt to deploy it in a servlet container: a sample FOPServlet is included in the distro (but do note that this is not at all complete and secure!) Another way to handle this is to write your own small Java wrapper, which prepares a socket and listens on a port of your choosing. Just set up a sleeping thread in an infinite while-loop, and have it wake up when a request comes in. Programming sockets and threads in Java is almost child's play. Obviously, you then have to safeguard that service against potential DoS attacks, especially if it is exposed to the outside. At any rate, you would definitely not have to reinvent the light-bulb here, as it can be based on your average sample java.net demo program. Regards, Andreas --- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
