REDIRECT JDBC URL WHEN USING DYNAMIC JDBC CREDENTIALS SO NOT HARDCODED

I have taken over an application that uses row-level security and ADF (using
dynamic JDBC Credentials). I have been able to set the internal_connection to
a JDBCDatasource, but cannot set the Connection Type in the Oracle Business
Component Configuration to a JDBCDatasource. When I do, I receive errors that
tables are not found. When I set the value back to a JDBC URL, everything
works fine again.
I am looking for a solution where the userid and password are not hardcoded in
the BC4J.xcfg or a way to redirect this information, as we change our system
passwords every nighty days. Otherwise, I will have to redeploy the
application every nighty days.
I did not create this application, but I am sure that you could simply follow
the "How to Support Dynamic JDBC Credentials" article. From that point, you
will probably be where I am, where I have the internal_connection set to a
JDBCDataSource and working properly, but cannot set the Connection Type to
anything where the userid and password will not be hardcoded or cause failure.
I wanted to let you know that I have
found the updated How to Support Dynamic JDBC Credentials
(http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.h
tml) and was going to run through the "Advanced: Supporting Dynamic JDBC URLs",
but once I was done keying in
env.remove(ConnectionStrategy.DB_CONNECT_STRING_PROPERTY); I received a
depreciation message on the DB_CONNECT_STRING_PROPERTY. (Note: I am coding in
JDeveloper 10.1.3, so this may be depreciated as of then, but the ADF Libraries
for JDeveloper 10.1.3 are on our Oracle 10gAS 10.1.2 server.)
I thought maybe this would resolve my issue, but I can't be sure as the
deprecation message leads me to believe that this solution may not be viable in
the future.
UPDATE
=======
The article you are referencing is definitely an older version.
There is a newer article for 10g at:
http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
Please see if that helps.
I have already reviewed this article.
In fact, I have reviewed many versions of this document. I have not seen one
created yet for 10.1.3 though (especially without JSF as our 10.1.2 AS server
will not support it). I need to find an example or documentation that shows
how we can keep from having the JDBC URL stored in the BC4J.xcfg or a way to
use dynamic JDBC credentials with a JDBCDataSource. We do not want to store
the userid and password in the application, rather, we would like to setup
something that can be configurable from the application server.
I think we need to use the dynamic JDBC credentials because we are using the
row-level security, where we setup a database context for the user and only
allow certain records of a database table to be returned to the browser based
on that context.
Might there be a way to still use the JDBCDataSource?

I understand that the user provides the userid and password and that these values are setup using the Configuration class.
However, when I am to deploy the ADF Business Module with my application, I have to specify either a JDBC URL or a JDBC DataSource in the Oracle Business Component Configuration.
When I use JDBC DataSource, the code does not work properly, almost like the user's credentials are not used for the connection (I get errors like table or view does not exist).
When I use the JDBC URL, the bc4j.xcfg stores a reference in the JDBCName attribute to a ConnectionDefinition in the same file. It is in this tag of the bc4j.xcfg where the userid, sid, and password (encrypted) is stored and used when retrieving the initial context of the ADF business components.
It is these values that I want to have stored else where so that the application does not have to be redeployed in order for the password (or sid, or other connection information) to be change.

Similar Messages

  • Prompting for password and username only when using dynamic parameters

    Post Author: Co3023
    CA Forum: Crystal Reports
    How do I stop CR XI prompting for password and username only when using dynamic parameters. When no dynamic parameters are used CR XI isn't prompting for the DB user name and password. The report is run from an application which passes the user name and password. I am using Oracle and the problem is both with the native oracle driver and the ODBC RDO driver.

    Post Author: jehanzeb
    CA Forum: Crystal Reports
    I didnt ask you to change it to static I said I took the parameters totally out of the report. Saved it. Then re-enter the dynamic parameters into the report and it worked for me. That might have worked for you, not sure why you changed it to static.
    Ok I have just created a quick report using dynamic parameters, it didnt ask me for the username password.
    Can you create a sample report - just to test the db? and see if it works? add only 1 or 2 fields in the report, create parameters (dynamic) and see if it works
    why don't you embed the username and password in your application, it won't ask for username password then.

  • How to skip authorisation for infotype when using dynamic selection ?

    Hi folks,
    I have a problem here.
    When im using dynamic selection screen, i cannot skip authorisation for subtypes of an infotype. Eg. if my record for 0185 have records that do not have authorisation for the subtypes. Dynamic selection will filter away this record and will not get me into the Get Peras as id i use to run has authorisation configured. IT will skip out of Get Peras.
    However, if im not using dynamic selection screen, i will use the normal pnpce fields, i will be able to get the record, as i do my authorisation check using function module in the get peras, and i did not declare 0185 in the infotypes.
    May i know if there is any solution to this problem as dynamic selection screen is a standard...
    Thanks,
    lihui

    hi,
    however i cannot skip authorisation for the whole pernr as i need the authorisations for the processing reports.
    Currently the case is like this..
    i have a authorisations for infotype 0185. i have 2 subtypes records such as ZA and ZB. the user does not have authorisation to read ZB but has authorisation to read ZA.
    However, when use dynamic selection, it will skip out the pernr.
    If the pernr 0185 records has only ZA subtype but no ZB subtype, it will not skip this pernr when using dynamic selection.
    Anymore idea how to overcome this?

  • CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there

    CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there a way around this?  Is there a patch to correct it?

    To build CD's???
    What problem does Encore have with DL?
    If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore.

  • Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Have no idea of what you were even doing in Photoshop my crystal ball is out for repairs so I can not see.  

  • When using Foxfire I keep getting "not responding", how can I fix this?

    When using foxfire I keep getting "not responding" How can I correct this?

    If this is happening with one or two specific sites, those site may have been hacked, or they may simply be bad sites.
    If it's happening with a larger number of sites, and with sites that are legit (like Google, Yahoo, Facebook, etc), then it's likely that your wireless router has been hacked. See:
    How to manage a hacked wireless router
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

  • HT5105 I have been trying to create a multicam clip from two camera's. They sync properly when using the sync feature but not when I use the multicam feature does anyone know what I may be doing wrong?

    I have been trying to create a multicam clip from two camera's. They sync properly when using the sync feature but not when I use the multicam feature does anyone know what I may be doing wrong?

    Probably best if you could post screen shots of the Inspecror window in extended view with a couple of the clips you using for the 2 angles.
    If you have audio from both cameras and have identified them separately, the sync is usually pretty reliable.
    Russ

  • Using Firefox (and having ZoneAlarm), when logging into my work email (Lotus Notes) through a secure Citrix program, a quesitonmark types as and accented "E". This does not happen when using IE (which I prefer not to use). I have turned off the anti-key

    Using Firefox (and having ZoneAlarm), when logging into my work email (Lotus Notes) through a secure Citrix program, a question mark types as and accented "E". This does not happen when using IE (which I prefer not to use). I have turned off the anti-keylogger in ZA (an old, and no longer successful fix). Can anyone help? I need my question marks at work.
    Thanks!
    PS. my keyboard language is not set to French.
    == This happened ==
    Every time Firefox opened
    == I tried to type a "?" in a work email using remote access.

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • HT4437 Is it possible to zoom in photos when using airplay? It seems not to work at all. I can only zoom in if i use mirroring and even then i have to reconnect mirroring each time I chage an albumor even go from the photo to the album level.

    Is it possible to zoom in photos when using airplay? It seems not to work at all. I can only zoom in if i use mirroring and even then i have to reconnect mirroring each time I chage an albumor even go from the photo to the album level.

    No.
    I find it extremely frustrating that Apple does not care for such an obvious bug affecting one of the basic funcionalities of AirPlay. Unless, of course, if there's something I don't know - but I've done some research and it seems that plenty of people have same issue and no solution is settled.

  • When using earphones one side is not clear

    When using earphones one side is not clear.

    Make sure you have pressed the plug completely into the headphones jack.  There is a definite "click" when fully seated, and you may need to push harder than expected.

  • When using facetime, my picture is not seen on the receiving end. How do i fix?

    When using FaceTime, my picture is not seen on the receiving end.  Help!

    Part of training the junk filter is also to mark good messages 'As Not Junk'.
    http://kb.mozillazine.org/Junk_Mail_Controls#Training_the_Junk_Mail_Controls

  • Using Dynamic JDBC Credentials with jazn security (web.xml) in BC

    I have followed the document “How To Support Dynamic JDBC Credentials” http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html to connect to the database using Business Components, as the user who logs in the application. (Proxy)
    The only matter is that as I could see, I cannot use the application server integrated security (with roles) to protect the web resources.
    The main objective is to protect the web resources using Declarative J2EE authentication and authorization using the Data Base users (and roles). I have implemented the solution for the first part (authentication) using DBLoginModule (DBSystemLoginModule) from Frank Nimphius and Duncan Mills, it’s working OK, but I need the second part; how to use the user that is logged in as the PROXY user of the BC connection.
    Using the DBLoginModule, and the “How To Support Dynamic JDBC Credentials” separates works fine, but I can’t make them work together.

    Frank, Thanks a lot for your quick answer.
    "Maybe you should look at using database proxy users with ADF BC so you can use the J2EE authenticated user principal as the database schema to connect through. I am working on documenting this approach, which however needs some more time of writing and testing."
    Yes, that's exactly what I need!!!
    Can you give me some tips about how to do that.. Do you have any idea of when you will finish that document?.
    By the way, I'm using FORM authentication, but I don't know how to modify what’s in the “How To Support Dynamic JDBC Credentials” document, to use the J2EE authenticated user principal as the database schema to connect through.
    One of the problems is that when using this approach, I cannot get the J2EE security to redirect to the login page...
    Any help would be really appreciated

  • How to keep files from disappearing when using Dynamic link to AE from PremProCS4?

    I am at my wits end here and hope someone can offer a solution.  I use Dynamic Link in PremProCS4 to link a clip in my timeline to AfterEffects.  I follow the instructions in my book and everytime I close my files and reopen..I loose the clip along with the effects...I get the place card instead.  Here are the steps I do as per the Adobe Classroom in a Book Explains:
    I double click on my .MTS file in the Project Board so it comes up on my Source Screen.
    I take select the part of the clip I wish to use in my timeline and drag it to the appropriate spot on a video layer.
    I then right click the "clip" and select "Replace With After Effects Comp"
    I then name the new file.  name or whatever.aep
    It opens in AE
    I then apply two simple effects... keying and a cartooning effect I use from NewBlue Cartooner.
    As instructed I then go directly back to PremPro and do a "render" by pressing the Enter Key.  This does not work since I only get a yellow bar above the clip instead of a red on???
    So then I save the PremPro project and close it then go to the AE project, save and close it.
    When I reopen PremPro the file has a place card in it and in AE it says I am missing a file.
    I have tried many different ways to do this process including re-importing the .MTS file.
    I can close PremPro and reopen it and all is the same as long as I don't close the AfterEffects project.  Once AE is closed it looses the file.  On a note here I keep all my computer source files in the same place and it never changes plus they are in my PPro Project as well.  I never change the names so this isn't this reason.
    Is there a tried and true method to select a piece of clip in the video layer in Prem Pro and add effects from AE and not have it misplace the files?
    Thanks  Kate

    Hi Mylenium, and thank you for taking the time to respond.
    Your idea of renaming comps got me to thinking..hmm.
    So I went back with a fresh mind this morning and tried something else..and it worked...so far anyway.
    So far I figured it out... 
    Since the normal process to do this doesn't work for me ..and apparently many others..here is the solution for those of you having similar issues.
    In PremPro select the desired clip you wish to place effects on
    Rename it and save
    R click and "Replace with AE composition"
    Name new file
    You will see three files pop up in AE in the project panel.
    The original source clip .. in my case.. shows an icon that lets me know it isn't the true file.
    Highlight this file with a click and then go Ctrl H (for PCs)
    The group of computer source clips you use for your project will come up.. double click on the original clip you had imported into your PPro project.
    The source file icon in AE will change to an icon that denotes the true file...save
    Go to your still open Ppro project and make sure it carried the effects over..save.
    Now you can save and close the AE project.
    So for this works for me today and I hope this helps anyone else dealing with a similar issue.
    Thanks.

  • How to keep files from disappearing when using Dynamic link to AE in PremProCS4?

    I am at my wits end here and hope someone can offer a solution.  I use Dynamic Link in PremProCS4 to link a clip in my timeline to AfterEffects.  I follow the instructions in my book and everytime I close my files and reopen..I loose the clip along with the effects...I get the place card instead.  Here are the steps I do as per the Adobe Classroom in a Book Explains:
    I double click on my .MTS file in the Project Board so it comes up on my Source Screen.
    I take select the part of the clip I wish to use in my timeline and drag it to the appropriate spot on a video layer.
    I then right click the "clip" and select "Replace With After Effects Comp"
    I then name the new file.  name or whatever.aep
    It opens in AE
    I then apply two simple effects... keying and a cartooning effect I use from NewBlue Cartooner.
    As instructed I then go directly back to PremPro and do a "render" by pressing the Enter Key.  This does not work since I only get a yellow bar above the clip instead of a red on???
    So then I save the PremPro project and close it then go to the AE project, save and close it.
    When I reopen PremPro the file has a place card in it and in AE it says I am missing a file.
    I have tried many different ways to do this process including re-importing the .MTS file.
    I can close PremPro and reopen it and all is the same as long as I don't close the AfterEffects project.  Once AE is closed it looses the file.  On a note here I keep all my computer source files in the same place and it never changes plus they are in my PPro Project as well.  I never change the names so this isn't this reason.
    Is there a tried and true method to select a piece of clip in the video layer in Prem Pro and add effects from AE and not have it misplace the files?
    Thanks  Kate

    Hi Curt, and thank you for taking the time to respond.
    Its odd how I've been trying to figure this one out for a long time and I tried your suggestion but it didn't make any difference..darn.
    In the AE forum they say this is quite common and no one really knows why...double darn.
    So I went back with a fresh mind this morning and tried something else..and it worked...so far anyway.
    So far I figured it out... I guess I just needed to ask the question and write it all out to help get my brain working in the right direction: 
    Since the normal process to do this doesn't work for me ..and apparently many others..here is the solution for those of you having similar issues.
    In PremPro select the desired clip you wish to place effects on
    Rename it and save
    R click and "Replace with AE composition"
    Name new file
    You will see three files pop up in AE in the project panel.
    The original source clip .. in my case.. shows an icon that lets me know it isn't the true file.
    Highlight this file with a click and then go Ctrl H (for PCs)
    The group of computer source clips you use for your project will come up.. double click on the original clip you had imported into your PPro project.
    The source file icon in AE will change to an icon that denotes the true file...save
    Go to your still open Ppro project and make sure it carried the effects over..save.
    Now you can save and close the AE project.
    So for this works for me today and I hope this helps anyone else dealing with a similar issue.
    Thanks.

  • Building arguments of URL when using HTTP Adapter

    I am using the HTTP adapter in one of my interfaces and need to call an url that has arguments. For e.g.
    http://dpw6716.roseville.mycompany.com:8058/accelis/servlet/publish?type=create&ItemId=1018&Name=Harshad&Desc=FromXI
    In the above URL the <b>ItemID</b> and the <b>Description</b> are dynamic. Is it possible to build such dynamic urls and used in the http adapter configuration? if so how? Can context objects be used here for the dynamic part?
    Thanks,
    Harshad

    Hi Harshad,
    it is possible to build up dynamic URLs, but the way is quite complex. You have to configure a XI-mandant as "Application System" to use it as allocator. Your message will be received there in an inbound-proxy (ABAP), where you have to implement a dynamic WAS-Request (class CL_HTTP_CLIENT).
    Regards Udo

Maybe you are looking for

  • InDesign always goes back to Default settings

    I cannot seem to get my settings to stay. If I have to force quit for any reason, the default settings always come back its is so frustrating. I also always have to open the tabs bar even though I check the tabs in the menu, every time I reopen the d

  • Sales Order Error No customer master record exists for sold-to party

    Hi, I am trying to create a sales order in IDES. Unfortunately it is showing me error: No Customer master exists for sold to party. Now I have already checked my assignments, combined sales area in vor1 and vor2. Checked PDP ( In PDP I have creates p

  • New form of Hacking done to me.

    Im having an AI apparently use my account for msging. the I am in Jadiction stuff and everything below that is the "AI".

  • Installing Netweaver or ERP 2005 ? confused....

    Hi all, i have spent a few days trying to understand the landscape of this whole installation sequence. I have installed SQL server 2005 on my Windows 2003. After that i'm completely lost on what i should do next. There seems to be information overlo

  • BPS layout - Error SOFFICEINTEGRATION143

    Hi friends... I'm trying to open a BPS layout and it gives me the SOFFICEINTEGRATION143 error.. The message is "Error while openning document"... I have microsoft office professional 2003 and 640 Final Release Patch 29 Version 6405.5.29.1035 Does any