users@genericjmsra.java.net

Problem with with SJAS 9 and WebSphere MQ 5.3

From: Janardhanan, Ajith \(AJANARDH\) <"Janardhanan,>
Date: Thu, 22 Jun 2006 13:25:57 -0400

I searched the list, but could not find a similar question posted. If I
missed out one, I apologize.

I am trying to get the messages in an MQ queue to be read by an MDB. I
get the following error. Looks like the genericra connector is not
getting executed and the config is not the one I configured, obviously
Iam goofing up . The error on starting the App Server is :



[#|2006-06-22T17:18:23.746+0000|SEVERE|sun-appserver-pe9.0|javax.enterpr
ise.system.container.ejb.mdb|_ThreadID=10;_ThreadName=main;ReadMDB;com.s
un.enterprise.connectors.ConnectorRuntimeException: Could not find
physical destination :
null;_RequestID=26941c66-b986-4ed2-ac18-a65745d0e489;|MDB00017:
[ReadMDB]: Exception in creating message-driven bean container:
[com.sun.enterprise.connectors.ConnectorRuntimeException: Could not find
physical destination : null]|#]

[#|2006-06-22T17:18:23.747+0000|SEVERE|sun-appserver-pe9.0|javax.enterpr
ise.system.container.ejb.mdb|_ThreadID=10;_ThreadName=main;_RequestID=26
941c66-b986-4ed2-ac18-a65745d0e489;|com.sun.enterprise.connectors.Connec
torRuntimeException
com.sun.enterprise.connectors.ConnectorRuntimeException: Could not find
physical destination : null
        at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysica
lDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1290)
        at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBR
untimeInfo(ActiveJmsResourceAdapter.java:1128)
        at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(Co
nnectorMessageBeanClient.java:157)
        at
com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.
java:194)
        at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFac
toryImpl.java:270)
        at
com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:48
6)
        at
com.sun.enterprise.server.EJBModuleLoader.load(EJBModuleLoader.java:158)
        at
com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:206)
        at
com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLife
cycle.java:198)
        at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.
java:326)
        at
com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServ
er.java:112)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
|#]







 These are the steps that I executed:

1)JMSAdmin

def qcf(AJ.QCF) hostname(localhost) port(1414)
channel(SYSTEM.DEF.SVRCONN) transport(CLIENT) qmanager(QM1)
def q(AJ2Q) queue(AJ.TO.QUEUE) qmanager(QM1)

  Contents of InitCtx

  [D] .X11-unix javax.naming.Context
  [D] .X11-pipe javax.naming.Context
      sdt_flMvayRa java.io.File
  [D] orbit-mqm javax.naming.Context
  [D] .ICE-unix javax.naming.Context
  [D] hsperfdata_mqm javax.naming.Context
  [D] .removable javax.naming.Context
  [D] MQSeries.667 javax.naming.Context
  [D] META-INF javax.naming.Context
      ntp.log java.io.File
      speckeysd.lock java.io.File
  [D] orbit-root javax.naming.Context
  [D] MQSeries.22537 javax.naming.Context
  [D] MQSeries.22543 javax.naming.Context
      .bindings java.io.File
      ajlog.txt java.io.File
   a NEWWCF com.ibm.mq.jms.MQQueueConnectionFactory
   a AJ.QCF com.ibm.mq.jms.MQQueueConnectionFactory
   a TTQ com.ibm.mq.jms.MQQueue
   a AJ2Q com.ibm.mq.jms.MQQueue
   a TQueue com.ibm.mq.jms.MQQueue
   a AJFROMQ com.ibm.mq.jms.MQQueue
   a QFACT com.ibm.mq.jms.MQQueueConnectionFactory
   a QCF com.ibm.mq.jms.MQQueueConnectionFactory

  24 Object(s)
    11 Context(s)
    13 Binding(s), 8 Administered


2) SJSAS:
#Configure genericra
asadmin create-resource-adapter-config --user admin --passwordfile
password.txt --property
SupportsXA=true:ProviderIntegrationMode=jndi:UserName=xxxx:Password=xxxx
:RMPolicy=OnePerPhysicalConnection:JndiProperties=java.naming.factory.ur
l.pkgs\\=com.ibm.mq.jms.naming,java.naming.factory.initial\\=com.sun.jnd
i.fscontext.RefFSContextFactory,java.naming.provider.url\\=file\\:\\/\\/
tmp:LogLevel=finest genericra

###Deploy genericra
asadmin deploy --user admin --passwordfile password.txt
$GLASSFISH_HOME/lib/addons/resourceadapters/genericjmsra/genericra.rar


#Create a connection pool ref
asadmin create-connector-connection-pool --raname genericra
--connectiondefinition javax.jms.QueueConnectionFactory
--transactionsupport NoTransaction --property
ConnectionFactoryJndiName=AJ.QCF mypool

#create the con resource
asadmin create-connector-resource --poolname mypool jms/MyQCF

#create the admin obj
asadmin create-admin-object --raname genericra --restype javax.jms.Queue
--property DestinationJndiName=AJ2Q jms/MyQ




Thanks
Ajith