|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Use MB to invoke a web-server that read/write files. |
« View previous topic :: View next topic » |
Author |
Message
|
sunny_30 |
Posted: Fri Jun 13, 2008 7:12 am Post subject: Use MB to invoke a web-server that read/write files. |
|
|
 Master
Joined: 03 Oct 2005 Posts: 258
|
Hi,
We are trying to automate the below procedure:
The users currently click the URLs that invoke the web-server to read/write files from/to a FTP-server on the DMZ.
The PHP-scripts are run on the web-server to pick/put the files.
The web-client receives a "complete" after the scripts are invoked on the server.
Can we use MessageBroker to automate this process?
Looks like there are no webservices/WSDL to directly exchange data. The web-server can just exchange files.
What will be the best way to automate the current-process & any suggestion on design changes are also welcome.
Thanks in advance,
Sunny. |
|
Back to top |
|
 |
Gaya3 |
Posted: Sat Jun 14, 2008 1:26 am Post subject: Re: Use MB to invoke a web-server that read/write files. |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
sunny_30 wrote: |
We are trying to automate the below procedure:
The users currently click the URLs that invoke the web-server to read/write files from/to a FTP-server on the DMZ.
The PHP-scripts are run on the web-server to pick/put the files.
The web-client receives a "complete" after the scripts are invoked on the server.
|
you can automate the above process using MB.
you can use HTTP request reply scenario over here.
Where you accept the webservice request do the activities by MB by triggering the applications and send a reply back to user (Webservice)
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
sunny_30 |
Posted: Sat Jun 14, 2008 5:21 am Post subject: |
|
|
 Master
Joined: 03 Oct 2005 Posts: 258
|
Gaya3,
The present setup is such a way that the users click the URLs to move data between a web-server(say 'A') & an FTP-server(say 'B') on DMZ.
The URLs will invoke the PHP-scripts on 'A' to either read/write files from/to 'B'
We are trying to automate this process using MB. As soon as the files are ready to be read/written on 'B', a MQ-message will be sent to a queue, MB will pick up this message & need to contact 'A'.
Questions:
Can we use HttpRequest to simulate 'invoking the URL', note that A isnt a web-service, it cannot accept the data, all it can do is exchange files.
Can we use 'triggering' to invoke a URL ?
Is MB an option here (or) do we have to write a cronjob (or) execute a maestro-schedule/unix-script to invoke the URL directly? please advise.
Our shortterm goal is to automate the above FTP process.
Once this is done, the longterm plan is to eliminate FTP/files & some how exchange the data directly with 'A' modifying it to expose it as web-service & process data.
Thanks,
Sunny. |
|
Back to top |
|
 |
Gaya3 |
Posted: Sat Jun 14, 2008 6:29 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
sunny_30 wrote: |
The present setup is such a way that the users click the URLs to move data between a web-server(say 'A') & an FTP-server(say 'B') on DMZ.
The URLs will invoke the PHP-scripts on 'A' to either read/write files from/to 'B'
|
Hope this your current architecture
URL -- > PHP (A -Server) ----> FILE (B-Server)
sunny_30 wrote: |
We are trying to automate this process using MB. As soon as the files are ready to be read/written on 'B', a MQ-message will be sent to a queue, MB will pick up this message & need to contact 'A'.
|
We can do the same using MB in much more better way.
here i got confused with your idea, you want webservice to be invoked or
webservice helps to invoke the file to write or read.
Please clear me this.
sunny_30 wrote: |
Questions:
Can we use HttpRequest to simulate 'invoking the URL', note that A isnt a web-service, it cannot accept the data, all it can do is exchange files.
Can we use 'triggering' to invoke a URL ?
|
my ideas
URL ---> HTTPInputNode -->{Transformation} -->FileOuputNode/JavaCompute Node --> File (B-Server)
sunny_30 wrote: |
Is MB an option here (or) do we have to write a cronjob (or) execute a maestro-schedule/unix-script to invoke the URL directly? please advise.
|
No need, dont make any dependency files, as much as you can.
try to do everything through MB, there are lot of options works in better way _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
sunny_30 |
Posted: Sat Jun 14, 2008 7:10 am Post subject: |
|
|
 Master
Joined: 03 Oct 2005 Posts: 258
|
Thanks for your reply.
You are right, This is our current-scenario:
When Files ready to be read on FTP-server 'B' -- > people manually execute the URL --- > PHP ('A' Web-Server) ----> FILE(data) from 'B'-Server moved to 'A'
We dont have any control to modify the Web-Server (A) functioning for now. This setup is not going change for about an year from now. It WILL continue to take request from the URL & execute the PHP-script to move files from FTP-server "B".
In long-term(after an year) we want to change the whole architecture using one of below approaches:
No-files(data in MQ-messages) --> WMB -> Web-service will accept data( on 'A' no files, no FTP, the current web-server will expose as service, PHP will be removed on 'A') --> modify HTTP-response to MQ
(OR)
No-files(data in MQ-messages) --> WMB --> 'A' will be modified to read MQ -> respond back on MQ
We need an immediate/short-term solution for now, I want to know using MB(if possible) can eliminate the 'manual' part above (the modified architecture will stay for an year from now):--
Files(data) ready to be read on FTP-server 'B' -- > send an MQ-message to just say files are ready --> process message & using MB how to execute the URL??
Once URL is executed, the PHP-script will be executed on 'A' & files will move using current setup
Using HttpRequest, can we execute the URL, note that A is not a web-service.
Please advise
Thanks again
-Sunny |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|