Dynamically connecting to two different DataSources in ADF BC application.

Hi All,
I have a requirement where my ADF BC application need to connect to different data bases(connections maintined as datasources in OAS) depending on the user logs in.
I have two databases schemas TENCA and TENUS for which I have created a datasources with jndi loaction names as jdbc/TENCA and jdbc/TENUS in OAS and I have hardcorded jdbc/TENCA in the JDev 10.1.3.2 for the Appln Model ServiceImpl by editing the configurations of ServiceImpl and deployed the ADF BC application on OAS with this I was able to access data of TENCA schema but not the TENUS. IS there any way I can dynamically point DAF BC appln to different datasources during appln start up? Please assist.
Thanks,
Muniraj

Thanks Timo,
link: ADF BC: Choosing between two identical DB schemas on application startup
looks like give more closer solution for my problem but still..
Thanks,
Muniraj

Similar Messages

  • Using two different datasource driver into a transaction

    Hi all,
    i have two database : one under Informix and another under Oracle.
    Well, well, i have declared two datasources in my apllicationserver ( Sun ONE 7).
    I have to use a session EJB to write into the two databases some data and i have to open an UserTransaction to deal with it.
    The flow is :
    - open the UserTransaction
    - Get the connection from the first datasource
    - launch the INSERT query in Informix
    - Get the connection from the second datasource
    - launch the INSERT query in Oracle
    My doubt is : Will the transaction work fine even if i have to use two different connection from two different datasources ?
    Using only one database the transaction work fine.
    Cheers.
    Stefano

    Hi,
    This will work correctly if you use XA drivers (XADataSource instances).
    You can check the vendor docs to see what exact classes you need to deploy for each database.
    Beware of the pitfall: if you don't use XA drivers then commit might very well appear to work, but rollback won't.
    Also, don't forget to close the connections.
    Hope that helps,
    Guy
    Atomikos TransactionsJTA - visit our new JTA forum at http://www.atomikos-support.com

  • Connect to two different connection pool

     

    You should post to jdbc group.
    Please post more detail about the exception.
    "ahmad" <[email protected]> wrote in message
    news:40d83847$1@mktnews1...
    Hi, everybody,
    I have two entity bean, associated with two different datasource andconnection pool, how can I look up these two entity bean, and get them from
    one session bean.
    >
    now, when I looking up and get them, an exception throws :
    Illegal attemp to connect two another connection pool.
    regards
    Ahmad R. Seddighi

  • I am trying to connect a 24" cinema display with mini display port cable to a 24" imac with a displayport - is there a cable for this as these two connections are two different sizes

    I am trying to connect a 24" cinema display with mini display port cable to a 24" imac with a displayport - is there a cable for this as these two connections are two different sizes

    Hi Gilly,
    I have no proof, but I think it will not work with an adapter, only Mini Display Port or Thunderbolt.

  • JDBC connection to two different machines from the same program

    I want to use JDBC to connect to two different databases that are on two different MySQL installations on two different machines.
    One of the installations is MySQL 4.1.12 and the other is 4.1.14-nt
    For some reason, all my statements seem to be going only to one machine, even though I am very clearly set it up to go to two different machines.
    Does anyone know whether connecting to two different installations from one program presents any unusual problems?
    Thanks.

    Unless there is some horrible defect in the MySQL JDBC driver (which I doubt!), there should be no problem and like the other poster says, please post snippits of your code so we can see what your doing...

  • TS1398 I am unable to connect to two different wifi at different locations having same name but different passwords

    I am unable to connect to two different wi if at different locations having same user name but different password one is at home other at work

    I was able to do a full reset on the router (pushing the tiny button near the power input). Then ran through the setup process and it started working on my device.

  • Connecting to two different SQLServers present on different Locations

    Hi,
    How can i connect to two different SQL Servers which are at different locations in the same session? IS there any way to do this without disconnecting from the first server?
    cheers,
    Sachin

    Well,
    actually my problem is that im reading Database
    e Properties through a file which contains multiple
    database entries. And i have only one Connection
    Object so if im logged into one ex SQLServer in
    London, I have a class which will allow me to loginto
    another database SQL Server at New York. Now how do i
    keep my connection as well as connect to New York
    Database Server with the same Connection Object. If
    possible, I need to logoff from the Server at London.
    How do i do this? Any Ideas?Redesign. You have a connection object that can only have one connection. Either you have to close that connection and reconnect to the other one, or you need two of them. Those are your choices.

  • Is it possible to connect to two different clusters?

    Hi,
    I was wondering if it was possible to connect to two different clusters from the same process?
    What I would like to do is to able to get some cache on the first cluster and others on a second cluster. The cache-config DTD doesn't seem to forbid the definitions of several remote-cache-scheme. So I should be able to map all "c1-*" caches to the first cluster and all "c1-*" caches to a second cluster...
    Is it possible?

    Thanks,
    Yes I'm connection via extend.
    Could you give me an example of such configuration? I've made a test from a C++ client with the following client config:
    ====================================================================
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>c1-*</cache-name>
    <scheme-name>extend-1</scheme-name>
    </cache-mapping>
    <cache-mapping>
    <cache-name>c2-*</cache-name>
    <scheme-name>extend-2</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <near-scheme>
    <scheme-name>near-c1</scheme-name>
    <back-scheme>
    <remote-cache-scheme>
    <scheme-ref>extend-1</scheme-ref>
    </remote-cache-scheme>
    </back-scheme>
    <invalidation-strategy>auto</invalidation-strategy>
    </near-scheme>
    <near-scheme>
    <scheme-name>near-c2</scheme-name>
    <back-scheme>
    <remote-cache-scheme>
    <scheme-ref>extend-2</scheme-ref>
    </remote-cache-scheme>
    </back-scheme>
    <invalidation-strategy>auto</invalidation-strategy>
    </near-scheme>
    <remote-cache-scheme>
    <scheme-name>extend-dist</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address system-property="tangosol.coherence.proxy.address">ldnpsm020001413</address>
    <port system-property="tangosol.coherence.proxy.port">4321</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    </serializer>
    </initiator-config>
    </remote-cache-scheme>
    <remote-cache-scheme>
    <scheme-name>extend-paul</scheme-name>
    <service-name>ExtendTcpCacheService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address system-property="tangosol.coherence.proxy.address">ldnpsm020001412</address>
    <port system-property="tangosol.coherence.proxy.port">4131</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    </serializer>
    </initiator-config>
    </remote-cache-scheme>
    </caching-schemes>
    </cache-config>
    ========================================================================
    if I do a CacheFactory::getCache("c1-Test"), the log shows a connection to the 1st cluster
    if I then do a CacheFactory::getCache("c2-Test"), the log shows a connection to the 1st cluster and not to the second cluster
    What did I do wrong?

  • 11g Multiple Rpd on one BI server connecting to two different data marts

    Hi
    Did anyone tried and successfully implemented multiple rpds on one bi server. I have similar requirement in one of the clients place.
    1. Install OBIEE 11g with vertical scaling( reason client doesnt want to spend extra money on additional server licenses) and would like to utilize the powerful existing servers.
    2. Install 2 rpds on One BI Server and connect to two different datamarts.
    3. Create two PS and provide two links to have two different reporting environments.
    Appreciate with any pointers. I am very clear on Vertical Scaling and bumping up the Bi , PS and Java Hosts components. I saw a post with successful implementation of the same functionility in 10g and nothing in 11g. I already reviewed ritmanmeed blogs but did not give a complete picture of successfull implementation.
    Thanks

    Hi,
    Yes, it is possible to have two different .rpds on one BI Server but then you need to set up two different Presentation Servers.
    Refer the below threads for more information.
    Re: multiples RPD in one server
    Re: Multiple RPD & Multiple Presentation service instance on single BI Server
    https://forums.oracle.com/forums/thread.jspa?messageID=9189677&#9189677
    Can i put two rpd files in nqsconfig init file in BI Admin
    Hope this help's
    Thanks
    satya

  • How to establish connection between two different IP Range

    Hi All,
    Currently in my office  there are two different ip range that we are using one for the Wi-FI(192.168.1.X) & 2nd  for local machine & servers 192.168.2.x series ip.
    In current situation if any Wi-Fi user(Laptop User) wants to communicate with local machine or server then he has to switch from Wi-Fi to Lan.
    So is there any way to provide communication between Wi-Fi & local network.
    if this happen then there will be no need to switch from Wi-Fi to Lan, Wi-Fi user who has ip range 192.168.1.x is easily communicate with local machine & server(192.168.2.x).  
    Shailendra Vishwakarma

    Thanx for the reply..
    In my office i am using Microsoft Thread management Gateway(Software Firewall).
    Can i set Security like as below,
    Users can connect Wi-fi Network but they would not able to access  internet but  they should be able to access for local network & for the internet they should go via Microsoft Thread management Gateway.
    Thanks,
    Shailendra Vishwakarma

  • Connecting to two different database instances from a swing application.

    Hi All,
    I am developing a swing application which needs to interact with two different database instances of two different weblogic servers.
    More eloborately,
    I have some data in DB_Instance1 running on[b] Weblogic_Server1 and I need to insert the same data into DB_instance2 running on Weblogic_server2. Is it possible. Could some explain me how to do that..
    Thanks in advance...
    Sreekanth.

    Hi Rick,
    Try logging onto both Server first. You'll have to use either 2 separate ODBC DSN's or 2 separate OLE DB connections. Set them both for Trusted Authentication, you'll have to configure that on the Server also.Then try your query.
    If that doesn't work then you'll have to create a Stored Procedure or View that can link the 2 Server side.
    Thank you
    Don

  • Physical redundancy (CSS connected on two different switches)

    Hello,
    Is it possible for redundancy reasons to connect a CSS to two different switches (like we do for access switches) ?
    I know that one option is to configure both interfaces in the same vlan and use the spanning-tree for the redundancy. However, this will not be transparent for the end-user due to the slow convergence of the spanning-tree (uplinkfast or rapid-pvst is probably not supported).
    Are there any other options ? One interface active, the other backup ?
    Thanks in advance for your reply.
    Gaetan

    Gaetan,
    for the CSS we suggest to be connected to only 1 switch and if the CSS detect a failure with the switch, force failover to the redundant css.
    If you have ASR configured, failover will be stateful.
    Gilles.

  • Can one Cisco IPS 4360 connect to two different ISP circuits?

    Hi,
    Currently our network has two circuits from two different ISPs, with two firewalls in the middle of the ISPs and the corporation internal network. We are thinking of purchasing a Cisco IPS 4360 and put the device between the ISPs and the two firewalls.
    We would like the traffic coming to/from ASA1 still use the circuit from ISP1, and ASA2 still use the circuit from ISP2. Is this possible? Can the 4360 route the traffic as we want?
    I drew a draft picture of this issue. Please have a look at the attachment.
    Thank you!
    Regards,
    Jacky

    Hi,
    Yes, You can deploy your IPS as your plan. Please see the below link.
    http://www.cisco.com/c/en/us/solutions/enterprise/validated-design-program/networking_solutions_products_genericcontent0900aecd80601e22.html
    Regards
    Parosh

  • How can i deploy two different versions of the same application on the same server??

    I have two different versions of an application. One is a released version. And another version under development. I need to port this version of the application to the same server. I'm using the same classes and packages(except for some new ones). Is it sufficient if i change the name of my ear(application name). Or should i change my code also.

    Hi
    You can repackage the new versions of ear,jar and war with different names. I hope that should work well.
    Cheers
    -pradeep

  • Same Mac, connecting to two different networks, one by Ethernet, one by Wi-Fi. How to see both networks at the same time?

    On this Mac, I have access to the company network (and Internet) via the Ethernet port (gateway 192.168.1.1).
    At the same time, I have a second (backup) Internet link via Wi-Fi, to a different ISP (gateway 192.168.3.1)
    At the least, I would like to view the company network from the Finder AND access Internet via the Wi-Fi link.
    I have minimal knowledge of network stuff, but if I could redirect the browser requests to the Wi-Fi link, maybe it would work?
    Thanks for your help!

    Oh well... just found the reply...
    Changing order of the connections, putting the Wi-Fi first as it gets the HTTP first.
    Don't know why, but it would not work yesterday!

