corba-to-ejb
"Anoop Ahamad" <[email protected]> Mon, 11 Apr 2005 19:06:09 +0530
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Message-ID | <[email protected]> |
Dear OB-Users,
we are trying communication between corba client and ejb server using a sample, which I referred in http://www.javaworld.com/javaworld/jw-03-2002/jw-0329-corba-p2.html
On the corba client side we are using orabacus and on the Ejb server side it is weblogic 8.1.
1. we generated the idl using
java weblogic.ejbc eai.jar eaiC.jar -idl -idlDirectory ./idl
2. we simplified the generated idl as
#include "orb.idl"
module javax {
module ejb {
custom valuetype CreateException : ::java::lang::_Exception {
#pragma ID CreateException "RMI:javax.ejb.CreateException:048A3675A6FD5463:575FB6C03D49AD6A"
};
};
};
module javax {
module ejb {
exception CreateEx {
CreateException value;
};
};
};
module java {
module rmi {
typedef Object Remote;
};
};
module java {
module io {
typedef any Serializable;
};
};
module eai {
interface CorbaEai : ::javax::ejb::EJBObject {
readonly attribute ::java::util::Collection collection;
attribute ::eai::MyType myType;
readonly attribute ::java::util::Vector vector;
::java::lang::Integer sumObj( in ::java::lang::Integer arg0, in ::java::lang::Integer arg1);
long sum( in long arg0, in long arg1);
#pragma ID CorbaEai "RMI:eai.CorbaEai:0000000000000000"
};
};
module eai {
interface CorbaEaiHome : ::javax::ejb::EJBHome {
::eai::CorbaEai create() raises (::javax::ejb::CreateEx);
#pragma ID CorbaEaiHome "RMI:eai.CorbaEaiHome:0000000000000000"
};
};
module eai {
valuetype MyType {
public long a;
public double b;
#pragma ID MyType "RMI:eai.MyType:7B8145F0C5E7A58C:D2D18E8718275264"
};
};
3. Then we tried to compile idl interfaces using orabacus as
c:\idl CorbaEai.idl
but it is giving error as
CorbaEai.idl:1: orb.idl: No such file or directory
CorbaEai.idl(5): error: `::java::lang::Exception' undeclared
CorbaEai.idl(40): error: `::javax::ejb::EJBObject' undeclared
CorbaEai.idl(41): error: `::java::util::Collection' undeclared
CorbaEai.idl(43): error: `::eai::MyType' undeclared
CorbaEai.idl(45): error: `::java::util::Vector' undeclared
CorbaEai.idl(47): error: `::java::lang::Integer' undeclared
CorbaEai.idl(58): error: `::javax::ejb::EJBHome' undeclared
Please help us in this regard.
Anoop Ahamad
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html