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 » connect direct

Post new topic  Reply to topic
 connect direct « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Thu Jan 07, 2016 10:16 am    Post subject: connect direct Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

i am looking at the infocenter and other resources online. trying to integrate connect direct with message broker. I see in the infocenter where a CDoutput node can be used to serialize an output to a file and then intiate transfer via the connect direct server.

i want to just kick off a file transfer without writing it out via cdoutput, just want to possibly send a trigger message to the underlying cd server to start the file transfer, is this possible? if it is, how do i know once the transfer is complete?

i agree i have to do more reading but just wanted to reach out for some help.

thanks
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Jan 07, 2016 10:58 am    Post subject: Re: connect direct Reply with quote

Grand High Poobah

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

paustin_ours wrote:
i want to just kick off a file transfer without writing it out via cdoutput,


Why? If you're just trying to use IIB as a control mechanism for C then that's a horribly cumbersome way to do it and you're better off using the inbuilt tooling.

paustin_ours wrote:
I just want to possibly send a trigger message to the underlying cd server to start the file transfer, is this possible?


IIB could use any of the APIs or other control mechanisms C supplies like any application. I repeat my above comments.

paustin_ours wrote:
if it is, how do i know once the transfer is complete?


You don't. The point of C is to let it handle the file transfer; conceptually the same way you'd hand off a message transfer in MQ. If you want to know how C's doing with the file transfer, the best way is to ask C in the same way you'd use the MQ tooling to check for messages.

This really sounds a lot like you're trying to control C with IIB flows; something sends IIB some kind of "file in place" message and IIB kicks off the file transfer. This is much better done with the facilities inside C, and if those are insufficient for your use cases, buy Sterling Control Center (or whatever it's called these days) rather than rolling your own in IIB.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Thu Jan 07, 2016 4:45 pm    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

Quote:
This really sounds a lot like you're trying to control C with IIB flows; something sends IIB some kind of "file in place" message and IIB kicks off the file transfer. This is much better done with the facilities inside C, and if those are insufficient for your use cases, buy Sterling Control Center (or whatever it's called these days) rather than rolling your own in IIB.


that is exactly what I am trying to do, this is part of a bigger process flow. Once I get a file in place message, the flow reads the message and looks up the destination and should perform the file transfer.

I guess i will have to make a java api call from JCN

can you please shed some light on the drawback of using CD this way?
Back to top
View user's profile Send private message Yahoo Messenger
smdavies99
PostPosted: Thu Jan 07, 2016 10:53 pm    Post subject: Reply with quote

Jedi Council

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

paustin_ours wrote:


I guess i will have to make a java api call from JCN



If you mean do some actual I/O from Java inside a JCN then the general consensus around here is

Don't do it.

If you are calling some other software that runs in a different process then you should be ok. Just be careful.
_________________
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
Vitor
PostPosted: Fri Jan 08, 2016 5:21 am    Post subject: Reply with quote

Grand High Poobah

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

paustin_ours wrote:
can you please shed some light on the drawback of using CD this way?


Firstly you're reinventing a wheel. SCC does exactly what you're describing, and comes with a user-friendly front end to manage the file transfers. It also has capabilities for administering snodes, pnodes and netmaps.

Secondly you're introducing state into IIB. So you get a message saying the file's in place and trigger the transfer. At best, you're now repeatedly querying the agent to see if the transfer worked. At bad, you're in retry land because the network's gone wibble and the agent can't communicate with the target. At worst, you're trying to signal whoever sent you the "file in place" message that a) the file isn't in place b) it's in place but they didn't release the file lock and the agent can't move it c) it's there but it's empty d) etc.

That's a lot of code for a lot of possible situations. And you're on the hook when it doesn't work.

If this is part of a bigger process flow, get whatever's orchestrating the process to manage the transfer. Unless you're using IIB to orchestrate the process flow in which case all hope is lost; that's managing file transfers on steroids.
-
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
paustin_ours
PostPosted: Mon Jan 11, 2016 4:16 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

Thanks for the pointers. My reading about this lead to MQ FTE and also read a blog that CD and FTE are now combined into just one product and the announcement came in 2014. Not sure if this is true.

Now is FTE better suited for such transfers driven by a broker flow?
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Mon Jan 11, 2016 5:26 am    Post subject: Reply with quote

Grand High Poobah

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

paustin_ours wrote:
Now is FTE better suited for such transfers driven by a broker flow?


No it isn't. For exactly the reasons I gave above. Firstly, MQ FTE and Connect:Direct were two IBM products that competed in the same functionality space (because they were originally developed by external companies and purchased by IBM) so the issues are the same. Secondly, the problem (as I tried to articulate above) is not the file transfer, but attempting to manage and administer it using a broker flow. This is a bad design pattern as I tried to explain.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » connect direct
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.