Fun with Custom Event Gateways

As usual it's been too long between drinks... or posts as it were. I've been sooo busy with work, hobby projects and family to post much recently, but I just don't want anyone to think I've fallen off the planet. I didn't really think I had too much to share, but someone may find my recent experience with event gateways useful.  
At work we're creating a java app that will synchronise with our cold fusion messaging system. The question was ... how do we get it to talk to the cold fusion business model on the server side. Well, you guested it, event gateways came to the rescue.
CF7 ships with a built in tcp/ip socket gateway that passes simple strings back and forth between the client and the listener cfc. It manages the threads for each socket and provides some helper functions to pass information back into the listener.
I modified this to use object I/O streams to pass serialized java objects back and forth between the client and the listener. It's kinda cool. Now I can transfer data objects and serialised files back and forth to my java client directly from CF.  
I guess I'm posting this to see if anyone else out there has had experience with this sort of thing or has any better idea's.

Comments

Sweet use of the gateways! Would you be prepared to share the modified gateway code and a small sample Java app to show how to use it?

Cool. Glad to know that you are getting good use out of the socket gateway sample!

No, webDU has never been on my calendar (for a number of reasons that I mentioned on my blog a while back).

Sean, no problem. I've created a small chat client type of app to demonstrate the principles involved. I'll bundle it together and post it here asap. Are you coming DU next week? Maybe we can talk about it then.

Sorry to hear it. It seems like these thing come around too quickly, so hopefully we'll see you again next year. :)

FYI, I've posted the demo code on a new blog entry.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

News Feed

Recent comments

In short, I've found linode to be a better admin...
I see you decided to go with Linode. Do you have...
Jumba has been an utter disappointment. After...
That's great, thank you.
Sorry I didn't go through and update all my old...