<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Knowledge Base: J-Integra : J-Integra for .NET : HOWTO</title><description>Knowledge Base: J-Integra : J-Integra for .NET : HOWTO RSS 2.0 Feed</description><link>http://j-integra.intrinsyc.com/support/kb/</link><webMaster>j-integra_support@intrinsyc.com</webMaster><lastBuildDate>Sat, 18 Apr 2026 14:02:13 GMT</lastBuildDate><ttl>20</ttl><generator>Knowledge Base: J-Integra</generator><item><title>How To Access Weblogic Server 9/10 EJB from C# Client</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183245</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;TABLE cellSpacing=0 width="100%" cellpading="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=bottom&gt;&lt;H2&gt;How to Access EJB on Weblogic Server 9/10 from C# Client&lt;/H2&gt;&lt;/TD&gt;&lt;TD vAlign=top align=right&gt;&lt;A href="http://j-integra.intrinsyc.com/products/com/" target=_blank alt="Java/J2EE COM Interoperability Products Page"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Use this example as a guideline to show you how to access your Enterprise Java Beans (EJB) from a .NET client, using J-Integra for .NET. This example could be deployed on BEA's Weblogic 9.1 or 10.0 Application Server.&lt;/P&gt;&lt;P&gt;Note: For a more detailed step-to-step instruction, please refer to &lt;A href="http://j-integra.intrinsyc.com/support/net/doc/#examples/bea_weblogic_81_http/index.html"&gt;this Access EJB on Weblogic 8.1 from .NET Client&lt;/A&gt; example.&lt;/P&gt;&lt;P&gt;To run the example, follow these directions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Download the attachment below (bea_weblogic_91_http.zip)&lt;/STRONG&gt;, and unzip it into any folder of your choice.&lt;/LI&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;LI&gt;&lt;STRONG&gt;Run Janetor to Configure J-Integra for .NET&lt;BR&gt;&lt;/STRONG&gt;&lt;BR&gt;Use Janetor tool open the \java_server\janet.xml configration file. All settings in Janetor should be already set, the only thing you need to do is to &lt;A href="http://j-integra.intrinsyc.com/support/net/doc/#license/index.html"&gt;install your own J-Integra for .NET license&lt;/A&gt; before your test.&lt;/LI&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;LI&gt;&lt;STRONG&gt;Generate a Web Application aRchive (WAR file)&lt;BR&gt;&lt;/STRONG&gt;&lt;BR&gt;In Janetor, go to "File - Export web application archive". The screenshot below shows the Export web application archive window. See the &lt;A href="http://j-integra.intrinsyc.com/support/net/doc/#janetor/index.html#create_war"&gt;documentation for Janetor&lt;/A&gt; for a description of all the fields. Make sure you select the correct ejb20_basic_beanManaged_client.jar from the downloaded example. Change Output file as necessary.&lt;BR&gt;&lt;BR&gt;&lt;IMG hspace=0 src="http://j-integra.intrinsyc.</description><pubDate>Fri, 27 Jun 2008 10:01:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item><item><title>How to Access .NET Event from Java</title><link>http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183233</link><description>&lt;B&gt;Abstract:&lt;/B&gt; &lt;TABLE cellSpacing=0 width="100%" cellpading="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD vAlign=bottom&gt;&lt;H2&gt;How to Access .NET Event from Java&lt;/H2&gt;&lt;/TD&gt;&lt;TD vAlign=top align=right&gt;&lt;A href="http://j-integra.intrinsyc.com/products/com/" target=_blank alt="Java/J2EE COM Interoperability Products Page"&gt;&lt;/A&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;There are two ways to access .NET event from Java Clients:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Registering the event listener (Java way to access event)&lt;/LI&gt;&lt;LI&gt;Using .NET events (actual .NET events) from Java, wrapping .NET events using a delegate and an equivalent interface exposed to Java&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We suggest using the first way to access .NET event, because it treats the .NET event as a normal Java event (add/remove event listener). The second way involves a wrapper class around the class using the events. It’s a little rough around the edges but it works.&lt;/P&gt;&lt;P&gt;Note: for the attached examples, please use Janetor tool to install your J-Integra for .NET license before your test. You can find the janet.xml for each test in \java_client directory after you unzip the attached examples.&lt;/P&gt;&lt;H2&gt;1. Registering the event listener &lt;/H2&gt;&lt;P&gt;Please find the attached &lt;STRONG&gt;java_csharp_event.zip&lt;/STRONG&gt; for this example.&lt;/P&gt;&lt;H5&gt;A. Write the .NET Server with event handler:&lt;/H5&gt;&lt;TABLE style="WIDTH: 693px; HEIGHT: 663px" cellSpacing=10 cellPadding=0 bgColor=#dddddd border=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;PRE&gt;using System;&lt;BR&gt;using System.Runtime.InteropServices;&lt;BR&gt;using System.Collections;&lt;/PRE&gt;&lt;PRE&gt;namespace csharp_server&lt;BR&gt;{&lt;BR&gt; public class Factory : MarshalByRefObject&lt;BR&gt; {&lt;BR&gt;  private ArrayList listeners;&lt;BR&gt;  public Factory()&lt;BR&gt;  {&lt;BR&gt;   Console.WriteLine("Factory Created...");&lt;BR&gt;   listeners = new ArrayList();&lt;BR&gt;  }&lt;BR&gt;  public void addMyEventListener(ITestListener l) &lt;BR&gt;  {&lt;BR&gt;   listeners.Ad</description><pubDate>Tue, 16 Jan 2007 02:51:00 GMT</pubDate><dc:creator>J-Integra KB Admin</dc:creator></item></channel></rss>