Hi everyone:

I'm putting together some entity bean examples and I've run into an issue
with dependent objects. We are running jBoss 2.0 pr3 on NT with JDK1.3,
pretty much out of the box (e.g. with Hypersonic SQL)

I've got an entity bean representing an organization and its got a
Serializable address (this is basicly the class that's described in
Monson-Haefel ed. 2 chapter 9 page 328). EJX produced a plausible looking
jboss.xml and jaws.xml with the address class mapped to a SQL OBJECT type
thusly:

...
  <cmp-field>
    <field-name>address</field-name>
    <column-name>address</column-name>
    <sql-type>OBJECT</sql-type>
    <jdbc-type>JAVA_OBJECT</jdbc-type>
  </cmp-field>
...

However when I run the client I get the exception:


javax.ejb.CreateException: Could not create entity:java.sql.SQLException:
This function is not supported: 2000
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
        at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
        at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:79)
        at $Proxy0.create(Unknown Source)
        .....

There's actually a much longer exception produced in the console which
suggests that it may be hypersonic that's barfing rather than the jboss
server. On the face of it, the exception suggests that dependent values are
_not_ supported right now. I had a look through the mailing list archive and
I know there's been some discussion in this area but I'm unclear on what pr3
is capable of.

What's the best way to proceed ?

I have the choice of replacing the database with mySQL for example, or
giving up on dependent objects for the nonce. Alternatively if dependant
objects are supported in pr3, have I encountered a problem (in jboss or more
probably, my code) ????

Andy Dwelly



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to