Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 7th, 2005, 06:57 PM
Registered User
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Java class from C#


I am working on a project which allows Java classes to be used from C#. We are doing this by using .NET remoting using Runtime bridging for communication between the two platforms.

Well one of the imp. module of our project is proxy generator tool.

Proxy-Generator Tool:
The Proxy-generator tool generates proxy classes for the actual Java classes. These proxies act as interfaces between the .Net code and the Java classes. The .Net code only accesses these interfaces that run in the CLR thus making Java objects appear as CLR components. Input to the proxy generator tool will be the Java classes to be used in .Net either as individual files or in a JAR file. For each individual class, the tool will generate a .Net based proxy class with the same name as the original Java class and the methods in each proxy will correspond to the methods in the actual Java class. All generated proxies will be written out to a .Net DLL, a reference to which will be added to the .Net side code. Both Java and .Net have API’s designed to create proxy classes. However certain modifications will be needed to generate .Net based proxies for Java classes.

Well the problem we r facing is that how we can create the proxies for the acutal Java classes. And what information will be stored in this file. Coz we cant use the proxies generated by the .NET Remoting we need a custom generator. If some one knows what the .net remoting proxies are and what they actually contain then that might help us a lot. Coz we have to do something similar to that.

Time to play the GAME!

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert class to java file HumaMunir Java Espanol 10 January 27th, 2011 09:44 AM
Java Best Practices Class gxp Spring 0 August 21st, 2008 06:02 PM
Java Gui (Reload Class) Axar Java GUI 0 June 10th, 2006 05:35 PM
java class edit mode mateenmohd Java GUI 2 March 8th, 2004 06:31 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.