How to make an webapplication database independent.

Dear All SDN's,
I have developed an EJB appliction to call into portal.
Calling into portal is the other part of this.
But here what i want to be clear is, i have designed an webapplication which is database independent.
i.e., like, to connect to any database in SAP J2ee Engine we need to configure the JDBC Connector of Visual administrator.
I had configure the same in the visual administrator by adding an alias to the existing (System) datasource.
when i try to access the datasource from the jsp using the following line,
<b><sql:query dataSource="jdbc/ONLINE_SR_POOL" var="srtype">SELECT * FROM TMP_SR_TYPE</sql:query></b>
it returns errors. Please advise what it goes wrong. All my web pages run ok from Oracle Application Service or Sun Application Server
What do you suggest me to establish a database connection so that the JSP can query the data from the data tables? Should I use JavaBean instead of using<sql:query dataSource="jdbc/ONLINE_SR_POOL" var="srtype"> inside the jsp page?
Tell me where i am going wrong.
Your inputs will be appreciated,
Regards,
Sireesha.B

Hi,
Plz specify the errors, what r u getting and in which perspective......
Thanks
DKS

Similar Messages

  • How to make the audio track independent from the video track?

    Can someone remind me how to make the audio track independent from the video track? My memory just went blank. Must be the age.
    Thanks

    Hi -
    Select the clip in the timeline.
    Type Command + L or go to the menu Modify > Link to toggle it off.
    MtD

  • How to make structure of database Proprietary

    Hello
    I am really interested in how to obscure the structure of database and make it proprietary.
    thanks

    Hello,
    most LR users only use one catalog, which fine in most cases.
    Some professional photographers use one catalog per client (with one image folder per client).
    I know, this is no answer to your question, but perhapst you rethink your decision to have muliple catalogs. (Or explain, why you need them).

  • How to make counter in database

    can i make a Coulomb in database  as a counter?
    if yes please tell me how?
    if no write a way from you and write a way in query of database
    thank you

    Can you explain further please?
    When you say "counter", do you want this column to automatically increment when new data is inserted? If so, create an identity column in your table. To do this open the table in design mode, add a new column, as Manish suggests, avoid using keywords
    as a name, use type int or bigger. Then scroll down the Column properties table and locate the "Identity Specification" section click on it to expand the tree and set Is Identity to Yes.
    If you are trying to do something different please provide more detail. Saga.
    Insanity is the prelude to discovery

  • How to make a SQL database connection with a java code in netbeans?

    can somebody helpthrough an example

    raghu0007 wrote:
    can somebody helpthrough an exampleNetbeans is just an IDE.
    Anyway the JDBC tutorial may be found here http://java.sun.com/docs/books/tutorial/jdbc/index.html
    If you have a specific question please ask it.

  • How to make common database connection using bean, etc.

    anyone know how to make a coomon database connection because on my web pages each of them need to connect on the database for their specific objectives... please help
    regards
    blingbling
    Edited by: BlingBling15 on Oct 22, 2007 1:16 PM

    Making a 'common' connection and passing it around is a bad idea. And making a new connection on every page, as you seem to have already guessed, also involves an overhead that you can do without.
    Like drvijayj2k2 has mentioned, you should use connection pooling.
    Take a look at the Apache Commons DBCP [1] and it's examples [2].
    [1] http://commons.apache.org/dbcp/
    [2] http://wiki.apache.org/jakarta-commons/DBCP
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How to duplicate by rman database?

    dear sir, i read one article and follow step and 2nd auxiliary database i delete all dbf, ctl, log(redo) files ...then tryying to create dubplicate giving me error
    can some one send steps of it
    rgds
    shahzad

    Database Duplication with RMAN
    Use the RMAN DUPLICATE command to create a copy of the target database that you can use for testing. The command restores backups and copies of the primary database's files and creates a new database.
    As part of the duplicating operation, RMAN manages the following:
    Restores the target datafiles into the duplicate database and performs incomplete recovery using all available archived log and incremental backups.
    Opens the duplicate database with the RESETLOGS option after incomplete recovery to create the online redo logs.
    Generates a new, unique database identifier for the duplicate database.
    Note also the following features of RMAN duplication. You can:
    Skip read-only tablespaces with the SKIP READONLY clause (read-only tablespaces are included by default). You can also exclude any tablespace with the SKIP TABLESPACE clause so long as it is not the SYSTEM tablespace and does not contain rollback or undo data. If you omit tablespaces, then you can add them later.
    Create your duplicate database in a new host. If the same directory structure is available, then you can use the NOFILENAMECHECK option and reuse the target datafile filenames for the duplicate datafiles.
    Create your duplicate database by using the SET UNTIL command or UNTIL clause of the DUPLICATE command to recover it to a noncurrent time. By default, the DUPLICATE command creates the database using the most recent backups of the target database and then performs recovery to the most recent consistent point contained in the incremental and archived redo log backups.
    Use the duplicate database without a recovery catalog.
    Register the duplicate database in the same recovery catalog as the target database. This option is possible because the duplicate database receives a new database identifier during duplication. If you copy the target database using operating system utilities, then the database identifier of the copied database remains the same so you cannot register it in the same recovery catalog.
    Figure 6-3 illustrates a case of database duplication. In this example, RMAN creates two duplicate database by using one set of datafile backups: one database on the local host and one database a remote host.
    Figure 6-3 Creating a Duplicate Database from Backups
    Text description of the illustration sbr81078.gif
    The method you use to duplicate your database depends on whether you are creating your duplicate database on the same or a different host and whether the duplicate directory structure is the same as your target database directory structure. For example, in some cases you can keep the same directory structure and filenames in your duplicate database, while other times you must rename the files.
    See Also:
    Chapter 12, "Duplicating a Database with Recovery Manager" to learn how to make a duplicate database, and Oracle9i Recovery Manager Reference for DUPLICATE command syntax.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc2.htm#462471
    Joel Pérez
    http://www.oracle.com/technology/experts

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How to make database instances available in the SAP MMC

    Hello,
    I have been trying to figure out on how to make a database instance, which I installed on the MSSQL Server, available in the SAP Management Console in order to start the instance. I am able to view the instance over the Enterprise Manager of the MSSQL Sever, but I cannot start it from there (this is only possible from the SAP MMC). I have the SAP MMC installed on my computer, but just cannot figure out on how to control the instance from there because I cannot see it.
    I hope someone can help me on this matter!
    Thanks....
    Katharina

    Hello Katharina,
    Run SAP MMC and right-click to SAP R/3 Systems.
    Choose properties and go to Fixed tab.
    In 'System' field enter Your SID (e.g. EBP)
    In 'Instance' field enter hostname<space>instance number (e.g. epb01 10) Remember, there is space between ebp01 and 10.
    Click on 'Add' button and then OK.
    Best Regards,
    Marcin Gajewski

  • How to make screen resolution independent in BDC

    How to make screen resolution independent in BDC

    hi
    good
    You need to use the CTU_PARAM structure alon with the call transaction statment.
    **Sturcture of CTU_PARAM
    **DISMODE : Display mode (like the MODE addition 'A' , 'E', 'N')
    **UPDMODE: Update mode (like the UPDATE addition 'S', 'A')
    **DEFSIZE : Use default window size (Here we are handling those transaction by giving default window size)
    **RACOMMIT: Do not end transaction at COMMIT WORK
    **NOBINPT : No batch input mode (that is, SY-BINPT = SPACE)
    **NOBIEND : No batch input mode after the end of BDC data.
    *The components DEFSIZE , RACOMMIT, NOBINPT, and NOBIEND always take the following values:
    'X' Yes
    DATA : L_OPTION TYPE CTU_PARAMS, "Parameter string for runtime of CALL TRANSACTION
    L_SUBRC TYPE SYSUBRC.
    L_OPTION-DEFSIZE = 'X'.
    L_OPTION-DISMODE = P_MODE.
    L_OPTION-UPDMODE = 'S'.
    CALL TRANSACTION 'FK01' "FK01-Vendor master creation
    USING IT_BDCDATA
    MESSAGES INTO IT_MESSTAB
    OPTIONS FROM L_OPTION.
    thanks
    mrutyun^

  • How to make a physical standby database in the read_only state in 11g?

    In 10g, we can make a physical standby database in the read_only state. But in 11g, no a read_only state for a physical standby database. How to make a physical standby database in the read_only state in 11g?

    Hi
    read-only mode (for 11g physical standby)
    A mode in which a database can be opened that allows queries, but disallows modifications.
    A physical standby database can be opened read-only so that queries may be performed. If a license for the Oracle Active Data Guard option has been purchased, a physical satndby database can be open while redo apply is active. This capability is known as Real-time Query.
    For more details have a look at:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#SBYDB00706
    Hipe this Helps
    Regards

  • How to make Navigation and Topic panes scroll independently?

    Can anyone suggest how to make the default Multiscreen HTML layout navigation and topic panes to scroll independently, to accomidate a long index or TOC? Currently, scrolling toward the end of the index, for example, causes the topic pane to scroll also. Selecting an index entry scrolls the topic to the location of the appropriate content, but also scroll the index, taking the selected entry out of view. I would like independent scrolling of nav pane and topic panes.
    I'm using RoboHelp HTML 10, FrameMaker 11, TCS4.
    Thanks you.

    Your post has been moved to the Multiscreen forum. That does not change the link.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to make new database connection using Oracle BI Interactive Dashboards

    Hi,
    I install Oracle BI Intelligence on my system.
    I am using Oracle BI Interactive Dashboard. Here we have default database connection.
    but now i want to use it for my own database. Can any body give me guideline how to
    make a new data base connection using this s/w or how to connect to my database so
    that i can make my own reports.
    I am using
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    this link.
    i make odbc connection which is fine.
    but
    Restoring the Business Intelligence Presentation Catalog and Updating Metadata
    The third point blow above heading is not clear.
    Thanks

    Umesh - in order to build Answers and Dashboard content you must first setup a Physical model, then a Business model, followed by a Presentation Catalog/Subject Area.
    All these tasks are carried out using the Repository Administration Utility.
    1) Import your physical tables using OCI/ODBC into the physical layer.
    2) Build your model
    3) Deploy
    Then you're ready to start building answers/dashboards.
    Good Luck.

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • How can I make a recurring database

    I am having a problem ? Oh having a to make a recurring database for work. I have to have a name and medication of what they take and have a database for the information that I can give to administration.

    Someone might be able to help, but they'd need enough information to understand what your question is. So far you've not provided that.
    Regards,
    Barry

Maybe you are looking for

  • MacBook in target disk mode shows incorrect disk size

    My 80 GB hard drive in MacBook has gone bad (the filesystem is in inconsistent state). I connected it to an iMac in Target Disk Mode. It shows up (unmounted) but the capacity reported by Disk Utility is 20 GB. Does someone know why is that? Is it due

  • Do I need to replace my modem/router to improve Airport Extreme performance?

    Hi all. Until recently my home network consisted of an ISP-supplier Thomson TG585 wireless router supporting both a MacBook Pro & iMac. The config. worked to a point. Both machines could get to the web fine, but frustratingly would rarely "see" each

  • I am unable to create VM in my ESXI5.5 Server in VMWARE9.0

    Hi All    I am unable to create VM in my ESXI SERVER5.5, Present i am using INTEL XEON HP XW8600 WORKSTATION, i am Enable VIRTUALIZATION TECHNOLOGY in BIOS, Then i am install VMWARE 9.0 in this Machine and i am created one ESXI5.5 in VMWARE, then a a

  • Message Context properties in Biztalk database Tables

    Hello, I want to retrieve messase, and status of msg and receive file Name using stored procedure can anybody knows where these  Message Context properties got stored in BizTalk databases. Thanks.

  • JDBC to Synchronous ABAP Proxy

    Hello, I have one scenario where i am sending data from JDBC Adapter(Communication Channel 1) to ABAP Proxy(Sync)(Communication Channel 2) and as response ABAP Proxy send back data to JDBC Adapter(Communication Channel 3). So is it possible without B