# Java Socket

**URL:** <https://techcommunity.softwareag.com/t/java-socket/124983>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [November 6, 2007, 10:48am UTC](https://techcommunity.softwareag.com/t/java-socket/124983 "2007-11-06T10:48:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![za\_goenk](https://avatars.discourse-cdn.com/v4/letter/z/85f322/32.png) [@za\_goenk](https://techcommunity.softwareag.com/u/za_goenk)\
**Post date:** [November 6, 2007, 10:48am UTC](https://techcommunity.softwareag.com/t/java-socket/124983/1 "2007-11-06T10:48:08Z")

</div>

Hi, i’m a newbie in web method,did anyone have java socket programming example in webmethod.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [November 6, 2007, 9:24pm UTC](https://techcommunity.softwareag.com/t/java-socket/124983/2 "2007-11-06T21:24:28Z")

</div>

Integration Server isn’t a Java app server. Java services shouldn’t make up more than 10% of your solution and programming at the socket level is really, really something that should be avoided. Use the provided services and facilities instead.

---

<div class="post-metadata">

**Author:** ![wMusers.Com1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wmusers.com1/32/170_2.png) [@wMusers.Com1](https://techcommunity.softwareag.com/u/wMusers.Com1)\
**Post date:** [November 7, 2007, 4:11am UTC](https://techcommunity.softwareag.com/t/java-socket/124983/3 "2007-11-07T04:11:12Z")

</div>

I completely agree with Rob that you should not write java services to do this unless you absolutely have no other way to communicate with the third party application (or device) than over a socket.

That said, [here is an example of a java service](http://www.wmusers.com/forum/showthread.php?p=24029#post24029)to deal with socket-level communications. It was written over three years ago for some reason that I can no longer recall. I do not offer support for this example and offer it only as food for thought not as something suitable for any purpose other than education.

Mark
