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.

Tags: Fusion Middleware

Similar Questions

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

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

  • How to access the bios?

    I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?

    Hello:

    You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.

    Paul

  • How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?

    I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?

    I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.

  • How to access the firefox on laptop Office keeping all the features?

    How to access the firefox on laptop Office keeping all tabs and bookmarks?

    Hello

    You may be able to do this in Firefox Sync configuration on both devices. Please see for detailed instructions.

  • Satellite Pro S500-14Z - how to access the BIOS?

    Hello

    on the Satellite Pro S500-14Z I can´t access the BIOS via F2 and can´t change the bootpriority through F12. By pressing F2 or F12 during startup, the S500 beeps and restarts. When you first start, I had access to the Bios and set the password and active supervisor module TPM. Since I have no access to the BIOS before Windows starts. Is there another key to access bios (I tried ESC, DEL, F1, INS) or how can I change the pw supervisor (I know my real password!) and disable the TPM?

    Thank you
    Karl

    Hi karlS_1,

    Normally you can access the BIOS if you press F2 before Windows starts. It works with an external keyboard?

    You can change some settings in the BIOS using Toshiba HWsetup. This tool is preinstalled on your laptop and you can change the order of boot with this tool.

  • Qosmio G30-126 - how to access the bios!

    I have a laptop Qosmio G30-126 and I don't know the key to enter the bios to change real estate for the HARD drive or something... then how to access the bios? What is the key for the bios?

    Hello

    Try pressing the F2 key by turning on the device.
    The Toshiba notebooks supported the ESC and then F1 button
    If these two options are possible

  • Re: How to access the BIOS on Satellite Pro A120

    Can someone tell me how to access the BIOS on my SAT Pro A120?

    Hello

    You must press ESC and then F1 key immediately after the laptop has been powered!

    The laptop seems to be to use the Toshiba BIOS and ESC key should be the right one!

    Good bye

  • How to access the BIOS on Satellite A110-195 settings?

    How to access the BIOS settings (CPU, video memory ect). I have http://eu.computers.toshiba-europe.com/innovation/jsp/SUPPORTSECTION/discontinuedProductPage.do?service=EU&PRODUCT_ID=1 18639

    At the start when the Toshiba start screen appears press F2 repeatedly and you should be able to enter the BIOS settings.

  • How to access the BIOS on Satellite C50-A-1F

    Hey folk,

    A small question:

    How to access the BIOS of my laptop?

    I tried this method and f12, f1, f2 etc.

    Thanks in advance

    Have you ever tried to look for similar issues here in the forum?

    Check this one:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=76740

  • HP laptop - 15-ac121dx: how to access the ram on a 15-ac121dx modules

    I want to upgrade the ram in my HP laptop - 15-ac121dx and maybe the hard drive, but I can't understand how to access the ram. There is no access panel, and unlike some other models, it doesn't have a single lever in the battery bay to remove the cover.

    OK, I realized how down low on the laptop.  After watching some youtube videos I came across another HP laptop computer who had screws under the rubber feet and of course there are also screws under the back of two rubber feet, can't believe I didn't think to look under them.

    To get the background you need to:

    1. Remove all the screws on the bottom.  (Must be 12 total)
    2. Remove the drive from DVD (Yes it does not).
    3. Finally, carefully separate the case around the side.

    After that, you should have full access to the slots of RAM and hard drive.

  • How to access the BIOS on Satellite Pro A120

    Sorry for my English.
    But I need help:

    How to access the BIOS on my Satellite Pro A120

    Hello

    If I m not wrong not the Satellite ProA120 is supported by the Toshiba BIOS and so you should be able to access the BIOS pressing the * ESC * key immediately after starting the laptop

  • Re: Satellite Pro L450D - 12 X - how to access the recovery partition?

    Hello

    I've formatted Windows 7 with a Windows XP CD but did not setup. I wanted to know how to access the recovery partition to set it by default, everything exists on the laptop right now is Ubuntu, but I don't know, I saw an additional partition that must contain recovery files as laptop did not come with a recovery disk and unfortunately did not create a filter.

    How can I access the recovery partition on the laptop having in mind, I formatted the drive Windows 7 was installed on or should I activate or something like that?

    Any help much appreciated

    Hey,.

    On the second partition of your laptop (data partition), you will find a folder named HDDrecovery and it contains recovery files. The problem is that you can use the HARD drive only with the pre-installed operating system recovery feature. It would mean in your case it s too late now and it s not in use anymore.

    You have created the Toshiba recovery disc as mentioned in the user manual? If Yes, you can use this disk to restore to factory settings. Just boot from this CD and follow the instructions on the screen.

    If you don t have the recovery disc, you can order it here:
    https://backupmedia.Toshiba.EU/landing.aspx

Maybe you are looking for

  • network the iPhone has problems

    I've had an iPhone 4S with the latest IOS for about 6 months now, he received from a friend. And the performance went down after a while. After that, it could not connect to a wifi network because he could not read everything. Of course, I went on th

  • On the automatic stop function

    Hello guys, once again long time no see, I remember yesterday Talk about the Auto Power Off function, is there someone who can tell us, it could be used on long sentences - number of days, for example - as a person don't push the shutter or any butto

  • I have portable E1 - 572 and my dvd burner will not burn DVD

    I recently had to buy a new hard drive and had to format and reinstall everything and do it manually display etc drivers, but did not do anything with the disc that the driver is already there v1.10 and no problem. I tried different burning software

  • Open the Media Player library

    Hi, I assume that after an automatic update, my media player has recently begun opening in playing instead of the library, where it is used to. I did a ton of research and it seems most people want to open as read in class, but I did not. Is it possi

  • Digitization of Document with Dell All In One Printer A960

    I would like to know the steps to scan a document on a Dell All In One Printer A960.  I have a Windows Vista operating system. Here are the steps I take in the manaul. 1. I put the paper on the glass. 2. Select the place I want the paper to go. 3. I