I want to access the SQL database from ubuntu 11.10. It's not possible to install SQL software in my ubuntu. Some suggested that to use webservice to access database from other sytem which has the database. Can anyone tell me the procedure to call a webservice which is written in java by some one else. I need to call the Web service in my python & plone project. But I'm not using any IDE for developing code. I don't have any experience in Web services. SO Please explain me the clear steps to hit the database.
Related
I used java liberty with cloudant in watson services. And i got my starter code as a zip file.
I have sample code how to connect it to cloudant no-sql db. Please explain me?
I used java liberty with cloudant no-sql. I have starter code. How to connect my java code to no-sql?
Once you've bound your Cloudant service instance to your Java Liberty application you have basically two ways to interact with the Cloudant NoSQL DB:
using a Client Library
directly call the Cloudant REST APIs
The Client Libraries are basically wrappers of simple API calls, they only provide you an additional level of abstraction avoiding you to deal with the requests and responses.
Since you are working on a Java application I'd recommend to use the java-cloudant library, I've used it in the past and it works fine. Please take a look at the README to understand how to install and use it. The Getting Started section shows use how to use the CloudantClient Class, that is the main Object you'll have to use.
I'm trying to develop a web application using java and I just want use HBase as my back end database.
I'm able use the HBase Java API but the problem is with the Web Application, I'm trying to write the HBase Java API code in JSPs(java server pages), is this the right way for developing HBase Web Application ???
I'm not having any idea of developing HBase web application. Please help me to find out procedure or any sample examples so that I can try it.
Thanks in advance
please i need someone to highlight firstly how i could execute php 5.x on Oracle Weblogic J2EE server and the settings required if any...
its a java based environment and i'm wondering how i could get this up and running seamlessly.
if you could provide in details the process required to get Apache working, alongside PHP, my intentions is to use it as the base for a Laravel application i'm currently working on and utilize Oracle as the backend database model...
any ideas ?
I am trying to create an desktop application for shop. I can create create desktop app and database individually but I dont know how to connect them and how to execute query from desktop. May be for executing query I should use php but I dont know how. My database have been created in hosting site using cpanel.
You need some kind of APIs on the server side. First learn about RESTful APIs and build your server accordingly. Decide a PHP framework to do this with ease.
Next design your desktop application in JAVA which has
Ability to connect to your APIs ( Give Credentials use OAuth2 or something.)
Store data locally and Sync it whenever Internet Connectivity is available ( Resolve conflicts when syncing )
This will need lots of research and efforts. Happy Coding!
This is a broad question. If you are using php to build a desktop application (which appears to be), you must download WAMP server for executing php scripts locally. But I recommend you making a desktop application using java swing or any other popular GUI-based programming language. Please go through MySQL using Java's JDBC tutorial . Also Google as the question has a quite broad scope.
Your Question is Vague But here is a tutorial on creating a Java Connection to a database.
http://www.homeandlearn.co.uk/java/connect_to_a_database_using_java_code.html
I've read some articles on the Internet that this is not possible. To communicate own SQL database that is located on other server from GWT application. Jetty doesn't allow it.
I found a way how to perform it but it's not very cosy. I have client and server part inside GWT. The server has to communicate with MySQL database on localhost. So I've written an ant script to build a war that I can launch on Apache Tomcat server. It works perfectly there but I'm not able to debug the code effectively.
Do you have some advices how to perform this task? I was thinking of writing the clienty only in GWT and find some waz how to communicate my own server written outside the GWT. I've found Apache Thrift for GWT but this edited library of thrift seem not to work properly.
Thank you very much for your answers:)
It is possible to communicate with a database from a GWT application. The client side has to call the methods of the server via GWT-RPC, which can communicate with any database.
Maybe Jetty does not support it (have not tested it personally) but you can develop your web application using Apache too. There you can access the database the same way as from any web application:
You will need the mysql-connector-java-5.1.20-bin.jar file (downloadable from: http://dev.mysql.com/downloads/connector/j/ ), and restart the server added to the $CATALINA_HOME/common/lib directory.
OR added to the WEB-INF/lib folder of your web application.
You can find tutorials online of how to develop an application using Tomcat instead of Jetty. For example: https://wiki.auckland.ac.nz/display/BeSTGRID/Deploying+GWT+to+Tomcat+in+Eclipse
Reshi, stop and think about how applications really work. Nobody provides web pages with javascript to read/write databases, that would be crazy and unsecure. Servers are always in themiddle of all communication in this case. You need to create services that run inside your server, one of these services will be a database layer.
Javascript cant create network connections and read/write binary data, thus it would be insane to attempt to get the gwt compiler to compile any jdbc drvier and more.
Jetty does NOT stop us from connecting to a database. All you have to do is to follow the MVP model way. Although MVP is better bet against all hurdles, at a minimal point, you would have to try not having SQL code on the client package.