Re: [JBoss-dev] Ignorance

2001-11-20 Thread Rickard Öberg

Sacha Labourey wrote:

> In RMI's Bible, hum, I mean Rickard's book, 


Hehe, I was just reading the bible, I mean.. uhm, anyway.. to be sure. 
It's always a good idea to do this, especially in such a controlled 
environment as we have, with little need for allowing upgrades in the 
system over time.

/Rickard

-- 
Rickard Öberg


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Ignorance

2001-11-20 Thread Rickard Öberg

marc fleury wrote:

> |The automatic serversion generation of RMI uses heavy reflection
> |also on the
> |method signatures
> |and leads to CNFE´s in these cases.
> 
> So it is faster to include the serversion or not? I am thinking a lot about
> ways to make these fast.


It is most definitely faster to compute it yourself.

/Rickard

-- 
Rickard Öberg


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-20 Thread Sacha Labourey

Hello,

In RMI's Bible, hum, I mean Rickard's book, if I well remember, it is
written that if the serialversion is not explicitely set in the class, it
must be dynamically computed when loading the class => takes much more time
when loading the class if this is not explicitely set.


Sacha


> -Message d'origine-
> |The automatic serversion generation of RMI uses heavy reflection
> |also on the
> |method signatures
> |and leads to CNFE´s in these cases.
>
> So it is faster to include the serversion or not? I am thinking a
> lot about
> ways to make these fast.
>


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-20 Thread marc fleury

|The automatic serversion generation of RMI uses heavy reflection
|also on the
|method signatures
|and leads to CNFE´s in these cases.

So it is faster to include the serversion or not? I am thinking a lot about
ways to make these fast.

marcf
|


|CGJ
|
|
|
|___
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-19 Thread marc fleury

merci :)

marcf

|-Original Message-
|From: Scott M Stark [mailto:[EMAIL PROTECTED]]
|Sent: Monday, November 19, 2001 3:31 PM
|To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
|Subject: Re: [JBoss-dev] Ignorance
|
|
|You need to create the declaration to include with the source using the
|serialver
|tool, or your IDE if it supports it(Netbeans does). To use serialver, you
|run
|it much as you would the java command and it will print out the
|serialVersionUID
|statement you must copy and place into source code:
|
|examples 1983>serialver -classpath build/classes
|org.jboss.chap11.model.AccountInfo
|org.jboss.chap11.model.AccountInfo:static final long serialVersionUID
|= -5888058120666796953L;
|
|- Original Message -
|From: "marc fleury" <[EMAIL PROTECTED]>
|To: "Bill Burke" <[EMAIL PROTECTED]>; "Jboss-Development@Lists.
|Sourceforge. Net" <[EMAIL PROTECTED]>
|Sent: Monday, November 19, 2001 11:17 AM
|Subject: RE: [JBoss-dev] Ignorance
|
|
|> and I don't need to write anything in the source then do I ?
|>
|> marcf
|>
|> |-Original Message-
|> |From: [EMAIL PROTECTED]
|> |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
|> |Burke
|> |Sent: Monday, November 19, 2001 1:43 PM
|> |To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
|> |Subject: RE: [JBoss-dev] Ignorance
|> |
|> |
|> |"serialver" executable?
|> |
|> |> -Original Message-
|> |> From: [EMAIL PROTECTED]
|> |> [mailto:[EMAIL PROTECTED]]On 
|Behalf Of marc
|> |> fleury
|> |> Sent: Monday, November 19, 2001 12:30 PM
|> |> To: Jboss-Development@Lists. Sourceforge. Net
|> |> Subject: [JBoss-dev] Ignorance
|> |>
|> |>
|> |> So how does the serialVersionUID get generated in classes that are
|> |> Externalizable?
|> |>
|> |> I am a bit fuzzy, in fact I plain would like the beginner version
|> |> on that...
|> |>
|> |> thanks, he he
|> |>
|> |> :)
|> |>
|> |>
|
|

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



Re: [JBoss-dev] Ignorance

2001-11-19 Thread Scott M Stark

You need to create the declaration to include with the source using the
serialver
tool, or your IDE if it supports it(Netbeans does). To use serialver, you
run
it much as you would the java command and it will print out the
serialVersionUID
statement you must copy and place into source code:

