import ...
public class TriggerJob {
String jobStatus = \"\";
SchedulerMetaData metaData = null;
public void rightNow(HashMap ParamMap){
AnotherProj
Knowing that you using any version of Eclipse, the below steps should help you:
Step #1. Right Click => Project
Step #2. Click Project Properties
Step #3. Click on Java Build Path
Step #4. Click the Projects Tab
Step #5. Click the Add Button
Step #6. Select the Project you want to add
Step #7. Click OK button
Hopefully this help.
You have to open your project properties, then clcik on "Java Build Path" and select the tab "Projects". Add the project from which you want to import your classes and do a rebuild.
I have done like this in my project:
ClientResponse response=WebServiceClient.invokeGRODService("document","get",documentId);
public static ClientResponse invokeGRODService(String classLevelPath, String methodLevelPath,Object request){
> LOGGER.info("invokeGRODService()...Start");
> ClientConfig config = new DefaultClientConfig();
> Client client = Client.create(config);
> WebResource service=null;
> try{
> service = client.resource(UriBuilder.fromUri(AppProperties.getProperty(AppConstants.GROD_REST_SERVICE_URL)).build());
> }catch(PropertyNotFoundException pe){
> LOGGER.error("Error getting the--- "+pe);
> }
> try {
> ClientResponse response = service.path(classLevelPath).path(methodLevelPath).type(MediaType.APPLICATION_XML).post(ClientResponse.class,
> request);
> if (response.getClientResponseStatus() != ClientResponse.Status.OK) {
> String errorResponse = response.getEntity(String.class);
> LOGGER.error("RECEIVED ERROR FROM WEBSERVICE.."+errorResponse);
> }
> LOGGER.info("invokeGRODService()...End");
> return response;
> } catch (Exception e) {
> LOGGER.error("Error while calling GRoD web service: ",e);
> }
> return null;
> }
ClientResponse response = service.path(classLevelPath).path(methodLevelPath).type(MediaType.APPLICATION_XML).post(ClientResponse.class, request);