VendorDataSource

Ok, the tutorial on multiple database links gave "VendorDataSource" command as part of the code to get things going.
Thing is it won't compile, and appears nowhere on the API..... is this normal or am i really missing something. Tutorial fragment below
VendorDataSource vds = new VendorDataSource();
vds.setServerName("my_database_server");
vds.setDatabaseName("my_database");
vds.setDescription("the data source for inventory and personnel");
Context ctx = new InitialContext();
ctx.bind("jdbc/AcmeDB", vds);
Also, what do I replace "jdbc" on last line with, I have a MySQL connector/J
thanx

VendorDataSource is not a class.. just a representation of the general classname that can come when u use a jdbc driver.
if some jdbc driver vendor like 'FOO' has a Datasource implementation, they may name it as FooDataSource :-)
ITs just custom implementation and u should refer your jdbc driver documentation to see what is the name of the Datasource class that you should use..
thank god the classname might always have the word 'DataSource' appended.
:)

Similar Messages

  • How to retrieve DSN's in java

    Hi, Is it possible to retrieve a list of the ODBC DSN's (Data Source Name's) created on my local machine(XP-Pro) without using JNI?

    Thanx all.
    Pitty it can't be done using purly java.
    @RealHowTo
    Thanx it worx perfectly.
    May I ask:
    How could I create a DSN from java?
    I remember reading something a while back on a class called VendorDataSource (I think).
    This class is supplied by the Vendor of the Odbc. I have looked but cannot find it.
    Do you know where I can find and download the class or do you know of any alternatives?
    Thanx again

Maybe you are looking for

  • RSS feed settings reset on reboot

    When i turned off my phone and turn it on again i always notice that the time of my homescreen widget is more then 15 minutes. I check the settings and automatic updates are off on all feeds. This is a permanent problem. Is there any solution to this

  • MacBooks 2012 lid should be closed but still in use. Please advice how.

    Hi, I like to use Skype by using an external webcam and also using the apple tv in order to view the display on TV. It is working ok but I also like to close the display of the macbook pro 2012. How can I do so? Please advice step by step. Please do

  • Something is wrong with the captions if i hover over a link it shows and empty box

    if i hover over a link, etc. i get a blank box under my cursor instead of a description

  • Sliding panels prev/next buttons

    Using graphic buttons for previous and next navigation with Spry Sliding Panels, how can the 'previous' button be dimmed or hidden when you're on the first slide, and conversly, have the 'next' button dimmed or hidden when you're at the end of the sl

  • Yosemite - Spotlight NTFS external drive indexing issue

    Good morning! Yosemite's spotlight doesn't seem to find any of the files on my external NTFS hard drive. I would like to know whether there isĀ  a way or not to get it done. PS: I've added it to the privacy tab, removed it and it still not indexing. A