examples 1983>serialver -classpath build/classes
org.jboss.chap11.model.AccountInfo
org.jboss.chap11.model.AccountInfo:static final long serialVersionUID
= -5888058120666796953L;

- Original Message -
From: "marc fleury" <[EMAIL PROTECTED]>
To: "Bill Burke" <[EMAIL PROTECTED]>; "Jboss-Development@Lists.
Sourceforge. Net" <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 11:17 AM
Subject: RE: [JBoss-dev] Ignorance


> and I don't need to write anything in the source then do I ?
>
> marcf
>
> |-Original Message-
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
> |Burke
> |Sent: Monday, November 19, 2001 1:43 PM
> |To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
> |Subject: RE: [JBoss-dev] Ignorance
> |
> |
> |"serialver" executable?
> |
> |> -Original Message-
> |> From: [EMAIL PROTECTED]
> |> [mailto:[EMAIL PROTECTED]]On Behalf Of marc
> |> fleury
> |> Sent: Monday, November 19, 2001 12:30 PM
> |> To: Jboss-Development@Lists. Sourceforge. Net
> |> Subject: [JBoss-dev] Ignorance
> |>
> |>
> |> So how does the serialVersionUID get generated in classes that are
> |> Externalizable?
> |>
> |> I am a bit fuzzy, in fact I plain would like the beginner version
> |> on that...
> |>
> |> thanks, he he
> |>
> |> :)
> |>
> |>



___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-19 Thread Jason Dillon

You can use serialver to inspect the current value of the 
'private static final long serialVersionUID'.  You do not need to have this 
set unless you have modified a class and wish to remain serial compatiblity 
with an older version.  For example if you change a method name, but the 
serial contents are the same you may wish to provide an explicit 
serialVersionUID to retain backwards compatiblity, else a new 
serialVersionUID will be created.

If you want the exact details on how this long is created, then I am not 
sure.  I think it is done by a secure hash of the public interface (or 
public methods), but that is just a guess.

This probably provides more information:

http://java.sun.com/j2se/1.4/docs/guide/serializatiohttp://java.sun.com/j2se/1.4/docs/guide/serialization/spec/class.doc6.html#4100n/spec/class.doc6.html#4100

 * * *

If this completly not what you were looking for then please ignore =)  

--jason


On Mon, 19 Nov 2001, Bill Burke wrote:

> I only read about this, but look at the Proxies.  serialver outputs the
> serialVersionUID then you cut and paste it into a static variable in the
> class file?  I'm not sure.  Sorry...
> 
> Bill
> 
> > -Original Message-
> > From: marc fleury [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 19, 2001 2:17 PM
> > To: Bill Burke; Jboss-Development@Lists. Sourceforge. Net
> > Subject: RE: [JBoss-dev] Ignorance
> >
> >
> > and I don't need to write anything in the source then do I ?
> >
> > marcf
> >
> > |-Original Message-
> > |From: [EMAIL PROTECTED]
> > |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
> > |Burke
> > |Sent: Monday, November 19, 2001 1:43 PM
> > |To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
> > |Subject: RE: [JBoss-dev] Ignorance
> > |
> > |
> > |"serialver" executable?
> > |
> > |> -Original Message-
> > |> From: [EMAIL PROTECTED]
> > |> [mailto:[EMAIL PROTECTED]]On Behalf Of marc
> > |> fleury
> > |> Sent: Monday, November 19, 2001 12:30 PM
> > |> To: Jboss-Development@Lists. Sourceforge. Net
> > |> Subject: [JBoss-dev] Ignorance
> > |>
> > |>
> > |> So how does the serialVersionUID get generated in classes that are
> > |> Externalizable?
> > |>
> > |> I am a bit fuzzy, in fact I plain would like the beginner version
> > |> on that...
> > |>
> > |> thanks, he he
> > |>
> > |> :)
> > |>
> > |>
> > |> "Earth is burning, up!"
> > |> -- Orbital ca 1992 --
> > |>
> > |>
> > |> 
> > |> Marc Fleury
> > |> President
> > |> JBoss Group, LLC
> > |> 
> > |>
> > |>
> > |> ___
> > |> Jboss-development mailing list
> > |> [EMAIL PROTECTED]
> > |> https://lists.sourceforge.net/lists/listinfo/jboss-development
> > |>
> > |
> > |
> > |___
> > |Jboss-development mailing list
> > |[EMAIL PROTECTED]
> > |https://lists.sourceforge.net/lists/listinfo/jboss-development
> >
> 
> 
> 
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-19 Thread Bill Burke

