I have updated the jboss-remoting.jar (1.4.2.GA) to include code change to org.jboss.remoting.serialization.SerializationStreamFactory where in it's static block of loading serialization managers, if the jboss serialization manager is not found, will write out warning to log and proceed.

If someone were to explicitly try to use jboss serialization (instead of java, which is the default), will get an error at that point in time.

The 4.0 branch's minimal is now starting up.


Dimitris Andreadis wrote:
What is the algorithm to decide which serialization manager to use? Is
there a flag to override the choice?

If the choice is to explicitly use JBossSerialization and it cannot be
loaded, then that's an error to be reported.

If the choice is JavaSerialization, then you shoulnd't even attempt to
load JBossSerialization.

If the choice is "auto" then try JBossSerialization and silently
fallback to JavaSerialization, if it cannot be loaded. Maybe report the
chosen implementation as debug/info.

So I think it would be better to fix this and re-release, rathen than
bundling more jboss serialization classes.

You can override the existing jboss remoting 1.4.2.GA, since nobody is
using it yet.

Does this make sense?

-----Original Message-----
From: Tom Elrod Sent: 05 May, 2006 04:38
To: Dimitris Andreadis
Cc: Tom Elrod; Scott M Stark; Clebert Suconic; QA; jboss-development@lists.sourceforge.net
Subject: Re: Problem with minimal config in Branch_4_0

Not really. The SerializationStreamFactory will try to statically load both java and jboss serialization. There is a try/catch around the loading of the jboss serialization, but only catches Exception. However, when tries to load it and JBossObjectOutputStream is not found, throws a NoClassDefFoundError, which is an error (which extends Throwable, not Exception) so causes Naming to not be deployed.

So can either add the jboss serialization classes (JBossObjectOutputStream imports a lot of the other jboss serialization classes) or change this within SerializationStreamFactory so catches throwable and allows processing to continue (but is going to require another remoting release).




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to