Results 1 to 5 of 5
  1. #1
    Manolo is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default Datasource in desktop application

    Hi all,
    I've a question about DS and Tomcat. I tried (with success) to use Hibernate (v3) and Tomcat DS from my webapp.

    Now, I need to launch a jar app (on the same server) that use the same DS of the webapp.

    so, can I use or share information of connection? How?
    There's a good solution for that?

    Thanks in advance
    Last edited by Manolo; 04-27-2011 at 12:53 PM.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    Hi
    Your question is difficult to understand.
    DS - is this some database?
    Hibernate uses difference layers cache. if you want to read/write from difference app same data you need to care about dirty data.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Manolo is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default

    Hi Petr,
    thanks for your reply.

    DS = datasource

    I need to use the same DS between desktop-app and web-app. ;)
    it's possible?

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    Yes It is possible. But I say you must care about dirty data. How I know jdbc don't use a cache data. you can try it.
    I'm interesting why do you want make it? You can just use web app without desktop.
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    Manolo is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default

    Yes, I'm working to change my desktop app in web app.
    I believe it's a best solution

    Many Thanks :D

Similar Threads

  1. Desktop Application
    By vineet osho in forum New To Java
    Replies: 3
    Last Post: 06-13-2010, 05:37 AM
  2. Replies: 3
    Last Post: 12-04-2009, 12:10 PM
  3. How to create datasource for standalone application using JPA
    By identita in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 12-03-2009, 01:04 AM
  4. Datasource starts after web application
    By anosh_nathaniel in forum XML
    Replies: 0
    Last Post: 12-12-2007, 10:49 AM
  5. Datasource starts after web application
    By anosh_nathaniel in forum XML
    Replies: 0
    Last Post: 12-12-2007, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •