Dynamic JNDI name for the database in BPEL adapter

Hi all

I have some problems trying to give the JNDI location for the dynamic database adapter (10.1.3.4). I already went through the following link, but that has not worked for me: http://www.oracle.com/technology/pub/articles/bpel_cookbook/carey.html

The example below works, but only the first round. Second time around the first tracks JNDI value gets stored and connects to this database.

That's what at least worked the first time.

I set the JNDI with a variable defined in the definition of partnerlink in the bpel.xml

In Bpel. XML

< partnerLinkBinding name = "updatetbl" >
< property name = "wsdlLocation" > updatetbl.wsdl < / property >
< property name = "CONN" > eis/DB/na < / property >
< property name = "retryInterval" > 60 < / property >
< / partnerLinkBinding >



In the updatetbl.wsdl file

< service name = "updatetbl" >
< name of port = "updatetbl_pt" binding = "tns:updatetbl_binding" >
< jca:address location = "$CONN" / >
< / port >
< / service >


At runtime, I change the variable CONN partnerlink in embedded Java.


Try
{
Element targetAdapterElement = (Element) getVariableData("Invoke_getFromTbl_OutputVariable","getFromTblOutputCollection","/ns2:getFromTblOutputCollection/ns2:getFromTblOutput/ns2:SRC_JNDI");
getLocator ().lookupProcess("JndiIssueTest").getDescriptor () .getPartnerLinkBindings () .getPartnerLinkBinding ("updatetbl") .setPropertyValue ("CONN", targetAdapterElement.getTextContent ());
("updatetbl").GetPropertyValue ("CONN"));
}
catch (Exception ex)
{
addAuditTrailEntry ("Error is" + ex);
}


It works fine the first time but the second time I launch it looks like a different value of CONN, it connects somehow always using the first value of tracks!

If I redeploy or erase the cache WSDL, it works. But we intend to run it several times to several environment manually or programmatically clearing WSDL is not the right solution.

Can someone tell me what is the standard process to do to make it work every time?

Thank you
Shaf

Shaf,

Please refer to the thread of e-mail for more details. If you want I can send you (send me your email id) the sample BPEL process that uses dynamic JNDI.

Re: How to outsource the JNDI name (dynamically set the JNDI name)

Thank you

Sen

Tags: Fusion Middleware

