Results 1 to 4 of 4
  1. #1
    shaay is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Default stand alond to network

    hi
    i am new to here and plz help me
    i have created a stand alone application and i wanted to change the application for lan use ....how should i change the connection code in java......


    ..
    ..
    ..
    i used mysql...for database

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default

    i guess some kind of abstraction between the application and the database is a good start, instead of working with JDBC (or what ever database mapping tool specific things) create a manager interface, or interfaces, implementations of these, that invoke data accessors, that invoke the database operations. Where the manager interface has methods that take on beans specific to the business function and independent of the database or any networking, and invoke the query and package the results back into response beans.
    The trend lately appears to use SOAP (XML-RPC) web services as the transport mechanism for serializing the data (request/response beans), but any other mechanism over HTTP is likely a good fit. The modern problem of everything being web based and that single web ports typically being always opened thru firewalls allows for ubiquitous access of the client to the server side.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    It's not a simple task actually in simple words. Basically you have to learn about how to communicating between two host over the network. What sockets are and how they behave and so on. Then you've confidence on that you may need to change the design of your original application as well.

    So to get a start read the following, which the basis of all you need. At the same time you've to study about communication protocols such as HTTP and so on.

    Lesson: All About Sockets (The Java™ Tutorials > Custom Networking)

  4. #4
    shaay is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

Similar Threads

  1. Replies: 7
    Last Post: 05-02-2010, 10:35 PM
  2. Stand Alone Compiler?
    By claudius753 in forum New To Java
    Replies: 9
    Last Post: 04-08-2010, 04:54 AM
  3. stand alone application network change
    By Java.child in forum New To Java
    Replies: 3
    Last Post: 09-07-2008, 11:11 AM
  4. Stand Alone Applications?
    By djpg2000 in forum New To Java
    Replies: 5
    Last Post: 09-05-2008, 07:23 PM
  5. Could some plz tell me how to write a stand alone
    By quickfingers in forum New To Java
    Replies: 25
    Last Post: 06-28-2008, 04:22 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
  •