Author |
Message
|
4integration |
Posted: Thu Apr 26, 2007 9:20 pm Post subject: Stopping WBI Adapters |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
When running the WBI adapters on UNIX and there is a need for stopping them, it's quite complex.
1. Kill the process
2. Remove the lock file
3. Remove the pid file
I have seen "mqsiremotestopadapter" but it doesn't want to work on Windows. (haven't installed it on the UNIX box yet)
- How does this work?
- Is a message put on the admin queue that tells the adapter to shutdown?
- Can I create a simple JMS client that put such message? _________________ Best regards
4 Integration |
|
Back to top |
|
 |
mqseries0209 |
Posted: Fri Apr 27, 2007 6:13 am Post subject: |
|
|
 Voyager
Joined: 30 Mar 2006 Posts: 90
|
Where have u see the "mqsiremotestopadapter" ?
I dont see any info regarding that in Infocenter.
What version of MB are you using ?.
Why is that u have to remove the lock file and pid file after killing the adapter ?. the adapter wont start again ? AFAIK, I was able to succesfully stop/kill adapters on AIX with out removing the above mentioned files. |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Apr 27, 2007 7:03 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Dont remove the .lock file, by your self, it will be done by the adapter itself.
you can stop the adapter by killing the adapter instances.
thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
djeripo |
Posted: Sun Apr 29, 2007 7:44 am Post subject: |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
I dont think Adapter does that on its own.We have to maually remove the .lock file from $wbi_adapters directory evrytime when we want to start back the adapter.This is happening in my case. |
|
Back to top |
|
 |
4integration |
Posted: Sun Apr 29, 2007 8:42 pm Post subject: |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
|
Back to top |
|
 |
4integration |
Posted: Sun Apr 29, 2007 8:45 pm Post subject: |
|
|
 Disciple
Joined: 04 Sep 2006 Posts: 197 Location: Gothenburg, Sweden
|
Gaya3 wrote: |
Dont remove the .lock file, by your self, it will be done by the adapter itself.
you can stop the adapter by killing the adapter instances.
thanks and Regards
Gayathri |
No, it is not removed and it's not possible to start again without removing the lock file.
What signal do you kill with?
I have used the big sledge hammer -9 which gives the process no mercy and therefore not able to clean up before closing. _________________ Best regards
4 Integration |
|
Back to top |
|
 |
Il_Ciclone |
Posted: Wed May 02, 2007 5:27 am Post subject: |
|
|
Novice
Joined: 21 Mar 2007 Posts: 24
|
I think the lockfile is removed automatically if you kill the process without the "-9"
i.e "kill <PID>" |
|
Back to top |
|
 |
|