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 » General IBM MQ Support » AMQ6184 When trying a user defined mq service

Post new topic  Reply to topic
 AMQ6184 When trying a user defined mq service « View previous topic :: View next topic » 
Author Message
alechko
PostPosted: Sun Jan 03, 2010 10:38 am    Post subject: AMQ6184 When trying a user defined mq service Reply with quote

Apprentice

Joined: 12 Jan 2005
Posts: 37

Hi,

I've written a java program that reads the performance events written to SYSTEM.ADMIN.PERFM.EVENT and handles them.
I've tried defining the program as an MQ Service (DEFINE SERVICE) but when I try to start it, it immediately stops and I receive the following error in the stderr:
Code:

/usr/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

I've defined the following environment variables in /var/mqm/service.env:
Code:

CLASSPATH=/home/alik/workspace/EventMonitor/bin:/opt/mqm/java/lib/com.ibm.mq.jar:/usr/share/java/log4j.jar:/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/home/alik/workspace/EventMonitor/com.ibm.mq.pcf-6.1.jar:
JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java


This is the service I've defined:
Code:

dis service('EventMonitor')
     1 : dis service('EventMonitor')
AMQ8629: Display service information details.
   SERVICE(EventMonitor)                   CONTROL(QMGR)
   SERVTYPE(SERVER)                     
   STARTCMD(/usr/lib64/jvm/jre-1.6.0-openjdk/bin/java)
   STARTARG(-Djava.library.path=/opt/mqm/java/lib64 EventMonitor)
   STOPCMD( )                              STOPARG( )
   STDOUT(/tmp/stdout.log)                 STDERR(/tmp/stderr.log)
   DESCR( )                                ALTDATE(2010-01-03)
   ALTTIME(20.17.58)                   

Did anyone ever try to define a java program as an MQ service?
I'd appreciate any kind of help

Thanks
_________________
Alik Hochner
EAI Consultant
Certified IBM Websphere MQ v6.0 System Administrator
Certified IBM Websphere Message Broker v6.1 System Administrator
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » AMQ6184 When trying a user defined mq service
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.