Hi Guys,
I am following the steps detailed in "DFS Development Guide ver 6.6 and Chapter 4 - Consuming DFS with the Java DFS Productivity Layer - Page 43"
I am using Local Java DFS consumer approach. I have a question about IServiceContext creation and using it.
[code]
ContextFactory contextFactory = ContextFactory.getInstance();
IServiceContext serviceContext = contextFactory.newContext();
RepositoryIdentity repoId = new RepositoryIdentity();
repoId.setRepositoryName("sap_dv");
repoId.setUserName("user");
repoId.setPassword("password");
serviceContext.addIdentity(repoId);
[/code]
I will be having a service user to connect to the repository. I want to know how to reuse same IServicecontext object with out creating new sessions at the repository.
Any thoughts or code snippets will be helpful?
-Prakash