On Mon, Apr 09, 2001 at 02:15:08PM -0700, Daren R. Sefcik wrote:
> On Tue, 10 Apr 2001, Toby Allsopp wrote:
> 
> > > humm..I tried but it still does not work...here are my entries, could you
> > > please see if you can spot the problem area..??..thanks.
> >
> > Your jboss.xml is really screwed up. Have a look at the documentation. There
> > you can find the DTD for jboss.xml. Looking through the archives of this list
> > and its predecessor should turn up some examples.
> >
> > Toby.
> 
> I am still trying to work my way into using JBoss/EJB so forgive me, but
> could you please explain to me what is screwed up..I have looked thru the
> archives and searched the mailing list and see many different posts that
> are not the same.
> The DTD for jboss.xml may be clear to someone who is experienced, but for
> a beginner (me) it is not entirely clear.

I strongly suggest that you learn how to read XML DTDs. All of the
configuration for J2EE uses XML, and being able to understand the DTDs
will make your life much easier.

> This configuration works except for the jdbc/JBossDb entry...I can only
> access the DB pool using "java:/MSQLDB"  not "java:comp/env/jdbc/JBossDB".

The only problem that jumps out at me is the <ejb> tag. The DTD calls for
either <session> or <entity> at that point.

Note that I have never done this myself - all of my knowledge comes from
looking at the source and reading the mailing lists.

Toby.

> thanks
> Daren
> 
> jboss.xml
> ========
> 
> <jboss>
> 
>   <web>
>     <ejb-ref>
>      <ejb-ref-name>ejb/MyLoginServlet</ejb-ref-name>
>      <jndi-name>MyLoginServlet</jndi-name>
>     </ejb-ref>
>   </web>
> 
>   <enterprise-beans>
>     <ejb>
>       <ejb-name>LoginServletBean</ejb-name>
>       <jndi-name>MyLoginServlet</jndi-name>
>       <resource-ref>
>         <res-ref-name>jdbc/JBossDB</res-ref-name>
>         <resource-name>MSQLJDBC</resource-name>
>       </resource-ref>
>     </ejb>
>   </enterprise-beans>
> 
>   <resource-managers>
>     <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
>        <res-name>MSQLJDBC</res-name>
>        <res-jndi-name>java:/MSQLDB</res-jndi-name>
>     </resource-manager>
>   </resource-managers>
> 
> </jboss>

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

Reply via email to