Layer7 API Management

Expand all | Collapse all

Using Jar file in Layer 7

Jump to Best Answer
  • 1.  Using Jar file in Layer 7

    Posted 04-17-2015 08:37 AM

    Hi

     

    Can someone guide as to how can we integrate a .jar file in Layer 7 and use the methods from the jar?



  • 2.  Re: Using Jar file in Layer 7

    Posted 04-17-2015 09:50 AM

    Hello Mansee,

     

    I'm not aware of a way to upload a Jar and utilize methods from that jar, but i do know we offer a way to build you own 'Custom Assertions' utilizing our Custom Assertion SDK. This may get you headed in the right direction.

     

    You can get a copy of this on the Support Portal. Here is a screenshot of my search and file.

    devKitPic.png



  • 3.  Re: Using Jar file in Layer 7

    Posted 04-20-2015 02:10 AM

    What exactly would this custom assertion do? Would i have to mimic the methods of the jar file in this assertion or would i have to write a custom assertion to read the jar file?



  • 4.  Re: Using Jar file in Layer 7

    Posted 04-20-2015 10:14 AM

    So Back to Derek's point, what do these methods do? As we have a lot of customers and seen a lot of use cases. Our Tactical team has developed Custom Assertions for very specific use cases and more general ones, and depending on what you are trying to accomplish with these 'Methods', we may have a potential solution for you already.



  • 5.  Re: Using Jar file in Layer 7

    Posted 04-21-2015 01:37 AM

    Aaaak okay. I get it now.. So the Jar has methods to create a digital signature using the incoming parameters. We would need to pass the required parameters in the jar method and as an output we would get back the signed data.



  • 6.  Re: Using Jar file in Layer 7

    Posted 04-24-2015 11:08 AM

    Using the default assertions you are able to sign the messages coming in. Was there a specific reason you couldn't accomplish this within policy? If you give us a little more detail on the signature, someone may be able to get you going in the right direction.

     

    thanks Mansee,

     

    Doyle



  • 7.  Re: Using Jar file in Layer 7

    Posted 04-24-2015 02:42 AM

    Hi Doyle/Derek

     

    Were you able to find out the custom assertion for the jar method? Or any other way of integrating the jar with layer 7? Its a little urgent so any help would be more than appreciated



  • 8.  Re: Using Jar file in Layer 7

    Broadcom Employee
    Posted 04-24-2015 09:44 AM

    Mansee

     

    I'm sorry I'm a little lost, what exactly are you referring to when you say jar method?

     

     

     

    Sent from my iPhone



  • 9.  Re: Using Jar file in Layer 7

    Posted 08-09-2016 09:31 AM

    Hey Doyle_Reece,

     

    I'm trying to locate the CustomAssertion Dev Kit throughout the new downloads site with our Site ID. I couldn't locate it anywhere though . Would you be able to help me get to it?

     

    Thanks,

    Gian



  • 10.  Re: Using Jar file in Layer 7

    Posted 08-09-2016 02:55 PM

    Hey Gian,

    Long time no talk ;

     

    I found 9.1 Dev kit on the new support site via the following ( API Gateway Essentials - MULTI-PLATFORM ),

     

    Product.png

     

    Once you hit go, the following screen comes up,

    product2.png

     

    Hope this helps,

     

    Doyle



  • 11.  Re: Using Jar file in Layer 7

    Broadcom Employee
    Posted 04-17-2015 11:22 AM

    Hi

     

    What exactly are you trying to do with this jar file?

     

    What jar file are you trying to place into the gateway?

     

     

    Thanks,

     

    Derek Orr

     

    CA Technologies |885 West Georgia Street Ste 500 | Vancouver, BC V6C 3G1

    Office: 1-778-328-5285 | Mobile: +1 778 980 0029 | Derek.Orr@ca.com

     

    <mailto:>[CA]

     

    <http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[Google]<https://plus.google.com/CATechnologies>[Slideshare]<http://www.slideshare.net/cainc>



  • 12.  Re: Using Jar file in Layer 7

    Posted 04-20-2015 02:08 AM

    Hi

     

    Its just a regular jar file with some methods which we want to call by passing the required parameters. But we are unsure where and how to place the .jar file in the gateway. And what assertion needs to be used to access the methods of the jar? Any idea bout this?



  • 13.  Re: Using Jar file in Layer 7
    Best Answer

    Posted 04-24-2015 04:34 AM

    Hi Mansee

     

    I will try and elaborate further on what everybody else is saying.  There is no functionality in the gateway to call methods from a class contained in a jar file directly from a policy, ie it is a bit more involved than simply dropping the jar file onto the gateway's class path and enabling the call.  As mentioned earlier in this thread the gateway functionality can extended by writing custom assertions, these are hand written java code built using a supplied 'Custom Assertion SDK'  that can be deployed on the gateway in order to extend the functionality beyond the shipped assertions.  Using this you could wrapper the class's methods in a custom assertion and deploy it to the gateway, thus providing the logic in the jar via a assertion statement that can be called from a policy.

     

    Chris



  • 14.  Re: Using Jar file in Layer 7

    Broadcom Employee
    Posted 04-24-2015 09:45 AM

    Chris

     

    Great job!

     

    Sent from my iPhone