|
Comments
|
Today's Top SOA Links
.NET EAServer 6.1 .NET Client Support
Enabling .NET to communicate with EAServer components using IIOP
By: Guoping Zhang
Nov. 5, 2007 11:00 AM
The EAServer .NET client is one of the most important features in EAServer 6.1. This new feature enables .NET to communicate with EAServer components using IIOP. It provides underlying marshaling support for PowerBuilder's WinForm applications with EAServer and it's also a way to interoperate between .NET and J2EE distributed objects.
Note: The ${EAServer6.1} in this article refers to the EAServer 6.1 installed directory.
Overview of .NET Client • NetCompiler - To generate C# stubs for existing components inside EAServer. You can invoke NetCompiler with the batch file, netcc.bat, located in ${EAServer6.1}\bin. To generate stubs for EJB deployed at EAServer 6.1, use the following command: ${EAServer6.1}\bin\netcc.bat ejbjar-${ejb_package_name}
• .NET Runtime Assemblies To provide runtime support for C# stubs to communicate with EAServer such as managing IIOP, SSL, compression, and so forth. The .NET runtime assemblies are located in the ${EAServer6.1}\lib directory. The two libraries of interest in the runtime assemblies are:
Preparing EJB for the C# Client The first method just concatenates yourName with the word "Hello." The second method uses the SQL statement provided to query the default connection cache of EAServer and sends back a java.sql.ResultSet of the query result to the client. After obtaining the ejbjar, you need to deploy it to EAServer. You can deploy the ejbjar using EAServer's Web-based Management Console.
Generating the C# stubs with NetCompiler ${EAServer6.1}\bin>netcc.bat ejbjar-dotnetsample NetCompiler generates both the C# stubs source files and the compiled assemblies. Normally, we don't have to worry about the C# source files since these *.cs files will be compiled and packed inside the output assembly as follows: ${EAServer6.1}\deploy\assemblies\dotnetsample.client.dll
There are two classes inside the assembly that we need to take note of: The C# remote interface and remote home interface names are identical to Java. The interfaces are used for EJB remote stub and home stub. Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||