You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Andreas Veithen <an...@skynet.be> on 2008/02/09 16:36:57 UTC

Synapse and Java 1.4?

Hi all!

Yesterday I talked to a colleague who needs to solve a Web service  
versioning issue (maintaining compatibility between old clients and a  
new, modified version of the service). I told him that depending on  
the type of changes to the Web service, one possible solution might be  
to use an XSLT mediation with Synapse. However as he pointed out  
correctly, Synapse requires Java 1.5 while we are working in an  
environment that still uses Java 1.4.

Given that most of Synapse's code is still Java 1.4, what are actually  
the Java 5 language features or APIs Synapse relies on? What are the  
dependencies that require Java 5?

Since I'm working in the same environment I'm facing the same  
restriction with another Open Source library, and I had a look into  
retrotranslation tools that convert Java 5 bytecode to Java 1.4  
compatible bytecode. Retrotranslator (http://retrotranslator.sourceforge.net/ 
) seems very promising because it not only covers all Java 5 language  
features but also important parts of the Java 5 APIs. Did anybody  
already study the question if it would be possible to run Synapse on  
Java 1.4 with the help of this kind of tool?

Regards,

Andreas


Re: Synapse and Java 1.4?

Posted by Andreas Veithen <an...@skynet.be>.
The question is not whether it is possible to run Synapse on a machine  
where other applications using Java 1.4 are running. The problem is  
that we can't just login to the production system and install a new  
Java version :-). As usual in large organizations, any deployment  
needs to be approved by the EA team and the team that operates these  
systems. The point is that if it is possible to package Synapse in a  
WAR deployable in their existing Web servers (running on Java 1.4), I  
see a chance to get this solution approved. A proposal to install  
Synapse standalone on a different Java version would be very difficult  
to get approved (for reasons that I can't expose on a public forum).

Andreas

On 10 Feb 2008, at 05:49, Upul Godage wrote:

> If there are multiple versions of Java runtimes available, Synapse  
> can be
> told to use a specific Java runtime by setting the JAVA_HOME at the  
> top of
> synapse.sh.
>
> export JAVA_HOME=/opt/java/jdk-1.5
>
> Upul
>
> On Feb 9, 2008 11:39 PM, Asankha C. Perera <as...@wso2.com> wrote:
>
>>
>> Synapse, and I do not think the issue of the JDK used by Synapse will
>> effect any of the systems it will integrate it at all - i.e. you  
>> could
>> use JDK 1.5 for Synapse on a machine, and simultaneously use a JDK  
>> 1.4
>> version for another app.. or use VMWare etc like many do even on
>> production systems etc..


Re: Synapse and Java 1.4?

Posted by Upul Godage <up...@gmail.com>.
If there are multiple versions of Java runtimes available, Synapse can be
told to use a specific Java runtime by setting the JAVA_HOME at the top of
synapse.sh.

export JAVA_HOME=/opt/java/jdk-1.5

Upul

On Feb 9, 2008 11:39 PM, Asankha C. Perera <as...@wso2.com> wrote:

>
> Synapse, and I do not think the issue of the JDK used by Synapse will
> effect any of the systems it will integrate it at all - i.e. you could
> use JDK 1.5 for Synapse on a machine, and simultaneously use a JDK 1.4
> version for another app.. or use VMWare etc like many do even on
> production systems etc..

Re: Synapse and Java 1.4?

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Asankha,

Cc:ing the dev list as well.

I think we should support jdk 1.6 and 1.5 both at the same time (we can not
move out from the jdk 1.5 at this moment because still there are
considerable amount of use cases for 1.5 with compared to 1.6). We need to
find a mechanism to handle the Script mediator separately in the two
environments (1.5 and 1.6).

Thanks,
Ruwan

On Feb 9, 2008 11:39 PM, Asankha C. Perera <as...@wso2.com> wrote:

> Hi Andreas
> > Given that most of Synapse's code is still Java 1.4, what are actually
> > the Java 5 language features or APIs Synapse relies on?
> Mostly, it is the NIO based http*s* transport as the SSLEngine class was
> only introduced in JDK 1.5.x.. but we had this debate sometime back on
> Synapse, and I do not think the issue of the JDK used by Synapse will
> effect any of the systems it will integrate it at all - i.e. you could
> use JDK 1.5 for Synapse on a machine, and simultaneously use a JDK 1.4
> version for another app.. or use VMWare etc like many do even on
> production systems etc..
> > Since I'm working in the same environment I'm facing the same
> > restriction with another Open Source library, and I had a look into
> > retrotranslation tools that convert Java 5 bytecode to Java 1.4
> > compatible bytecode. Retrotranslator
> > (http://retrotranslator.sourceforge.net/) seems very promising because
> > it not only covers all Java 5 language features but also important
> > parts of the Java 5 APIs. Did anybody already study the question if it
> > would be possible to run Synapse on Java 1.4 with the help of this
> > kind of tool?
> I am totally cool with someone volunteering to do this, and keep
> supporting this - however I think we should also support JDK 1.6 pretty
> soon as many people use that already and one of the core issues is
> supporting the script mediator in this environment.. So as long as we
> can code in JDK 1.5, or 1.6 etc and stuff like retrotranslator will keep
> the backwards compatibility things should be fine :)
>
> asankha
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: Synapse and Java 1.4?

Posted by Ruwan Linton <ru...@gmail.com>.
Hi Asankha,

Cc:ing the dev list as well.

I think we should support jdk 1.6 and 1.5 both at the same time (we can not
move out from the jdk 1.5 at this moment because still there are
considerable amount of use cases for 1.5 with compared to 1.6). We need to
find a mechanism to handle the Script mediator separately in the two
environments (1.5 and 1.6).

Thanks,
Ruwan

On Feb 9, 2008 11:39 PM, Asankha C. Perera <as...@wso2.com> wrote:

> Hi Andreas
> > Given that most of Synapse's code is still Java 1.4, what are actually
> > the Java 5 language features or APIs Synapse relies on?
> Mostly, it is the NIO based http*s* transport as the SSLEngine class was
> only introduced in JDK 1.5.x.. but we had this debate sometime back on
> Synapse, and I do not think the issue of the JDK used by Synapse will
> effect any of the systems it will integrate it at all - i.e. you could
> use JDK 1.5 for Synapse on a machine, and simultaneously use a JDK 1.4
> version for another app.. or use VMWare etc like many do even on
> production systems etc..
> > Since I'm working in the same environment I'm facing the same
> > restriction with another Open Source library, and I had a look into
> > retrotranslation tools that convert Java 5 bytecode to Java 1.4
> > compatible bytecode. Retrotranslator
> > (http://retrotranslator.sourceforge.net/) seems very promising because
> > it not only covers all Java 5 language features but also important
> > parts of the Java 5 APIs. Did anybody already study the question if it
> > would be possible to run Synapse on Java 1.4 with the help of this
> > kind of tool?
> I am totally cool with someone volunteering to do this, and keep
> supporting this - however I think we should also support JDK 1.6 pretty
> soon as many people use that already and one of the core issues is
> supporting the script mediator in this environment.. So as long as we
> can code in JDK 1.5, or 1.6 etc and stuff like retrotranslator will keep
> the backwards compatibility things should be fine :)
>
> asankha
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: Synapse and Java 1.4?

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Andreas
> Given that most of Synapse's code is still Java 1.4, what are actually 
> the Java 5 language features or APIs Synapse relies on?
Mostly, it is the NIO based http*s* transport as the SSLEngine class was 
only introduced in JDK 1.5.x.. but we had this debate sometime back on 
Synapse, and I do not think the issue of the JDK used by Synapse will 
effect any of the systems it will integrate it at all - i.e. you could 
use JDK 1.5 for Synapse on a machine, and simultaneously use a JDK 1.4 
version for another app.. or use VMWare etc like many do even on 
production systems etc..
> Since I'm working in the same environment I'm facing the same 
> restriction with another Open Source library, and I had a look into 
> retrotranslation tools that convert Java 5 bytecode to Java 1.4 
> compatible bytecode. Retrotranslator 
> (http://retrotranslator.sourceforge.net/) seems very promising because 
> it not only covers all Java 5 language features but also important 
> parts of the Java 5 APIs. Did anybody already study the question if it 
> would be possible to run Synapse on Java 1.4 with the help of this 
> kind of tool?
I am totally cool with someone volunteering to do this, and keep 
supporting this - however I think we should also support JDK 1.6 pretty 
soon as many people use that already and one of the core issues is 
supporting the script mediator in this environment.. So as long as we 
can code in JDK 1.5, or 1.6 etc and stuff like retrotranslator will keep 
the backwards compatibility things should be fine :)

asankha