Dynamic JDBC credentials

Dear all

I'm trying to customize my project using (* 11 g dynamic JDBC Credentials to ADF Faces Rich Client - 11.1.1.0.0 *) created by Steve Muench http://smuenchadf.samplecode.oracle.com/samples/11gDynamicCredentials.zip

but really I don't know the steps to perform this customization?, I think that there are a lot of configuration in AM, XML files and others, can someone help me?
Note: I use 11.1.1.4


I did my best, but I am facing this problem now and I don't have the right configuration of may!

Target URL - http://127.0.0.1:7101 / MEDGO-NewInterface2-context-root/faces/login
[< 19 February 2011 22:30:20 AST > < error > < HTTP > < BEA-101020 > < [ServletContext@32456618[app:j2ee-app module: root MEDGO-NewInterface2-context-path: / MEDGO-NewInterface2-context-root spec-version: 2.5]] Servlet failed with Exception
java.lang.NullPointerException
at java.lang.String.endsWith(String.java:1465)
during the tests. DynamicJDBCBindingFilter.doFilter (DynamicJDBCBindingFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
Truncated. check the log file full stacktrace
>
< 19 February 2011 22:30:20 AST > < opinion > < Diagnostics > < BEA-320068 > < Watch "UncheckedException" with severity "Notice" on the server "DefaultServer" released in February 19, 2011 22:30:20 AST. Details of the notification:
WatchRuleType: Journal
WatchRule: (SEVERITY = "Error") AND ((MSGID = ' WL-101020') OR (MSGID = "WL-101017'") OR (MSGID = "WL-000802'") OR (MSGID = "BEA-101020'") OR (MSGID = "BEA-101017'") OR (MSGID = "BEA-000802'"))
[WatchData: DATE = February 19, 2011 22:30:20 AST = DefaultServer MESSAGE = SERVER [ServletContext@32456618[app:j2ee-app module: root MEDGO-NewInterface2-context-path: / MEDGO-NewInterface2-context-root spec-version: 2.5]] Servlet failed with Exception
java.lang.NullPointerException
at java.lang.String.endsWith(String.java:1465)
during the tests. DynamicJDBCBindingFilter.doFilter (DynamicJDBCBindingFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Subsystem = HTTP USERID < WLS Kernel > = SEVERITY = error THREAD = ExecuteThread [ASSET]: '3' for queue: MSGID 'weblogic.kernel.Default (self-adjusting)' = BEA - 101020 MACHINE = wael TXID = the CONTEXTID = 00614b5ef90e75d7:-3c442c3d:12e3f637ae7: - 8000-0000000000000031 TIMESTAMP = 1298143820678
WatchAlarmType: AutomaticReset
WatchAlarmResetPeriod: 30000
>


Thank you

Published by: ORA ORA February 19, 2011 11:32

Hi ORA ORA

Make these changes to the following files:

in the web.xml file:


RedirectToLogin
login


........

adfBindings

test.DynamicJDBCBindingFilter

-in the Databinding.cpx file:
You should add this: ErrorHandlerClass = "test. DynamicJDBCDCErrorHandlerImpl ".


...

in the ADF - settings.xml:


  
    
      
        DynamicJDBCPagePhaseListener
        test.DynamicJDBCPagePhaseListener
      
    
  

in bc4j.xcfg you have to change the properties of ampool jbo.ampoo.session.cookiefactory

hope this helps you

Maher

Tags: Java

Similar Questions

  • Dynamic JDBC credentials error

    Hallo,

    I'm trying to implement the example of Steve Muench with dynamic JDBC credentials for 11 g (http://blogs.oracle.com/smuenchadf/examples/#129).
    The downdoaded sample application is fine, but rebuilding in an own application there is an error at the start of a series of tests, the Login Page does not appear.

    Please help me, I'm new in the ADF and Java.

    Error 500 - Internal server error
    java.lang.NullPointerException
    during the tests. DynamicJDBCPagePhaseListener.getADFBCDataControlsList (DynamicJDBCPagePhaseListener.java:72)
    during the tests. DynamicJDBCPagePhaseListener.beforePhase (DynamicJDBCPagePhaseListener.java:62)
    to oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$ PagePhaseListenerWrapper.beforePhase (ADFLifecycleImpl.java:551)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:187)
    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.mav$ executePhase(ADFPhaseListener.java:21)
    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ PhaseInvokerImpl.startPageLifecycle (ADFPhaseListener.java:231)
    to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ 1.after(ADFPhaseListener.java:267)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    during the tests. DynamicJDBCBindingFilter.doFilter (DynamicJDBCBindingFilter.java:79)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.wls.JpsWlsFilter$ 1.run(JpsWlsFilter.java:96)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Thank you very much!
    Chris

    you have to make the necessary changes?

    -web.xml
    ...

    RedirectToLogin
    opening of session

    ....


    adfBindings

    test. DynamicJDBCBindingFilter

    ....

    -Databinding.cpx
    ...

    version = "11.1.1.49.49" id = "DataBindings" SeparateXMLFiles = "false".
    Package = 'show' ClientType = 'generic '.
    ErrorHandlerClass = "test. DynamicJDBCDCErrorHandlerImpl">
    ...
    And you need to replace the PhaseListener in adf - setting.xml DynamicJDBCPagephaseListener
    in bc4j.xcfg, you must modify the properties of ampool jbo.ampoo.session.cookiefactory

    I think that's it.

    hope it helps you,

    Rowan

  • Why dynamic JDBC Credentials failed after migrated en 11.1.1.2 to 11.1.1.3

    When requesting the migration of 11.1.1.2 to 11.1.1.3, the dynamic feature to JDBC Credential stopped working with no other changes made.
    The same version of the source code works fine in 11.1.1.2.

    After debugging, the problem appeared with line 2 of the DynamicJDBCSessionCookieFactory (below) that the session has been returned as null.

    No idea why line 2 did not return the HttpSession after 11.1.1.3 to 11.1.1.2 migration?

    ====================================================================
    SerializableAttribute public class DynamicJDBCSessionCookieFactory extends HttpSessionCookieFactory
    {


    public createSessionCookie (String name, String value, ApplicationPool pool SessionCookie,
    Properties properties)
    {
    SessionCookie cookie = super.createSessionCookie (name, value, pool, properties); line 1

    If (properties! = null)
    {
    HttpSession session = (HttpSession) properties.get (HTTP_SESSION); line 2
    If (session! = null)
    {
    Hashtable env = pool.getEnvironment (); line 3
    approx. Remove (configuration. DB_USERNAME_PROPERTY);
    approx. Remove (configuration. DB_PASSWORD_PROPERTY);
    pool.setUserName (null);
    pool.setPassword (null);
    Provider EnvInfoProvider = new DynamicJDBCEnvInfoProvider (/ / line 4)
    (String) session.getAttribute (Configuration.DB_USERNAME_PROPERTY).
    ((String) session.getAttribute (Configuration.DB_PASSWORD_PROPERTY));
    cookie.setEnvInfoProvider (provider); line 5
    }
    }


    Back to cookie;
    }

    ==================================================================

    We do this way.

    public SessionCookie createSessionCookie (String name, String value, ApplicationPool pool, properties properties) {}
    SessionCookie cookie = super.createSessionCookie (name, value, pool, properties);

    HttpServletRequest request = (HttpServletRequest) ADFContext.getCurrent () .getEnvironment () .getRequest ();

    HttpSession session = request.getSession (false);
    If (session! = null) {}
    ....
    }

    ....
    }

    See if it works for you. Our brief attempts to use 11.1.1.3 had no problem with this code.

  • Steve Muench dynamic JDBC &amp; Configuration.createRootApplicationModule

    Hello

    I use ADFBC, JDev 11 g.

    With the help of Steve Muench of dynamic JDBC credentials, users connect to the database using their own username and password database.
    This works fine unless I programmatically create an Application Module using Configuration.createRootApplicationModule (.).
    in this case, the internal credentials are used.

    The problem is now that I need to retrieve and display the BLOBs. I created a new servlet for this task.
    I know I could set up my own JDBC connection to the database inside my servlet, but this isn't an option (performance).

    So far, I was able to work around this problem by retrieving an instance of the application module using SomeIterator.getDataControl () .getDataProvider ();
    in this case, the connection has been/is made with the correct credentials. It will not work now because there is no page I can retrieve an iterator.

    Is there anyone who knows how this could be done?

    Thank you very much in advance,

    Charles.

    Charles,

    From what I see - you may not release the AM - you not create, so its life cycle should be managed by the adfBindings filter.

    John

  • Application of the example of credentials of dynamic JDBC from Steve Muench

    My apologies for this newbie... question but I will try to understand the example of dynamic credentials of Steve Muench JDBC application:

    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#14

    I think I understand most of it, but a little, I do not understand is why she customizes the ADF Page Lifecycle (DynamicJDBCADFPhaseListener, DynamicJDBCPageLifecycle, DynamicJDBCPageLifecycleContext).

    Can someone explain to a developer of ex-formes why is this code?

    I also try to rework a way for the session to be invalidated when the user connections

    for example a user names, it does not use the logout function, but uses the back button back to the login page. When newspapers he in there with a different set of credentials, would be a start of a new session, or as I suspect, it would use the initial credentials?

    Thank you

    You can ignore these three classes in the example. They are not related to the solution of dynamic identification and must have been left by some other examples I've evolved into what you see. Sorry to have cluttered the implementation with stuff that is not really contribute to the actual solution. DOH!

  • Dynamic JDBC: account blocked after the single connection attempt

    Our database is set up so that user accounts are locked after 3 bad connection attempts, but they're getting locked after only 1 attempt. I would like that it so that any attempt to connect ADF would be only created an Oracle connection attempt.
    I use JDeveloper 10.1.3.4.0 and by default, right click and then run.

    Code of the not yet documented Steve Muench ADF application examples at http://blogs.oracle.com/smuenchadf/examples/#14
    which is also described in http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html

    Looking at the audit trail, I see the database tries to connect 5 times than the user.
    Trying to debug, I see that the doFilter in ADFBindingFilter is also called 5 times.

    In my research, I read the proposals that it might be the framework that tries to connect several times. It depends on the connection pooling and application module pooling settings you have.
    But I tried searchign in JDeveloper and don't see not where I set or change anything on reunification.

    Thank you

    Jeff

    Oracle has finally acknowledged it is a defect of jdeveloper and entered
    Bug 9153659: JDBC DYNAMICS IDENTIFICATION ACCOUNT LOCKS AFTER 1 FAILED CONNECTION information
    And I have no idea how oracle reactive is subject of fixed bugs, but since the last version of jdeveloper 10 numbered fixed iin bugs 5 millions, I guess that this will never be corrected.

  • How to apply dynamic credentials of JDBC to servlets?

    Hi forum,

    I'm trying to set up a simple web application to support the dynamics of JDBC credentials.
    I have read the documentation and [Steve Muench sample | http://blogs.oracle.com/smuenchadf/examples/#14] too. My webapp contains a servlet. This servlet performs three tasks:

    1. it creates an instance of the application module and executes a method of business:
    app = Configuration.createRootApplicationModule("model.TestAppModule",  "TestAppModuleLocal", null);
    app.doSomething();
    2. it writes the output.

    3. It frees the application module:
    Configuration.releaseRootApplicationModule(app, true);
    In this case the custom filter (DynamicJDBCBindingFilter) does not occur, and the original configuration (bc4j.xcfg) is used to connect to the database.

    How could I modify the servlet to support the dynamics of JDBC credentials?

    Thanks in advance,

    Tatiana. + (JDeveloper Version: 10.1.3.4) +.

    Hi Tatiana,

    Your code will use the identification information, as defined in the configuration of the TestAppModuleLocal application module.
    As I recall, you can provide dynamic JDBC credentials information using an EnvInfoProvider as a third parameter to the createRootApplicationModule method.
    Sorry, I can't give you an example right now. I will check on my code later

    Ciao
    Aino

  • proxy connection

    Hello world

    JDeveloper version is: 11.1.1.4

    I use dynamic JDBC credentials and
    I used the reference to the solution by * 693636 * in this thread: Authentication Proxy with JDBC Datasource instead of the JDBC URL? to get the proxy connection, the problem that I can't connect proxy of this line:
    oConn =
    * ((PrxyTransactionImpl) this.getDBTransaction ()) .getPrxyConnection (); *, but i get the username that i made it by login.

    Thank you
    Yaser

    Published by: 842127 on April 1st, 2011 22:24

    Published by: 842127 on April 3, 2011 09:23

    AM configuration wizard to switch your AM to data sources.

    In your bc4j.xcfg you will then find something like:

     ..........
    
    
    

    Sascha

  • State management of package PL/SQL in ADF

    Hi all

    I redesign a form of Oracle in the ADF. The shape is a front end for some fairly complex processing that is provided by a database package. The package maintains the different data elements in its State which are used during the session of the interactive user. I would like if possible to reuse functionality in this package for the ADF in the screen version. Clearly, in order to use the package as what I would need to ensure the that maintaining the connection to the database for the user's session just as it would be in forms.

    I have been reading up on top of the connection and the Application Module pool and think it is possible to switch off the two pools and ensure that a user session gets a single database session - set jbo.ampool.doampooling = false and jbo.doconnectionpooling = false (default). I am not mistaken in this or have I missed part of the battery of the session/connection?

    Assuming that it is possible, is it advisable? The maximum number of concurrent users on the application server would be about 200, access to a number of different databases.

    The alternative I suppose would be to redesign the package in the ADF BC layer. While it is perhaps the best architecture if there would be a major effort in the redevelopment of the Java code from scratch.

    I use JDeveloper/ADF 11.1.1.3.

    Thank you very much

    Kevin.

    Yep, it's no doubt that the technique is called 'Dynamic JDBC Credentials'.

    In this for terms is it advisable, for 200 users, assuming that the memory of your package is not huge each user would be nice. Ideally you don't want to rewrite (and a new test) all this code database then go with what you have.

    However, in saying that this is not the best option when you want to scale to a huge amount of users. The best way to make sure is to stress test by using a tool such as JMeter to see if things stand up to.

    CM.

  • 11g: deployment of WebLogic failing (data sources)

    Hello!

    Now, I'm trying to deploy my application ADF BC/Faces RC to an external server in WebLogic.
    I have deploy a WAR file. But the data connection is missing and my application reports that the connection was not found.

    My WAR file inspection, I realized that the connections.xml file is not deployed... for some reason any. Also, the store of credentials is not deployed.
    Very well, I thought. So I don't have to convert the store of credentials on the external server. We will use a data source.

    So I tried to change the configuration of my AM to a data source (java: comp/env/jdbc/MEDORADS).

    In WebLogic, I have created the data source with JNDI name ' comp/env/jdbc/MEDORADS', set up the database (the test succeeded) and he attributed to target AdminServer. Then I transferred my application to AdminServer.

    When I now call the application, I get a: "failed JNDI. "Impossible to search for Source of data in the context of java: comp/env/jdbc/MEDORADS ' and a 'while trying to get comp/env/MEDORADS in app/webapp/cockpit.war/32181625."

    What am I doing wrong or what I I don't have it to do?
    I admit that I am new to sources of data in this context, since our web modules all use dynamic JDBC credentials.

    All I want to do is to deploy my application on a demo server without complaint.

    Please, any help is welcome.

    Sascha

    Hello

    If you have created the data source on weblogic properly the only thing is to change the java: comp/env/jdbc/MEDORADS for jdbc/MEDORADS in yout request module.

  • Application of THEME - MAPVIEWER - 05517 JDBC string is too long for Oracle cards-

    Hello

    If I need a fairly complex query to add the dynamic JDBC theme I get this error:

    [MAPVIEWER-05517] Ask the string is too long for no AJAX of Oracle remote access cards.

    -Why? I use Oracle Maps API JS isn't remote AJAX or not?
    -What is the limit of a definition of the JDBC theme?

    Kind regards
    Brano

    Put this code after creating object mapviewer.

    MVMapView.enableXMLHTTP (true);

  • conversion of forms app ADF and 'user '.

    We are about to task conversion of a form to the adf application.

    There is a lot of code pl/sql backend, triggers to audit using the 'user' built in the function call which is not very useful if the adf application happens to connect as a user to define a user name in the context of security or something of this nature.

    don't we have any other choice than cross and change the function call 'user' to something else?

    only this makes it difficult to support the application using oracle Designer tool and the table api product?

    all information on axioms about this most popular issue.

    By default, your application will use a user to connect to the database by a pool of connections, which is the preferred option for scalability. However if you create a new application on top a big Oracle legacy system database where it is not, you can change the default behavior of the ADF to use what is called the 'dynamic JDBC powers'. In this mode, the name of user and password is used to connect to the database, effectively using the credentials of the user to connect to the database and basically the database user function returns the desired result.

    If for you it is a question of:

    (a) if the ultimate scalability is the priority, convert your existing code above to stop using 'user '.
    (b) if scalability is not a priority, but the support for your legacy database infrastructure is, go with the dynamic option JDBC of credentials.

    CM.

  • Connect to multiple data sources

    Hello

    We have a requirement of our ADF application for the request of several databases and therefore several JDBC data sources.

    Now, I set up the application according to this white paper:

    http://www.Oracle.com/technology/products/jdev/HOWTOs/10G/usingdatasources/using_datasources.html

    But it works for a data source. How can I make my ADF BC connect to different sources of data/databases dynamically in the application?


    Thanks in advance,

    Kevin

    Try this [JDBC Credentials including JSF example dynamic update | http://radio.weblogs.com/0118231/2006/02/16.html#a661]

    Timo

  • Call the procedure before any operation of DB

    Hi all

    I currently have an application configured to use a data source JDBC for all its transactions in database. I was wondering if it is possible to call a db procedure every time a new database connection is created for use.

    My scenario:

    All users are authenticated through an LDAP service and I store the user name and other relevant information on the success.

    The DB is a procedure established to a user name for the database user as long as the parameter passed in view (s). This is necessary for all our inherited audit information on all the relevant tables to be filled.

    So basically I have to call this procedure before any other transaction of db is called.

    I have successfully deployed the dynamic JDBC example in the past, but I was wondering if anyone knew another way with the given scenario.

    Any help is appreciated.

    Thank you!

    Maybe this can help http://blogs.oracle.com/jheadstart/entry/row_level_security_using_vpd_a

  • PrepareSession() fires before activateState()?

    Hello

    JDev/ADF 11.1.1.4

    In a class of the Application Module Impl, I have a few session variables that I store in the getSession () .getUserData () hash table. I wrote the code for passivateState() and activateState() to store/restore these values which seems to work very well.

    I also replaced the prepareSession in order to set values of Oracle context and define some fields in v$ session via dbms_application_info. This example uses the variables stored in the session of user data.

    I AM sharing false game in order to test the passivation/activation such as recommended by the documentation. Each query, I get the activation and passivation as expected, but my problem is that the prepareSession call occurs before the data user variables have been restored by the activation phase.

    This is the order that they are supposed to occur?

    I can call the same code to prepare for the session at the end of the activateState method, but I just thought I would check to see if there is a way to get prepareSession to arrive after the activation of the State. Also, I implement of dynamic JDBC connections in the case that could affect things.

    Thank you very much

    Kevin.

    Kevin,
    If I remember correctly, prepareSession is called first and implements plan of hash containing userdata. Check http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e10653/oracle/jbo/server/ApplicationModuleImpl.html#activateConnectionState%28org.w3c.dom.Element%29. You will find a description of the off cycle, which could help you resolve your problem.

    Timo

Maybe you are looking for

  • In Firefox 9.01 and 10, I find no option to close a window.

    There used to be an option to close this window under file. I don't see this option any more or in another way to close an individual window.

  • I want just a simple way to access favorite, as a drop-down list without having to go through several menus, is it possible?

    I would like a point in the main menu, to fall to my favorites, just as is provided with IE, and previous versions of Firefox. Currently I have to click on Firefox, click Favorites, and the drop down menu will appear. It is an argument. I added to th

  • Combining the CD titles in a piece of music

    I have several classic CD that I need to load into iTunes. Some parts have several movements. How can I join the movements in one singl; e concerto or Symphony?

  • Str function does not

    I use an expression after in a stage of the additional results type to add a comment in my report as below. Str = Step.Result.ReportText ("A", "Mode: 50%", True). When running if I see the resultlist step output variables is 50 characters lined up. B

  • Read buffer

    Hello, I'm new to labview. I'm trying to power supply (BK 1786 A) program connect via RS - 232. I'm just trying to learn about the reading of the voltage and current on the power supply, but it reads the command (GETD\r to obtain the preset voltage a