cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy Java appliaction on Portal?

Former Member
0 Kudos

hi

I have made a Java application(proxy classes) in NWDS which is on sm other standalone PC .The Java application has a code access BAPI in R/3 system thru proxy classes.

The problem is that hw to deploy that application on Portal and see the results on portal.And how to configure path for JCO connection in Portal.Please help me on this problem.

Regards

Nidhideep

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nidhideep,

Select the Portal application you have developed in the NWDS. Right click and in the context menu there is a export command. Click on that and move forward after some screens you get the check box Deploy the Par file.Check this check box and under that there is a table in that configure your current EP system details and say Deploy.Or Create the par file without deploying here and then the jar file can be uploaded from "Portal Archive Deployer&Remover" of Java Developer role.

I did not do any configuration at server level to connect to the system.But SLD should be configured to the system you want to connect.

Hope this helps.

Regards,

ND.

Former Member
0 Kudos

hi ND

Thank u for such a positive response.I have done as u described.I have also configured on portal the R/3 server.

I have made the .jar file of my java application and uploaded in Portal .But promblem arises when i make iview in content administration .I select SAP RFC iview when asked for.As result a iview Function finder opens up and asks for Function Group and Function name (to reterive data) .But a confusion arises wht will be the function name as that function i have declared in my application.

The following is the code of my application:

package mypackage;

import mypackage.util.*;

import com.sap.aii.proxy.framework.core.*;

import com.sap.mw.jco.*;

import java.sql.Date;

public class MyMainClass {

public static void main(String[] args)

throws ApplicationFaultException, SystemFaultException {

JCO.Client jcoclient =

JCO.createClient(

"CLIENT",

"USER",

"PASSWORD",

"LANGUAGE",

"SERVER",

"SYSTEM",

"GROUP");

jcoclient.connect();

Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();

BapisfldstType fromAirport = new BapisfldstType();

BapisfldstType toAirport = new BapisfldstType();

fromAirport.setAirportid("JFK");

toAirport.setAirportid("FRA");

BapisfldraType dateRange1 = new BapisfldraType();

dateRange1.setSign("I");

dateRange1.setOption("BT");

dateRange1.setLow(Date.valueOf("2002-10-01"));

dateRange1.setHigh(Date.valueOf("2003-01-01"));

BapisfldraType dateRange2 = new BapisfldraType();

dateRange2.setLow(Date.valueOf("2003-06-01"));

dateRange2.setHigh(Date.valueOf("2003-11-01"));

dateRange2.setOption("BT");

dateRange2.setSign("I");

BapisfldraType_List dateRangeList = new BapisfldraType_List();

dateRangeList.addBapisfldraType(dateRange1);

dateRangeList.addBapisfldraType(dateRange2);

input.setAirline("LH");

input.setDestination_From(fromAirport);

input.setDestination_To(toAirport);

input.setDate_Range(dateRangeList);

MyProxy_PortType myproxy = new MyProxy_PortType();

myproxy.messageSpecifier.setJcoClient(jcoclient);

Bapi_Flight_Getlist_Output output = myproxy.bapi_Flight_Getlist(input);

jcoclient.disconnect();

BapisfldatType_List list = output.get_as_listFlight_List();

int listsize = list.size();

for (int i = 0; i < listsize; i++) {

BapisfldatType elem = list.getBapisfldatType(i);

System.out.println(

"Date: "

+ elem.getArrdate()

+ '\t'

+ "Arrive: "

+ elem.getArrtime());

}

}

}

And I have given only Client,User,Password,language in the code.Will it work?

Please help me on this problem.

regards

nidhideep

Former Member
0 Kudos

There are two ways to deploy the application in EP. ie in the WAS where Ep instance in running or provide a url iview to the J2ee application and use in in the page. you can also use the appintegrator iview to link to your java application and if you have a login page you can achieve SSO also through the available URL mapping template.

REgards,

Ramesh

Award points for useful answers.