Maybe you are looking for

  • Running mail server, should I use VPN or just public IP?

    Hey everyone this might be a dumb question but here's my setup. I have Leopard Server at my office, and a static ip address there for my Internet. I've set up VPN as well and I can VPN in from my home using my MacBook, or using my XP based laptop. Ri

  • Code not able to get resultset in method in oracle adf

    The following is a method written in AppmoduleImpl.java of oracle adf. The resultset rs returns a null resultset(it has no rows). Although, the query works fine when tested separately. Plzz help public void insert( ) { try { Connection conn; conn = D

  • Data Appearing as Comments

    We have forms created in Acrobat 9 Pro that have worked for almost a year.  Today completed forms started showing up with the information in the fields appearing as comments.  We need this information to appear in the field itself so the form can be

  • Error in rewrite rule...

    Gentlemen, at our installation we are running MS 5.2p1 and DS 5.1. The text below was taken from the imsimta test -rewrite with a non existing username in our production server. This test gives no error as expected. This causes the message to bounce

  • T500 BSOD at shutdown

    I get this stop error: 0x0000007E (0xC0000005, 0x87B1EA58, 0x901DDB88, 0x901DD884) ndis.sys - address 87B1EA58 base at 87AED000  Only seem to get it at shutdown or restarts.  I've googled this and the only passing references I get are in regards to e