ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB TCP/IP node

Post new topic  Reply to topic
 WMB TCP/IP node « View previous topic :: View next topic » 
Author Message
PEPERO
PostPosted: Sun Jun 12, 2011 5:13 am    Post subject: WMB TCP/IP node Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Hi;
I'm using a TCP/IP node under WMB which is going to receive a message from the client application written in java.I dont want to use JMS as the message protocol. As i have read in the manuals the node supports only the RAW socket types . On the other hand the Raw sockets are not supported in java. is there an alternate solution for this case?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Jun 12, 2011 10:05 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Java can certainly read and write from a plain TCPIP socket, that can therefore be read by a TCPIP node in Broker.

But you probably really just want to use HTTP instead, if for mysterious reasons you don't want to have the java application use JMS and then you use an MQInput node.

Because what you are proposing to do, using TCPIP directly, is complicated and not for beginners. HTTP is going to be much easier on both ends.
Back to top
View user's profile Send private message
PEPERO
PostPosted: Sun Jun 12, 2011 6:50 pm    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Thanks for your guidlines.
But i still want to use the TCP/IP. I don't know why the BROKER supports only the raw socket types , i mean for the security reasons?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jun 13, 2011 4:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

PEPERO wrote:
I don't know why the BROKER supports only the raw socket types


IMHO unless your intention is actually to use ICMP best advice is to get the http protocol to do some of the lifting for you. Or use JMS & get that to do all the lifting for you.

Perhaps if you explained a little about which socket type you're trying to implement and why? There may be another method.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jun 13, 2011 4:44 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Can you please explain to us why you must use TCP/IP nodes when using a protocol like HTTP will make life so much easier in the long run.

TCP/IP is a (IMHO) contact admin thing to program. For starters when receiving a stream of data you have no idea how long it is. Sometime you get a 4byte Lenght then a stream of data. You have to firstly read the length and then do another read using the length param. In other cases you have to read everything until you get a defined ETX character. Ugh. Just pick any tome on TCP/IP programming and you will see why. Having been programming & using networked systems since 1974 I hope you will see my POV.

Using a message based protocol that sits on top of TCP/IP is IMHO always the preferred solution. HTTP is one example of this. All the hard work is done for you.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB TCP/IP node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.