OK..I see what you mean, I was using some code generated from
Sun's deployment tool as a reference...my mistake.

Here is what ended up being all I needed:

<jboss>
<enterprise-beans>
     <secure>false</secure>
     <entity>
       <ejb-name>LoginServletBean</ejb-name>
       <jndi-name>MyLoginServlet</jndi-name>
     </entity>
</enterprise-beans>
<resource-managers>
    <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
       <res-name>jdbc/JBossDB</res-name>
       <res-jndi-name>MSQLDB</res-jndi-name>
    </resource-manager>
</resource-managers>
</jboss>

Thanks to everyone who helped me with this!

Daren


On Tue, 10 Apr 2001, Scott M Stark wrote:

> Because that is the format of the jboss.xml file according to the jboss.dtd.
> Where are you seeing that ejb is a valid child of the enterprise-beans element
> for a jboss.xml descriptor?
>
> ----- Original Message -----
> From: "Daren R. Sefcik" <[EMAIL PROTECTED]>
> To: "Scott M Stark" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 10, 2001 12:49 PM
> Subject: Re: [JBoss-user] Need Help Connection Pools (can't see zip files)
>
>
> > On Tue, 10 Apr 2001, Scott M Stark wrote:
> >
> > > The problem is that you need to use this:
> > >     <enterprise-beans>
> > >         <session>
> > >             <ejb-name>LoginServletBean</ejb-name>
> > >             <resource-ref>
> > >                 <resource-name>MSQLJDBC</resource-name>
> > >                 <res-ref-name>jdbc/MSQLDB</res-ref-name>
> > >             </resource-ref>
> > >         </session>
> > >     </enterprise-beans>
> > >
> > > rather than:
> > >
> > >     <enterprise-beans>
> > >         <ejb>
> > >             <ejb-name>LoginServletBean</ejb-name>
> > >             <resource-ref>
> > >                 <resource-name>MSQLJDBC</resource-name>
> > >                 <res-ref-name>jdbc/MSQLDB</res-ref-name>
> > >             </resource-ref>
> > >         </ejb>
> > >     </enterprise-beans>
> > >
> > > I'm not sure why the jboss.xml below works but it has to be the
> > > resource-managers element alone that is doing something. I'll have to
> > > look into what it is doing.
> >
> > Why do I need <session> rather then <ejb>..??
> > The Bean itself is an Entity and the <ejb> is derived from the application.xml
> > file.


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

Reply via email to