Differences between jdbc connection and datasource connection

Hi all
What are the differences between javax.sql.datasource and java.sql.connection.
Is the datasource needed on in distributed databases or ??
In a distributed EJB enviornment, what happens if a component has a transctionattribute setting as SUPPORTS and tries to commit data - will the ejb container start a transaction though the setting is SUPPORTS.
Thanks in advance.

Hi all
What are the differences between javax.sql.datasource
and java.sql.connection.
Both are database connections. A connection is a handle to database. When you are directly creating a connection by calling Drivermanager.getConnection(..) , you are creating a connection by yourself and when closing close() on it, the link to database is lost. On the other hand when you get a connection from a datasource, when you call the close() on it, it will not close the link to database, but will return to a connection pool where it can be reused by some other classes. It is always better to use a connection pool because creating connections are expensive
Is the datasource needed on in distributed databases
or ??
>
You can create datasource to any databse local or remote.
In a distributed EJB enviornment, what happens if a
component has a transctionattribute setting as
SUPPORTS and tries to commit data - will the ejb
container start a transaction though the setting is
SUPPORTS.
hmmm..i am not sure. I think the container sets the commit and rollback points for it . so container will override database settings.

Similar Messages

  • Difference between Extraction Structure and Datasource

    Hi Gurus,
    I have a very basic question here.Can anybody explain to me in detail the difference between an extraction structure and Datasource.
    Thanks in advance

    Hi:
    I am pasting a summarized def. from sap notes.
    http://help.sap.com/saphelp_bw30b/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    Data Source:
    Data that logically belongs together is stored in the source system in the form of DataSources. A DataSource contains a number of fields in a flat structure used to transfer data into BW (Extract Structure).
    Extract Structure:
    In the extract structure, data from a DataSource is staged in the source system. The extract structure contains the amount of fields that are offered by an extractor in the source system for the data loading process.
    You can edit and enhance DataSource extract structures in the source system. To do this, in the BW Administrator Workbench choose Goto à Modeling à Source Systems à Your Source System à Context Menu (right mouse click) à Customizing Extractors à Subsequent Processing of DataSources.
    While, you are on the topic, you have one more structure.
    Transfer Structure:
    The transfer structure is the structure in which the data is transported from the source system into the SAP Business Information Warehouse.
    It provides a selection of the extract structure fields for the source system.
    It may be a good idea to look into a sample Business Content extractor to get a better understanding of how they are related.
    Chamarthy

  • What's the difference between Apple TV and direct-connecting an iPad?

    I'm thinking about getting Apple TV - but what does Apple TV give me that my iPad doesn't?  I've got an Apple cable that connects my iPad to my big screen already.  What do I gain by getting Apple TV instead?  Please advise - thanks!

    Thanks!  Yea, I'm leaning that way and from everything I've read the 'biggest' benefit would be Airplay - and the 5:1 surround in my gameroom (or the 7:1 surround in my screening room).  I don't stream movies - I'm more of a blu ray collector and watch movies that way - so in all probability I wouldn't use Apple TV in the screening room - but there are several other locations where it could be a nice addition.
    I do watch some TV shows on my iPAD, and lots of music videos - so perhaps, with Airplay they'll look/sound even better if I push that content to one of the other big screens.
    For the most part - whenever I wanted to watch something from my iPad on the big screen, I just connected it to my A/V receiver - pressed play, and enjoyed.  Apple TV would now become that device that's connected to my A/V receiver, and the iPad more of a remote - uncabled.
    Again - thanks for the reply; it's proven very helpful.
    Cheers.

  • Session Timezone differences between JDBC OCI and Thin drivers

    Hi,
    I was having a problem with a default on a DATE column of CURRENT_DATE with my Websphere/Oracle web application, when I discovered that the Thin JDBC driver behaves differently from the OCI JDBC driver in regards to the session timezone.
    The Thin driver defaults the sesssion timezone to GMT (+0.00), but the OCI driver defaults to whatever the local OS timezone is (in my case GMT+12.00).
    Can anyone tell me how why this difference is there how to correct the behaviour of the Thin driver?
    I'm using the standard JDBC Connection class, not the OracleConnection object, and therefore cannot use the setSessionTimeZone method.
    The only solution I can currently think of is to move the application over to the OCI driver, however, I'm wondering what else is different (ie we'll have to regression test the whole web app again!).
    Any ideas?
    Cheers,
    Dunc

    Well, regarding the time zone thing, it appears the following code will solve a lot of headaches...
    ((OracleConnection)conn).setSessionTimeZone
    (TimeZone.getDefault().getID());
    Still unknown why the OCI driver appears to do this automatically, while the thin driver does not.
    If anyone knows the status of the memory leaks in the Linux OCI, please let me know.
    Thanks,
    m@

  • DataSource - difference between ejb-location and location

    Hi,
    Does anyone know difference between ejb-location and location attribute specified in datasources.xml for an emulated datasource.
    There are few connection leakage errors reported in log files though the connection and other database objects have been closed in finally block in all places.
    So just wanted to find out whether specifying the same value for location as well as ejb-location is not the root cause of connection leakage errors.
    Thanks in advance for any help.
    Regards,
    Smita

    Smita,
    Personally, I think you should make sure that all locations (in your "data-sources.xml" file) should be different -- although I can't tell you why.
    According to the documentation, the "ejb-location" uses a connection pool and I exclusively use the "ejb-location".
    Good Luck,
    Avi.

  • Difference between maximum concurrency and batch mode in JDBC

    Hi All,
             Could som one tell me the difference between maximum concurrency and batch mode in receiver JDBC adapter?
    Regards,
    XIer

    Hi,
    The Max Concurrancy and Batch mode are used for performance tunning for JDBC adapter.
    Max Concurrancy is possible upto 5 only. so even if you will be taking up 10 it will by-default take 5.
    The number of records being processed depend on the size of each record. for e.g Per minit XI Is Processing 50 Records,It will Take lot of time to process all Records.
    So if you set Max concurrancy as 5 then at time 5 messages will be processed simultaneously.
    In Batch mode it will, collect the multiple SQL statements that will be created for records to be processed and processed at a time. It will  improve performance considerably.
    But Batch Mode is possible with only INSERT, UPDATE, DELETE etc.
    The Stored procedures can be executed with max concurrency
    Thus it completely depends that on the no of records to be processed at a time and volume of Mesasges.
    Thanks
    Swarup

  • The difference between system restore and last good known configuration

    hi,
    what is the difference between system restore  and last good known configuration.
    in which situation you use system restore ,and in which situation you use last good known configuration.
    very short answer wil be enough.
    thanks
    johan
    h.david

    Last Known Good Configuration deals only with Starting Windows eg. a bad registry or incorrect driver is preventing Windows to start.It recovers the registry settings of HKEY_LOCAL_MACHINE\System\CurrentControlSet
    While System Restore uses restore points to return your system files and settings to an earlier point in time without affecting personal files. Restore points are created automatically every week, and just before significant system events, such as the installation
    of a program or device driver. You can also create a restore point manually.You can undone system restore but there is no such option in Last Known Good Configuration.
    Last Known Good Configuration is disabled in Windows 8 or,Windows 8.1 by default.
    Try using Last Known Good Configuration if you can't start Windows, but it started correctly the last time you turned on the computer.
    Try using System Restore to return the system to an earlier point in time when things worked correctly.
    S.Sengupta, Windows Entertainment and Connected Home MVP

  • What is difference between bex analyser and bex browser

    what is difference between bex analyser and bex browser . please explain what are use of both and what we do in both.

    hi
    Bex Browser
    The Business Explorer Browser (BEx Browser) makes it possible for you to access all document types of the Business Information Warehouse that are assigned to your role or that you have stored in your favorites. You can select and open documents assigned to you in the BEx Browser or store and manage new documents in the BEx Browser.
    Document types that you can work with in the BEx Browser are:
    · BW workbooks
    · Documents that are stored in the Business Document Service (BDS)
    · Links (references to file system, shortcuts)
    · Links to internet sites (URLs)
    · SAP transaction calls.
    · Web applications and Web templates
    · Crystal Reports
    Bex Analyser
    The Business Explorer Analyzer (BEx Analyzer) is the analysis and reporting tool of the Business Explorer that is embedded in Microsoft Excel.
    Features
    You can call up the BEx Query Designer in the BEx Analyzer, in order to define queries. Subsequently, you can analyze the selected InfoProvider data by navigation to the query created in the Query Designer and create different query views of the data. You can add the different query views for a query or for different queries to a work book and save them there. You can save the workbook in your favorites or in your role on the BW Server. You can also save the workbook locally on your computer.
    Beyond that, you can precalculate the workbook and distribute it by e-mail to recipeients or you can export it to the Enterprise Portal and make it accessible to other employees in the company.
    You can start queries in a standard view (with a Standard Web Template set up in Customizing) in the Web browser and forward the URL or continue to navigate on the Web. Similarly, you can export the Web query to MS Excel 2000.
    Overview of the Functional Area of the BEx Analyzer:
    ·        BEx toolbar
    You access the functions of the BEx Analyzer from the BEx toolbar, which takes you to the BEx Open dialog box where you can open existing queries, or to the BEx Query Designer where you can create new queries or change existing queries.
    ·        Evaluating Query Data
    The BEx Analyzer offers convenient functions for evaluating and presenting InfoProvider data interactively. In the BEx Analyzer, you can add queries to workbooks, navigate within them and refresh the data. You can also process the queries further in Microsoft Excel or display them in the Web browser in a default view.
    Navigation of a query allows you, for example, to filter characteristics on a single value, drilldown on all values for a characteristic, regroup characteristics and key figures in the rows and columns of the results area, or hide key figures. Navigation results in different views of the InfoProvider data. In addition, a range of further functions is available which allow you to edit a query interactively (for example, sorting, cumulated output, among others). In addition, you can use the editing functions in Microsoft Excel in order to set up individual format templates, to print results areas, or to create graphics.
    ·        Queries in Workbooks
    Queries are inserted into workbooks so you can display them. When you insert a query, a link is made between the cell areas of the worksheet and the data of the InfoProvider upon which the query is based. A link therefore exists between the Business Explorer and the Business Information Warehouse Server (BW Server).
    When inserting a query into the workbook, a VBA routine is automatically generated in the workbook. You can also connect the Business Explorer with your own VBA programs (Visual Basic for Applications).
    You can create workbook templates, into which you can insert your queries. Workbook templates can contain pre-determined items for the area of the query, formatting settings, logos, VBA macros, and so on.
    ·        Precalculating workbooks
    You can precalculate and distribute workbooks with the BEx Broadcaster, which is a Web application you get to form the BEx toolbar. The system generates MS Excel workbooks with historical data. You determine the time for precalculation yourself: You can have workbooks precalculated at a predefined time or they can be precalculated whenever data in the underlying InfoProvider changes. You can have the precalculated workbooks sent by e-mail or you can export them into the Enterprise Portal, where you can make them available to employees within your company.
    Activities
    To start the BEx Analyzer, choose Start ® Programs ® SAP Front-end Business Information Warehouse ® SAP Business Explorer Analyzer.
    You can also access the BEx Analyzer via SAP Easy Access ® SAP Business Information Warehouse ® SAP Menu ® Business Explorer ® Analyzer or in the Business Explorer Browser using the Business Explorer Analyzer symbol in the menu bar.
    Hope this will solve your issu
    nagarjuna

  • What is difference between hostd, Vpxa and vpxd.

    what is difference between hostd, Vpxa and vpxd. whats there purpose in esx

    Hi....
    VPXD-It is Vcenter Server Service. If this service is stopped then we will not able to connect to Vcenter Server via Vsphere client.
    VPXA-It is the agent of Vcenter server. also known as mini vcenter server which is installed on the each esx server which is managed by Vcenter server. What are the management action we are performing on top of the vcenter server. (Like:- Increasing/Decreasing RAM & HDD, Making any type of changes in cluster,
    doing vmotion. This agent collects all information from the vcenter server and pass this information to the kernal of the esx server.
    HOSTD- This is the agent of ESX server, here VPXA pass the information to the HOSTD and hostd pass the information to ESX server.
    Hope this one give you clear explanation about the difference in between each of them.
    Vijay Bhardwaj

  • WHAT IS DIFFERENCE BETWEEN FIRMWARE CKP5CN1334ER AND VersionCLP1CN1322CR,

    WHAT IS DIFFERENCE BETWEEN FIRMWARE CKP5CN1334ER AND VersionCLP1CN1322CR,  i GET A MESSAGE WHEN I TRY TO SCAN AN EMAIL THAT I NEED TO MANUALLY CHECK BY FIRMWARE

    Hi sawmill1,
    Welcome to the HP Support Forums.  I see that you are getting a message to update the firmware of your printer to allow you to use scan to email.
    To better assist you, would you please provide some further information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    What operating system are you using on your computer? whatsmyos.com
    Are you getting any other error messages?  If yes, what does it say and where is it displayed (printer or computer)?
    Have you tried to update the firmware of the printer? 
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Difference between IS NULL and = NULL

    Hello Guys,
    In 10gR2 what is the difference between IS NULL and = NULL
    Thanks,
    Imran

    Just don't use the second, because the comparison operator = cannot deal with NULLs as you (probably) hope it can:
    SQL> create table t1 as select rownum as id, 'test' as word from dual connect by level<=2;
    Table created.
    SQL> update t1 set word=null where id=1;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
            ID WORD
             1
             2 test
    SQL> select * from t1 where word is null;
            ID WORD
             1
    SQL> select * from t1 where word = null;
    no rows selectedKind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Difference between conn.close() and conn=null;

    Hi All,
    Can anybody please let me know the difference between conn.close()
    and conn=null;
    where conn is reference to Connection.
    Thanks and Regards
    -sunjavadeveloper

    Thanks for your response.
    Is there any other good approach to close() & then
    null the Obj. can u give us your opinion.
              finally
                try{
                         if(dbconn != null)     dbconn.close();
                         if(stmt != null) stmt.close();
                         if(rs != null) rs.close();
                         if(con != null) con.close();
                catch (Exception e)
                       logger.fatal(e.getMessage(),e);
    throw new Exception ("Exception -- Vendor.java --
    a -- authenticate -- " + e.getMessage() );
                   dbconn = null;
                   rs = null;
                   stmt=null;
                   con = null;
    Putting the close() calls in finally block is good, but having them in individual try/catch blocks is better. That way you can still try to close the connection if closing the statement throws an exception.
    I don't bother setting them to null. GC is smart enough to know that they've gone out of scope. I don't think it helps.
    %

  • What's difference between iphone 4 and 4s?

    i bought an iphone 4 9months ago and the software was upgraded to iOS5 last month. since then i noticed that by the time i used to connect my iphone into my pc the itunes did not sync so i'd just tolerate as not a big deal for me... this is the problem that i have. yesterday evening, my iphone 4 was connected to my pc at the same downloading viber again from itunes at the moment i wanted to disconnect my iphone its dead! shut it off. i kept on switching evry10sec but there was no power. i knew there's enough battery as it connected in my pc. well, i gave up and leave it but 36hrs after when i'd tried again to switch on i saw on the lcd battery icon is red So i've charged immediately. now fine! i just want to share with you this experience... why its like this. Thanks there.

    what's difference between iphone 4 and 4s?
    Go here and see what's new:  http://www.apple.com/iphone/

  • Difference between new network and extended network

    Difference between extended network and new network settings

    An "extended" network acts as one large wireless network. Wireless devices can roam anywhere a signal is present and stay on the network without having to make any changes.
    A "new" network will require that a wireless device manually "switch" to that network and enter the password for the network to connect whenever you want to use that network. In other words, a "new" network will use a different wireless network name and password, which will require that you manually log on to that network.
    The exception would be if you created a "new" wireless network and used the same wireless network name, same wireless security settings and same password as the "main" network and connected the AirPort back to the main router using an Ethernet cable. In that case, you would have an "Ethernet extended wireless" network.

  • Difference between remote management and vnc

    Difference between remote management and vnc

    By VNC I will presume you mean 'Screen Sharing'.
    Screen Sharing in System Preferences - Sharing is purely for remote control and is based on the VNC protocol with a few extra features added by Apple.
    Remote Management in System Preferences does everything Screen Sharing does and is fully compatible with another Mac doing just Screen Sharing, i.e. it allows remote control. However it can also do additional things. It is intended for use with Apple's Remote Desktop Administration software which can use this to send files to a Mac, send (Unix) commands to a Mac and ask for a report from the Mac (e.g. how much RAM it has).
    If you don't have Apple Remote Desktop there is no real point enabling Remote Management instead of Screen Sharing.
    Both Screen Sharing and Remote Management can also be configured to allow 100% standard VNC connectivity from say a PC, as standard they only accept connections from Macs.

Maybe you are looking for