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.

Tags: Fusion Middleware

Similar Questions

  • 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.

  • How to create JMS connection factory for the queue jms in Oracle 11.1.1.4

    Hi all

    I finished the installation of Oracle 11 g. I checked with the deployment of simple projects.

    I have strength to do any related configuration JMS. It takes to create the factory connections for JMS queues and topics in 11.1.1.4.

    If so, please give the link to the related document.




    Thank you
    Sabarisri. N

    http://download.Oracle.com/docs/CD/E17904_01/Web.1111/e13738/basic_config.htm#i1120921

    Kind regards
    Anuj

  • Cannot create more JMS connections

    Hello

    I got the following error:
    WARNING: RAR5117 : Failed to obtain/create connection from connection pool [ jms/batchExecutorMDBConnectionFactoryPool ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
    I have deleted all of the messages in the queue, transferred my application. But somehow remained connections in the connection pool and that's why I always see this error appearing whenever I raise my request.

    I created JMS connection locally and close it immediately after sending message suggests there to avoid leakage of the connection.

    Could you help me how to clear all connections in order to restart my application. Then slowly I can know where the connection is?

    I use glassfish 3.1.2 with 500 maximum connection installation in the jms connection factory

    Thank you

    -CM

    CardM wrote:
    Could you help me how to clear all connections in order to restart my application. Then slowly I can know where the connection is?

    I use glassfish 3.1.2 with 500 maximum connection installation in the jms connection factory

    Uh, restart the server?

    GlassFish questions should go in the glassfish forum: http://www.java.net/forums/glassfish/glassfish

  • 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.

  • 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

  • WebLogic do not pick up the jms connection credentials

    Hello

    I created a startup class who built a connection to a foreign Jms Jms provider (I do my own pooling).

    My code looks like this:

    connection = connectionFactory.createConnection ();

    That is to say. I'm not cross in any args to constructor.

    This should be used as far as I understand the 'mandy' credentials specified in the connection factory
        <foreign-connection-factory name="ForeignConnectionFactory-0">
          <local-jndi-name>localconnFactory</local-jndi-name>
          <remote-jndi-name>xxx.connection.factory</remote-jndi-name>
          <username>mandy</username>
          <password-encrypted>{AES}DhNeJvfMpEICCUZbrtFat9mDMwQTSjAakkKcdLYq/Vc=</password-encrypted>
        </foreign-connection-factory>
    But when I look at the credentials in the Sonic Management Console, I see that the connection is as 'Administrator' - the credentials for the JNDI research.

    This seems to happen in the two mp2 10.0 and 10.3. My BMD using WebLogic wrapper connection pool seems to be connected as "mandy" fine.

    Indicating a bug?

    Thank you

    Mandy

    You can check the configuration file of the jms module, which will be in the folder domain_home/config/jms. Here the encryption algorithm is saved.
    for example {ESA} JBP0tQa2N5hb6SyJOy1BgLseI6JP3VD5XC6wgfKpLBM = ==> algo AES

  • Error: Application-defined or object-defined error

    Hello

    My Finance users are trying to export to Excel, all of the entries in a period and a category for a location, but whenever they do it, they get this error:

    Error: Application-defined or object-defined error

    The process works for quiet some time, but she always ends up with this error. That's what I see on the newspaper:

    In addition, we use FDM 9.3.1

    * Start the journal entry for the Runtime Error FDM [2014-03-21-16: 05:56] *.
    -------------------------------------------------------------
    ERROR:
    Code......................................... 1004
    Description... Application-defined or object-defined error
    Process... clsUtility.mRecordsetToExcel
    The component... upsWDataWindowDM
    Version...................................... 931
    Thread....................................... 5892

    IDENTIFICATION:
    User......................................... ggreen
    Name of the computer... USNII1W3APPS29
    App Name..................................... NIIFDMAPP
    Client App................................... WebClient

    CONNECTION:
    Provider..................................... ORAOLEDB. ORACLE
    Database server...
    Name of the database... HFMPROD
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location..................................... MEXICO_GL
    Location ID... 37
    Location Seg... 24
    Category..................................... REAL
    ID of the category... 4
    Period....................................... Jan - 2014
    Period ID.................................... 31/01/2014
    POV Local.................................... True
    Language..................................... 1033
    User Level................................... 19
    All Partitions... Fake
    Is Auditor................................... Fake

    Hello

    This could be the problem such as Excel on the server is used to export the file.

    Can you try to install 2007?

    is the error generated when exporting 'imported data' or ' periods/categories?

    You said 73200... so I guess that data. You can try to import less than 65000 rows and try again. Then you can confirm the root cause.

    Concerning

  • 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...

  • How to create the WebLogic JCA connection factory?

    Hello

    My DB adapter throw error when running.

    The reason is most likely that either 1) the resource adapter RAR file has not been deployed successfully to the WebLogic application server or

    (2) the "< jndi name >" element in weblogic - ra.xml has not been defined in eis/DB/Connection1. In the latter case, you need to add a new factory of connections from WebLogic JCA (deploy a RAR).

    Please fix this and then relaunch the Application Server please make sure that the JCA connection factory and dependent connection factories have been set up with a sufficient limit for max connections.
    Please also make sure that the physical connection to the EIS server is available and the backend itself accepts connections. ".

    The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution.


    Please give me a link tat will explain all stages of creation of JCA connection factory, very clearly.

    Kindly help me!

    Thank you
    Sabarisri. N

    http://download.Oracle.com/docs/CD/E13159_01/OSB/docs10gr3/jcatransport/transport.html

  • I've implemented all the information for an email from the Charter and then when I click on get mail, it says there is a connection to the server error... Why?

    I've implemented all the information for an email from the Charter and then when I click on get mail, it says there is a connection to the server error... Why?

    Hello ChevyDriver10,

    Thanks for your post.  What email app do you use to receive your mail?

    In the meantime, take a look at the Charter of General electronic installation instructions.

    If you do not currently have an e-mail client, feel free to go on Windows Live Mail.

    See you soon

  • I use MSN Explorer to my email. It does not connect and I get error code ox80072eff

    I use MSN Explorer to my email.  It does not connect and I get error code ox80072eff.  What can I do to fix this?

    Hi JoshKimbell,

    Please see the next Windows Live Forums thread:

    http://windowslivehelp.com/thread.aspx?ThreadId=c51f5e01-f5c4-4ec5-B470-8b0058f5f980

    If you continue to have problems, please repost your question on the following link:

    http://windowslivehelp.com/forums.aspx?ProductID=1

    Thank you!

  • I bought a Virgin broadbandtogo stick and installed on my computer... When I go to connect it shows an error and told you can't update the directory files

    broadbandToGo

    I bought a Virgin broadbandtogo stick and installed on my computer... When I go to connect, he displays an error and says impossible to update files in directory... I can get online with wifi but not the stick... Y at - it an update I have to do? Junior

    You will need to ask Virgin support.

  • When I try to add a VPN connection, I get an error that the wizard is unable to connect. I am running Windows Vista.

    When I try to add a VPN connection, I get an error that the wizard is unable to connect.  I am running VISTA. I want to simply add a VPN and be able to connect to a non-profit organization where I volunteer.  My VPN working two weeks ago.  Then my shortcut did not work, and this problem started.

    Any help is appreciated.

    original title: VPN Vista issues

    Hello

    Thank you for visiting the Microsoft answers community site. Your question of Windows Vista is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows Vista Networking forum.

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

  • Remote Desktop connection. An internal error has occurred.

    Hello

    The error occurs on a Windows 7 Home computer.

    I connect successfully via a Sonic Wall VPN client.

    I can ping the IP address of the remote computer.

    I run remote desktop (using the IP address of the remote computer) and get the error:

    "Remote Desktop connection.  An internal error has occurred. »

    He used to work without fault and all of a sudden abandonment of work.

    Please notify.

    To resolve this problem, I realized the following:

    Open RDP

    Enter the IP address of the remote computer

    Click view the Options

    Click on experience

    Uncheck the box to reconnect if the connection is broken

    Click on connect

Maybe you are looking for

  • MUI (multilingual user interface) for XP Home Edition

    My satellite P15-S409 has windows xp edition version 2002 sp1 family. I can't install mui (day 24/10/2001). It says "MUI cannot be installed on this platform. Why - anyone knows?

  • New wireless adapter

    Hello I have a HP Envy 15-j010us I have problems with my improved wireless card. I bought a 7260.HMWG AC Intel WiFi card in replacement of the RAlink card came with the laptop.  The RaLink card did not work well.  He drops the internet connection con

  • Compaq mini 110: enter qurrent password hp compaq mini 110

    need a password product: compaq mini 110 s/n: [personal information] Code: NZ794EA #AB8 model #: 110 c - 1020ST

  • Sell Linksys router (N) able to have 2 hot spots with this configuration?

    According to the subjects. I would like to install a N router that is able to have 2 hot spots. 1 will be open to all and the other will be broadcasting with security enabled. The reason why I need this Setup is that I want to offer a point of public

  • App Web Inspector difficulties Webworks help

    Hello! First of all, I would like to say that I am a new developer that started after hearing about promoting free playbook (thanks for this RIM btw). My problem is the following. I developed my application entirely using textpad, chrome and using a