JMS queue assignment with WLST offline WLS 8.1

Hi
I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
I've tried with assign(...) function or the setParent without success.
As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
10x

Hi
I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
I've tried with assign(...) function or the setParent without success.
As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
10x

Similar Messages

  • Cannot create TransactionParams of ConnectionFactory with WLST Offline

    Hello dear WL users and geeks,
    I'm trying to automate the creation of a weblogic domain using WLST Offline but I've got some problem with the configuration of a JMS ConnectionFactory : I don't know how to activate the XA-Connection factory setting.
    Ok, here is the WLST code, results and thoughs are in comments (##) :
    ==================
    ## I start with a fresh install of Oracle Weblogic Server 11g R1 (10.3.3) (also tried 10.3.1, same problem) and use the Configuration Wizard to
    ## create a new Weblogic domain using the default "Basic Weblogic server domain template".
    ## First, read the domain
    readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
    ## Create a JMSServer
    create('MyJMSServer', 'JMSServer')
    assign('JMSServer', 'MyJMSServer', 'Server', 'AdminServer')
    ## Create a JMS Module
    create('TestModule', 'JMSSystemResource')
    ## And now a ConnectionFactory
    cd('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0')
    fact=create('TestConnFactory', 'ConnectionFactory')
    fact.setJNDIName('someJNDIName')
    updateDomain()
    ## Ok, let's see what is defined :
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    ls()
    ## -rw- DefaultTargetingEnabled false
    ## -rw- JNDIName someJNDIName
    ## -rw- LocalJNDIName null
    ## -rw- Name TestConnFactory
    ## -rw- Notes null
    ## -rw- SubDeploymentName null
    ## Uh oh. Why are the 'directories' TransactionParams and SecurityParams missing ? How am I supposed to edit the TransactionParams ?
    ## Maybe there is a createTransactionParams method ?
    dir(fact)
    ## ['JNDIName', 'class', 'clientParams', 'defaultDeliveryParams', 'defaultTargetingEnabled', 'equals', 'flowControlParams', 'getClass',
    ## 'getClientParams', 'getDefaultDeliveryParams', 'getFlowControlParams', 'getInvocationHandler', 'getJNDIName', 'getLoadBalancingParams',
    ## 'getLocalJNDIName', 'getName', 'getNotes', 'getProxyClass', 'getSecurityParams', 'getSubDeploymentName', 'getTransactionParams',
    ## 'hashCode', 'isDefaultTargetingEnabled', 'isProxyClass', 'isSet', 'loadBalancingParams', 'localJNDIName', 'name', 'newProxyInstance', 'notes',
    ## 'notify', 'notifyAll', 'securityParams', 'setDefaultTargetingEnabled', 'setJNDIName', 'setLocalJNDIName', 'setName', 'setNotes',
    ## 'setSubDeploymentName', 'subDeploymentName', 'toString', 'transactionParams', 'unSet', 'wait']
    ## If I try to invoke any method related to transactionParams, I've got a null pointer exception
    ==================
    Ok, now I'll use the web admin console to edit the transaction parameters : I start the Weblogic Server and go to the web-based Administration console.
    In the Domain Structure tree, I go to base_domain > Services > Messaging > JMS Modules.
    Then I click on my 'TestModule' module and then on my 'TestConnFactory' Connection Factory.
    I go in the 'Transaction' tab and I enable the XAConnectionFactory checkbox.
    Finally, I click on the save button.
    Let's start a new WLST Offline session and see what's new :
    ==================
    ## Read the domain
    readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
    ## Check what is defined in my ConnectionFactory
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    ls()
    ## Hey look, the TransactionParams appeared :
    ## drw- TransactionParams
    ## -rw- DefaultTargetingEnabled true
    ## -rw- JNDIName someJNDIName
    ## -rw- LocalJNDIName null
    ## -rw- Name TestConnFactory
    ## -rw- Notes null
    ## -rw- SubDeploymentName null
    ## Go in there :
    cd('TransactionParams/NO_NAME_0')
    ls()
    ## -rw- TransactionTimeout 3600
    ## -rw- XAConnectionFactoryEnabled                    true
    ==================
    So :
    - Why the TransactionParams setting is not directly created or available when a new ConnectionFactory is created ?
    - How can I create a JMS ConnectionFactory and edit its TransactionParams using only WLST Offline (i.e., without the admin console and without WSLT online) ?
    Any help appreciated,
    Thanks !

    Ok, I found a solution :
    =============
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    create('DUMMY', 'TransactionParams')
    ls('TransactionParams/NO_NAME_0')
    ## -rw- TransactionTimeout 0
    ## -rw- XAConnectionFactoryEnabled false
    =============
    But it seems strange to have to create a dummy TransactionParams. Is it the correct way to do it ?

  • WLST Offline, WLS 8.1.6 domain read Error

    RedHat Linux 4 upd. 4, WLP 8.1. sp 6
    Steps to repeat:
    <pre>
    [beauser@localhost ~]$ runWLSToffline.sh
    Welcome to Weblogic Scripting Shell
    wls_offline:/>readTemplate('/WLS/bea/weblogic81/common/templates/domains/wli.jar')
    java.io.IOException: Unable to resolve input source.
    java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getXAPools(ConfigAspectHelper.java:855)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPools(ConfigAspectHelper.java:822)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPoolArray(ConfigAspectHelper.java:629)
    at com.bea.plateng.domain.assignment.JDBCPoolJDBCDataSourceAssignment.createSourceTree(JDBCPoolJDBCDataSourceAssignment.java:57)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.JDBCDataSourceAssigned(DependencyDeploymentAssignmentListener.java:90)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.doAssign(DependencyDeploymentAssignmentListener.java:55)
    at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
    at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
    at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
    at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
    at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
    at com.bea.plateng.domain.AutoDeployer.saveOriginalAssignments(AutoDeployer.java:712)
    at com.bea.plateng.domain.AutoDeployer.init(AutoDeployer.java:674)
    at com.bea.plateng.domain.AutoDeployer.<init>(AutoDeployer.java:177)
    at com.bea.plateng.domain.DomainTemplate.<init>(DomainTemplate.java:155)
    at com.bea.plateng.domain.DomainTemplate.<init>(DomainTemplate.java:128)
    at com.bea.plateng.domain.TemplateBuilder.parseDomainTemplate(TemplateBuilder.java:568)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1178)
    java.io.IOException: Unable to resolve input source.
    java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getXAPools(ConfigAspectHelper.java:855)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPools(ConfigAspectHelper.java:822)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPoolArray(ConfigAspectHelper.java:629)
    at com.bea.plateng.domain.assignment.JDBCPoolJDBCDataSourceAssignment.createSourceTree(JDBCPoolJDBCDataSourceAssignment.java:57)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.JDBCDataSourceAssigned(DependencyDeploymentAssignmentListener.java:90)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.doAssign(DependencyDeploymentAssignmentListener.java:55)
    at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
    at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
    at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
    at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
    at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.DomainChecker.syncAssignments(DomainChecker.java:216)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1192)
    at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:365)
    at com.bea.plateng.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:195)
    java.io.IOException: Unable to resolve input source.
    java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
    at com.bea.plateng.domain.assignment.JDBCPoolJMSJDBCStoreAssignment.createSourceTree(JDBCPoolJMSJDBCStoreAssignment.java:59)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.event.assignment.JMSServerServerAssignmentListener.getJDBCConnectionPool(JMSServerServerAssignmentListener.java:99)
    at com.bea.plateng.domain.event.assignment.JMSServerServerAssignmentListener.doAssign(JMSServerServerAssignmentListener.java:50)
    at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
    at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
    at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
    at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
    at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.DomainChecker.syncAssignments(DomainChecker.java:216)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1192)
    at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:365)
    at com.bea.plateng.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:195)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at org.python.core.PyReflectedFunction.__call__(Lorg.python.core.PyObject;[Lorg.python.core.PyObject;[Ljava.lang.String;)Lorg.python.core.PyObject;(PyReflectedFunction.java:???)
    wls_offline:/integration>
    </pre>
    As you can see the domain is opened, so is this error painfull, or is it a veeery verbose Warning?
    Best regards,
    Christopher                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Well, maybe domain is onened, but I can't still get to configure the JDBC Pools:
    wls_offline:/integration/JDBCConnectionPool>cd('cgPool')
    java.io.IOException: Unable to resolve input source.
    Error: cd() failed. Do dumpStack() to see details.
    wls_offline:/integration/JDBCConnectionPool>dumpStack()
    com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:897)
    at com.bea.plateng.domain.script.jython.WLScriptContext.cd(WLScriptContext.java:372)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    So error mensioned above is not just warning - it block JDBC configuration.
    I found that the WLST somoehow redefines whe WL_HOME, and instead of using the /WLS/bea/weblogic81 directory it uses user home dir /home/beauser ...
    I had to create the symbolic links to $HOME/common and $HOME/server to make WLST Offline works.
    Any one knows how can I change this path ?
    I run WLST-offline via:
    <pre>
    . /WLS/bea/weblogic81/server/bin/setWLSEnv.sh
    export HOME=$WL_HOME
    echo HOME: "$HOME" "..." "~"
    export CLASSPATH=$CLASSPATH:/home/beauser/wlst/wlst.jar:$WL_HOME/common/lib/jython.jar:/home/beauser/wlst/update012120053rdparty.jar:/home/beauser/wlst/update01212005/comdev.jar:/home/beauser/wlst/update01212005/config.jar:$WL_HOME/collom/lib:.
    java com.bea.plateng.domain.script.jython.WLST_offline $*
    </pre>
    Message was edited by:
            [email protected]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Java.lang.NullPointerException when using readTemplate with WLST offline

    I imported WLST offline as a module in to jython script and tried
    wlstOffline.readTemplate('../wls.jar')
    It gives me a java.lang.NullPointerException.
    Here is the entire stack trace
    Traceback (innermost last):
      File "testOffline.py", line 3, in ?
      File "E:\wlst\wlstOffline.py", line 78, in readDomain
    java.lang.NullPointerException
            at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(
    Ljava/lang/Exception;Ljava/lang/String;)V(WLScriptContext.java:897)
            at com.bea.plateng.domain.script.jython.WLScriptContext.readDomain(Ljava
    /lang/String;)V(WLScriptContext.java:244)
            at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/
    lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
            at jrockit.reflect.NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/l
    ang/Object;)Ljava/lang/Object;(Unknown Source)
            at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[
    Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;
    I)Ljava/lang/Object;(Unknown Source)
            at org.python.core.PyReflectedFunction.__call__(Lorg/python/core/PyObjec
    t;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;(PyRe
    flectedFunction.java:???)
            at org.python.core.PyMethod.__call__([Lorg/python/core/PyObject;[Ljava/l
    ang/String;)Lorg/python/core/PyObject;(PyMethod.java:???)
            at org.python.core.PyObject.__call__(Lorg/python/core/PyObject;)Lorg/pyt
    hon/core/PyObject;(PyObject.java:???)
            at org.python.core.PyInstance.invoke(Ljava/lang/String;Lorg/python/core/
    PyObject;)Lorg/python/core/PyObject;(PyInstance.java:???)
            at wlstOffline$py.readDomain$16(Lorg/python/core/PyFrame;)Lorg/python/co
    re/PyObject;(E:\wlst\wlstOffline.py:78)
            at wlstOffline$py.call_function(ILorg/python/core/PyFrame;)Lorg/python/c
    ore/PyObject;(E:\wlst\wlstOffline.py:???)
            at org.python.core.PyTableCode.call(Lorg/python/core/PyFrame;Lorg/python
    /core/PyObject;)Lorg/python/core/PyObject;(PyTableCode.java:???)
            at org.python.core.PyTableCode.call(Lorg/python/core/PyObject;Lorg/pytho
    n/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/pytho
    n/core/PyObject;(PyTableCode.java:???)
            at org.python.core.PyFunction.__call__(Lorg/python/core/PyObject;)Lorg/p
    ython/core/PyObject;(PyFunction.java:???)
            at org.python.core.PyObject.invoke(Ljava/lang/String;Lorg/python/core/Py
    Object;)Lorg/python/core/PyObject;(PyObject.java:???)
            at org.python.pycode._pyx0.f$0(Lorg/python/core/PyFrame;)Lorg/python/cor
    e/PyObject;(testOffline.py:3)
            at org.python.pycode._pyx0.call_function(ILorg/python/core/PyFrame;)Lorg
    /python/core/PyObject;(testOffline.py:???)
            at org.python.core.PyTableCode.call(Lorg/python/core/PyFrame;Lorg/python
    /core/PyObject;)Lorg/python/core/PyObject;(PyTableCode.java:???)
            at org.python.core.PyCode.call(Lorg/python/core/PyFrame;)Lorg/python/cor
    e/PyObject;(PyCode.java:???)
            at org.python.core.Py.runCode(Lorg/python/core/PyCode;Lorg/python/core/P
    yObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;(Py.java:???)
            at org.python.core.__builtin__.execfile_flags(Ljava/lang/String;Lorg/pyt
    hon/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/CompilerFlags;)V(__
    builtin__.java:???)
            at org.python.util.PythonInterpreter.execfile(Ljava/lang/String;)V(Pytho
    nInterpreter.java:???)
            at org.python.util.jython.main([Ljava/lang/String;)V(jython.java:???)
    java.lang.NullPointerException: java.lang.NullPointerException
    [/pre]
    Can any one tell me what might be the problem.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The domain exists.
    And the line 78 in wlstOffline.py is as follows
    77 def readDomain(domainDir):
    78 WLS.readDomain(domainDir)
    79 updateCmo()
    80 updatePrompt()

  • JMS Queue working with only one AIA instance.

    Hi,
    We are having a Web-Logic JMS Queue configured for an instance. I have developed a consumer in AIA instance to pull the messages from the Queue.
    And this works fine.
    Now I have an another instance consumer which is pointing to the same Queue, but it fails to get the messages from it.
    I have switched off the consumer in the FIRST instance, but even then consumer from the SECOND instance was not able to pull the messages.
    Later, I tried switching on the consumer of the FIRST instance, and all the messages were pulled in this instance.
    So how can I make it work with two AIA instances and one JMS Queue, provided only one AIA instance consumer is active at a time.
    Thanks in Advance.
    Regards!

    * Likely your best bet is to check your server logs for "Error" and "Warning" messages, and/or, since these questions are specific to AIA's usage of JMS, post your questions to the AIA newsgroup.
    * WL JMS does not impose a limit on the number of consumers on a queue, but it does only allow one named connection with the same "client id" to connect at a time. Its unusual to name connections in queueing applications, but possible - and AIA may be doing this. (If this is the problem there should be "client id in use" style log messages or exceptions.)
    * Another possibility is a misconfiguration of your remote consumer. Make sure the URL is correct, and remember, if an application is running in the same cluster as the remote destination, don't specify a URL.
    * Also, if the remote consumer is running in a different domain, make sure the domains are named differently, and that no two JMS servers in the two domains have the same name (as per the unique naming restrictions documented in the Best Practices section of the JMS configuration guide -- http://download.oracle.com/docs/cd/E14571_01/web.1111/e13738/best_practice.htm#CACJCGHG ).
    Regards,
    Tom

  • How can  SAP XI JMS Queue communicate with external JMS Queue

    Dear All ,
    we are Implementing SAP XI . Sender business system is splitting a file into small files and keeping them into JMS queues we want SAP XI JMS queue should communicate directly with the sender JMS queue (which is an external JMS queue) without any Adapter ,programming efforts and Middleware.
    Can you please tell me is it possible?

    I dont think it is possible directly without adapter

  • Distrubute Queue Creation with WLST

    Hi,
    I am trying to created queues on a clustered env with wlst 8.1.sp5.jar and remaining jars from 8.1 sp4. When i run the script it gets executed completely with creating required queue's. But it also throws one exception. I am not able to figure out why it is throwing this error. If anyone has info about it let me know.
    [jmsQueueCreation] cd('/')
    [jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_1.TransformationCheckWeb
    .queue.AsyncDispatcher_error' has been created successfully.
    [jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_1.TransformationCheckWeb
    .queue.AsyncDispatcher' has been created successfully.
    [jmsQueueCreation] java.lang.NullPointerException
    [jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
    lErrorDestination(JMSLegalHelper.java:575)
    [jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
    r.validateAttribute(JMSQueueMBean_Helper.java:41)
    [jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
    te(ExtendedInfo.java:323)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
    tributeValueIsLegal(DynamicMBeanImpl.java:1635)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
    ForModification(DynamicMBeanImpl.java:1570)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
    ibute(DynamicMBeanImpl.java:1089)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
    etAttribute(ConfigurationMBeanImpl.java:362)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1361)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1336)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
    ivate_setAttribute(RemoteMBeanServerImpl.java:431)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
    tAttribute(RemoteMBeanServerImpl.java:387)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
    Skel.invoke(Unknown Source)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
    erRef.java:477)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
    rRef.java:420)
    [jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
    oAs(AuthenticatedSubject.java:363)
    [jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
    ityManager.java:147)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
    sicServerRef.java:415)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
    icExecuteRequest.java:30)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
    ava:219)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
    178)
    [jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
    [jmsQueueCreation] --------------- nested within: ------------------
    [jmsQueueCreation] java.lang.NullPointerException
    [jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
    lErrorDestination(JMSLegalHelper.java:575)
    [jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
    r.validateAttribute(JMSQueueMBean_Helper.java:41)
    [jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
    te(ExtendedInfo.java:323)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
    tributeValueIsLegal(DynamicMBeanImpl.java:1635)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
    ForModification(DynamicMBeanImpl.java:1570)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
    ibute(DynamicMBeanImpl.java:1089)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
    etAttribute(ConfigurationMBeanImpl.java:362)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1361)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1336)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
    ivate_setAttribute(RemoteMBeanServerImpl.java:431)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
    tAttribute(RemoteMBeanServerImpl.java:387)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
    Skel.invoke(Unknown Source)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
    erRef.java:477)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
    rRef.java:420)
    [jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
    oAs(AuthenticatedSubject.java:363)
    [jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
    ityManager.java:147)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
    sicServerRef.java:415)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
    icExecuteRequest.java:30)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
    ava:219)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
    178)
    [jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
    [jmsQueueCreation] --------------- nested within: ------------------
    [jmsQueueCreation] javax.management.RuntimeOperationsException: RuntimeException
    thrown by the setAttribute weblogic.management.internal.WebLogicAttribute@2c127
    cbmethod of the Dynamic MBean
    [jmsQueueCreation] at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicO
    utboundRequest.java:108)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemo
    teRef.java)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_81
    4_WLStub.setAttribute(Unknown Source)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.u
    pdateConfigMBeans(ConfigurationMBeanImpl.java:972)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
    etAttribute(ConfigurationMBeanImpl.java)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1361)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1336)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
    ivate_setAttribute(RemoteMBeanServerImpl.java:431)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
    tAttribute(RemoteMBeanServerImpl.java:387)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
    Skel.invoke(Unknown Source)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
    erRef.java)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
    rRef.java)
    [jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
    oAs(AuthenticatedSubject.java)
    [jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
    ityManager.java)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
    sicServerRef.java)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
    icExecuteRequest.java)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
    ava)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
    178)
    [jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
    [jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_2.TransformationCheckWeb
    .queue.AsyncDispatcher_error' has been created successfully.
    [jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_2.TransformationCheckWeb
    .queue.AsyncDispatcher' has been created successfully.
    [jmsQueueCreation] java.lang.NullPointerException
    [jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
    lErrorDestination(JMSLegalHelper.java:575)
    [jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
    r.validateAttribute(JMSQueueMBean_Helper.java:41)
    [jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
    te(ExtendedInfo.java:323)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
    tributeValueIsLegal(DynamicMBeanImpl.java:1635)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
    ForModification(DynamicMBeanImpl.java:1570)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
    ibute(DynamicMBeanImpl.java:1089)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
    etAttribute(ConfigurationMBeanImpl.java:362)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1361)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1336)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
    ivate_setAttribute(RemoteMBeanServerImpl.java:431)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
    tAttribute(RemoteMBeanServerImpl.java:387)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
    Skel.invoke(Unknown Source)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
    erRef.java:477)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
    rRef.java:420)
    [jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
    oAs(AuthenticatedSubject.java:363)
    [jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
    ityManager.java:147)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
    sicServerRef.java:415)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
    icExecuteRequest.java:30)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
    ava:219)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
    178)
    [jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
    [jmsQueueCreation] --------------- nested within: ------------------
    [jmsQueueCreation] java.lang.NullPointerException
    [jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
    lErrorDestination(JMSLegalHelper.java:575)
    [jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
    r.validateAttribute(JMSQueueMBean_Helper.java:41)
    [jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
    te(ExtendedInfo.java:323)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
    tributeValueIsLegal(DynamicMBeanImpl.java:1635)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
    ForModification(DynamicMBeanImpl.java:1570)
    [jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
    ibute(DynamicMBeanImpl.java:1089)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
    etAttribute(ConfigurationMBeanImpl.java:362)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1361)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1336)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
    ivate_setAttribute(RemoteMBeanServerImpl.java:431)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
    tAttribute(RemoteMBeanServerImpl.java:387)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
    Skel.invoke(Unknown Source)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
    erRef.java:477)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
    rRef.java:420)
    [jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
    oAs(AuthenticatedSubject.java:363)
    [jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
    ityManager.java:147)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
    sicServerRef.java:415)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
    icExecuteRequest.java:30)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
    ava:219)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
    178)
    [jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
    [jmsQueueCreation] --------------- nested within: ------------------
    [jmsQueueCreation] javax.management.RuntimeOperationsException: RuntimeException
    thrown by the setAttribute weblogic.management.internal.WebLogicAttribute@2c6a4
    acmethod of the Dynamic MBean
    [jmsQueueCreation] at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicO
    utboundRequest.java:108)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemo
    teRef.java)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_81
    4_WLStub.setAttribute(Unknown Source)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.u
    pdateConfigMBeans(ConfigurationMBeanImpl.java:972)
    [jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
    etAttribute(ConfigurationMBeanImpl.java)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1361)
    [jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
    BeanServerImpl.java:1336)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
    ivate_setAttribute(RemoteMBeanServerImpl.java:431)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
    tAttribute(RemoteMBeanServerImpl.java:387)
    [jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
    Skel.invoke(Unknown Source)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
    erRef.java)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
    rRef.java)
    [jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
    oAs(AuthenticatedSubject.java)
    [jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
    ityManager.java)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
    sicServerRef.java)
    [jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
    icExecuteRequest.java)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
    ava)
    [jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
    178)
    [jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
    [jmsQueueCreation] JMSDistributedQueue with name 'dist_TransformationCheckWeb.qu
    eue.AsyncDispatcher' has been created successfully.
    [jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_1.Trans
    formationCheckWeb.queue.AsyncDispatcher' has been created successfully.
    [jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_2.Trans
    formationCheckWeb.queue.AsyncDispatcher' has been created successfully.
    [jmsQueueCreation] JMSDistributedQueue with name 'dist_TransformationCheckWeb.qu
    eue.AsyncDispatcher_error' has been created successfully.
    [jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_1.Trans
    formationCheckWeb.queue.AsyncDispatcher_error' has been created successfully.
    [jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_2.Trans
    formationCheckWeb.queue.AsyncDispatcher_error' has been created successfully.

    Hi
    I am actually using JMX but trying to do pretty much the same thing as using WLST. Here is my code snippet.
    JMSServerMBean jmsServer = this.getJMSServerMBean();
    JMSQueueMBean jmsQ = this.findOrCreateJMSQueue("qName");
    jmsQ.setJNDIName("myJNDIName");
    jmsServer.addDestination(jmsQueue);          
    // I added this line after your post
    jmsQ.setParent(jmsServer);
    The problem still exists. The JMSQueue appears in the weblogic console with JNDIName attached but does NOT appear in my JNDI tree. Do I have to manually put an object in the tree or am I missing something.
    Thanks
    Eugene

  • Testing ODI connectivity with Sonic MQ JMS Queue server

    Hi
    We are trying to integrate our ODI to sonic MQ.
    Since I am a newbie , could you please guide me in creating a data server and connecting it through physical agent?
    Below are the steps I did.
    1. I have copied the below jar files in ../driver directory and bounce the agent.
    mfcontext.jar sonic_Client.jar sonic_ASPI.jar sonic_XA.jar sonic_Selector.jar sonic_Crypto.jar jndi.jar
    3. tesed the connectivity to the JNDI URL and port using 'telnet myserver 7530'
    3. created a new JMS Queue Server with below setting.
    JNDI Authentification: Simple
    JNDI User :Administrator
    Password :
    JNDI Protocol : <undefined>
    JNDI Driver: com.sonicsw.jndi.mfcontext.MFContextFactory
    JNDI URL: tcp://myserver:7530
    JNDI Resource: ODI_QUEUE.Entry
    4. apply the changes
    When I tried to test it I got the below messages.
    java.lang.Exception:
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.pm.s(pm.java)
         at com.sunopsis.graphical.l.pm.g(pm.java
         at com.sunopsis.graphical.l.pm.a(pm.jav)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.iz.actionPerformed(iz.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

    I think that you should update the Odiparams.bat in order to add the JMS driver files which are not in the path of the agent.
    Stop your agent.
    in the odiparams update one of the line
    "set ODI_CLASSPATH" with the new files
    and then restart your agent.

  • Phantom JMS Queues with WLST

    Hello,
    I just started using WLST, and I've written a rather long script that creates
    a JMS server and some queues, among other things.
    I based my code on the JMS server creation example, and it works perfectly as
    long as the JMS server doesn't already exist. If it does, I get output like this:
    JMS Server already exists.
    [Caching Stub]Proxy for mydomain:Name=myjs,Type=JMSServer
    *** JMSQueue with name 'myAuditQ' has been created successfully.
    JMS destination is already parented
    Setting Type
    Setting JNDIName
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "loaddm.py", line 16, in doit
    File "setupServer.py", line 274, in ?
    File "<iostream>", line 145, in set
    WLSTException: 'Error occured while performing set : Unknown Error. Use dumpStack()
    to view the error stack trace'
    The line I put the *** by is interesting because the queue that was just created
    already exists, yet the create() does not throw any exceptions.
    Once this happens, I can do something like the following to add to the confusion:
    wls:/mydomain/config> cd('JMSQueue/myAuditQ')
    wls:/mydomain/config/JMSQueue/myAuditQ> ls()
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "<iostream>", line 176, in ls
    WLSTException: 'Error occured while performing ls : Could not find an MBean
    instance while doing getAttribute. Use dumpStack() to view the error stack trace'
    wls:/mydomain/config/JMSQueue/myAuditQ> dumpStack()
    javax.management.InstanceNotFoundException: mydomain:Name=myAuditQ,Type=JMSQueue
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
    ava:108)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
    at weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.getMBea
    nInfo(Unknown Source)
    at weblogic.management.scripting.InformationHandler.getAllAttributes(Inf
    ormationHandler.java:754)
    at weblogic.management.scripting.InformationHandler.la(InformationHandle
    r.java:538)
    at weblogic.management.scripting.InformationHandler.ls(InformationHandle
    r.java:146)
    at weblogic.management.scripting.WLScriptContext.ls(WLScriptContext.java
    :387)
    The code that generates this error is like this:
    try:
    r=create(cNode+'js','JMSServer')
    except Exception:
    print "JMS Server already exists."
    r=getTarget('JMSServer/'+cNode+'js')
    if clustered:
    target=getTarget('Server/'+cNode)
    try:
    r.addTarget(target)
    except Exception:
    print "JMS server is already targeted."
    print r
    for dest,attr in jms.items():
    try:
    q=create(dest+suffix,'JMS'+attr['Type'])
    except Exception:
    print "JMS Destination already exists."
    q=
    getTarget('JMS'+attr['Type']+'/'+dest+suffix)
    try:
    q.setParent(r)
    except Exception:
    print "JMS destination is already parented"
    cd('JMS'+attr['Type']+'/'+dest+suffix)
    for att, val in attr.items():
    print "Setting "+att
    if att != 'Type':
    set(att,val)
    cd('/')

    This seems to be a larger problem that I initially thought. Ideally
    weblogic server will not allow you to create an MBean with same name
    since it will collide with the unique object name for that MBean in the
    MBeanServer. From your posting I did not understand if you were able to
    create an MBean with the same name and did not get a
    InstanceAlreadyExists Exception. If you did get it then seems like there
    is a problem in the way the server is persisting the config.xml. There
    shouldn't be duplicate entries. Please file a support case [email protected].
    Thanks,
    -satya
    Justin Dossey wrote:
    (top replying because of the long post)
    It looks like this was caused by Weblogic 8 allowing WLST to create invalid domain
    configuration (config.xml). I opened config.xml up in an editor and found that
    even though I had been using Try: create(foo)/ except Exception: (getTarget(foo)),
    there were (many) duplicate entries for MBeans in config.xml. For instance, one
    Server was in there four times. Almost every Server had four or more SSL entries
    in config.xml. There were many unparented JMS Queues defined, as well-- this
    is what I believe caused my problem.
    So why does the try create actually create duplicate when an instance already
    exists?
    "Justin Dossey" <[email protected]> wrote:
    Hello,
    I just started using WLST, and I've written a rather long script that
    creates
    a JMS server and some queues, among other things.
    I based my code on the JMS server creation example, and it works perfectly
    as
    long as the JMS server doesn't already exist. If it does, I get output
    like this:
    JMS Server already exists.
    [Caching Stub]Proxy for mydomain:Name=myjs,Type=JMSServer
    *** JMSQueue with name 'myAuditQ' has been created successfully.
    JMS destination is already parented
    Setting Type
    Setting JNDIName
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "loaddm.py", line 16, in doit
    File "setupServer.py", line 274, in ?
    File "<iostream>", line 145, in set
    WLSTException: 'Error occured while performing set : Unknown Error. Use
    dumpStack()
    to view the error stack trace'
    The line I put the *** by is interesting because the queue that was just
    created
    already exists, yet the create() does not throw any exceptions.
    Once this happens, I can do something like the following to add to the
    confusion:
    wls:/mydomain/config> cd('JMSQueue/myAuditQ')
    wls:/mydomain/config/JMSQueue/myAuditQ> ls()
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "<iostream>", line 176, in ls
    WLSTException: 'Error occured while performing ls : Could not find
    an MBean
    instance while doing getAttribute. Use dumpStack() to view the error
    stack trace'
    wls:/mydomain/config/JMSQueue/myAuditQ> dumpStack()
    javax.management.InstanceNotFoundException: mydomain:Name=myAuditQ,Type=JMSQueue
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
    ava:108)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
    at weblogic.management.internal.RemoteMBeanServerImpl_812_WLStub.getMBea
    nInfo(Unknown Source)
    at weblogic.management.scripting.InformationHandler.getAllAttributes(Inf
    ormationHandler.java:754)
    at weblogic.management.scripting.InformationHandler.la(InformationHandle
    r.java:538)
    at weblogic.management.scripting.InformationHandler.ls(InformationHandle
    r.java:146)
    at weblogic.management.scripting.WLScriptContext.ls(WLScriptContext.java
    :387)
    The code that generates this error is like this:
    try:
    r=create(cNode+'js','JMSServer')
    except Exception:
    print "JMS Server already exists."
    r=getTarget('JMSServer/'+cNode+'js')
    if clustered:
    target=getTarget('Server/'+cNode)
    try:
    r.addTarget(target)
    except Exception:
    print "JMS server is already targeted."
    print r
    for dest,attr in jms.items():
    try:
    q=create(dest+suffix,'JMS'+attr['Type'])
    except Exception:
    print "JMS Destination already exists."
    q=
    getTarget('JMS'+attr['Type']+'/'+dest+suffix)
    try:
    q.setParent(r)
    except Exception:
    print "JMS destination is already parented"
    cd('JMS'+attr['Type']+'/'+dest+suffix)
    for att, val in attr.items():
    print "Setting "+att
    if att != 'Type':
    set(att,val)
    cd('/')

  • WLST offline Foreign JMS creation

    I am trying to setup a domain using the WLST, offline, and I need to create a couple of foreign JMS queues but I can not seem to find examples on creating them using the WLST. Is it even possible to do this? If so could someone please show me an example.
    Any help would be much appreciated,
    Thanks,
    PayniePayne

    The best way to learn unknown WLST commands is by recording a WLS console session (look for the "record" icon in the upper sniplet) . My recording shows the following commands (see http://e-docs.bea.com/wls/docs103/wlsmbeanref/mbeans/ForeignServerBean.html for complete reference):
    startEdit()
    cd('/')
    cmo.createJMSSystemResource('SystemModule-0')
    cd('/SystemResources/SystemModule-0')
    set('Targets',jarray.array(, ObjectName))
    cd('/JMSSystemResources/SystemModule-0/JMSResource/SystemModule-0')
    cmo.createForeignServer('ForeignServer-0')
    cd('/JMSSystemResources/SystemModule-0/JMSResource/SystemModule-0/ForeignServers/ForeignServer-0')
    cmo.setDefaultTargetingEnabled(true)
    cmo.setConnectionURL('some.url')
    cmo.setInitialContextFactory('SomeInitialContextFactory')
    cmo.createForeignDestination('ForeignDestination-0')
    cd('/JMSSystemResources/SystemModule-0/JMSResource/SystemModule-0/ForeignServers/ForeignServer-0/ForeignDestinations/ForeignDestination-0')
    cmo.setLocalJNDIName('localQ')
    cmo.setRemoteJNDIName('remoteQ')
    activate()

  • Configuring WL JMS as a foreign JMS provider with security scope (WLS 8.1)

    Hello, i have a problem accessing a queue from a foreign jms provider, if the queue has a security policy. I have the following scenario:
              1) Server server1 in domain1 (WLS81) has a JMS Server with one queue queue1 with a security policy "Caller is a member of the group GROUP_QUEUE". There is also a user USER_QUEUE user defined, which belongs to the this group.
              There is also a ConnectionFactory with "XA Connection Factory Enabled = true" configured.
              The queue and the connection factory are visible in the jndi tree of this server.
              2) Server server2 has a foreign jms server. Foreign JMSConnectionFactory and foreign JMSDestination refer to the jndi entries of server 1. For Foreign JMS Connection Factory username is set to USER_QUEUE. JNDI entries for foreign references are visible in jndi tree of this server.
              I wrote a standalone client to store messages in the queue accessing server1 with USER_QUEUE sucessfully.
              Now I try to deploy a MDB on server2 accessing the queue on server 1. I tried different versions of ejb-jar.xml/weblogic-ejb-jar.xml to access the queue, but with no luck.
              scenario a): no security entries in both descriptors; weblogic-descr has entries <destination-jndi-name> and <connection-factory-jndi-name> pointing to the local jndi names. REsult:
              <11.02.2005 19.16 Uhr CET> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB:
              CancelEasyMoneyBean is unable to connect to the JMS destination: prepaid.Cancel
              EasyMoneyQueue. The Error was:
              [EJB:010196]'weblogic.jms.common.JMSSecurityException: Access denied to resource
              : type=<jms>, application=, destinationType=queue, resource=CancelEasyMoneyQueue
              , action=receive' Linked exception = 'weblogic.jms.common.JMSSecurityException:
              Access denied to resource: type=<jms>, application=, destinationType=queue, reso
              urce=CancelEasyMoneyQueue, action=receive'
              So entering username and password for ForeignJMSConnectionFactory doesn't do the trick.
              scenario b:) trying to set additional security entries in both descriptors. I added a role queueUser to my mdb and to weblogic-descr a
              <security-role-assignment>
              <role-name>queueUser</role-name>
              <principal-name>USER_QUEUE<principal-name>
              </security-role-assignment>
              I added the user USER_QUEUE and the group GROUP_QUEUE to server2.
              Now server 1 throws exception after redeployment on server 2:
              java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[USER_QUEUE, GROUP_QUEUE].
              java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[USER_QUEUE, GROUP_QUEUE]
              at weblogic.security.service.SecurityServiceManager.seal(SecurityService
              Manager.java:680)
              Has anybody an idea or a pointer how to define access from a mdb to a foreign queue using security ?
              Thanks in advance,
              Rainer

    Hello, i have a problem accessing a queue from a foreign jms provider, if the queue has a security policy. I have the following scenario:
              1) Server server1 in domain1 (WLS81) has a JMS Server with one queue queue1 with a security policy "Caller is a member of the group GROUP_QUEUE". There is also a user USER_QUEUE user defined, which belongs to the this group.
              There is also a ConnectionFactory with "XA Connection Factory Enabled = true" configured.
              The queue and the connection factory are visible in the jndi tree of this server.
              2) Server server2 has a foreign jms server. Foreign JMSConnectionFactory and foreign JMSDestination refer to the jndi entries of server 1. For Foreign JMS Connection Factory username is set to USER_QUEUE. JNDI entries for foreign references are visible in jndi tree of this server.
              I wrote a standalone client to store messages in the queue accessing server1 with USER_QUEUE sucessfully.
              Now I try to deploy a MDB on server2 accessing the queue on server 1. I tried different versions of ejb-jar.xml/weblogic-ejb-jar.xml to access the queue, but with no luck.
              scenario a): no security entries in both descriptors; weblogic-descr has entries <destination-jndi-name> and <connection-factory-jndi-name> pointing to the local jndi names. REsult:
              <11.02.2005 19.16 Uhr CET> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB:
              CancelEasyMoneyBean is unable to connect to the JMS destination: prepaid.Cancel
              EasyMoneyQueue. The Error was:
              [EJB:010196]'weblogic.jms.common.JMSSecurityException: Access denied to resource
              : type=<jms>, application=, destinationType=queue, resource=CancelEasyMoneyQueue
              , action=receive' Linked exception = 'weblogic.jms.common.JMSSecurityException:
              Access denied to resource: type=<jms>, application=, destinationType=queue, reso
              urce=CancelEasyMoneyQueue, action=receive'
              So entering username and password for ForeignJMSConnectionFactory doesn't do the trick.
              scenario b:) trying to set additional security entries in both descriptors. I added a role queueUser to my mdb and to weblogic-descr a
              <security-role-assignment>
              <role-name>queueUser</role-name>
              <principal-name>USER_QUEUE<principal-name>
              </security-role-assignment>
              I added the user USER_QUEUE and the group GROUP_QUEUE to server2.
              Now server 1 throws exception after redeployment on server 2:
              java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[USER_QUEUE, GROUP_QUEUE].
              java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[USER_QUEUE, GROUP_QUEUE]
              at weblogic.security.service.SecurityServiceManager.seal(SecurityService
              Manager.java:680)
              Has anybody an idea or a pointer how to define access from a mdb to a foreign queue using security ?
              Thanks in advance,
              Rainer

  • Synchronization of JMS queue with backup instance

    Hello,
              I have the following problem: there are two machines in active - passive
              configuration. Both those machines serve as JMS servers in two environments.
              What I want to do is to keep a backup of JMS queue from the productive
              environment in the backup one, so in case of a disaster in the productive
              environment the backup one will stand up and will start processing the waiting
              messages. In order to do this I need to keep an up-to-date (or almous up to
              date, I will propably have to accept that some of the messages will be lost)
              copy of JMS queue.
              Have you ever worked on such a problem? Maybe you can suggest some solution?
              Best regards,
              Dawid Duda

    Hi,
              Thanks for informations, but it is not exactly what I need.
              In my case I need to keep a backup of the queue in a separate location, to be
              able to start processing the data in case if the first one was i.e. burned.
              Therefore I was thinking about something like duplicating the database store
              under the queue (using database tools) in on-line mode to be able to start
              another instance in case of problems with the first one. Do you think such
              aproach would work?
              Best regards,
              dave
              Tom Barnes wrote:
              > Hi,
              >
              > Search the newsgroup and docs for keyword "migration". Automated "whole server" migration is available in 9.0, and automated "service" level migration is slated to be available in 9.5. (8.1 provides manual/scriptable service-level migration.) Also, depending on your use case, it might be that distributed destinations, bridges, server-side-store-and-forward (9.0+), or client side store-and-forward (9.2+) would fit your needs.
              >
              > http://edocs.bea.com/wls/docs81/jms/intro.html#jms_features
              >
              > http://edocs.bea.com/wls/docs92/jms_admin/intro.html#jms_features
              >
              > http://dev2dev.bea.com/pub/a/2004/05/ClusteredJMS.html (service-level migration paper)
              >
              > Tom

  • Using a  foreign WLS JMS queue (no bridge)

              Hi,
              We have a configuration from which we communicate from WLS 7 to a foreign MQ via
              JMS. This works well and we have loaded the foreign MQ jms objects into WLS JNDI
              using a statup class (as the whitepaper available describes) and we look them
              up successfully.
              However, we now have a siutation where we briefly need to switch our application
              to point to a WLS JMS queue on another remote WLS server. Is there an easy way
              to load foreign (maybe remote would be a better word in this case) WLS JMS QCF's
              and destinations into my local WLS JNDI so that I can treat them the same way
              as my MQ objects?
              I can't seem to find any information on how to do this as all information seems
              to point towards the messaging bridge (we can't use this as the bridge changes
              the message JMSMessageID and screws our correlation mechanism up).
              I know we could just look the foreign objects up by using the JNDI environment
              of the remote WLS machine but this would mean changing code and this I can't to
              do (as all our code uses the local default WLS JNDI).
              Any ideas would be gratefully received.
              Cheers,
              Jay.
              

    WLS JMS and MQ JMS handle their JNDI objects a little differently, so I can
              see how this can be confusing. An MQ JMS "ConnectionFactory" or
              "Destination" object is like a little configuration file that tells you
              where the queue manager or queue is, so you can serialize it and look it up
              later and use it to find the queue manager.
              A WLS JMS ConnectionFactory or Destination object is a reference to an
              object on a running server. So, you connect to the server and look them up,
              and then you can use it for messaging. You don't have to store these objects
              in a separate place, like MQ makes you do. But it means that the WLS JNDI
              objects have to be looked up from a running server, and if the server
              restarts, you have to look them up again.
              Doing what you're asking is definitely trickier in 7.0. One thing you could
              do is, again using a servlet or an EJB, connect to the remote JMS cluster
              and look up the objects at the time you want to make the switch. (If the
              remote cluster is down, you'll have to retry from time to time.) If the
              remote cluster is down, you won't be able to look up those objects, but then
              again, if it were down you wouldn't be able to send messages there anyway.
              Using 8.1 would be less complicated, but this method should also work.
              greg
              "Jay Green" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Thanks Greg. When I was searching the BEA website I read about the
              facility in
              > 8.1. Unfortunatley, as you point out, it doesn't help me much with WLS
              7.0.
              >
              > My first thought was to copy my exisiting MQ startup class but I couldn't
              work
              > out how to do this for the remote WLS jms objects as the standard jms
              classes
              > (for QCF etc) don't have methods that allow me to define the foreign WLS
              jms
              > host IP address etc. I checked the WLS 7 API and the jms package didn't
              seem
              > to offer anything to help me do this (as IBM do for MQ). Any ideas?
              >
              > Apologies if I'm being a bit slow here!
              >
              > "Greg Brail" <[email protected]> wrote:
              > >WLS 8.1 includes a feature called "Foreign JMS Providers" that lets you
              > >configure (using the console or config.xml) a link between a JMS JNDI
              > >object
              > >in your WLS servers' tree, and a JNDI object in another provider -- which
              > >could be WLS JMS, or a foreign vendor.
              > >
              > >Using this feature, your application could just look up the local JNDI
              > >objects in the local WLS tree, and then the server in turn performs the
              > >lookup from the actual JNDI provider using the parameters you put in
              > >the
              > >console (or config.xml). So, when you make a change in the console, new
              > >JNDI
              > >lookups will go to the new place.
              > >
              > >Unfortunately, this doesn't help you with 7.0. You could always
              > >programmitically update the local JNDI tree the way you're doing in your
              > >startup class, but instead do it from a servlet or an EJB.
              > >
              > > greg
              > >
              > >"Jay Green" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> Hi,
              > >>
              > >> We have a configuration from which we communicate from WLS 7 to a
              foreign
              > >MQ via
              > >> JMS. This works well and we have loaded the foreign MQ jms objects
              > >into
              > >WLS JNDI
              > >> using a statup class (as the whitepaper available describes) and we
              > >look
              > >them
              > >> up successfully.
              > >>
              > >> However, we now have a siutation where we briefly need to switch our
              > >application
              > >> to point to a WLS JMS queue on another remote WLS server. Is there
              > >an easy
              > >way
              > >> to load foreign (maybe remote would be a better word in this case)
              > >WLS JMS
              > >QCF's
              > >> and destinations into my local WLS JNDI so that I can treat them the
              > >same
              > >way
              > >> as my MQ objects?
              > >> I can't seem to find any information on how to do this as all
              information
              > >seems
              > >> to point towards the messaging bridge (we can't use this as the bridge
              > >changes
              > >> the message JMSMessageID and screws our correlation mechanism up).
              > >>
              > >> I know we could just look the foreign objects up by using the JNDI
              > >environment
              > >> of the remote WLS machine but this would mean changing code and this
              > >I
              > >can't to
              > >> do (as all our code uses the local default WLS JNDI).
              > >>
              > >> Any ideas would be gratefully received.
              > >>
              > >> Cheers,
              > >>
              > >> Jay.
              > >
              > >
              >
              

  • Problem Connecting to JMS queue with C sharp client

    Hi there,
    I am trying to connect to a JMS queue using a C# client but i have a problem trying to connect. The problem comes in when i run the C# script a dialog box appears requesting a T3TransportFactory.cs which i do not have on the client. and when i close it i get an exception on
    IContext context = ContextFactory.CreateContext(paramMap);
    Exception - Failed to connect using URL <t3://10.103.130.18:7001>
    StackTrace - at WebLogic.Messaging.Physical.T3TransportFactory.CreateT3Transport(IDictionary`2 paramMap) in c:\weblogic\dev\src1032\modules\weblogic-jms-dotnetclient\jmsimpl\src\WebLogic\Messaging\Physical\T3TransportFactory.cs:line 226
    at WebLogic.Messaging.Physical.ContextPhysical.CreateContext(IDictionary`2 paramMap) in c:\weblogic\dev\src1032\modules\weblogic-jms-dotnetclient\jmsimpl\src\WebLogic\Messaging\Physical\ContextPhysical.cs:line 83
    at WebLogic.Messaging.Context.CreateContext(IDictionary`2 paramMap) in c:\weblogic\dev\src1032\modules\weblogic-jms-dotnetclient\jmsimpl\src\WebLogic\Messaging\Context.cs:line 56
    The stacktrace indicates that it is looking for a T3TransportFactory.cs file in that particular path on the client (This is my speculation) but this directory path does not exist on the client machine with the c# code.
    I got a WebLogic.Messaging.dll referenced in my c# project and the ip/port numbers are correct (we know this cause we tried a java client that connected successfully)
    Can anyone assist me on this issue?

    The issue might be the dll file you are referring to. Did you use the dll from the weblogic installation folder (BEA_HOME/modules/com.bea.weblogic.jms.dotnetclient_1.X.X.X).
    Refer - http://docs.oracle.com/cd/E15051_01/wls/docs103/jms_dotnet/install.html#wp1075258
    Hope this helps.
    Thanks,
    Patrick

  • Dynamic queue name with JMS Queue XML?

    Hi,
    Is it possible to use dynamic queue name with JMS Queue XML?
    I tried using a variable in the JNDI URL, and supply the value in a package. I specified the following in the JNDI URL in the Topology:
    e.g.
    <JMS_RESOURCE>?d=<DTD_FILE>&s=<SCHEMA>&JMS_DESTINATION=#PROJECT_NAME.dest_var
    I declared and set the variable in a package, then tried to load data from the above data server to database. But executing this package gave me the following error:
    7000 : null : java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
    java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
         at com.sunopsis.jdbc.driver.bg.executeQuery(bg.java)
         at com.sunopsis.jdbc.driver.bh.executeQuery(bh.java)
         at com.sunopsis.jdbc.driver.l.f(l.java)
         at com.sunopsis.jdbc.driver.l.executeUpdate(l.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am I doing it wrongly?
    Thanks!

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for