cancel
Showing results for 
Search instead for 
Did you mean: 

Payload Extraction

former_member529475
Active Contributor
0 Kudos

Hi Frnds,

We developed one Java Program by name payloadExtraction.java and currently we are using in our scenario thru imported Archive. we imported the jar file into a given namespace as it is to be used.

Instead of create this function in a standard Java Class in which it could be referenced by any namespace and doesn't need to be imported.

I am not sure as to how I would Implement a Standard Java class where to store it and how to reference it etc.

We also need this functionality to use more complex java maps. that is instead of creating a UDF everytime, we just want to call a standardised java class.

Have you come across a situation like this yet?

Please suggest me..

Regards

Vasu

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

1. Create a base SWCV. Import this .jar file into the Imported Archive of the Base SWCV.

2. All other SWCV's should have be Dependent SWCV's on the Base SWCV.

3. Now, the imported archive can be accessed in any UDF in any message mapping in the dependent SWCV's.

Regards

Bhavesh

former_member529475
Active Contributor
0 Kudos

HI Bhavesh,

Thanks for your quick reply.

How to create a Base SWCV.

Can you eleborate how I developed the scenario that all other SWCV's should have be Dependent SWCV's on the Base SWCV

Thanks & Regards

Vasu

Former Member
0 Kudos

Rao,

Check this weblog:

/people/michal.krawczyk2/blog/2005/08/26/xi-are-you-independentfrom-your-dependencies

---Satish

Former Member
0 Kudos

>>How to create a Base SWCV.

Nothing special. It is the same SWCV which you are using now.

The difference is the new SWCV will contain only the imported java classes.

Now you need to create a dependency in SLD such that the all SWCV is dependent on the SWCV containg java class.

Regards,

Jai Shankar

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

1.The base SWCV is just another SWCV. Create a SWCV on the SLD and import it into IR and improt the Archive uner this.

2.Next, go to the SLD and go to the other SWCV's already created and then create a Dependency in the step 1. You will have an option to define dependency.

3.Reimport the SWCV's of step 2 into the IR after clearing the SLD cache.

The existing objects will not be affected and now you will see a new BASIS Objects option in the reimported SWCV.

Now the imported archive is ready to be shared across SWCV's , across mappings.

Regards

Bhavesh

former_member529475
Active Contributor
0 Kudos

HI Bhavesh

Thanks for your reply...

Apart from using an Imported Archive, would it be possible to add the code to the Java library in XI instead?

Regards

Vasu

bhavesh_kantilal
Active Contributor
0 Kudos

None that i am aware of.

Why do you want to do that though?

regards

Bhavesh

former_member529475
Active Contributor
0 Kudos

HI Bhavesh

Client has asked the possibilities. I also suggested about the dependencies. but he asked is the any other possibilities..

Regards

Vasu

bhavesh_kantilal
Active Contributor
0 Kudos

Do let me know if you fund other possibilites.

Regards

Bhavesh

former_member529475
Active Contributor
0 Kudos

Sure Bhavesh

Thanks for your help...

Regards

Vasu

former_member529475
Active Contributor
0 Kudos

HI Bhavesh

I created 2 SWCV, for example java and test

Now I want to import all jar files in the Java SWCV and use it in the test.

I created the test SWCV dependent for Java SWCV.

After importing into IR, it will not come like

Java

-> Test

Both are imported as seperate SWCV.

any help regarding this

Thanks & REgards

Vasu

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,.

Clear the SLD cache and import both these SWCV's again into IR.

You will find a option Called BASIS OBJECTS in the Java SWCV.

Regards

Bhavesh

former_member529475
Active Contributor
0 Kudos

Thanks Bhavesh

Answers (0)