Sagewire Logo

JBoss, EJB, JAVA Server, and C++ CORBA Clients

2 Message(s) by 2 Author(s) originally posted in java corba


From: mwallis76 Date:   Tuesday, May 08, 2007
Hello,
I am using JBoss 4.0.5.GA (application server ) to host several
EJB s (3.0), and have now run into a problem with trying to bridge
together a client / server architecture. I am on deck to develop a
server to manage multiple CORBA clients. Starting from a hand-crafted
IDL file , I am responsible for implementing / manaing the server-side
code while another developer works on the client side. I am using the
idlj compiler to generate the server-side files, along with rolling my
own server servant to handle the clients. Clients connect to the
server via a "subscribe" method and disconnect with an "unsubscribe"
method.

Now, I have been able to run this server side implementation by firing
up orbd in separate command window, followed by opening another
command window to start up the server. However, migrating such into
JBoss seems to be a daunting task. I have read over the JBoss
documentation on how CORBA/IIOP invokers can access EJBs, but how does
the EJB know to follow an IDL file? The CORBA clients are expecting a
server to implement the IDL file and now, JBoss is basically saying
dump the IDL file and just supply an EJB with the IIOP invoker
specified in the ejb-jar.xml file.

Backing up to the overall design, this JBoss server also acts a
message listener (using JMS). When messages arrive, the server should
enumerate over the current set of connect clients and invoke a
callback on them about the message that just arrived. I have been
able to do this portion with the CORBA server running in a standalone
application but since I need it in JBoss, I have been unsuccessful on
my attempts.

Any help'd be greatly appreciated.

Thanks,
Michael


From: Yakov Gerlovin Date:   Sunday, July 01, 2007
Hello Michael,

If I have got you right, you successfully implemented a CORBA server and
just want it to run as a part of JBoss.
If this is the case, could you please be more specific what seems to
be a problem? When I needed exactly the same thing, I wrapped the
CORBA server as MBean and it worked great.

Concerning you other question about EJB, following IDL file, I'm not
fully understand what do you mean.

Here is 2 option s for mixing EJB and CORBA:

1. CORBA server that acts as EJB client
This is a preferred option. You'll need to write some code that
translates your CORBA data types into EJB types. In most cases it's
trivial code, but it's not generated. Please note, that in this case
EJBs aren't aware of CORBA and don't need 'to follow IDL'.

2. RMI over IIOP
This means you implement EJB, but you can access it from CORBA client.
This option can not be recommended because of low compatibility,
restrictions on EJB interface and awful IDLs, created by rmic
compiler. In this case IDLs are generated, according your EJB
interface, you can not define IDLs yourself.

HTH,
Yakov



Next Message: "CORBA Explained Simply" book available for free


Blogs related to JBoss, EJB, JAVA Server, and C++ CORBA Clients

Ebooks for Download
318) Javaserver Pages (Covers Jsp 1.2, Jstl 1.0) 2002.pdf. 319) JavaServer Pages 2nd Ed 2002.pdf. 320) JavaServer Pages 2nd Ed 2004.chm. 321) JBoss - A Developer's Notebook (2005).chm. 322) Just Java 2 6th Ed 2004.chm ...

Resume
eg, Borland JBuilder and IBM Visual Age for Java; experience with application servers, eg, BEA Weblogic Server, best practices of distributed computing, Web, thin- versus thick- client, Internet, and intranet, and user interfaces. CORBA ...

Introduction to EJB
This six installment series will guide you through the fundamentals of Enterprise Java Bean (EJB) and how you can run a business method using EJBs as a distributed component technology within the jboss application server. ...

Computer Mix
OREILLY - XML - The Java API for XML Parsing Tutorial.pdf 16-Nov-2006 14:21 1.9M ActualTests Cisco CCIE Lab 6.30-03.pdf 16-Nov-2006 13:55 1.9M J2Ee Jboss Ejb With Eclipse 2003.pdf 16-Nov-2006 14:08 1.9M ...

Actual Tests Cisco & Others
Tutorial For Building j2Ee Applications Using Jboss And Eclipse.chm 16-Nov-2006 14:29 4.4M Tutorial J2EE Enterprise Java Beans.pdf 16-Nov-2006 14:29 2.7M Tutorial J2ME.pdf 16-Nov-2006 14:29 520K UI development with JavaServer ...

Sr. Principal Engineer, Java
3 years of Enterprise Java * Hands on experience * Strong experienced with Enterprise Java Beans, all bean types * Has performance tuned EJB applications * Either JBoss or WebSphere experience 3 years of Java experience * JDK 1.4+ ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional