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
Ramon PereiraRamon Pereira 

How to run an apex method in java

Hello people,

I have the following scenario, I need to create a form of sales force update records in a range of 5 in 5 minutes. The update data will be triggered by another application by WS.
I wonder if in Java I can force the sales force to execute a method for querying another system and get the information.

Note: I already have the code written in Apex that implements this functionality. Did assiona it automatically by an application in java.

Anyone have ideas how to solve this problem?

Thank you;
Here-n-nowHere-n-now
You can declare your method to be webService so it can be invoked by SOAP, or set up the class to be a REST resource (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_rest_code_sample_basic.htm).