Re: CORBA with heterogenic system poject



Thanks for ansewr Raymond.
Here is error message i`m receiving when try to run corba java corba client:
c:\Documents and
Settings\Tomek\Pulpit\CORBA\javaidl\account>F:\Tomek\j2sdk1.4.2_08\bin\java
-classpath . AccountClient -ORBInitialPort 14000 -ORBInitialHost Tomek
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
at
com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1105)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:788)
at
com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1186)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1079)
at
com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.java:2436)
at AccountClient.main(AccountClient.java:15)

Uzytkownik "Raymond" <rshen_bea@xxxxxxxxx> napisal w wiadomosci
news:1149223824.938869.21090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Tomek wrote:
Welcome.

I`m trying to prepere some project that shows how to use Corba technology
i
heterogenic systems. I`d like to create CORBA server with Borland Delphi
(or
C#.NET) and few client applications taht comunicate with serwer: J2ME
client for WindowsCE 5.0, c# or Delphi from WindowsXP, some Web
application
using Java and maybe something for Linux system. For few days i`m
looking
for some examples in internet but most of them using only one of
environment
i`d like to use and don`t show how to use it with other. and now i have
few
questions. Any help will be very good:

1. First step i`he tried to do was to obtain comunication between Delphi
CORBA Server (CosNaming example from DEMO\Corba folder in Delphi6) that
use
VisiBroker ORB, and Java client using ORB from JSDK. Unfortunately i
doesn`t
work for me.

I`ve made those steps:

* server and client use ILD definition like this:

interface Account {

float balance();

};

* run Visibroker Smart Agent on server side

* register Account object in VisiBroker Name Service: NameExtF Account
mylog.txt

* run server application

* when i`m using osfind.exe, i see registred Acount object:

osfind: Found one agent at port 14000

HOST: Tomek

* run java client application: java -classpath .
AccountClient -ORBInitialPort 14000 -ORBInitialHost Tomek

in client`s main function is:

ORB orb = ORB.init(args, null);

//!! NamingContext root =
NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));

and in the second line (with !!) it crashes, i`m thingking it`s about
communication with VisiBroker NameService error I don`t know what`s going
on: when i`m trying to connect Delphi client to delhi server evertything
works fine, when i`m trying to connect from java client to java server
that
use ORBD NameService evyrything works OK. when java and delphi should
cooperate - i`t doesn`t work :(.

Maybe you have some ideas what i`m doing wrong. Thanks for any. If you
have
some working examples it will be very useful too.

Hi
Please add a try catch block to find out what problem happens.
Or you should add a "-ORBInitialRef Name=[IOR|URL]" .

I could use here C#.NET based CORBA server. Maybe it will be easier but i
don`t know what ORB use with C#.NET.

2. When comunication between Delphi (or C#) server and java client will
be
working i`d like to implement other client application

and here i have few questions too:

- what ORB use with WindowsCE and J2ME. do you know openfusion jacorb
will
be OK? Maybe you have some examples of using it to comunicate with

some server ORB

- what ORB use with C#.NET. Any examples will be very usefull.

- what ORB use from Linux and C++. Which distribution of Linux use. Any
example will be super.

I commend ACE. www.cs.wustl.edu/~schmidt/TAO.html.


About solutions it`s don`t important to work it quick and effective. Easy
solutions are best for me.

One more time i`m asking help. Thanks for any. Best Regards - gRabbi



.



Relevant Pages

  • java ORB on loopback
    ... we've here a configuration of a C++ server (using omniORB on Linux, ... Suse 8.2 to be precise) and a Java client, ... ORB, connected by CORBA. ...
    (comp.lang.java.programmer)
  • Re: JVM/Java memory footprint
    ... I found that if I use Java for developing the CLI ... application I will be exhausting the memory of our Application Server ... to make the JVM shareable. ... multiple client processes? ...
    (comp.lang.java.programmer)
  • Re: What multi-tier components to use
    ... Enterprise Java Beans. ... > with every change in the parameter list, you could make your new server ... But surely if you have an old client and the interfaces are still valid on ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: CORBA ORB for C#.NET
    ... You might want to take a look at the mono project (its C#, supports CORBA, ... I`d like to create CORBA server with Borland Delphi ... and few client applications taht comunicate with serwer: ... use VisiBroker ORB, and Java client using ORB from JSDK. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Best Programming language for Network programming (serious server application
    ... back to the client. ... So the server needs to be a heavily multi- ... required to display the same on a real-time basis. ... I m wondering of using java for my client application development ...
    (comp.programming)