Going by the jaws dtd
 
<!ELEMENT jaws (datasource?,type-mapping?,debug?,default-entity?,enterprise-beans?,type-mappings?)>
 
The datasource is applicable to *ALL* entity beans within the ejb jar and there can be only one of them. Also, there appear to be no tags to override this within each entity bea section of the xml. Correct me if I am wrong! You could still deploy the other ejb in a separate jar.
 
Vinay Menon

----- Original Message -----
From: Rafael S. V. Guimar�es
Sent: Saturday, April 28, 2001 9:23 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Can i use more than 1 datasources for CMP? How?

Hi,

I can one datasource (in jaws.xml) and my cmp-entity bean will use it.
But i have another cmp-entity bean that i want conect to other database
(this another bean is connecting the first datasource).

How can i configure jboss (jaws) for this? How can i associate may
entitybean to this another datasouce?

I'll appreciate an explanation.

----------------------------------------------------------------------------
-----
Rafael Sim�es Vieira Guimar�es
Programador
Conselho Regional de Medicina de Santa Catarina
----------------------------------------------------------------------------
-----
E-mail : [EMAIL PROTECTED]
Home-page : http://www.cremesc.org.br
Fone/fax : +55 48 223-5122
Endere�o : Av. Rio Branco, 533, 2o. andar
CEP 88015-200 - Florian�polis - SC - Brasil
----------------------------------------------------------------------------
-----
----- Original Message -----
From: "Coates, David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 3:34 PM
Subject: RE: [JBoss-user] MBean access via JNDI - How to?


> My service starts up a stream of real-time telemetry data flowing from the
> Space Station.  When our ground engineers have a need to do some analysis
of
> on-orbit systems they will want to start up this data flow so that the
data
> will be available all over the Boeing-NASA intranet for analysis.  I want
to
> provide a web interface for them to control the data flow service.  So
that
> they can control where the data flows to, start it, stop it, redirect it,
> etc...
>
> Is this not an appropriate job for an EJB?  If there's a better way to do
> this I'd love to know about it.  Open to any input.
>
> Thanks,
> David Coates
> The Boeing Company
> Mission Support Data Systems, International Space Station
>
>
> -----Original Message-----
> From: David Jencks [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 9:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] MBean access via JNDI - How to?
>
> Hi,
> Out of curiousity, what kind of thing does your mbean do? How is it
> appropriate for an ejb to be controlling it?
>
> Waiting for the expansion of my horizons,
> david jencks
>
> On 2001.04.26 15:23:21 -0400 "Coates, David" wrote:
> > I have a custom MBean that adds a service to my JBoss container.  Now I
> > want
> > to be able to control that MBean/service from an EJB.  For example send
> > it
> > start(), stop(), restart(), or getStatus() messages.  My basic goal is
to
> > be
> > able to provide a web interface for my users so that they can monitor
the
> > service that the MBean provides, as well as shut it down, restart it,
> > etc...
> >
> > I see that the documentation says that the best way to make an MBean
> > available to your EJBs is to make it available via JNDI.  What is the
> > best
> > way to do this?
> >
> > Obviously, I need the EJBs to interact with the original instance of my
> > MBean and not a copy of it recreated via serialization.  So is it
> > possible
> > to use javax.naming.Reference and just bind that to the JNDI tree, or do
> > I
> > have to set up a RMI registry and bind an entire registry to JBoss's
> > existing JNDI directory, or what?
> >
> > I'm using jboss-2.0-FINAL bundled with Tomcat, running on a Win NT box.
> >
> >
> > David Coates
> > The Boeing Company
> > Mission Support Data Systems, International Space Station
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to