function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sauravsharma001sauravsharma001 

Can we access the salesforce database through java code?

Dhaval PanchalDhaval Panchal
You want javascript for VF page (in salesforce) or out side of salesforce?
Code monkey see code monkey doCode monkey see code monkey do

Have a look at the SOAP API for Java:

 

http://www.salesforce.com/us/developer/docs/api/index.htm

http://wiki.developerforce.com/page/Documentation#API

 

Also search my username, I posted a working example here not long ago

 

Hope this helps.

Satish_SFDCSatish_SFDC
There are a lot of ways to achieve this.
Salesforce exposes webservices and you can use these Webservices in your java code.

You should look at either the SOAP API or the REST API.

SOAP: http://www.salesforce.com/us/developer/docs/api/index.htm

REST : http://www.salesforce.com/us/developer/docs/api_rest/

Hope this helps!
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.