Git Product home page Git Product logo

Comments (11)

harsha89 avatar harsha89 commented on August 18, 2024

@giuffresoft79 were you encounter any issue?

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

I wanted just to understand if indeed the APIAuthenticationAdminClient class is used in production with reference to the stub module of gateway or not. But it seems strange.

The class should refer to APIAuthenticationService in org.wso2.carbon.apimgt.gateway module.

I'm missing something in your architecture?

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

I understand that the implementation is present in these stub modules that in the sources are not distributed. Right? I decompiled one of these jar

from carbon-apimgt.

jaadds avatar jaadds commented on August 18, 2024

Hi Roger,
Let me briefly explain how Services are used in this repo, so that that your concern about circular dependancy will be addressed.

When writing a service we normally follow a code-first approach.
Suppose we need to add a new operation to APIAuthenticationService. So first we'd change the service implementation adding the necessary code. Then we'd obtain the WSDL for the modified service (at the development time, usually this is done by patching the product with the modified jar and starting up the product, but theoretically, you should be able to get this WSDL by dropping the jar in an axis2 container). Once you start the product, you can download the WSDL by accessing service's URL which in this case is https://localhost:9443/services/APIAuthenticationAdminService?wsdl.

Using this WSDL, we'd generate the stubs needed to call that service. It's those WSDL's and the commands to generate the stubs that are located inside carbon-apimgt/service-stubs location. Since those would only depend on an interface definition file, the stubs can be generated any time. But since those are referred by other modules, at build time service-stubs are built at first.
Since the service stubs only depend upon the WSDL, which already is copied to that directory, both the code for the service and the code for the handler which uses that service can reside in the same bundle, i.e - there won't be any circular dependancy.

When building the product (https://github.com/wso2/product-apim), those stubs are copied into the distribution. So at the runtime, both the code and the service-stub are present.

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

then wanting to manage the project in intellij in which command I refer to the compilation of the stub modules?

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

i see this the org.codehaus.mojo plugin in pom.xml

from carbon-apimgt.

harsha89 avatar harsha89 commented on August 18, 2024

You can just import the carbon-apimgt project as a maven project and do the coding. :)
mvn clean install will do the build for you!

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

ok, now i see the maven-antrun-plugin in pom.xml file

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

By changing the phase in maven plugin everything compiles correctly with intellij. Thanks for support

from carbon-apimgt.

giuffresoft79 avatar giuffresoft79 commented on August 18, 2024

In carbon-multitenancy project

i would like to extend JDBCTenantManager class to persist additional fields associated with the tenant recorded in killbill but I am not clear how does instantiate when the factory method is called: TenantMgtCoreServiceComponent.getTenantManager ()

from carbon-apimgt.

harsha89 avatar harsha89 commented on August 18, 2024

Please note this is not a issue in component. Please drop a mail to [email protected] for more details

from carbon-apimgt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.