setClientId equivalent to the foreign JMS provider?

Hello

I use an MDB, a foreign JMS server and a durable subscription. I need something equivalent to setClientId(String clientID) to set the client for the connection id, preferably using deployment descriptors. All I could find was jms - login id that appears to set the id for the topic, not the connection. I don't see a way to set the ID of the customer on the foreign JMS server makes connections.

Thank you.

Strategy customer ID to subject WebLogic = restricted

The strategy of customer ID does not apply unless you use WebLogic JMS provider. If you use WebLogic JMS, then I recommend using one of the new "one copy" by app modes.

Is it possible to configure the subscription name or is controlled by the container as implied by the B-1 of the Table?

I don't think that there is a way to define the subscription directly - name only indirectly, according to the B-1, where it can be the same as the customer id or the same as the ejb-name, depending on the use case...

Tags: Fusion Middleware

Similar Questions

  • Problem with rollback transaction with foreign JMS provider

    Hello

    I created a small test to validate this transaction rollback works correctly with a foreign Jms provider (Sonic). My results seem to show that this isn't, but I have my installation is perhaps incorrect so any help appreciated...

    In the example below, I have an MDB that uses the movements of containers managed (Transaction required) and packaging. It receives a message & then sends another message.

    I've explicitly forced a rollback and wait for message received and sent message are ignored. However, on my Sonic queues, I see the number of messages on the output queue (where the message is sent) regularly every restitution time is more tempted, implying the sent message is not be restored.

    This is my EJB code: -.
    @MessageDriven(description = "sample mdb using weblogic resource wrappers", name = "WLPooledSonicJmsTransactionRequiredMessageDrivenBean")
    @TransactionManagement(value = TransactionManagementType.CONTAINER)
    @Resources( {
              @Resource(name = "connectionFactoryReference", mappedName = "localconnFactoryXA", type = javax.jms.ConnectionFactory.class),
              @Resource(name = "sendDestinationRef", mappedName = "local.out.queue1", type = javax.jms.Queue.class) })
    public class WLPooledSonicJmsTransactionRequiredMessageDrivenBean implements
              MessageListener {
    
         private ConnectionFactory sendingConnectionFactory;
    
         private Queue sendDestination;
    
         @Resource
         private MessageDrivenContext mdctx;
    
         @TransactionAttribute(value = TransactionAttributeType.REQUIRED)
         public void onMessage(Message message) {
              System.out
                        .println("on message called on WLPooledSonicJmsTransactionRequiredMessageDrivenBean!!");
    
              Connection jmsConnection = null;
    
              try {
                   String deliveryCount = message
                             .getStringProperty("JMSXDeliveryCount");
                   
                   System.out.println("JMSXDeliveryCount value is: " + deliveryCount);
    
                   if (sendingConnectionFactory == null)
                        System.out.println("sendingConnectionFactory was null!!");
                   sendingConnectionFactory = (ConnectionFactory) mdctx
                             .lookup("connectionFactoryReference");
    
                   if (sendDestination == null)
                        System.out.println("sendDestination was null!!");
                   sendDestination = (javax.jms.Queue) mdctx
                             .lookup("sendDestinationRef");
    
                   jmsConnection = sendingConnectionFactory.createConnection("xxx",
                             "xxx");
                   System.out.println("Sonic version = "
                             + jmsConnection.getMetaData().getProviderVersion());
    
                   Session s = jmsConnection.createSession(false,
                             Session.AUTO_ACKNOWLEDGE);
                   System.out.println("Transaction is: "
                             + weblogic.transaction.TransactionHelper
                                       .getTransactionHelper().getTransaction());
    
    
                   MessageProducer producer = s.createProducer(null);
    
                   Message response = s.createTextMessage("My Reply");
    
                   producer.send(sendDestination, response);
                   System.out
                             .println("message sent from WLPooledSonicJmsTransactionRequiredMessageDrivenBean!");
    
                      // force a rollback for testing purposes
                   mdctx.setRollbackOnly();
    
    
              } catch (JMSException e) {
                   e.printStackTrace();
                   // reset our jndi objects
                   sendDestination = null;
                   sendingConnectionFactory = null;
                   throw new EJBException(e);
              } finally {
    
                   // Return JMS resources to the resource reference pool for later
                   // re-use.
                   // Closing a connection automatically also closes its sessions, etc.
    
                   try {
                        if (jmsConnection != null)
                             jmsConnection.close();
                   } catch (JMSException e) {
                        // reset our jndi objects but no need to tell client
                        sendDestination = null;
                        sendingConnectionFactory = null;
                   }
    
              }
    
         }
    }
    Here are the weblogic-ejb-jar, which defines the destination of reception
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd"
            xmlns="http://www.bea.com/ns/weblogic/90"
            xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <weblogic-enterprise-bean>
            <ejb-name>WLPooledSonicJmsTransactionRequiredMessageDrivenBean</ejb-name>
            <message-driven-descriptor>
                <pool>
                    <max-beans-in-free-pool>4</max-beans-in-free-pool>
                    <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
                </pool>
                <destination-jndi-name>localmandytest</destination-jndi-name>
                <connection-factory-jndi-name>localconnFactoryXA</connection-factory-jndi-name>
                <jms-polling-interval-seconds>30</jms-polling-interval-seconds>
            </message-driven-descriptor>
        </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    and it has been part of the weblogic log output (this message is repeated that the container attempts to deliver the message)...
    on message called on WLPooledSonicJmsTransactionRequiredMessageDrivenBean!!
    Session transacted? = false
    message sent from WLPooledSonicJmsTransactionRequiredMessageDrivenBean!
    <07-Oct-2010 13:09:45 o'clock BST> <Info> <EJB> <BEA-010213> <Message-Driven EJB: WLPooledSonicJmsTransactionRequiredMessageDrivenBean's transaction was rolled back. The transaction details are: 
    ......
    Published by: MandyWarren on October 7, 2010 07:05 added weblogic-ejb-jar. XML

    Published by: MandyWarren on October 14, 2010 14:53 in order to take account of the last changes of the code

    Published by: MandyWarren on October 14, 2010 15:30 - code removed for only if rollback count == 1 because it does not work

    Published by: MandyWarren on October 21, 2010 22:36 deleted info specific environment

    Just a quick update...

    I raised this issue to the support of Oracle who confirmed that it was a bug see their response below...

    >
    I just got an update of JMS engineering.

    They Bug 81388508142162 is the best candidate: 8138850 is for WLS 9.2.x, while 8142162 is for WLS 10.0.x.
    The fix is included in 9.2.3 WLS and WLS 10.0.2
    >

    I upgraded to 10.0 MP2 as no new patches are now provided for 10.0 MP1 and the problem was solved.

    A big thank you to everyone for their help on this.

  • JMS provider does not participate in the user JTA Transaction

    Hello

    I use a JTA on WebLogic 8.1 user Transaction. Under the operation, I have two datasources viz SQL Server Database, and Tibco EMS. The database is involved in the distributed transaction, while this isn't the JMS provider.

    I set up the XAQueueConnectionFactory in the foreign JMS on WebLogic servers. I use this factory to create the QueueConnection, then the QueueSession and the QueueSender. I use no transactional QueueSession, so, he participated in the JTA transaction. However, I have noticed that the message send operation outside the transaction. Ideally, the message should be sent only when the JTA transaction is committed, but the message is sent immediately after you call the code, and I see the message even if the JTA transaction is rollbacked.

    I also tried to use the XAQueueConnection and XAQueueSession but no luck. Can someone please?

    Published by: user10749653 on December 30, 2008 16:25

    Please post an excerpt of your code create session and send messages and the descriptor. I wonder if call you commit (you say with transaction) somewhere and if you declare the factory connections such as resource-ref. In the case where you did not declare the CF as a resource, and not call validation, I expect that your messages are not visible to the receiver because the resource would not be allowed to enroll in the transaction. Proper enlistment is guaranteed when you use a XA(Queue|) Topic:) ConnectionFactory and resource-ref it. The transactional and ACK session settings are ignored in global transactions.

  • How to access the credentials of foreign Jms connection factory class start?

    Hello

    I am creating a Jms connection to a category of startup (ie. within a class of ApplicationLifecycleListener).

    I have configured a server foreign Jms (we use JMS Sonic) and specified a username / pwd for my connection factory.

    When I call the pre/postStart of connectionFactory.createConnection () method these credentials are not used.

    I raised a previous post about this - see Re: Weblogic do not pick up the credentials of jms connection and the solution seems to be to use JMX to navigate to the MBean and then decrypt the credentials manually. I tried this but it seems a little messy for me that future versions of WebLogic can use a different encryption algorithm so wanted to ask once again if someone had no alternative workaround suggested.

    I also tried to create a servlet to start with a resource-Ref specifying the wrappers out like I do my own pooling of connections but still no luck. Get the foreign server only read if the packaging are used the connection credentials?

    Thank you very much

    Mandy

    Published by: MandyWarren on February 7, 2011 06:14
    Adding info on startup servlet

    Are there plans in the future to better support the foreign JMS wrappers to support these scenarios just out of curiosity?

    I think that it short term plans for res-Ref bind work.

  • Foreign JMS connection factory object bound error

    Configure a foreign JMS provider, pointing to a V8 of IBM MQ on a separate server.

    Version 10.3 WebLogic & jdk 1.7.0_80.

    The steps I used were:

    1. create a JMS Module - AppNameIBMFSContextModule

    2. create a new resource in the JMS Module of type foreign server - AppNameIBMFSContext

    3 configure the foreign server:

    1. Define a JNDI factory context: com.sun.jndi.fscontext.RefFSContextFactory
    2. Define a JNDI connection URL (where the.bindings file resides): file:///datlib/appName/deploy/jndi-definitions/bindings/AppNameIBMFSContext

    4. define connection factories and destinations:

    a. the foreign factories connection

    Name JNDI Local Remote JNDI name

    JMS, jms/AppNameConnFac/AppNameConnFac AppNameIBMCF

    The remote JNDI name is the name of the connection factory set in the .bindings file:

    DEF CF (AppNameIBMCF) TRANSPORT (CLIENT) CHANNEL (APPNAME.11111.SVC) QMANAGER (QMgrName1) HOSTNAME (mqhostname.com) PORT (00000)

    The .bindings file has been created on the server IBM MQ V8 using JMSAdmin.

    Whenever I run the managed servers, the deployed EJB will get the following error:

    # < 9 October 2015 1:47:32 PM GMT > < WARNING > < JMSPool > < servername > <>< ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < < > anonymous > > <>< 1444398452545 > < BEA-169808 > < there was an error while making the initial connection to the JMS resource named app-router-app-router-retry-jms/AppNameConnFac to the "app-router-retry" EJB inside the application "app-router". The server will try connecting later. The error was javax.jms.JMSException: named connection JMS [JMSPool:169818], "app-router-app-router-retry-jms/AppNameConnFac" pool has a configured connection factory JNDI name "jms/AppNameConnFac. However, an object that is not a javax.jms.ConnectionFactory is related to this JNDI name. The object bound to JNDI name has type 'javax.naming.Reference. >

    I tried to change my connections several times factory names.

    Any ideas would be appreciated.

    Thank you.

    Yes, I found it too when I did a search on google before I put the question. That's why I changed the name of the connection factory, which changes the name of the pool. This did not help and I have not found another object related to the connection factory JNDI name.

    Found the problem - IBM MQ V8 pots were not being picked up in the Weblogic CLASSPATH at startup.

    The error message was a bit misleading (for me anyway).

    Thanks to everyone who took a peek at this.

  • Do not use the WebLogic jms connection credentials

    I have a foreign JMS provider set up for our installation of Sonic, with name of user and password specified for the Server JMS (aka the JNDI context) and the connection factory.

    The JNDI lookups work correctly, but when you try to establish a connection, use the factory connections, I get an InauthenticClient exception. When I put a watch of notification on the agent of sound messages to see the rejection of applications for connection from WebLogic, I see that the user name is not powered.

    This all works in standalone code test with the same user name and password, connection directly to Sonic and Sonic notification about watches that I don't see the username (different code; the WebLogic application is an application servlet writes of spring).

    Has anyone seen a similar problem or have any idea of what can go wrong?

    Support details:

    WLS 10.3.5, JDK 1.6.0_29 (Sun 64-bit), 5.6, SonicMQ 8.5.0 RHEL.

    < foreign server name = "SonicMQ_JMSServer_US" >
    AppSvcs_cluster_subdepl < sub-sub-assignment-name > < / sub-sub-assignment-name >
    < by default-targeting-enabled > false < / by default-targeting-enabled >
    ...
    < name of foreign connection factory = "SMS_Repl_XACF" >
    < local-jndi-name > jms/sms/replication/SMS_Repl_XACF < / local-jndi-name >
    < name-jndi-remote > jms/sms/replication/SMS_Repl_XACF < / remote-jndi-name >
    < user name > obscuredusername < / name >
    < encrypted password > {ESA} OBSCURED3mZ7twptOpo4910ypdGPG7nXpcJMEA = < / password encrypted >
    ...

    com.sonicsw.jndi.mfcontext.MFContextFactory < initial context factory > < / initial context factory >
    < sign in url - > tcp://nj09mhm5097.mhf.mhc:24100, tcp://nj09mhm5098.mhf.mhc:24100 < / sign in url >
    < jndi-properties-credential-encrypted > AES} {OBSCUREDIRVVGVUp/BqQCQss8tcouHe + rVHog8 = < / jndi-properties-credential-encrypted >
    jndi property <>
    com.sonicsw.JNDI.mfcontext.domain < key > < / key >
    < value > PRP_US_IT < / value >
    < / jndi property >
    jndi property <>
    Java.naming.Security.principal < key > < / key >
    < value > obscuredusername < / value >
    < / jndi property >
    < / foreign-server >

    Hi Steve,.

    The Servlet can access the factory connections via a standard EJB resource reference? I think that this may be necessary so that the application server can be able to encapsulate the connection and inject the credentials of foreign JMS 'createConnection ".

    See http://docs.oracle.com/cd/E21764_01/web.1111/e13727/j2ee.htm#i1313669 for samples.

    HTH,

    Tom

  • JMS using the foreign server QA

    I created a foreign JMS for Oracle, when I deploy my application, I get an error:
    (I followed the steps described here :)
    java.lang.ClassNotFoundException: oracle.jms.AqjmsInitialContextFactory

    I have to install Oracle Service Bus for this to work?

    No do not necessary. Foreign JMS for Weblogic is independent of the OSB. He can settle with installation of OSB.

    Maury

  • Problem definition foreign JNDI provider

    Hello

    I get an error "the JNDI name is already bound by another object" when I define a foreign JNDI provider. I have following configuration:

    1 domain with two groups: Group A and Group B.

    1 queue in Group A with the JNDI jms/myTestQueue = name

    1 foreign JNDI provider in cluster B pointing to the cluster has. There is a link with the name JNDI Local jms/myTestQueue and remote JNDI jms/myTestQueue = name =

    If I use jms/local /myTestQueue for the Local JNDI Name it works. Is this expected behavior? I am not allowed to use the same name for the local JNDI and the distance JNDI?

    Best regards, Nicolas

    I think it's because the cluster and B belong to the same domain, and you cannot have duplicates of JNDI names in a single domain

  • How can I make sure that changes in a primary key (in the parent table) would also appear directly in the FOREIGN KEY in the child table?

    Forgive my question. I am very new to Oracle.

    How can I make sure that changes in the key primary supplier_id (concerning the supplier table) would also appear directly in the FOREIGN KEY (supplier_id) in the products table?

    Is that not all the primary key and FOREIGN KEY on?

    My paintings:

    I created 2 tables and connect to apply in the data base referential integrity, as I learned.

    CREATE TABLE - parent provider

    (the numeric (10) of supplier_id not null,)

    supplier_name varchar2 (50) not null,

    Contact_Name varchar2 (50).

    CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)

    );

    CREATE TABLE - child products

    (the numeric (10) of product_id not null,)

    supplier_id numeric (10) not null,

    CONSTRAINT fk_supplier

    FOREIGN KEY (supplier_id)

    REFERENCES beg (supplier_id)

    );

    I inserted the following text:

    INSERT INTO provider

    (supplier_id, supplier_name, contact_name)

    VALUES

    (5000, 'Apple', 'first name');

    I expect that the supplier_id (5000) to the provider of the table also appears in the products table under key supplier_id having the same value which is 5000. But this does not happen.

    How to get there?

    Thanks in advance!

    Hello

    What is a foreign key in Oracle?

    A foreign key is a way to ensure referential integrity in your Oracle database. A foreign key means that the values of a table must appear also in another table.

    Ok!??

    What is now the right way to implement referential integrity in your Oracle database that the values of a table must also be included in another table?

    A foreign key referential integrity indeed enfore in ensuring that the value in the child table must have a corresponding parent key (otherwise you will encounter an error, as evidenced by "SomeoneElse"). However, it will never automatically insert a row in the other table.

    If you are looking for a solution that automatically inserts a record in the other table, maybe you should go for triggers:

    See:

  • Add the foreign key refers to a different schema

    Hello

    We have a database with schemaA and schemaB and we use a data model for schemaA with SQL Data Modeler.

    Our data model is based on SchemaA and we do not want add schemaB or create subview in our current model for schemaB since our dev team do not want schemaB in the model

    We have created a synonym in tableB schemaB shcemaA after granting select them, references to schemaA

    We have added a foreign key on tableA in referencing TableB on schemaB schemaA.

    for example. Add ALTER table tableA foreign constraint key(column-name) references tableB(colum-name)

    So far so good.

    But if we try to produce the DDL for tableA it has not provided the ALTAR of the foreign key that is based on shcmeaB

    We know that we cannot add foreign key on dblinks.

    How can I get the Modeler DDL from SQL data for tableA, including the foreign key

    We appreciate the answers

    Kind regards

    Zafar

    Hi zak,.

    We have created a synonym in tableB schemaB shcemaA after granting select them, references to schemaA

    We have added a foreign key on tableA in referencing TableB on schemaB schemaA.

    You can do it in the database because TableB exists in the database and DB knows its definition, including the existing constraint of PK/UK.

    This is the same model of data Modeler - you must have the definition of the table referenced in order to create the FK that refer to the constraint of PK/UK.

    As it works now (we can change it) you can have modeled for SchemaA and ModelB for SchemaB. Then, you can drag & drop tableB form the Navigator to the diagram of the ModelA and TableB there will exist as an object remote read-only, you can use to create the FK.

    With the help of subviews, DDL generation and configurations of reports, you can display the dev team than objects that they want to see - on the charts in generated DDL and reports.

    Philippe

  • I'm getting the foreign language symbols and overlapping tabs at the top of my screen. Why?

    In the last two days, I started to get the foreign language characters randomly at the top of my screen, both the line of tabs and the address bar. At the same time, the tabs at the top overlap and are difficult to discern.
    Any ideas why and how to fix? Can send a screenshot of the problem, if it helps.

    The extension of McAfee SiteAdvisor has been reported to ask this question, so you can disable this extension for this control.

  • the last equivalent to the PCI-6024E

    What is the last product NOR equivalent to the PCI-6024E

    OR recommend the PCIe-6321.  It's a bit the connector is different.

  • SQL statement error INSERT The conflicted with the FOREIGN KEY constraint

    I recently installed a reporting for vmware vsphere software, but I get a SQL error. I opened a request for assistance with vmware, but so far they have not come up with a solution. The error is caused by: com.microsoft.sqlserver.jdbc.SQLServerException: instruction INSERT The conflicted with the FOREIGN KEY constraint 'FK_CB_VSM_NETWORK_VC_ID '. The conflict occurred in database 'VCChargebackVCC02', table "dbo." " CB_VSM_SERVER', column 'VC_ID '. I don't know a lot about SQL, so I'm lost in the extent of troubleshooting is concerned. If anyone has any ideas I'd love to hear them.

    SQL questions are better posed on Technet.  They are better equipped to manage the

    http://social.technet.Microsoft.com/forums/en-us/categories/

  • Reinstalled XP and now unable to connect to the internet, dsl provider says the leaves to reinstall the connection LAN how fix this?

    Original title: windows xp.

    reinstalled xp and now unable to connect to the internet, dsl provider says the leaves to reinstall the connection LAN how fix this?

    Hello

    Go to the website of your computer manufacturer > drivers download Section > put your computer model number > operating system > Search adapter network, pilots etc. for her.

    Get graphics, sound while you're there.

    You should always do a reinstallation.

    Use the computer that you use to make the foregoing > download and save in this office > copy of Flash Drive > then install in another computer.

    See you soon.

  • Is a pavement of Chromebook equivalent to the right button of the mouse?

    Is a pavement of Chromebook equivalent to the right button of the mouse?

    When I click on the lower right of the trackpad, it clicks Open the link thank instead of giving me a menu to choose options such as "Open in new tab", "open in a new window", etc.

    Thanks for your help.

    Thanks to someone else give me the link to a user of Chromebook guide, I found the answer.

    Click on a link with two fingers instead of one to produce the functionality of the right button of the mouse.

Maybe you are looking for

  • Firefox hangs with WebGL

    Firefox crashes immediately with WebGL. I tried everything in the forums and nothing fixed it. Downloaded new drivers for cards graphics, profiles, etc..

  • Older versions of Skype

    Hello I have problems with the new version of Skype 7.1: videos and audio call my PC crash and I have to restart. I have testicles all my readers and are ok. I think is a problem of the new version of Skype and if I want to install an older version b

  • Satellite C855 - strange noise when try to watch/listen to something

    I bought this laptop around a month ago. When I tried to watch or listen to something, which sizzles a little noise came a few seconds and disappeared. I didn't know it was important. But now, it happens every day and a lot of times when I listen or

  • The transition to the new lenovo forum

    My profile is all messed up. My phone / location were incorrect installation.

  • I am able to download windows on a book of chrome?

    * O.T. > books of chrome I am able to download windows on a book of chrome.