资 源 简 介
This framework supports Java EE solutions with ASP.NET MVC frontends.
The implementation is divided in Java and C# and controls the communication between them. As the framework generates dynamic proxies, the user is able to make full use of both technologies. The data exchange is binary provided by a web services.
An example of calling a Java EJB in .NET:
public class XYZController : Controller { [JavaNETFacade] // the framework calls the corresponding facade in java private HelloWorldFacade helloWorldFacade; ... public ActionResult HelloAction() { String result = helloWorldFacade.sayHelloTo("Java.NET"); ... } }
Here is the corresponding EJB:
```
@Stateless
@LocalBean
public class HelloWorldFacade
{
public String sayHelloTo(String name)
{
return "Hello, " + name;
}
}
```