Hi,
mananthakris wrote:
Turned out that at one place the new jar wasn't copied over. The error is
gone now when that was corrected.
mananthakris wrote:
Hi,
Migrating to ojb 1.0.4 from ojb.1.0.rc4 gives error while trying to get
Implementation class for odmg-api.
Does ODMGFactory no longer exist? We use to write an mbean in
jboss-service.xml and use jndi lookup in ejb create to get the
Implementation.
These classes no longer included in OJB jar. But the source code of both
classes is included in OJB project source code. You can still use these
classes or bind OJB to JNDI by your own or use OJB.getInstance() directly.
We removed the JBoss mbean to get rid of JBoss dependencies in OJB jar file.
Between ojb 1.0.4 and ojb.1.0.rc4 are some differences, so please
carefully read the release-notes to get an impression of changes.
In 1.0.4 we harmonize the Identity handling and I forgot to note this in
release-notes. Here you can find a detailed description
http://www.mail-archive.com/ojb-user@db.apache.org/msg15405.html
It's strongly recommended to use the IdentityFactory to create Identity
objects (e.g. for "lookup by PK") instead of creating Identity objects
by your own.
In OJB 1.0.4 the jdbc-connection-descriptor attribute "eager-release" is
supported the last time. Since JBoss 3.2 the statement issue is fixed
and this attribute is no longer needed.
regards,
Armin
this was our code before and does not work because of compilation error
class ODMGFactory not found. Tried using ODMGJ2EEFactory instead. Does not
work (gives OJB<init> noclassdeffounderror)
ODMGFactory factory = (ODMGFactory) ctx.lookup("java:/ojb/defaultODMG");
Now the document suggests use OJB.getInstance() but this gives error
NoSuchMethodError:
org.apache.ojb.odmg.OJB.getInstance()Lorg/odmg/Implementation;
What is the right way to get the Implementation instance?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]