LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-10-2005, 03:55 PM   #1
shadow11
LQ Newbie
 
Registered: Oct 2004
Posts: 15

Rep: Reputation: 0
tomcat5 + java.io.Serialization


Hi, everyone.

I have a problem find info about java.io.Serialization

I'm trying to setup clustering/session replication with Tomcat 5 + Apache2 +Susse 9.3 + mod_jk + java 1.4.2

According to the official document, I need to:
1. All your session attributes must implement java.io.Serializable
2. Uncomment the Cluster element in server.xml
3. Uncomment the Valve(ReplicationValve) element in server.xml
4. If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each instance.
5. Make sure your web.xml has the <distributable/> element

I done with step 2-5, but not step 1. I cannot find any info about java.io.Serialization? What is it and how to implement it? (a link to the document would be good)

Can anyone successfully implement clustering with Tomcat 5 and Apache2 offer me some help please?

Thank you very much,
 
Old 10-28-2005, 07:26 PM   #2
mhiggins
Member
 
Registered: Feb 2004
Posts: 140

Rep: Reputation: 15
In many cases no work needs to be done for 1. Do you or your developers control the source code? If so You just must make sure that the objects placed in the users session HttpSession are all serializable. By serializable they mean the object can be written to an arbitrary output stream and not lose state. The objects must implement the java.io.Serializable interface. This is a code specific item not an administrative on.

See

http://java.sun.com/j2se/1.5.0/docs/...ializable.html

Note many standard objects impliment Serilaizable see:

http://java.sun.com/j2se/1.5.0/docs/...ng/String.html

Not this section in the above link
public final class String
extends Object
implements Serializable, Comparable<String>, CharSequence

-Matt
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't start tomcat5 on suse 9.3 letrout Linux - Software 3 03-22-2007 04:00 AM
Why is tomcat5 still unstable?!!!!! Mathsniper Debian 1 08-28-2005 05:04 AM
Installing Tomcat5 Randvegeta Linux - Software 1 05-07-2005 05:32 AM
Problem in Apache2 + Tomcat5 Dexter2004 Linux - Networking 1 08-06-2004 04:13 PM
MFC file serialization t1mc00per Programming 2 03-16-2003 02:58 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration