|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MQ Plugin for Eclipse |
« View previous topic :: View next topic » |
Author |
Message
|
mqjeff |
Posted: Wed Jan 04, 2012 12:47 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Boomn4x4 wrote: |
mqjeff wrote: |
At 7.0, you do not need to install a second Eclipse environment. The eclipse runtime that comes with MQExplorer is fully capable of acting as a java development environment, and you can run the MQExplorer "in an eclipse workbench". |
|
Sorry, I missed that part.
Boomn4x4 wrote: |
However, I develop in C++, I cannot find (at least quickly) a way to bring in a C++ perspective? |
Oh, that's the easy part. You just use the normal eclipse mechanisms to install the CDT into the MQ Explorer runtime.
Or, again, install another copy of Eclipse 3.3, use the link file method, and then install the CDT into that.
But you're not going to be able to develop an Eclipse plugin of any kind, including an MQExplorer plugin, in C++.... |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Fri Jan 06, 2012 5:27 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
I know these questions are starting to get away from MQ and into Eclipse, but I'll give it a try here.
The Eclipse that came with MQ is version 3.3. The oldest version of the Eclipse CDT on the Eclipse website is Galieo, which requires an Eclipse binary of 3.6.
The Eclipse wiki does have a link for "older downloads" v3.0 and older, but the link is broken.
Any advice? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 06, 2012 6:18 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
download the archived binary.... I know you say that the link is broken, but that doesn't seem to be the case, at least for me.
Again, though, if you are hoping to do MQExplorer or Eclipse plugins in general, they are written in Java, not in C/C++. You can certainly develop a plugin that makes extensive use of the JNI to put the bulk of your logic into a c/c++ codebase... but that's rather putting the cart before the horse.
Edited To Add: You can also see if you can use the supportPac version of MQExplorer to get a second Eclipse 3.3 version... I can't say for sure it will coexist with a non-supportPac version, particularly at the 7.0 level. |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Fri Jan 06, 2012 6:28 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
Thanks for the link, definitely wasn't the one I was using.
I'm not developing Plug-ins for MQ, I'm developing MQ libraries that use MQ.
I am just trying to get organized into one Eclipse project. It isn't a big deal as it isn't much of a problem switching from one Eclipse to the other, but it would be nice to have access to MQ, my C++ library projects, the few Java projects I have, and my SVN repositories all in the same place.
Just trying to get organized. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 06, 2012 6:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Ah, okay. Definitely a laudable goal.
And, again, certainly achievable. Download Eclipse, install. Link/install WMQExplorer into it. Link/install CDT into it. lather, rinse, repeat for your other programming tools. And the nephew of your cousin's father Robert is you. |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Jan 06, 2012 7:19 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9475 Location: US: west coast, almost. Otherwise, enroute.
|
Boomn4x4 wrote: |
... it would be nice to have access to MQ, my C++ library projects, the few Java projects I have, and my SVN repositories all in the same place. |
Do you really mean that you intend to create one bucket where you will combine all of the parts of products you work with? Have you thought this through? How do you intend to manage this?
PATH and CLASSPATH (or equivalents) allow for application (and developer) access to the files when needed. This allows admins to upgrade individual product libraries. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 06, 2012 7:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
Boomn4x4 wrote: |
... it would be nice to have access to MQ, my C++ library projects, the few Java projects I have, and my SVN repositories all in the same place. |
Do you really mean that you intend to create one bucket where you will combine all of the parts of products you work with? Have you thought this through? How do you intend to manage this? |
We're discussing configuring development tooling, not a runtime deployment.
It is better for a developer to be able to use one tool for a project that uses multiple resources, rather than having to use a standalone SVN client to work with source control, a separate tool to manage MQ and a third tool to edit and compile code.
This is a perfectly reasonable and valuable thing that Boomn4x4 is trying to do. |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Fri Jan 06, 2012 8:04 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
Thanks for all your patience on this... however, I'm still in a prediciment.
I have 3.3 installed, I have the Eclipse perspectived linked into it..... It loads fine... but my local queues are not displaying in this version, just like they weren't in the Indigo version.
HOWEVER, I "THINK" I found the problem... just not sure how to fix it.
For poops and giggles, I decided to create a new local queue manager from my new Eclipse 3.3 build. It created the manager just fine, but it didn't show up. In the process of creating the queue, it asks for the log and exits path, the "dafault" path was setup as /opt/mqm/log which was not a valid path. I went to my working MQ Explorer and checked it out, its "default" path was /var/mqm/log .
So it would appear to me that my new Eclipse's are utilizing the default path of /opt/mqm, which is wrong, where it should be /var/mqm. MQ is installed in /var/mqm, not opt/mqm. Therefore, if Eclipse is looking for my local queues in the default directory of /opt/mqm, it won't find them. So, any idea how to tell eclipse to look in /var/mqm instead?
I see if I go into the "properties" of my working MQ Explorer, there is an option to change the "default prefix", however, that option isn't available in the new Eclipse I just installed. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 06, 2012 8:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
Boomn4x4 wrote: |
Thanks for all your patience on this... however, I'm still in a prediciment.
I have 3.3 installed, I have the Eclipse perspectived linked into it..... It loads fine... but my local queues are not displaying in this version, just like they weren't in the Indigo version.
HOWEVER, I "THINK" I found the problem... just not sure how to fix it.
For poops and giggles, I decided to create a new local queue manager from my new Eclipse 3.3 build. It created the manager just fine, but it didn't show up. In the process of creating the queue, it asks for the log and exits path, the "dafault" path was setup as /opt/mqm/log which was not a valid path. I went to my working MQ Explorer and checked it out, its "default" path was /var/mqm/log .
So it would appear to me that my new Eclipse's are utilizing the default path of /opt/mqm, which is wrong, where it should be /var/mqm. MQ is installed in /var/mqm, not opt/mqm. Therefore, if Eclipse is looking for my local queues in the default directory of /opt/mqm, it won't find them. So, any idea how to tell eclipse to look in /var/mqm instead?
I see if I go into the "properties" of my working MQ Explorer, there is an option to change the "default prefix", however, that option isn't available in the new Eclipse I just installed. |
Don't get confused with the MQM installation and binaries in /opt/mqm
and the mq data stuff in /var/mqm to which the explorer should have no access unless you need to look at logs.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Fri Jan 06, 2012 8:18 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
I'm also noticing that when I launch Eclipse, I'm getting the following error:
Failed to load MQJBND! - and we are a server box! |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 06, 2012 8:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
Boomn4x4 wrote: |
I'm also noticing that when I launch Eclipse, I'm getting the following error:
Failed to load MQJBND! - and we are a server box! |
Due to the fact that you don't have <MQinstall>/java/lib or <MQinstall>/java/lib64 on your libpath... _________________ MQ & Broker admin |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Fri Jan 06, 2012 8:26 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
Boomn4x4 wrote: |
I'm also noticing that when I launch Eclipse, I'm getting the following error:
Failed to load MQJBND! - and we are a server box! |
... and a simple google search led to a solution, found in this thread.
http://www.mqseries.net/phpBB2/viewtopic.php?t=55851
Needed to add /opt/mqm/java/lib to my LD_LIBRARY_PATH.
Its working!!!!
Thank you for all your help!!! |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Fri Jan 06, 2012 12:31 pm Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
Argh.... I hate to beat a dead horse here, but I'm still having trouble.
Everything WAS working fine, however, I went to install a few other plug-ins and in the process, started getting exception faults. After spending too much time trying to figure it out, I decided to just simply do a fresh install.
So, I deleted the entire eclipse directory, untar'd the Eclipse 3.3 tar.gz... I put the .link files back in and launced Eclipse.... only to find out that my local queues are gone again
I'm at a total loss.... am I forgetting something? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 06, 2012 2:12 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Boomn4x4 wrote: |
Argh.... I hate to beat a dead horse here, but I'm still having trouble.
Everything WAS working fine, however, I went to install a few other plug-ins and in the process, started getting exception faults. After spending too much time trying to figure it out, I decided to just simply do a fresh install.
So, I deleted the entire eclipse directory, untar'd the Eclipse 3.3 tar.gz... I put the .link files back in and launced Eclipse.... only to find out that my local queues are gone again
I'm at a total loss.... am I forgetting something? |
you will always need to start Eclipse with the LD Library path configured. |
|
Back to top |
|
 |
Boomn4x4 |
Posted: Mon Jan 09, 2012 6:51 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2011 Posts: 172
|
mqjeff wrote: |
you will always need to start Eclipse with the LD Library path configured. |
It's configured property, I have the library path set in my .profiles. Nothing in my LD path changed between the time it was working and when I reinstalled the clean version. I tried taking the LD path back out, hoping to see that I would get the MQJBIND error again, but it didn't happen. Nothing out of the ordinary seems to be happening, just, no local queues.
I've dried disabling / renabling the Eclipse configuration, and still nothing. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|