Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Creating Jar Files

    Posted Tue June 22, 2021 04:01 PM
    Good Afternoon,

    I hope that your day is going well.  How do we create Jar manifests using Visual Studio 2019?  


    Warm Regards,
    Eli

    #CognosAnalyticswithWatson


  • 2.  RE: Creating Jar Files

    Posted Wed June 23, 2021 02:13 AM
    Hi Eli, 

    As far as I know, Visual Studio Code IDE allows you to build a jar file and not Visual Studio 2019 IDE. VS Code is free and you can try that. 

    Regards,

    ------------------------------
    Kiran Passumarthi
    www.linkedin.com/in/kiranpassumarthi
    ------------------------------



  • 3.  RE: Creating Jar Files

    Posted Wed June 23, 2021 01:10 PM
    ...Thanks.  However, within the folder <servername>\Program Files\ibm\cognos\analytics\sdk\java\ there is sample code for Custom Authentication located in <servername>\Program Files\ibm\cognos\analytics\sdk\java\AuthenticationProvider\

    There is no sample code for Custom Authentication located in <servername>\Program Files\ibm\cognos\analytics\sdk\csharp\

    There is no AuthenticationProvider folder located in <servername>\Program Files\ibm\cognos\analytics\sdk\csharp\

    Where can I find the C# code for Custom Authentication {AuthenticationProvider}?

    Continued Regards,
    Eli





  • 4.  RE: Creating Jar Files

    Posted Thu June 24, 2021 12:12 AM
    Hello Eli,

    the Cognos Server runs under Websphere Liberty, which needs JAR files.
    It could load DLL though as seen here.

    Imho you will have to use the Java sample, compile and load that when Cognos starts.

    We have a private repo which has an extended version of the sample code. 
    If you would like to have a peek, send me a msg via email.

    Best regards,
    Ralf

    ------------------------------
    Ralf Roeber
    https://linkedin.com/in/ralf-roeber-470425a/
    ------------------------------



  • 5.  RE: Creating Jar Files

    Posted Thu June 24, 2021 02:34 AM
    Hi Eli, 

    IBM Cognos is built on Java platform and as such many features that require embedding the methods into jvm/jre processes should be built in Java. Authentication is one such feature where the implementation methods should be embedded as part of Cognos processing system itself. Moreover, all java samples do not have corresponding .net versions even where possible; that's because they are only samples. 

    This is what I can derive from my experience and understanding. 

    Also, I would suggest not to use the sample as is for authentication as the samples would not implement robust exception handling, security mechanisms etc that might usually be required in a production setup; you can use them as reference and build upon them.

    Regards,

    ------------------------------
    Kiran Passumarthi
    www.linkedin.com/in/kiranpassumarthi
    ------------------------------