|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMB 6 on Win XP - META-INF/keywords.txt question |
« View previous topic :: View next topic » |
Author |
Message
|
Cliff |
Posted: Thu Oct 27, 2005 8:13 am Post subject: WMB 6 on Win XP - META-INF/keywords.txt question |
|
|
Centurion
Joined: 27 Jun 2001 Posts: 145 Location: Wiltshire
|
Folks,
I am trying to embed version (or other) information in a JAR file in the approved manner. I have a Java Compute node in a little message flow that I can deploy and execute, no problem so far.
First observation - the .jar file for my Java Compute logic is nowhere to be seen in the toolkit except from within the bar editor.
IBM say "Add a file called META-INF/keywords.txt to the root of the JAR file".
Second observation - you can't seem to do this from within the toolkit. I finally found my jar file in C:\Documents and Settings\CGardiner\Local Settings\Temp so I assume the toolkit stashes jars there pending being added into a bar.
So how do I add this keywords.txt file into the .jar? With a path that looks like meta-inf? Simply adding a keywords.txt file to the jar via WinZip (predictably) doesn't work, perhaps as there is no way to spoof the meta-inf path. Can anyone help?
I have a feeling that there will be a lot more questions that the documentation can't help with as we get into the detail of V 6.
Thanks all -
Cliff |
|
Back to top |
|
 |
wschutz |
Posted: Thu Oct 27, 2005 8:52 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
There's probably a slick way to do thisin the java perspective, but what about:
1) cd C:\Documents and Settings\CGardiner\Local Settings\Temp
2) mkdir META-INF
3) create the keyword.txt file in that directory
4) use zip to add META-INF/keywords.txt to the jar _________________ -wayne |
|
Back to top |
|
 |
Cliff |
Posted: Fri Oct 28, 2005 2:26 am Post subject: |
|
|
Centurion
Joined: 27 Jun 2001 Posts: 145 Location: Wiltshire
|
Problem solved. Wayne was partly right:
It seems the .jar file is located in C:\Program Files\IBM\Workspaces\WMB6.0\.metadata\.plugins\com.ibm.etools.mft.jcn - I probably saw it in the temp location because I had been using WinZip to extract it from the .bar file.
So what you do is this:
1 Create the folder C:\META-INF.
2 Create and edit the file C:\META-INF\keywords.txt.
3 Open C:\Program Files\IBM\Workspaces\WMB6.0\.metadata\.plugins\com.ibm.etools.mft.jcn\YOURJAVA.jar with WinZip.
4 Add in C:\META-INF\keywords.txt, checking the 'Save Full Path Info' box.
5 In the Broker Admin perspective, delete the .jar from the .bar and add it in again.
6 Save, deploy, enjoy, go to the pub, etc.
And that's it. Hope this saves someone else an unwanted wall/head interface situation....
Cliff |
|
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
|
|
|
|