cancel
Showing results for 
Search instead for 
Did you mean: 

Access Remote SDM

former_member219446
Participant
0 Kudos

Hi All,

Is it possible to access(control) the remote sdm using java program , my request is to deploy ear files in to the remote server using java program, can anybody help me about how can i deploy ear files in to the remote server using java program.

Thanks&Regards

Srinivas

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

HI

You can deploy using Ant Task by writing a Java class . Have a look an this link

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

Hope this helps

regards

rajesh kr

Former Member
0 Kudos

hi,

rajesh .

can i deploy ears to WAS which is in remote system using my own application (java).

regards

Guru

Former Member
0 Kudos

Hi guru

See Pg 13 of the PDF link above which gives an example on programttic deployment. Also you can deploy to any WAS in remote system ,assuming you have rights for deployment ...

regards

rajesh kr

Former Member
0 Kudos

hi ,

can u plz send me the location from where i could download the sample project mentioned in the pdf.

regards,

guru

Former Member
0 Kudos

Hi,

1) Copy SDM folder from Server ( /usr/sap/<SID>/DVEBMGS<instance number>/SDM

2) change the strings "@call "/usr/sap/<SID>/DVEBMGS03/SDM/program\sdm_prep_com.bat" and "%sdm_com% remotegui "sdmhome=/usr/sap/<SID>/DVEBMGS03/SDM/program" for the file "RemoteGui.bat" as per your remote Pc location

EX: if you have copied SDM at c:/SDM

Strings should looks like

@call "c:\SDM\program\sdm_prep_com.bat

"%sdm_com% remotegui "sdmhome=c:\SDM\program"

3)change "sdm.bat" and "sdm_jdk.bat" ( remote PC java location),"sdm_prep_com.bat", "startSDM.bat" and "StartServer.bat"

4) run "RemoteGui.bat" from your Windows PC to run sDM remotly.

Regards,

Srikanth

elena_yaneva
Explorer
0 Kudos

Hi Srinvas,

the batch files that you are using are not the recommended way to deploy locally, because the sdm doesn't keeps track of the deployed via deployment manager items.

You should use the command line. For doc on the topic go to:

<instal dir>\usr\sap\J2E\JC01\SDM\program\doc

You can deploy via command line only locally. If you want to deploy remotely in SDM, you can use the remote GUI:

The SDM Server and

the remote GUI can run on different hosts, however they must be connected by a network

connection. Use the command remotegui to start the remote GUI:

sdm remotegui

Since there is no current separate installation for the GUI, you must perform a complete SDM

installation even if you only want to start the remote GUI on the host.

You can find more doc in <instal dir>\usr\sap\J2E\JC01\SDM\program\doc

Best Regards,

Elena

former_member219446
Participant
0 Kudos

Hi Yaneva,

Thank you very much for your reply.

you are specified that deploy remotely in SDM with the remote GUI:

can you specify how the backend process(how ears are deployed in to the remote server with remote gui)is running,what approach they are followed,is it possible with using java program.

Can you give any help links regarding to deploy ears with remote gui

Thanks&Regards

SrinivasaRao

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Srinivas,

Follow this steps

1. Open the remotegui.bat you will find under the location

C:\usr\sap\J2E\JC00\SDM\program

2.It will ask for password enter the valid passsowrd.

3. You can see four tabs SDM repository, Deployment, Undeployment and logviewer

4. click on deployment tab and click very first button in menu list "Add SCA SDA for deployment List".

5. select your ear file which you want deploy.

6. click next, start deployment and confirm.

You ear file is deployed now

Regards, Suresh KB

Former Member
0 Kudos

hi,

i need develop an application which will instal my software(ears) in remote system by taking IP address of that system.

finally my goal is to develop an application like as RemoteGUI.

pls guide me to do this.

regards

Guru

Former Member
0 Kudos

hi

good

go through this link, which ll give you complete idea about the access remoe sdm.

http://docs.sun.com/app/docs/doc/819-5732/6n7pvl3ag?a=view

thanks

mrutyun^

elena_yaneva
Explorer
0 Kudos

Hello Srinivas,

You can deploy files to remote SDM server using one of the following:

-deploy view in NW

-command line

-SDM GUI

for additional information go to:

usr\sap\<SID>\<Instance_Number>\SDM\program\doc

Best Regards, Elena

former_member219446
Participant
0 Kudos

Hi Yaneva,

Thanks for your response.

I have written following batch file to start sdm server in the localsystem.

Now my requirement is to start(access) the remote sdm server how can i write batch file for that.

if EXIST "c:\usr\sap\J2E\JC00\j2ee\deploying\deploymanager.bat" goto CONTC

if EXIST "d:\usr\sap\J2E\JC00\j2ee\deploying\deploymanager.bat" goto CONTD

goto END

:CONTC

cd\

c:

cd\

cd c:\usr\sap\J2E\JC00\SDM\program

startserver

goto END

:CONTD

cd\

d:

cd\

cd d:\usr\sap\J2E\JC00\SDM\program

startserver

goto END

:END

how to write batch file to access the remote sdm server.

Thanks&Regards

Srinivas