JNBridgePro: Java and .NET interoperability bridge. JNBridgePro: Java and .NET interoperability bridge.

JNBridgePro

Bridge anything Java to .NET, Bridge anything .NET to Java

Calling .NET from Java:  Call .NET Objects

The proxies for the .NET objects in log4net are used exactly as the original objects would be used in .NET. We can now use the .NET classes just as if they were written in Java!

  • Proxies for the .NET classes have namespaces identical to the package names of the original .NET classes. Thus, we simply import the namespaces log4net, and log4net.Config and afterwards can use the names of the .NET classes.
  • Proxies for the .NET classes LogManager, XMLConfigurator, and MDC are used in exactly the same way as the original .NET classes would have been used.
  • The Java class MainClass calls to the logger object log will cause messages to be written to the .NET logging output.

After entering the code, build the project to create the binaries.

Find out more...