Similar Questions

  • By specifying the host name for the database during installation

    I installed the database 11g r2 as a Server Desktop, anywhere during the installation it asked me to review or change the host name. It is automatically used as the host name "localhost" and wrote in listener.ora, so no other machine on the network is able to use it. Only, it connects since within the same machine. Please help how to specify the host name during installation.

    Published by: user4928701 on July 8, 2011 23:15

    user4928701 wrote:
    I installed the database 11g r2 as a Server Desktop, anywhere during the installation it asked me to review or change the host name. It is automatically used as the host name "localhost" and wrote in listener.ora, so no other machine on the network is able to use it. Only, it connects since within the same machine. Please help how to specify the host name during installation.

    Published by: user4928701 on July 8, 2011 23:15

    lsnrctl stop

    move/rename listener.ora to new/other file name

    lsnrctl start

  • Variable for the name of the database or server?

    Can we use the BI Publisher variables in a model of EBS?
    We are on 11.5.10.2 and we would be able to identify


    I'm <? xdoxslt:get_variable($_XDOCTX,'CURRENT_SERVER_NAME')? >, but it does not work. Is there a documentation on the variables that are available?
    We want to do in the model, rather than changing all of our programs of rdf to return the name of the database.


    Thank you
    Angie

    To be more precise, such set of values are available in 10.1.3.4.1 (stand-alone version) according to the documentation:
    http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e14667/TOC.htm#BABIEJJI

    Not sure if it's available in XMLP however.

    In addition, if it is still he wouldn't return the name of the database. See if my previous suggestion might work for you.

    see you soon

    Jorge
    PS If you find the answer to your question please give the points and close the message

  • ORA-16783: could not resolve the deficit for the database

    I have two databases emadb and emadbdg, governed by Data Guard. emadb is currently principal. emadbdg is currently pending physical.

    ORA16783 - cannot solve the gap for the database is one I think, is the origin of the problem. Anyone can help solve the problem below. Logs attached.

    Output of data protection

    DGMGRL > show detailed configuration

    Configuration - DRSolution

    Protection mode: MaxAvailability
    Databases:
    emadb - primary database
    Error: ORA-16825: multiple errors or warnings, including failover quick start or warnings, errors detected for the database

    emadbdg - (*) Physical standby database
    WARNING: ORA-16817: configuration not synchronized rapid failover

    (*) Fast failover target

    Properties:
    FastStartFailoverThreshold = "30"
    OperationTimeout = "30"
    FastStartFailoverLagLimit = "30"
    CommunicationTimeout = "180"
    FastStartFailoverAutoReinstate = 'TRUE '.
    FastStartFailoverPmyShutdown = "FALSE".
    BystandersFollowRoleChange = "ALL".

    Fast-Start Failover: ENABLED

    Threshold: 30 seconds
    Target: emadbdg
    Observer: emarn1
    Offset limit: 30 seconds (do not use)
    Primary closure: FALSE
    Auto-Rétablir: TRUE

    The configuration status:
    ERROR


    DGMGRL > see the detailed database emadb

    Database - emadb

    Role: PRIMARY
    State of destination: TRANSPORT-WE
    Occurrence (s):
    emadb

    Database error (s):
    ORA-16783: could not resolve the deficit for the database emadbdg

    Warning (s) of database:
    ORA-16817: unsynchronized fast-start failover configuration

    Properties:
    DGConnectIdentifier = "emadb.
    ObserverConnectIdentifier = "
    LogXptMode = "SYNCHRONIZE".
    DelayMins = '0'
    Binding = "optional."
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = "300"
    NetTimeout = "30"
    RedoCompression = "DISABLE."
    LogShipping = 'ON '.
    PreferredApplyInstance = "
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO '.
    StandbyFileManagement = 'AUTO '.
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = "4"
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = 'emadbdg, emadb '.
    LogFileNameConvert = "/ opt/app/oracle/oradata/emadbdg, / opt/app/oracle/oradata/emadb '"
    FastStartFailoverTarget = "emadbdg".
    InconsistentProperties = "(monitor).
    InconsistentLogXptProps = "(monitor).
    SendQEntries = "(monitor).
    LogXptStatus = "(monitor).
    RecvQEntries = "(monitor).
    Nom_sid = "emadb.
    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn1) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadb_DGMGRL) (INSTANCE_NAME = emadb)(SERVER=DEDICATED)))'
    StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadb/archivelog1.
    AlternateLocation = "
    LogArchiveTrace = '0'
    LogArchiveFormat = '% t_%s_%r.dbf '.
    TopWaitEvents = "(monitor).

    State of the database:
    ERROR

    DGMGRL > see the detailed database emadbdg

    Database - emadbdg

    Role: STANDBY PHYSICS
    State of destination: apply
    Transport delay: (unknown)
    Apply the Lag: (unknown)
    Real-time query: OFF
    Occurrence (s):
    emadbdg

    Warning (s) of database:
    ORA-16817: unsynchronized fast-start failover configuration

    Properties:
    DGConnectIdentifier = "emadbdg".
    ObserverConnectIdentifier = "
    LogXptMode = "SYNCHRONIZE".
    DelayMins = '0'
    Binding = "OPTIONAL."
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = "300"
    NetTimeout = "30"
    RedoCompression = "DISABLE."
    LogShipping = 'ON '.
    PreferredApplyInstance = "
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO '.
    StandbyFileManagement = 'AUTO '.
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = "4"
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = 'emadb, emadbdg '.
    LogFileNameConvert = "/ opt/app/oracle/oradata/emadb, / opt/app/oracle/oradata/emadbdg '"
    FastStartFailoverTarget = "emadb.
    InconsistentProperties = "(monitor).
    InconsistentLogXptProps = "(monitor).
    SendQEntries = "(monitor).
    LogXptStatus = "(monitor).
    RecvQEntries = "(monitor).
    Nom_sid = "emadbdg".
    StaticConnectIdentifier = ' (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=emarn2) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = emadbdg_DGMGRL) (INSTANCE_NAME = emadbdg)(SERVER=DEDICATED)))'
    StandbyArchiveLocation = "/ opt/app/oracle/oradata/emadbdg/archivelog1.
    AlternateLocation = "
    LogArchiveTrace = '0'
    LogArchiveFormat = '% t_%s_%r.dbf '.
    TopWaitEvents = "(monitor).

    State of the database:
    WARNING

    DGMGRL >
    DGMGRL >
    DGMGRL >
    DGMGRL >
    DGMGRL > output

    Alex Antony Samantha wrote:


    Head node

    SQL> archive log list
    Database log mode            Archive Mode
    Automatic archival            Enabled
    Archive destination            /opt/app/oracle/oradata/emadb/archivelog1
    Oldest online log sequence     65
    Next log sequence to archive   67
    Current log sequence            67
    
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    
    THREAD# MAX(SEQUENCE#)
    ---------- --------------
          1           925
    

    It is misleading to the column sequence, sequence of real number is 65 series, but it's beyond. Have you restored any old backup with the incarnation?
    When you perform incremental backups, is the current_scn in the two primaries and Eve was balanced?

    And the sequence number * 29 * is transferred from the primary to the standby (or) he has been removed from the primary?
    Perform the two methods.

    (1) SQL > alter system set log_archive_dest_state_2 = 'reporter ';
    (2) conduct 3-4 log switches
    (3) SQL > alter system set log_archive_dest_state_2 = 'enable '.

    and displays the alert log database and backup files.
    And you mentioned the hostname in the entries of the listener, if this entry is added in/etc/hosts? otherwise you can use the IP address instead of the host name and then reload the listener.

    second method
    (1) copy archives missing from primary sequence of 29
    (2) place manually and then perform a recovery
    or
    (3) retrieve manually

    And update with your conclusions after all these lists.
    Thank you.

  • ORA-01103: the 'RAC' name in the database control file is not "STB".

    HIII..,.

    Im doing my dataguard, my primary side installation is a RAC 2node and Eve is a single node. IM using Database 11 GR 2.

    when im using the RMan command for duplication of data im getting the following error.



    SQL statement: alter database mount rescue
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 03/10/2011 18:33:58
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-03009: failure of the sql command on the channel clone_default at 03/10/2011 18:33:58
    RMAN-11003: failure during parsing / execution of the SQL statement: alter database mount rescue
    ORA-01103: the 'RAC' name in the database control file is not "STB".


    Please can someone help me to solve the issue. ??

    Thanks in advance...

    Hello

    (1) If you use "DORECOVER" while cloning, please remove it.
    (2) its still not, simply set the FRA and IE

    ALTER system set DB_RECOVERY_FILE_DEST = '+ DATA ';
    ALTER system set db_recovery_file_dest_size = 2GB;

    Note: Set it to primary and standby

    Clone of the DB.

    It works perfectly now, and once Reset original value if you do not want it.

    Happy cloning :)

    Kind regards
    Rakesh

  • How do you know the name of the database

    As a normal database user... What are the options available for him to get the name of the database. Any user table will give the info?
    select ora_database_name from dual;
    

    HTH
    Anand

  • How to display the name of the database?

    Hello

    I want to display the name of the database on the homepage of my application.

    Is there an element of the APEX or the workspace view that can be used to retrieve the database name based?


    Thanks in adavnce
    Annie

    Hello:

    What model/models use your pages? On page page-defintion look under the section "Models" and choose the one that is used for the "Page".
    The substitution string must be terminated with a '.' as in & G_DBNAME.

    CITY

  • 3524 office: Change name for the scans

    Somewhere in the past I changed name genric for scans of scan000X to a name, I prefer not to use it anymore. But I probably did before moving to Windows 10, because I knew where he change in Windows 7 (and earlier versions). How can I change the generic name for the (still) scans in Windows 10?

    Hello

    Thank you for using the HP forum.

    1. Firstly, you must ensure that you have your software FULL of features installed.

    http://support.HP.com/us-en/drivers/selfservice/HP-DeskJet-3520-e-all-in-one-printer-series/5162504/model/5241256#Z7_3054ICK0K8UDA0AQC11TA930O2

    2. open the HP printer Assistant

    3. go to scan a Document

    4. go into 'advanced settings '.

    6. go to 'File' (or Destination)

    There should be an option to change the generic name.

    Hope that helps!

  • Deployment of ADFLibrary: provide a unique name for the resources in this project

    JDeveloper 12 c.

    I'm deploying an application as a library ADF - it will be used my multiple applications.  So it's a bit generic. Sometimes it is OK and other times it gets stuck... See the ChangeLog

    What do mean exactly by ' resourceprovide a unique name of the indicated "? 

    What should I name the files?  xyz_abc_appNotices.jsff or the directory structure has to change?

    Thank you!

    Stuart

    [16: 38:44]-deployment began.  ----

    [16: 38:44] the target platform is Java EE Standard.

    [16: 38:44] analysis of the dependence running...

    [16: 38:44] building...

    [16: 38:48] deployment of profile...

    [16: 38:49] WARNING: the commonly named resources below could cause errors of reusability to your consumers.

    Provide a unique name for the resources in this project, or start with a different project.

    appNotices.jsff

    appNoticesMain.jsf

    [16: 38:49] Mobile WEB-INF/adfc - config.xml for META-INF/adfc-config. XML

    Well, Yes, it would do. The warning say you that your library resources should use unique names, that I hope are not used by other libraries. From the resources app Strip is common chance is that it will be a duplicate.

    Timo

  • How gemfire locator can be configured to return the full DNS name for the customer?

    We have an index running before 2 cache servers,

    Locator.DomainA == > Server1.DomainA, Server2.DomainA.

    the problem is when the customer (customer. DomainB) try to access gemfire via locator, it up ' get: not connected to GemFire' exception, the reason is that the Client.DomainB uses the full name "Locator.DomainA" to access the gemfire, the Locator maintains only the servers host name, when the client runs the query, it access Server1 or Server2, but in this case, the networking is not connected.

    How gemfire locator can be configured to return the full DNS name for the customer?

    in gemfire.properties, Locator attribute is full domain name already.

    Thank you

    Yao

    There is a parameter for hostname for the customers that you can put in your cache.xml file cache-server element. It is a string that is passed the server for the location, and then on the Locator for the customer. You must set this client-to-host name in each of your cache servers.

  • Sizes of Splash screen and names for the iPhone 6 and 6 more in the file descriptor xml files

    Is anyone know the sizes of screen and the file names for the iPhone 6 and 6 more (for the descriptor xml file)? Or current splash screens works on both devices?

    i.e. Default-Portrait.png *-768w x 1024 h

    Hello

    Here is the specification.

    iPhone 6

    Start screen

    750 x 1334

    72

    [email protected]

    Resources or resources/iphone

    iPhone 6 more landscape

    Start screen

    2208 x 1242

    72

    [email protected]

    Resources or resources/iphone

    iPhone 6 Plus portrait

    Start screen

    1242 x 2208

    72

    [email protected]

    Resources or resources/iphone

    You can find more info here - http://docs.appcelerator.com/titanium/3.0/#! / guide/Icons_and_Splash_Screens-section-290048 97_IconsandSplashScreens-Splashscreens

  • Name of the database

    Hello
    I want to see the current name of the database?

    882656 wrote:
    Hello
    I want to see the current name of the database?

    1.) sys/XXX sqlplus as sysdba

    2.) select name from v$ database;

  • ashrpt - ORA-20200: samples of ASH NO exist for the DATABASE/Instance

    Hello guyes,

    Please could you help me with the generation of the report of ASHES? I have the stack on:
    "ORA-20200: NO samples of ASH does exist for the DATABASE Instance / '.

    I tried to find how to sample, but the only things I found is for statspack or awr.

    Thanks a lot :)

    redy007 wrote:
    sb92075:
    SYS@PMBTEST > select * from v version $;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit version of PL/SQL Production 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for Linux: Version 11.2.0.2.0 - Production NLSRTL Version 11.2.0.2.0 - Production

    The active Session history exists only in the Enterprise edition.

  • Provide a name for the new single-instance - distributed environment

    Hello

    I'm not sure about that piece of information in the installation documentation

    Please see

    http://download.Oracle.com/docs/CD/E17236_01/EPM.1112/epm_install_11121/frameset.htm?launch.html
    During Setup in a distributed environment, provide a name for the new single instance that you configure each server. For example, if you use the epmsystem1 of name of default instance on the first server, and you keep the same names on the Server naming convention, you must create new, instance names unique on each subsequent server, like epmsystem2, epmsystem3, and > so now.
    What happens if I use the same path "d:\...\epmsystem1" on all servers in a distributed environment?


    Concerning
    Kumar

    Published by: Kumar 1 October 4, 2011 06:18

    It was originally a 11.1.2 install and then upgraded to 11.1.2.1 with 11.1.2 I think that the names of instances were the same in a distributed environment.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Unable to connect to sys giving the name of the database

    Hi all
    I can't connect to the sys user when you give the name of the database, but with no database name I can connect.

    [oracle@ccoshs02xvdbs04 path] $ sqlplus sys/passwdA123system@mps01dev as sysdba

    SQL * more: Production release 11.2.0.1.0 on Tue Mar 1 10:38:36 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.

    ERROR:
    ORA-01017: name of user and password invalid. connection refused


    Enter the user name:
    ERROR:
    ORA-01017: name of user and password invalid. connection refused


    Enter the user name:
    ERROR:
    ORA-01017: name of user and password invalid. connection refused


    SP2-0157: unable to connect to ORACLE after 3 attempts, leaving SQL * more
    [oracle@ccoshs02xvdbs04 path] $ sqlplus sys/passwdA123system as sysdba

    SQL * more: Production release 11.2.0.1.0 on Tue Mar 1 10:40:06 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > show parameter instance

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    whole active_instance_count
    cluster_database_instances integer 1
    instance_groups string
    instance_name string mps01dev
    instance_number integer 0
    instance_type string RDBMS
    open_links_per_instance integer 4
    parallel_instance_group string
    parallel_server_instances integer 1

    Purchase below and post result here

    sqlplus sys/passwdA123system as sysdba
    alter user sys identified by passwdA123system
    conn sys/ passwdA123@mps01dev as sysdba
    

    In this case if you can not connect then your entry mps01dev actually made another service.

Maybe you are looking for

  • Password files differ between versions of Firefox?

    The 'profiles' page - where Firefox stores your bookmarks, passwords and other user data (https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data) seems to give different information (without specifying what it does) according to

  • Port of charger broken on Satellite L500-1XD

    Hi my laptop L500-1XD fell about 6 inches on the carpet, he was in charge at the time, and the charger port seems to be cracked which means that the charger will not stay in and it will not load. Can you tell me please if it is possible to replace th

  • HP 2113w: Hard disk error code hp 2113w 3f1

    Drive hard 3f1 failure, what do I do

  • HP officejet pro 8600 duplex scan

    How can I duplex scanner using the charger to top of the page?  Is there a driver or software, I need?  I bought this printer to use this feature.  As a teacher, I want to analyze all my books in my USB. Please help me!

  • Bought with mspoints Xbox games

    If I buy fuzion frenzy on xbox 360 with microsoft points it'll work?