Deploying to JEE using Java API | Community
Skip to main content
DarrenBiz
Level 6
March 21, 2016
Solved

Deploying to JEE using Java API

  • March 21, 2016
  • 5 replies
  • 3057 views

I am trying to use the Java API to deploy application and components with AEM Forms 6.1 but the code that we used previously doesn't seem to be compatible anymore. We copied all the new libraries from the JEE SDK directory and the application compiles fine, but just won't deploy anymore.

http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8-7fbe.html

For one, the JNI port on JBoss doesn't seem to be 1099 anymore and I can't find what the DSC_DEFAULT_EJB_ENDPOINT actually is to even connect.

Is there updated documentation on this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by neerav

Please use SOAP endpoint to connect to Forms JEE server. The following properties would need to be setup for your code to work:

Properties connectionProps = new Properties(); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "http://hiro-xp:8080"); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); // This is optional and does not have any effect while SOAP endpoint connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator"); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password"); 

The JBoss instance has been upgraded to 6.2, so the earlier mechanism to connect via EJB no longer works. Connecting via SOAP endpoints does not require application server specific jar files and is not dependent upon EJBs.

5 replies

neeravAdobe EmployeeAccepted solution
Adobe Employee
March 21, 2016

Please use SOAP endpoint to connect to Forms JEE server. The following properties would need to be setup for your code to work:

Properties connectionProps = new Properties(); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "http://hiro-xp:8080"); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); // This is optional and does not have any effect while SOAP endpoint connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator"); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password"); 

The JBoss instance has been upgraded to 6.2, so the earlier mechanism to connect via EJB no longer works. Connecting via SOAP endpoints does not require application server specific jar files and is not dependent upon EJBs.

DarrenBiz
DarrenBizAuthor
Level 6
March 21, 2016

neerava wrote...

Please use SOAP endpoint to connect to Forms JEE server. The following properties would need to be setup for your code to work:

Properties connectionProps = new Properties(); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "http://hiro-xp:8080"); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_SOAP_PROTOCOL); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); // This is optional and does not have any effect while SOAP endpoint connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator"); connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password"); 

The JBoss instance has been upgraded to 6.2, so the earlier mechanism to connect via EJB no longer works. Connecting via SOAP endpoints does not require application server specific jar files and is not dependent upon EJBs.

 

Do you have any sample code for deploying/undeploying applications and components using SOAP protocol?

Adobe Employee
March 21, 2016

The code would remain the same (as you were using earlier). The only change would be in a couple of properties used to setup Service Client Factory.

DarrenBiz
DarrenBizAuthor
Level 6
March 21, 2016

Thanks neerav

Level 2
June 13, 2017

I have tried the ejb-mode on jboss with  connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "remote://localhost:4447"). Seems to work on  the OutputClient.