Title: R: [castor-user] Caching unmarshall descriptors with Castor's Source Code Generato r

Hello,

> Because if we regenerate the classes with a new XML TAG, it wouldn't be cached any longer.

Does this assume a server restart?

If not, does at least involve an ‘application restart’? cos that is what normally happens when you deploy/redeploy

In that case, you’ll have a new cache when app is redeployed….  Correct?

 

HTH

            marco

 

 

 


From: Pasina Massimo [mailto:[EMAIL PROTECTED]
Sent: 14 March 2006 11:21
To: [email protected]
Cc: [EMAIL PROTECTED]; Nicotra Leopoldo
Subject: [castor-user] R: [castor-user] Caching unmarshall descriptors with Castor's Source Code Generato r

 

Dear Werner,
we don't like the solution we have made, because it makes static the methods  implemented in Castor library. We consider it only as a temporary patch to solve a problem that could have been solved in a much better way. Because if we regenerate the classes with a new XML TAG, it wouldn't be cached any longer.

So we don't think it's useful to incorporate this fix into a new release of Castor.
We think the best solution would be to change the generation mechanism, in order to have the application server to reload the new generated classes.

But this has still to be implemented.
Sincerely,
Massimo Pasina & Leopoldo Nicotra

-----Messaggio originale-----
Da: Werner Guttmann [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 13 marzo 2006 21.33
A: [email protected]
Oggetto: Re: [castor-user] Caching unmarshall descriptors with Castor's
Source Code Generato r

 

Buena sera Massimo,

given you have already implemented the desired functionality, why not
create a new feature request at http://jira.codehaus.org/browse/CASTOR,
and attach the proposed solution to the newly created Jira issue as a
unified patch ? I am sure somebody will review your code and come back
to you with comments.

Thanks
Werner Guttmann

Pasina Massimo wrote:
> Hi, we are a software house that develops web applications using Java and
>
> Xml. We use some application server  for testing our applications and in
>
> particular IBM Websphere Application Server 5.1 and Tomcat 4.
>

>
> We have some perfomance problem with Oracle Application Server (10 times
>
> slower) in marshalling and unmarshalling the standard class generatated by
>
> SourceGenerator (with no caching).
>

>
> We read the FAQ on your site and we have modified the classes in order to
>
> cache descriptors for unmarshal, according to the FAQ, and so we got the
>
> OracleAS perfomance similar to Tomcat.
>

>
> Now the questions are:
>

>
> * Why the generated classes are not automatically cached by your package?
>

>
> * Is it possible to use the SourceGenerator task in order to generate
>
> the classes with descriptor caching?
>

>
> * Is it possible for us to modify the SourceGenerator's package in
>
> order to optionally generate the classes with caching, adding then this new
>
> version in your repository?
>

>
> Sincerely,
>
> Massimo Pasina
>

>
> PD:I have just subscribed to [email protected]
>

 

-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to