I checked out the contrib module from Jboss CVS and rebuilt jboss-castor.
I changed the JNDI name of the datasource as you indicated below.
I also had to make one other change...I had put the <resource-managers>
element in jboss.xml inside the <enterprise-beans><session> element (the
example on the JBOSS site wasn't clear enough for me). So, JBOSS never
mapped those resources into the naming space. I moved the
<resource-managers> element to be just inside the <jboss> element and that
fixed it.
After a bit of a learning curve with JBOSS and Castor JDO I am now cranking
though an EJB/JSP application faster than I have ever developed before and
everything is working fine. BTW, I am porting Sql-Ledger,
http://www.sql-ledger.org, to Java/JSP/EJB and adding a Swing interface in
addition to its web interface. The result will be open-source freeware.
On another note...I have found that Castor JDO solves another architectural
problem for EJB applications. For EJB applications I have written before I
always had to create "smart proxies" for use by client applications. These
proxy objects were always an extra layer that had to be developed, in
addition to entity beans and session beans. With JDO all I do is map data
directly into the proxy objects. Way simple. I'm really liking JDO.
ted stockwell
-----Original Message-----
From: Oleg Nitz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 23, 2000 6:10 AM
To: jBoss
Subject: Re: [jBoss-User] Need JBOSS/JDO configuration help!
Hi Ted,
I guess that
1) you use the outdated jboss-castor.jar that is referenced from
the site. This is completely my fault, after "java:/" changes in jBoss
were done, I updated CVS version of CastorJDO module and put new
binary to "jbossweb" CVS module, while the new site was constructed in
the "newsite" module.
So, right now you can get jboss-castor.jar via WebCVS from
jbossweb/castorjdo
2) Now the JNDI name of datasource should start from "java:/", so your
database.xml should be
<database name="ledgertango" engine="interbase" >
<mapping href="mapping.xml" />
<jndi name="java:/jdbc/ledgertango"/>
</database>
Other your settings seem to be okay.
Regards,
Oleg
Stockwell, Ted wrote:
ST> Hi,
ST> I have written a session bean that uses JDO and I am trying to get it to
ST> work in JBOSS.
ST> I have successfully used JDO outside of JBOSS so I'm pretty sure my
problem
ST> is a JBOSS configuration problem.
ST> I have a small client application that gets a reference to my session
bean
ST> and calls one of the session bean's methods.
ST> The result is this exception inside JBOSS...
ST> [LedgerServer] javax.naming.NameNotFoundException: jdo not bound
ST> [LedgerServer] at
ST> org.jnp.server.NamingServer.getBinding(NamingServer.java:474)
ST> <snip>
ST> [LedgerServer] at
ST> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
ST> [LedgerServer] at
ST> javax.naming.InitialContext.lookup(InitialContext.java:350)
ST> [LedgerServer] at
ST> org.ledgertango.ejb.LedgerServerEJB.findObject(LedgerServerEJB.java:48)
ST> [LedgerServer] at
ST>
org.ledgertango.ejb.LedgerServerEJB.findUserByLogin(LedgerServerEJB.java:95)
ST> [LedgerServer] at java.lang.reflect.Method.invoke(Native Method)
ST> <snip>
ST> [LedgerServer] at
ST>
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
ST> 43)
ST> [LedgerServer] at java.lang.Thread.run(Thread.java:484)
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]