Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am new to this forum and I was looking for a solution for one of my questions. I have developed a Java desktop application. I have a database in a shared php hosting server. Is there any possible way to connect the shared hosting database with my Java desktop application. And how can I perform timed database synchronization with the shared database server

Thanks in advance

Mujahid

share|improve this question
add comment

1 Answer 1

It depends on your shared hosting provider. Most shared hosting providers do not allow externel access to databases, and those that do are likely to limit what you can do in their Terms of Service (i.e. Use in non-hosted applications). Check your providers FAQ or your control panel.

The alternative is to do part of your application in PHP (residing on the shared host) and have your Java application do HTTP calls to the PHP script which handles the Database access.

share|improve this answer
    
Wont be there any performance issue when calling the PHP through Java and make the connection?, but it seems a nice idea. In Godaddy, they're saying that they allow the external connection in this link help.godaddy.com/article/4978 does this mean we can connect it through desktop right? –  Mujahid Jul 28 '11 at 9:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.