0 Replies Latest reply: Feb 15, 2013 4:16 PM by scott555 RSS

    cmo.lookup<thing>("thing's name")

    scott555
      So I've found this convention quite useful:

      wls:/wls_domain/serverConfig> blah = cmo.lookupFileStore("wlsFileStore1")
      wls:/wls_domain/serverConfig> print(blah)
      [MBeanServerInvocationHandler]com.bea:Name=wlsFileStore1,Type=FileStore

      wls:/wls_domain/serverConfig> blah = cmo.lookupFileStore("wlsFileStoreDoesntExist")
      wls:/wls_domain/serverConfig> print(blah)
      None

      Stick that in a function, do a try:, and if it comes back "None," I know I've not found the thing.

      For just about all the JMS stuff I've come across, FileStores, Queues, DistributedDestinations, etc. I've been able to craft some kind of lookup method - Until now

      I'm trying to determine the existence of a DurableSubscriber in a serverRuntime tree, but no variation of the "cmo.lookup" seems to work.

      The object itself says it's a Type: JMSDurableSubscriberRuntime, but if I do a "cmo.lookupJMSDurableSubscriberRuntime" or any variation thereof, I just get an:

      AttributeError: lookupJMSDurableSubscriberRuntime

      Is this kind of method just not available in the serverRuntime hierarchy?

      Edited by: Scott555 on Feb 15, 2013 2:16 PM