cancel
Showing results for 
Search instead for 
Did you mean: 

Automated deployment

Former Member
0 Kudos

Is it possible to automate the deployment of a jdbc driver?

I am interested in automatically deploying applications to the Java EE 5 application server. I have been able to deploy an application (.ear) and a standalone datasource with an ant task. However, I cannot start the datasource or the application because they rely on an external jdbc driver which I cannot seem to deploy outside of the Netweaver Administrator.

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Jay,

Welcome on SDN!

Have you made use of the DEPLOY telnet command in your script for deploying the application and data source? Maybe you can do something similar with the DEPLOY_JDBC_DRIVER command? Check <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7bb9751d-0e01-0010-febd-c3adce2c408c">this</a> document (page 16) for some tips about that.

Hope it helps!

-Vladimir

Former Member
0 Kudos

Hi Vladimir,

Sorry for the delayed response, but I have been dealing with several more significant issues trying to add support for SAP-WAS.

Anyway, I am actually doing a remote deploy using the DeployManagerImpl class accessed by way of an ant script. Is there any documenation on this feature? Javadoc? I was wondering if I could use the deployLibrary method but I am having problems getting it to work.

-Jay

Vlado
Advisor
Advisor
0 Kudos

Hi Jay,

DeployManagerImpl is an internal implementation class (you should have guessed that by its name) - it's not part of any public API, hence there's no documentation on this "feature". Actually, I don't think the approach of using a server implementation class that you've chosen is a good one.

-Vladimir

Former Member
0 Kudos

My code actually makes calls through the DeployManager interface. The DeployManagerImpl class is the implementation class. For example:

DeployManager dm = new DeployManagerImpl();

We have a need to do programmatic deployments remotely. This affords the most flexibility and also was easy to implement. My starting point was from the following sap documentation - Example 2 - Programmatic Deployment:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a76...

I have successfully deployed ear files with thier respective datasources, jms factories and destinations using the DeployManager interface. However, I have not been able to deploy a jdbc library using the deployLibrary() methods of the DeployManager interface.

Based on the fact that there is a document describing this method, I assumed this was a supported public interface that might have some related javadoc.

If this is not the right way to do this, do you have any suggestions? Or is there better documentation on the DeployManager interface? Some javadoc?

Vlado
Advisor
Advisor
0 Kudos

The documentation you reference is about SAP Web AS 6.40 and is not relevant to the Java EE 5 preview version. The document also contains a disclaimer:

"There is no official support for the introduced approaches as to the deployment will be extensively refactored in SAP Web AS releases higher than 6.40. ANT Task for deployment will then be shipped right away and J2EE 1.4 compliancy will support the use of third party deployment tools as postulated in the J2EE Application Deployment Specification (JSR 88)."

You can find the scripts in C:\SAP\JP1\JC00\j2ee\deployment. They can be used for deploying Java EE compliant deployment units. However, the only way I can think of to automate the deployment of a JDBC driver is if you can somehow make use of the DEPLOY_JDBC_DRIVER telnet command mentioned above.

Former Member
0 Kudos

Just out of curiosity: is there anything planned to support Maven?

Former Member
0 Kudos

For those who want to try Maven for their software projects I wrote a very simple plugin to deploy EARs: <a href="http://www.echoping.de/maven-sdm-plugin/">http://www.echoping.de/maven-sdm-plugin/</a>

It is based on the SDM API.