on 01-16-2007 4:10 AM
Hi All,
I have written a Java mapping class. Can somebody tell me the process of uploading it as an imported archive? How should the jar/zip be made? Is any other file (like manifest, classpath etc) apart from the java class is required?
Thanks,
Sandeep
Hi Sandeep,
Java Mapping is one of the mapping techinuqe which xi supports,
There are few steps which you need to follow while doing java mapping.
Steps:
1)you need to use any parsing Technique either DOM Or SAX.
2)Develop your java class with out main method in Netweaver Developer stdio.
3)Need to create a jar file in the Cmd(commond line promot.
Commond for creation of jar cf name.jar filename.class
4)import your jar file in to IR.you can see Imported Objects under software component.Right click on the Imported Object and select New and enter the name and browse your jar file and select the corresponding jar file which you created and click save and activate.
5)when you are doing Interface Mapping you need to select as Java calass and select the Mapping program and after the process is same as normal.
If you have any doubts please let me know I can very welcome to receive your queries.
Thanks and Regards,
Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
JAR files are packaged with the ZIP file format, so you can use them for tasks such as lossless data compression, archiving, decompression, and archive unpacking.
The Jar tool provides a u option which you can use to update the contents of an existing JAR file by modifying its manifest or by adding files.
The basic command for adding files has this format:
jar uf jar-file input-file(s)
Just create a jar file with class .path and upload it using the Import Archieve in the repository.
Just look at the links in the above Posts.
Regards,
Gunasree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandeep,
check this link :
<u>creating jar file:</u>
http://java.sun.com/docs/books/tutorial/deployment/jar/build.html
The content of the jar file have to be all classes and libraries you need for the mapping program to run and which r not part of the J2EE installation.No need to bind the libraries aii_map_api.jar etc,as they r part of the standard J2EE installation.
Go to repository and under your s/w component and namespace create a new mapping object 'Imported archive'.Inside this object upload the jar file.
create a new mapping object 'interface mapping',choose the interfaces you want to map and attach the mapping to the request or response,use 'value help' and choose 'java class' with corresponding mapping.
After saving and activating the change list,you will be able to use the mapping in the integration directory.
For more info:
http://java.sun.com/webservices/docs/1.1/tutorial/doc/
/people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii
Hope it will be helpful.
Cheers,
Prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
create a jar file for your java mapping files and create an Imported Archive object under mapping objects and upload this jar file you created earlier.
--Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.