I only read about this, but look at the Proxies.  serialver outputs the
serialVersionUID then you cut and paste it into a static variable in the
class file?  I'm not sure.  Sorry...

Bill

> -Original Message-
> From: marc fleury [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 19, 2001 2:17 PM
> To: Bill Burke; Jboss-Development@Lists. Sourceforge. Net
> Subject: RE: [JBoss-dev] Ignorance
>
>
> and I don't need to write anything in the source then do I ?
>
> marcf
>
> |-Original Message-
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
> |Burke
> |Sent: Monday, November 19, 2001 1:43 PM
> |To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
> |Subject: RE: [JBoss-dev] Ignorance
> |
> |
> |"serialver" executable?
> |
> |> -Original Message-
> |> From: [EMAIL PROTECTED]
> |> [mailto:[EMAIL PROTECTED]]On Behalf Of marc
> |> fleury
> |> Sent: Monday, November 19, 2001 12:30 PM
> |> To: Jboss-Development@Lists. Sourceforge. Net
> |> Subject: [JBoss-dev] Ignorance
> |>
> |>
> |> So how does the serialVersionUID get generated in classes that are
> |> Externalizable?
> |>
> |> I am a bit fuzzy, in fact I plain would like the beginner version
> |> on that...
> |>
> |> thanks, he he
> |>
> |> :)
> |>
> |>
> |> "Earth is burning, up!"
> |> -- Orbital ca 1992 --
> |>
> |>
> |> 
> |> Marc Fleury
> |> President
> |> JBoss Group, LLC
> |> 
> |>
> |>
> |> ___
> |> Jboss-development mailing list
> |> [EMAIL PROTECTED]
> |> https://lists.sourceforge.net/lists/listinfo/jboss-development
> |>
> |
> |
> |___
> |Jboss-development mailing list
> |[EMAIL PROTECTED]
> |https://lists.sourceforge.net/lists/listinfo/jboss-development
>



___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-19 Thread marc fleury

and I don't need to write anything in the source then do I ?

marcf

|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Bill
|Burke
|Sent: Monday, November 19, 2001 1:43 PM
|To: marc fleury; Jboss-Development@Lists. Sourceforge. Net
|Subject: RE: [JBoss-dev] Ignorance
|
|
|"serialver" executable?
|
|> -Original Message-
|> From: [EMAIL PROTECTED]
|> [mailto:[EMAIL PROTECTED]]On Behalf Of marc
|> fleury
|> Sent: Monday, November 19, 2001 12:30 PM
|> To: Jboss-Development@Lists. Sourceforge. Net
|> Subject: [JBoss-dev] Ignorance
|> 
|> 
|> So how does the serialVersionUID get generated in classes that are
|> Externalizable?
|> 
|> I am a bit fuzzy, in fact I plain would like the beginner version 
|> on that...
|> 
|> thanks, he he
|> 
|> :)
|> 
|> 
|> "Earth is burning, up!"
|> -- Orbital ca 1992 --
|> 
|> 
|> 
|> Marc Fleury
|> President
|> JBoss Group, LLC
|> 
|> 
|> 
|> ___
|> Jboss-development mailing list
|> [EMAIL PROTECTED]
|> https://lists.sourceforge.net/lists/listinfo/jboss-development
|> 
|
|
|___
|Jboss-development mailing list
|[EMAIL PROTECTED]
|https://lists.sourceforge.net/lists/listinfo/jboss-development

___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development



RE: [JBoss-dev] Ignorance

2001-11-19 Thread Bill Burke

"serialver" executable?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of marc
> fleury
> Sent: Monday, November 19, 2001 12:30 PM
> To: Jboss-Development@Lists. Sourceforge. Net
> Subject: [JBoss-dev] Ignorance
> 
> 
> So how does the serialVersionUID get generated in classes that are
> Externalizable?
> 
> I am a bit fuzzy, in fact I plain would like the beginner version 
> on that...
> 
> thanks, he he
> 
> :)
> 
> 
> "Earth is burning, up!"
> -- Orbital ca 1992 --
> 
> 
> 
> Marc Fleury
> President
> JBoss Group, LLC
> 
> 
> 
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 


___
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development