+ 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;
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).