Dave,
Don't know if this is exactly what you are looking for but look at the inetd service on Unix. Netmanage has/had an inetd server (6+years ago) for NT, I'm sure there is something equivalent or better there today. Your stdin and stdout are attached to the socket stream and you write to it pretty much like console I/O. What's nice is that the service get started when a request comes in on the port so you don't have to worry about the process not being available. It works as long as you have a fairly well known, controlled number of clients accessing the service at a time. What's cool is that write your syntax in a simple to use format you can just telnet to the server:port and test the app.
John
-----Original Message-----
From: Bolt, Dave [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 1:41 PM
To: Bolt, Dave; [EMAIL PROTECTED]
Subject: [jBoss-User] RE: Off-topic socket question
Sorry for the partial post, life is a pain for those of us forced to use MS Outlook! (Especially it's "helpful feature of encoding all plain text messages as HTML. Sorry Linux users!)
Anyway the full post continues below.
I have an app that is a mix of Jboss, Tomcat, and a custom socket server. The socket server is a media repository that will serve as a back-end to my EJBs in JBoss. Think of the socket server as a kind of specialized FTP site. The socket server is a replacement for the unreliable support of BLOBs in Oracle.
The integration between the socket server and the EJBs is no big deal. What I am wondering is if I can use the socket server to integrate a (ugh) Visual Basic client to my infrastructure. One group of end users will be producing content. They use a tool that is a VB client automating MS Word, I'd like to have this VB client to be able to interact with my socket server to allow the users to "post" content to the repository.
Does anyone have experience in integrating Java and other enviroments (C, Visual Basic, etc.) via Sockets.
I'd rather not have to try writing a full FTP or SOAP server in Java. I just need something that is quick and dirty.
As an alternate solution, is their a good way in Java to monitor the contents of a directory for when a file gets placed in the directory (for example as a result of an FTP upload)? How do you know the complete file is there?
Thanks
Dave Bolt
There is always plenty of bandwidth, just none for you.
