0 Replies Latest reply: Apr 22, 2014 12:59 PM by AmalRajVinothJames RSS

    Jython code to add migratable target

    AmalRajVinothJames

      Hi,

       

      I am trying to add migrable target using following wslt jython commands:

       

      edit();
      startEdit();
      cd('/');
      jmsnode = cd('JMSServers/jmsnode1BL');
      cd('/');
      target = cd('MigratableTargets/ejbnode1_migratable');
      cd('/');
      jmsnode.addTarget(target);
      save();
      stopEdit('y');
      

       

      Above code throws following exception:

       

      Traceback (innermost last):

        File "<string>", line 1, in ?

        File "<iostream>", line 388, in save

        File "<iostream>", line 520, in raiseWLSTException

      WLSTException: Error occurred while performing save : Save failed: There are some invalid changes which need to be resolved. : weblogic.descriptor.DescriptorValidateException: The following failures occurred:

      -- Since the JMS server jmsnode1BL or SAF agent is targeted to a migratable target, it cannot use the default store

       

       

      How to set custom persistent store for a migratable target using python code ?

       

      Could anyone please help ?

       

      PS: Creation of JMS servers is done using JMX, but only addtarget is done python code.

       

      Thanks,

      Amal