Hi Peter,

There aren't any docs for configuring CMP beans on OpenEJB's site yet.
As you noticed, we are using castor in our CMP container, all cmp config
files are all castor controlled files.  You should be able to get
information on Castor's mapping files on their website (www.castor.org).
There is no difference between configuring an entity bean than with any
other java object, so anything you learn about Castor's config files
will be applicable.  I would hop onto their mailing list if you have
trouble with the syntax of the Castor config files.

On the topic of Stubs and Ties, we have a server (an adapter really)
that can make beans accessible over a CORBA ORB.  If you use that, you
do need stubs and ties (a tie is like a skeleton).  We don't support it
or test on it at the moment as it is being completely re-written.  I say
it's more of an adapter because it just consists of a little glue to
allow you to embed OpenEJB inside OpenORB.  OpenORB is really the
"server", not our glue.  Again, it's being re-written.

OpenEJB is a container system that can be plugged or adapted into other
products or server.  We have three server implementations of our own so
far.

Local Server (aka IntraVM) -- Allows clients in the same VM to access
the container system directly.  This is a mandatory server as it is what
we use when one bean accesses other beans.  It also supports non-bean
access, so you can use it in your applications when you want to run
OpenEJB in the same container system.  This "server" is over two years
old.

Remote Server -- Allows people to run OpenEJB as a standalone server and
access beans remotely over a network.  When you use the "openejb start"
command, you are starting the Remote Server.  This server uses
dynamically generated proxies, so no stubs or ties are required on the
server or client sides.

CORBA Adapter -- Exports remote and home interfaces as Stubs and Ties
into a CORBA ORB implementation.  Currently only supports OpenORB, but
the whole thing is being re-written to perform better and be capable of
using any valid ORB implementation.  It does require stub and tie
classes on the server and client sides.  It uses the RMI-IIOP protocol
to communicate over the network.

An interesting note, when you use the deploy command, it deploys the
bean into the container system itself.  You can then access the bean
through the any of the servers above.

David

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf 
> Of Peter Molettiere
> Sent: Tuesday, August 13, 2002 4:17 AM
> To: [EMAIL PROTECTED]
> Subject: [OpenEJB-user] castor, cmp, and open-ejb
> 
> 
> 
> So, I'm getting deeper into open-ejb, and finding that it seems to be 
> very tightly coupled with castor. In fact, it seems that the cmp 
> implementation is actually part of castor. As it turns out, there's a 
> note in the castor documentation saying "Enterprise JavaBeans CMP -- 
> TBD". Are there docs explaining the interface between open-ejb and 
> castor? Hopefully something a little higher level than the javadocs?
> 
>  From what I can gather, in order to implement CMP beans, you 
> need to do 
> the following:
> 
>    * setup the castor database config file for the database connection
>    * write the castor mapping.xml file to map tables to beans
>    * write your *Bean, *Home, and *Object classes and interfaces
>    * write the ejb-jar.xml file
>    * package the bean classes and ejb-jar.xml file into a 
> bean.jar file
>    * deploy the bean.jar file into the open-ejb server
>    * write/compile/execute your client code.
> 
> Does this seem correct? Am I missing anything? How about 
> generating the 
> RMI stubs and skeletons for distributed access?
> 
> Any help appreciated.
> 
> I'm trying to wrap this whole process in an application which 
> takes an 
> xml file describing the database config and schema, and generates 
> appropriate open-ejb config files, bean .java sources, and 
> ant build.xml 
> file to implement cmp entity beans for the whole db schema. Yes my 
> mother always told me to keep my mouth closed while chewing. :)
> 
> --Peter
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online 
> job board for high-tech professionals. Search and apply for 
> tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31
> _______________________________________________
> http://OpenEJB.sf.net
> OpenEJB-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/openejb-user
> 



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to