BC4J: database connection data - how to change it

We have created a project with too may BC4J objects. The connection information is stored in diferent configuration files (*.jpx, *.xml, *.xcfg).
That information sure will have to change during the development process and in the deployment phase. I would like to know if there is any other way to store that information in a more compact mode or how to change it dinamycally.
Thanks

Javier,
We have the same problem. The future is likely to have
20+ packages with separate projects and module.xcfg files.
Presently we're deploying 4 modules with 6 AMs.
This is what we did:
- All desktops are configured exactly alike!!! No exceptions.
We use the same name for the development DB connection (Jdev conn)
and have a std naming convention for OSCM work areas and
Jdev project.jpr and .jps's etc.
- We use datasource DB connection description. Search this
forum for data-source.xml or datasource and look for my
posts (Curt Smith). I posted a definative explanation of the
ins and outs.
- This allows everyone to checkout from the src control the .jpr, .xcfg etc
and the db connection name is the same and itall_works_.
In development anyway. ;(
- Another rule, NO changing the AM params via AM-right click-Configuration.
This keeps the AM parameterization out of the module.xcfg. This is
a very important rule for your production env.
The production environment does:
- AM params are configured on the cmd line for ALL AM's.
-Djbo.this.that=somevalue.
If you're interested in my tuning and Solaris startup script
email me: [email protected]
- The J2EE appserver's[i]Long postings are being truncated to ~1 kB at this time.

Similar Messages

  • How can I reuse the BC4J database connection?

    How can I reuse the BC4J database connection?
    I want to use the application module connection without opening another in a custom code. At this level I can’t access de ADF code, that’s why I can’t get the DBConnection from the application module.
    Now, I have a “data-sources.xml” in my project and the application module is configured to access the database from this xml file.

    I found the solution in other Forum. I worked ok.
    Here the code:
    If the Connections-Navigator connection is DBConnection1, the corresponding datasource is jdbc/DBConnection1DS.
    1. Create a JSP page.
    2. In the web.xml of the JSP add
    <resource-ref>
    <res-ref-name>jdbc/DBConnection1DS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    3. In the JSP page obtain a connection with the datasource.
    InitialContext initialContext = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)initialContext.lookup("java:comp/env/jdbc/DBConnection1DS");
    java.sql.Connection conn = ds.getConnection();

  • How to create database connection and how to call it using Java

    Hi,
    Good day! I'd like to know how I can create a db connection in JDev, then use this connection to retrieve data using a Java Class? I've seen using New Gallery > Database Connection. But I'm not sure how I can access this connection using Java and display some output from the retrieved records.
    Any steps/tutorial link is appreciated.
    Thanks in advance,
    Rian

    Hi,
    If you need to access the connection in the entity object then refer http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvgen.htm#BABEIFAI i.e in MODEL.
    But if you want to access connection in ViewController part of application then you need to do it manually.For this i am giving you my code for reference.------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.faces.context.FacesContext;
    import oracle.jdbc.pool.OracleDataSource;
    public class DataHandler {
    String jdbcUrl = null;
    String userid = null;
    String password = null;
    Connection conn;
    public static final String CONNECTION_STRING =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("connectionString");
    public static final String USER_NAME =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("userName");
    public static final String PASSWORD =
    FacesContext.getCurrentInstance().getExternalContext().getInitParameter("password");
    public DataHandler(String jdbcUrl, String userid, String password,
    boolean shouldConnect) throws SQLException {
    this.jdbcUrl = jdbcUrl;
    this.userid = userid;
    this.password = password;
    if (shouldConnect) {
    connect();
    public void connect() throws SQLException {
    OracleDataSource ds;
    ds = new OracleDataSource();
    ds.setURL(jdbcUrl);
    conn = ds.getConnection(userid, password);
    public Connection getConnection() {
    return conn;
    public ResultSet executeQuery(String sql) throws SQLException {
    Statement s = conn.createStatement();
    return s.executeQuery(sql);
    public void closeConnection() throws SQLException {
    if (!conn.isClosed()) {
    conn.close();
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  • New employee with wrong hiring date - how to change?

    Hi,
    I've entered a new employee with a wrong hiring date and I don't know how to change it. Some employee date are easily changeable not the hiring date!?

    Hi Marko.
    Go to t-code PA30, enter the personnel number of the employee whom you have hired.
    At the top in the menu bar, select "UTILITIES" - "Change entry/leaving date".
    It will take you to the screen - "Change Actions" - Change " Start date".
    This will correct the hiring date of the employee.
    Reward points, if helpful.
    Regards,
    Reema

  • Different database connection or proxy user change

    Hi forms guys,
    in everyday life I am fulltime DBA, so please forgive my spare forms word pool.
    Our users open a forms application that displays a menu with forms applications the user has access to. Users can then click on the menu items and another form pops up. Now having reviewed the code, I can say that the opening of the new forms is done by calling the builtin OPEN_FORM. As parameter "SESSION_MODE" for this function, "SESSION" is supplied. If I understand correctly, this means that another session using THE SAME username/password/connectionstring is created (for the purpose of parallel transactions in parent and child form).
    At the moment each and every user (~400) has it's own database account which has roles (depending on the applications they are granted access to) assigned and also sometimes owns dblinks and synonyms. We want to get rid of them by storing the credentials in OID and just create ONE single application user for every application we host. This user shall contain all nescessary objects such as dblinks and private synonyms.
    The enduser then logs in using the proxy mechanism. For example if user XYZ (defined in OID) wants to start application ABC, then he/she connects like XYZ[ABC_APPUSER]/XYZPASSWD. This must occur when the form opens, directly after the OPEN_FORM call.
    Now my question: Is this possible somehow? Is there a way to have different database connections within a single forms window, if there are different forms? Or is it possible to make a switch to another proxy user within forms? e.g. JDBC has the ability to quickly switch to an other proxy user, without having to re-establish the whole session.
    All I have read so far tells me, that it is not possible. But I would really like to hear that acknowledged by experts. Also other, perhaps better ideas for our intention are welcome.
    Kindest regards
    Matschbirne

    Not really sure how to answer your question other than to say that from within your form's pl/sql you can connect and disconnect as often as you like programatically. However, you can only have one connection at a time (as far as I know). So if you connect as SCOTT and later want to do a login as FRED, you can do so, but SCOTT will no longer be connected.
    Forms does support using Oracle SSO, but for the most part cannot directly access OID. Also, the db login information needed by Forms (when using SSO) is stored in a RAD (Remote Access Descriptor) in OID. The RAD behavior is unique to Forms and Reports. For each SSO user there is a related RAD. At the moment, there is no provided way to have RAD groups (e.g. Admin, Sales, Guests, etc). So each user get their own RAD.
    If you are using Forms 11.1.x, Forms now supports db proxy users.
    More information about SSO and Proxy users with Forms can be found in the Forms Deployment Guide:
    http://docs.oracle.com/cd/E24269_01/doc.11120/e24477/sso.htm
    In the code, you can control the connection using the LOGON, LOGOUT, and LOGON_SCREEN built-ins. Refer to the Forms Builder online help for details on how to use these.

  • Asset acquisition date (How to change?)

    Hi all,
    As per http://www.jt77.com/financials/finan-15236.html
    Asset capitalization date = 1day of depreciation calculation
    Asset acquisition date = day of first cost allocation to the asset
    Asset value date = date of effect in asset account of a posting
    From the above dates, I would like to have a try to give my understanding on them.
    Let say I have acquire an asset through a PO -> GR -> IR on 15 Oct 2007.
    If I set the Cap Date as on 01 Nov 2007, and Asset Value date as on 01 Dec 2007, does this mean that ...
    <u><i>Question 1:</i></u>
    <b>My Asset depreciation will starts on Dec, with 2 months depreciation, which is Nov and Dec (because my Asset Cap Date is on 01 Nov 2007)?</b>
    <u><i>Question 2:</i></u>
    What if I want to <b>change the Asset acquisition date</b> to, say 01 Nov 2007?
    I tried AB08 to reverse the asset, and change the GR posting date (through MIGO), and these date affect asset value date only.
    I tried also to reverse the IR (using MR8M) and re-post the IR using Miro, with different Invoice and Posting date, these date only affect the FI documents.
    I tried AS02, and I can only change Cap date, and NOT the acquisition date.
    Please help on this, and clarify the usage / importance of the acquisition date.
    As per AS03 (wrong first acquisition date)
    Andreas Mann said that crucial is the "asset value date" (field BZDAT)it should be 31.05.2007, than first acquisition date is not important

    Capitalization Date= Date on which the asset will be capitalized
    Acqusition Date= Date on which first transaction is done on the asset after creation.  It cannot be changed once a value is posted to the asset
    Asset Value Date is important to determine the Depreciation
    Asset value Date determines the postings to the asset.  You can set the configuration for default asset value date. It is the date with which user wants to post to the asset, i.e it can be Document Date, Posting Date, Capitalization Date, Goods Receipt date. Check the list in
    <b>Asset Accounting> Transactions> Specify How Default Asset Value Date is Determined</b>
    Ordinary Depreciation Start Date Date on which the system starts calculates and posts depreciation
    Ordinary Depreciation Start Date can be determined by the system through Priod controls defined or entered manually by the user.  If entered manually it surpass the system calculated date.

  • SCCM database Modified date doesn't change / rebuild indexes

    Hi all,
    I have 2 questions
    1)
    We have a month ago upgraded our SCCM environment from SCCM 2012 RTM -> SCCM 2012 SP1 (no CU), and we have upgraded SQL 2008 R2 (CU6) to SQL 2008 R2 SP2.
    We have a SCCM 2012 primary site and an SCCM 2012 CAS site from both these sites its database file has not changed its modified date since the data of upgrade (SQL is installed on the same server so the database is local). However the WSUS database and the
    reporting DB that exist on the same server updates its modified date.
     SCCM is running and all status messages are OK. All component status's are updating and have correct dates based on when e.g. the last backup ran (that is at 6 pm every night) with no errors. To make a long story short, everything works
    as it should. Deployments and advertisements and OSD arrive, collections get updated, no errors appear in the log files or in the component or site status, but the database on these servers (CAS and Primary) does not modify its date. SCCM backup of these servers
    is running and the database file in that backup also contains the same modified date.
    Anyone knows why this happens , or do we have an issue ?
     2)
    Maintenance task rebuild indexes
    Is there a best practice according to the maintenance task rebuild indexes?
    In our environment we have not enabled this maintenance task, both sites run for over one year.
    Can we enable this task without disturbing or is it a better idea to enable this task in the weekend when there is less workload , and afterwards schedule this task once a week
    regards and thx in advance
    Johan

    As stated “The time stamp will also change if the database files size are expanded as well when the database grow”
    does that mean that after our upgrade a month ago the database has not grown with new data??
    It depends. Data might have been added to the database (which it was fur sure with ConfigMgr), but the timestamp will only change if the file size was increased too. That has something to do with the initial and max file size settings in SQL and the autogrowth
    settings.
    Torsten Meringer | http://www.mssccmfaq.de

  • DATA : How to change data in infocube.

    Dear Expert,
    I have a problem.  I have key figure in a info cube which is already filled with some data. I have requirement of changing the key figure value with some other value.
    Pls help.
    Regards,
    Chetana Kotian

    Hello
    It is not possible to change the data in the cube.
    If you need to change then make the request status to RED, Delete the request from the cube, Before that confirm whether the request in PSA is not deleted.
    Edit the data in PSA and the the data again from PSA.
    Regards
    M.A

  • MASTER DATA: HOW TO CHANGE SHIP TO INTO SOLD TO

    Hi Gurus,
    can you please help?
    i need to change a ship to party into a sold to party. can you tell me how to do it?
    thanks
    C.

    Hi,
    If u want to change a SP to SH then use XD07.. to change the a/.c grp..

  • Health App. weight data how to change lbs to kg

    Hi, I need your help, I want to daily add my weight to the health app but it is showing by default lbs but I want it to be in kilos, how can I do that?
    thanks
    Alex

    I FOUND THE WAY!
    If you change the region to somewhere that is not the US (settings ==> general ==> language & region) then it should adjust to the type of weight and hight and everything else unit that your country uses!
    hope it worked!

  • How TO use configurable Database connection with ADF BC

    I have developed a simple JSF/ ADF BC web application that connects to a database and read/display data from the db tables. I have successfully deployed the application to Tomcat 5.5.17. However, now i need to change the database the application is connecting to. My question is How can I change the Database connection without having to change the application modules or rebuild the war file ??? In other words, is there a specific file (xml) where the database connection can be changed?

    If you set up the application with a data source (I am not sure if this is possible using another app server, I use OC4J), then you would just change it there. However if you created a database connection in the JDEV and pointed your data model to that, then you will have to change and rebuild.
    You might be able to edit the xml file that contains the setttings, I am not sure my CM guys dont allow this, all of our changes have to go through our code repository.

  • How to change the connection for a recurring report

    I have a group of reports running in production on recurring schedules.  I need to update the database connection for these as we are changing our server environment.
    I open the report in Crystal Reports 11 and changed the database connection saved the report back to the Enterprise Server location (I also have a backup of the original).  When I preview the report using the Central Management Console, the report uses the updated database connection info.  When I test the recurring report I get a logon failure.  When I go to the instance to look at the database logon for the recurring instance it shows the old database connection.
    How can this database connection get updated for the current group of instances for these recurring reports?
    Thanks
    BOBJCMC

    Hi Stratos,
    I tried to use .NET SDK to update the Logon_Info properties as below. But it does not seem to be working. Is this the correct way to update logon info for recurring instances?
    infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_USER"].Value  = <userid>
    infoObject.ProcessingInfo.Properties["SI_LOGON_INFO"].Properties["SI_LOGON1"].Properties["SI_PASSWORD"].Value  = "pwd"
    Thanks
    Ajith

  • Using XFA javascript to refer to Data Connection data

    Is it possible to use XFA Javascript to refer to Data Connection data, without referring first to a field which is bound to a Data Connection.
    The aim of this is to track changes of certain fields by comparing a fields "newText" to the Data Connection's field.
    Also, is it possible to have Acrobat save data back to the data connection (ie. change the data connection data to reflect changes in the current form)

    Additionally, does anyone know of any documentation (preferably free) detailing the use of XFA Javascript in LiveCycle.

  • How to change a connection with the database in Runtime?

    How to change a connection with the database in Runtime?
    My connection was made using ADF Business component (ApplicationModule).
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    When deploying ADF applications with database connection, you should be using JDBC data sources configured in the weblogic server.
    You could change the JDBC data sources to a different DB instance or location - by changing the JDBC data source and restarting the weblogic server.
    For more details, check
    http://techiecook.wordpress.com/2010/12/02/oracle-weblogic-adf-datasources/
    Thanks,
    Navaneeth

  • How to reuse a 9iAS Portal database connection in a BC4J application?

    Hi,
    I have a 9iAS Portal 9.0.2 application, and I want to call a BC4J/UIX application from the Portal application. Ideally I would like to reuse the database connection already established within Portal, because it has authenticated the user with the SSO, and has all of the Portal and VPD settings already in the environment. I don't want to ask the users to re-log in.
    I have looked at the Portal Java PDK and cannot find anything appropriate - has anyone accomplished this, or is there another way of doing this?
    Thanks,
    Steve

    BC4J supports JAAS authentication.. look at the jazn stuff. When u deploy your application on 9ias one of the pages in the wizard asks what kind of authenticatoin you would like to use, you might be able to set something up there...
    Also you an secure the URL in the httpd.conf file so that if a user directly attemps to access that application they are presented with the SSO log in screen.

Maybe you are looking for

  • Sharepoint Custom calendar – Hover over the date to add a new item is not working – Sharepoint 2010

    Hi, In my Sharepoint visual web part i am using default sharepoint calendar view. But Mouse hover over the date to add a new item is not working. Please see this image below i need the same add new item functionality.  

  • Oracle DataBase server component is in INVALID in 10.2.0.4

    Hi I took full RMAN backup from production two node RAC system. Production system is in Oracle 10.2.0.3. I tried to restore the backup in another system which is single node system Oracle 10.2.0.4. I restored and recovered database successfully. When

  • Locating DB table: Contract Repository filepath

    Hi Experts, We are on Sourcing 9.0.15  with Oracle database. For contract generation, we have enabled new DOCX(java based) service. My query is: What would be the logical filepath of contract repository under this new service where the contract docum

  • Uninstalling sitestudio problem

    Hi I followed the instructions how to uninstall SS and it went fine but then I went to remove the 4 metadata from SS in my config manager and it removed but when I do "update database design" i get the error: Unable to execute service UPDATE_META_TAB

  • Acrobat Pro 8.2.4  cannot be launched

    Hi, This is not a double post. I posted into the wrong section and was adviced to ask here System: XP Pro, SP3; Adobe CS3 Suite ; Acrobat pro 8.2.4 (as a part of a Suite) After that latest auto-updated to 8.2.4 the Acrobat was screwd up All other com