Skip to Content
author's profile photo Former Member
Former Member

JCoDestination Is not responding

I have provided my code my issue is below code is working on local but when deploy it on production JCoDestination Is not responding after below line, not even error or log.

destination = JCoDestinationManager.getDestination("mySAPSystem");

check my code once -

public class SapTest {

private static JCoDestination destination=null;
private static String DESTINATION_NAME1 = "mySAPSystem";

public static void main(String[] args) {

Properties connectProperties = new Properties();
connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, "xxx.xx.xx.xx");
connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR, "xx");
connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "xxx");
connectProperties.setProperty(DestinationDataProvider.JCO_USER, "279824");
connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "xxxxxxx");
connectProperties.setProperty(DestinationDataProvider.JCO_LANG, "EN");

createDestinationDataFile(DESTINATION_NAME1, connectProperties);

try {

destination = JCoDestinationManager.getDestination("mySAPSystem");

destination.ping();

}catch (JCoException e) {
e.printStackTrace();
}

}

private static void createDestinationDataFile(String destinationName, Properties connectProperties) {

File destCfg = new File(destinationName+".jcoDestination");
try
{
FileOutputStream fos = new FileOutputStream(destCfg, false);
connectProperties.store(fos, "for tests only !");
fos.close();
}
catch (Exception e)
{
throw new RuntimeException("Unable to create the destination files", e);
}

}

}

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.