Results 1 to 6 of 6

Thread: Java - connect to remote computer

  1. #1
    Join Date
    Dec 2009
    Posts
    204

    Java - connect to remote computer

    Hello,
    I must make an application that manages appointments. With XML, would be simple. But the problem is that 2 computer using the same agenda. Can I access to read and write in a xml file located on a remote computer if it has its ip? Otherwise I will use a database and may be a web server, I install the least possible for the facility. I can use the xml or require to go through a database?
    I must put up a web server to access the file or database or only the IP address is enough? If I must use a database, I know mysql but is it possible to use an embedded database? Thank you in advance.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Java - connect to remote computer

    Hello,
    To write to a remote computer requires that the computer has a small application "server" when you send messages and who will handle the job. The "client" sends a message, the "server" receives the message and performs the action on the file. Then you can use sockets for example, or the API that simplifies communications between several file. Otherwise, the use of a database seems to be a simpler and certainly more reliable.

  3. #3
    Join Date
    Dec 2009
    Posts
    204

    Re: Java - connect to remote computer

    Hello,
    So I must create a small server in Java that will run queries sent by a client program. But SELECT query, this small server may MADE any type of object or just string? In this case it is all is the same, I hope so. Which database can I use, that is easy to implement? I know mysql but it's heavy to install. The problem is that, I do not know how to retrieve query SELECT.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Java - connect to remote computer

    Hello,
    You are saying that Mysql heavy? But I do not think it is a heavy software or database. Rather than Oracle I will recommend you to use Mysql. Otherwise, if you want to design a single server where everything is written in java you can always try the serialization is fairly easy to implement and secure. I think you should go with the second option, it is easy and you can do it in no time.

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: Java - connect to remote computer

    Hi,
    If you have two instances of your application that work on the same agenda, the communications network is not the only problem. Pay attention also to the problems of concurrency (eg if your two bodies want to make an appointment in the same slot in some application). DBMSs provide transaction mechanisms that can help you with problem. I will highly recommend you to go with the database, because it provides many functions.

  6. #6
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Java - connect to remote computer

    Hi,
    You just have to go through a server application. If you want to do a nice thing, you can also this kind of problem which can be managed all the requests forwarded by your client servlet. Then you can choose to either do the processing on a database, installed on the server, and it is the server that connects to it. Either handle this with a XML file, and is still dealing application server to make updates from streams sent by the client.

Similar Threads

  1. Replies: 7
    Last Post: 28-07-2009, 01:24 PM
  2. Replies: 2
    Last Post: 24-03-2009, 07:19 PM
  3. Replies: 6
    Last Post: 24-02-2009, 02:56 PM
  4. remote web workplace rww stops working connect to remote computer
    By Dharuna in forum Small Business Server
    Replies: 3
    Last Post: 24-09-2008, 04:19 PM
  5. Replies: 7
    Last Post: 26-10-2007, 12:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,159,297.73921 seconds with 16 queries