Create the jdbc datasource and get database connection

Hi all

How can I create a jdbc data source in Jdeveloper Version 11.1.1.0.1? In the previous version of Jdeveloper when I create new database connection using the database browser he created xxxx-data - sources.xml in the application directory. I used following code to get the database connection.

Fitting out = null;
Context ic = new world;
DataSource ds = (DataSource) ic.lookup (dataSource);
connection = ds.getConnection ();

But this method does not work in this version of jdeveloper. It creates no data-xxxx - sources.xm in the application directory. Please give me a suggestion to create the jdbc data source and to get a database connection in this version.
The previous version of JDeveloper using OC4J, but this version using Weblogic.

Thank you
Sujnan

Published by: sujnan on March 25, 2009 23:09

Also add the data source in the web.xml file.

JDBC/OracleDS
javax.sql.DataSource
Container

InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource)
initialContext.lookup("java:comp/env/jdbc/OracleDS");
java.sql.Connection connection = ds.getConnection();

Published by: Billett on March 25, 2009 12:08

Tags: Java

Similar Questions

  • How to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!

    Someone help me how to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!
    step by step information!

    Hello

    I suggest you to refer to the links and check if it helps:

    Create a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroup

    Join a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/join-a-HomeGroup

    Setting up a network home

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-home-network

    Remote Desktop connection

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Remote-Desktop-connection

    What types of connections remote desktop should I allow?

    http://Windows.Microsoft.com/en-us/Windows7/what-types-of-Remote-Desktop-connections-should-I-allow

    Remote Desktop connection: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/Remote-Desktop-connection-frequently-asked-questions

    Let us know if it helps.

  • Why create the MP3 version and get album artwork was deleted?

    Hello

    Is anyone know why the possibility of creating another version of the version of i.e.'create MP3 of the song "has been deleted to new iTunes and Get Album artwork?

    These two features are still there, but they have been moved. Create < Format > Version is now under file > convert and Get Album artwork works if you right click on the work, or a work space in the albums or songs views.

    TT2

  • The download starts and gets to about 50 MB before the zone State says down load failed after refresh

    Hello

    I just had to update my laptop Azus Windows 8.  I reinstall all my programs.  All my financial records are Open Office, so I need to reinstall the program.  The download starts and gets to about 50 MB before the zone State says down load has failed.  This happens no matter if I choose run or save.  I lowered my security settings for IE but still not completely download.  I downloaded Open Office earlier this year with no problems.  It must be something that I am missing.  Please help I need to do my job.  Thank you

    Do you have any error messages at all when you try to download?

    What utility Antivirus you have installed? Have you tried to disable it temporarily and and see if they work?

    Have you tried to save the download to a different location on the hard drive such as the desktop?

    Have you tried using another user account?

    What type of Internet connection you are on, wired or wireless? If you are on a wireless connection, try switching to a wired connection and try the download.

    Press the Windows key + X

    Click prompt (Admin)

    At the command prompt, type the following command, press ENTER.

    ipconfig/release

    then

    ipconfig/renew

    then

    ipconfig/flushdns

    leave the command prompt

    Press the Windows key + R, type: folder

    Press enter

    Delete the contents of the temp folder

    Restart the computer and try to download again.

    If the problem persists, try resetting your router if you are connected to one.

    Turn off the router, unplug it, wait 10 minutes

    Plug it in again, power up once again

    Reconnect the Ethernet cable

    Try to download again

    You can try to download free Office instead which can OO.org Open files.

    http://www.LibreOffice.org/download/

  • Asslam o aliakum. I have a problem with itunes 12.3.2 it is not downloaded the 10 windows and when I connect m iphone with itunes and want to update to 9.2 says please download itunes new version for ios 9.2... help me with this... How to solve this probl

    Asslam o aliakum. I have a problem with itunes 12.3.2 it is not downloaded the 10 windows and when I connect m iphone with itunes and want to update to 9.2 says please download itunes new version for ios 9.2... help me with this... How to solve this problem.

    Greetings Dani56777,

    Thank you for using communities Support from Apple!

    I understand that you run Windows 10 and you must update iTunes to the latest version so that your iPhone will be recognized when connected. I do not know if you receive an error when you try to update iTunes or not.

    If you need information on how to update iTunes, please follow the instructions in the following link.

    Download the latest version of iTunes for Windows - Apple Support

    If you receive an error or alert, you can consider removing iTunes and all of its associated components and then reinstalling fresh iTunes on your computer. That would give you the latest version of iTunes. If you need execute this process, please follow the steps described in the following article.

    Remove iTunes Control Panel and its associated components

    Use the control panel to uninstall iTunes and software components in the following order:

    1. iTunes
    2. Apple Software Update
    3. Apple Mobile Device Support
    4. Hello
    5. Apple Application Support 32-bit
    6. Apple Application Support 64-bit

    On some systems, iTunes can install two versions of the Apple Application Support. What is expected. If both are present, do not forget to uninstall both versions.

    Do these elements in a different order, uninstall or uninstall only some of them. This could have unintended effects. After you uninstall a component, you may be asked to restart your computer. Wait to restart your computer until you finish remove all components.

    Remove and reinstall iTunes and software for Windows 7 and later versions - Apple Support components

    Have a great day!

  • Substitution of the class, how to create the child class and then the base class

    I started to write a program for a DMM smart, that the problem is all versions of DMM greet the change company communication.

    My idea is to write a child class for each version, DMM and each Subvi child will replace the Subvi base class.

    My problem is, I first want to create a child class and after I see everything is working, start creating the base class. in this way, I'll see if think the right way.

    My question is

    How can I create a child class and then create the base class and configure the Subvi class of the child to be the substitution of the base class?

    I tried searching in the property of the class, but I don't see anything.

    Thank you

    This can be done and I did on occasion.

    You create the base class with the methods of dynamic distribution, you need (Connector components must be identical to those of the class of the child).

    Set then the legacy of the class inherits this base class.  If your method is defined as a dynamic distribution method in the parent, you will probably now have some errors (unless your method of child was already DD, in which case you might be OK already).

    To change the inheritance of a class, right-click on the properties of the class in your project, and then select Properties.  According to me, the tree of estate is at the lower end of the property.  Click on the 'legacy of change' (or something similar) to choose the class from which you now want to inherit.

  • Try to install the patch KB943729 and get this error. __

    Try to install the patch KB943729 and get this error.

    The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded is may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch.

    Any help with this error.

    I've always found the icon on my Start button that indicates that an update is ready to be loaded and I have to restart my computer

    Open Internet Explore (only) to http://support.microsoft.com/kb/971058 & re-run the difficulty in AGGRESSIVE mode. [1]

    Reboot once more & test.

    ~~~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not the list of installed updates.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I press the button mute and get an annoying chime. How can I stop this?

    Original title: pressing the button mute
    I press the button mute and get an annoying chime. How can I stop mthat?

    Hello

    on my less than the "speaker" icon toolbar.

    None

    No, it is a chime of "courtesy" and suppose to be here

  • I'm trying to download the free track of After effects.  Keep the error message and get the ' we are currently experiencing some issues, please try again later. " If the problem persists, contact customer service. »

    I'm trying to download the free track of After effects.  Keep the error message and get the ' we are currently experiencing some issues, please try again later. " If the problem persists, contact customer support. "what I'm doing. I have tried for 2 hours and need to complete course work.

    you use the cc desktop app to download?

    If not, https://creative.adobe.com/products/creative-cloud

  • can any 1 tell me how to create the budget journal and how to enter in the journal?

    Hi all+.
    Can someone tell me how to create the budget journal and how to enter in the journal to this budget? +

    What about+.
    Yasser+.

    http://download.Oracle.com/docs/CD/A60725_05/HTML/comnls/us/GL/budjrnl.htm#index-budget-journals-entering--0

    Enter budget reviews in order to maintain an audit trail for your budget balances. You can use budget rules to automatically calculate the amounts of budget journal.
    When you post journals budget, amounts of newspaper to date of existing fiscal balances. You can view and change your budget logs before posting.

    ATTENTION: When you use budget rules in fashion newspaper, big book calculates the appropriate flow or necessary to achieve the balance that you enter for the type of credit account.

    Prerequisites

    1. set a budget
    2. open one or more years for your budget
    3. set a budget organization
    4 assign the budget input type 'Enter' for the accounts for which you want to enter budget reviews

    To enter budget for a journals only account:

    1. go to the window enter Budget sheets.
    2. specify the Organization of the Budget for the account with which you want to budget. If the budget organization is protected by password, you must enter the password before you can enter budget reviews.
    3. Enter the Budget that you want to update. You cannot use a budget that is frozen.
    4. Enter the range of accounting periods, to which budget.
    5. enter in the currency of the budget amounts that you enter. The accounts must be assigned to the Organization of the budget for this currency.
    6. choose the Mode of Journal in the region poplist to enter budget amounts in a newspaper format.
    You can also use the single-line Mode or Mode worksheet to enter the amounts in the budget journal. However, you can only generate journals budget of these modes of entry when you use the window enter Budget sheets.
    Additional information: when you use the log Mode, Type of Balance is a field display only. It displays Budget when you enter budget reviews. In the window to enter the newspapers, this field shows actual when you enter actual journals.

    7. Enter or question the account to which you want to budget. You can also switch mode worksheet to easily interrogate the accounts, then come back in fashion newspaper to enter budget reviews.
    8. Enter an amount debit or credit for each period. Do not enter a journal amounts if you want to use fiscal rules to calculate and distribute the budget amounts.
    9. choose Create magazines to create a budget spreadsheet. If you are using budget control, you specify an action of funds when you create the batch.

  • Try to connect the contact Facebook and get an error of Application configuration

    Original title * facebook &

    I'm trying to connect my Facebook contacts... in windows 8 people app.  I've added LinkedIn, Skype, Gmail, and they seem to all work.  When I try to add Facebook, it Let's select me 'connect' and then when it tries to connect, I get the following error message.

    "Given the URL is not allo2wed by the configuration of the application.  One or more of the URLS given are not allowed by the application settings.  It must match the URL websi9te or the canvas, or the field must be a subdomain of one of the application areas. ».

    Help, please. Very much appreciated.

    Hi Adrien,.

    Thanks for posting your query on the Microsoft Community.

    As described in the question, I understand that this issue could be caused due to some changes in the application settings.

    Method 1:

    I suggest you try the procedure described in the Microsoft Help article and check if it works for you. This article consists of the steps to solve the problems with an application.

    Note:

    Please do not try the following steps to reinstall the application.

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Method 2:

    Remove and re-add the account.

    I suggest you to remove and re-add the Facebook account and check if it helps.

    Check the following link below and try the steps.

    http://Windows.Microsoft.com/en-us/Windows-8/people-app-FAQ

    I hope this helps. Please let us know the results. We will be happy to help you further.

  • I set up Windows 7 to use fingerprint or password to logon. How can I get rid of the fingerprint logon and back by connecting with just the user names and passwords?

    I have configured Windows 7 to use the fingerprint or password login screen. I can't footprint material and do not want to use, but can not find where you reconfigure to return by connecting with just user profile names and passwords.

    Hello

    Welcome to the Microsoft Vista answers Forum!

    You can try the steps below and check if the problem is resolved.

    1. click on start.

    2. click on Control Panel.

    3. click on hardware and sound.

    4. now click biometric devices.

    5. now click on biometric parameters.

    6. now you should check biometrics off the coast of the option button.

    7. click on save changes.

    8. click on close.

    Now search for the question.

    Learn more about the biometric device, you can visit the link provided below.

    http://TechNet.Microsoft.com/en-us/library/dd759228.aspx

    Thank you, and in what concerns:

    I. Suresh Kumar-Microsoft Support.

    Visit our Microsoft answers feedback Forumand let us know what you think.

  • Question: How to create the new user and schema in 11g?

    Who can give me the answer how to create a new user and a schedule?

    I had installed oracle 11g DB and oracle in my OS windows client. I found in the 11g than there is no console management business with the new version. It is no different with oracle 10g. So I don't know how to create this new user.

    I had created a new DB instance, but I did not how to create a user on it. Who can give me a helping hand for who? I hope a give oracle experenice expert answers.

    Thank you very much!

    Published by: user774630 on October 27, 2008 22:01

    Published by: user774630 on October 27, 2008 22:09

    Hello
    I'm not sure which option you are talking about? [Do you use the EMCA, http://download.oracle.com/docs/cd/B28359_01/server.111/b28319/emca.htm#SUTIL800] to create the new repository for the EM? If this isn't the case, the command line that the other is using DBCA (Database Configuration Wizard). I think you're talking about that. Yes, if the message comes from creating the repository that soon after, you can connect to the EM. You would get the port no port HTTP of EM comes from the $OH/install/portlist.ini file.
    HTH
    Aman...

    Published by: Aman... on October 28, 2008 11:36
    Waived, insertion of link does not work.

  • Whenever I do a search on the main page and get results, I click on a link and get diverted, I need to get out and re - click the link and then I usually get on the site I wanted to, it is a problem of computer or a problem of firefox or google?

    Whenever I do a search and click on a website search results, I am confused on some other Web site, usually a few ad-site.
    I then have to click the back button and click the link again and it usually takes me on the site that I wanted to. Is it a problem with my computer of viruses, or a problem with firefox or google?

    Download, install and update as much of the following as possible until your infections are cleaned.

    1. The free versions of these scanners will detect infections and clean your system; no need to buy
    2. Scanners different malware detect some malware that other scanners do not have.
    3. If you are unable to download malicious programs,
      • change the name of the Installer before you save the download on your hard drive, and
      • Once installed, go to the installation to the program folder and change the name of the executable file of the program (i.e. for Malwarebytes Anti-Malware, change mbam.exe to xyz - mb.exe), then update the program and run the scan.
      • You may need to download on a non infected computer, change the name of the Setup program, copy setup from a CD or USB and transport to your system for installation.
    4. Some stubborn malware should be deleted in Windows Safe Mode with setting network '. Warning: download all the tools first, then disconnect your modem before entering Mode Windows safe, as your firewall and AV/AS probably does not load mode Windows safe. See:

    If they cannot find or cannot remove the infection (s), post it in one of these specialized forums using malware removal:

    1. Read and follow their rules for display
    2. Follow the instructions to the letter
    3. Be patient; you are put in a queue and you will get a response when they get to your message

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • I can't access the system tools and trying to connect to internet it is blocked with the 404 error is returned

    Original title: help with XP

    Hello. Lost my son specifications accessories so I can not access tools etc as a result of this system by trying to connect to the internet, it is locked with the 404 error is returned. I checked and seems to be something that is called the prevention of execution of data, or something similar. I suspect that a virus may have corrupted windows. is there a site that I can connect to that will analyze or fix the erors with windows. I know a little about computers, but the easier the better solution to any who no matter what solutons to one of these problems. I tried turning of DEP, but it does not work. the indices or help gratefully received. Thank you

    Hello

    ·         What is the service pack installed?

    ·         What anti-virus program do you use?

    Method 1:

    I suggest you to download and run the latest Microsoft security on your computer Scanner and check if it helps:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: the data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

    Method 2:

    I suggest you run the SFC (System File Checker) and check if it helps.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    http://support.Microsoft.com/kb/310747

    Method 3:

     

    Error 404 occurs when Internet Explorer is able to connect to the website, but the webpage cannot be found. This error is sometimes caused because the webpage is temporarily unavailable or that the Web page has been removed.

    I suggest that you reset the internet settings explore by default and check if it helps.

    For more information, see the article.

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

    Important: Reset Internet explore its default configuration. This step will disable also any add-ons, plug-ins or toolbars that are installed. Although this solution is fast, it also means that, if you want to use one of these modules in the future, they must be reinstalled.

     

    Method 4:

    I suggest you create another user on the computer and verify the results: how to create and configure user accounts in Windows XP: http://support.microsoft.com/kb/279783

    If the problem does not occur in the new user, and then follow the steps from the link below: how to copy data from a corrupted to a new profile in Windows XP user profile: http://support.microsoft.com/kb/811151

Maybe you are looking for