RE: System Date.

2002-02-13 Thread OMurchu, Oisin
Title: Message



make 
sure its not a serialisation problem - the Calendar is transient in a Date 
object, and it effectively holds the TimeZone, so if you have a different 
timezone on 2 boxes and serialise a date object between them, the milliseconds 
since 1970 is serialised, but the relevant time zone that it was 
calculatedwith is not. So when the Date is recreated, it is done with the 
local default time zone, but using a time in milliseconds from a different 
timezone, and discrepencies ensue.

hope 
this helps,

Oisín.

  -Original Message-From: Geoff Soutter 
  [mailto:[EMAIL PROTECTED]]Sent: 13 February 2002 
  00:05To: Orion-InterestSubject: RE: System 
  Date.
  I've 
  had problems with Java timezones before. As I remember, Unix inherits timezone 
  settings from it's environment. Did you run your java test class with the same 
  environment as Orion (eg the same user)? 
  
  geoff
  

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Troy 
GibsonSent: Wednesday, 13 February 2002 6:00 AMTo: 
Orion-InterestSubject: System Date.
Having trouble with system Date. In Orion 
our application converts dates based on our users time zone. For some reason 
our application is producing incorrect date times. The same piece of code 
when ran on its own as a Java class produces correct time conversions. Are 
there environment variables that Orion uses that may cause it to interprets 
the system date differently than what the system date really is? We use a 
staging and production instances of Orion running on two different Unix 
boxes. Both boxes have the same system date, the application running on 
staging produces correct dates, the one on production does not, further 
evidence that maybe the problem lies with the Orion instance and not the 
code or the servers.
Thanks for any ideas you may have. 



Re: Off-topic: UML Tools...Help!!!

2001-12-07 Thread Oisin Kim

John,
have a look at Poseidon, the community edition is free and it's 100%
Java so multi platform, although it runs best with 1.3.1_01 JRE...
Oisin

On Thu, 2001-12-06 at 15:28, [EMAIL PROTECTED] wrote:
 Hi,
  
 I have been asked by my manager to evaluate some UML modelling tools:
 Rational Rose and Select. However, I have never really used UML so I
 probably wasn't the best person to ask :)
  
 So, if anyone could tell me any pros and cons of these packages I would
 appreciate it. Developers are gonna be using JBuilder 5 Enterprise, and the
 idea would be to farm out classes/beans you have designed and structured in
 the UML model.
  
 Any information or experiences you would like to share would be appreciated
 as I don't have a clue :)
  
 Thanks,
  
 Johnny
  
 
 Confidentiality Notice:
 The information in this e-Mail message is confidential and for the use of
 the named recipients only. The information may be protected by privilege,
 work product immunity or other applicable law.
 If you are not the intended recipient - the retention, dissemination,
 distribution or copying of this e-Mail message is strictly prohibited. If
 you receive this e-Mail message in error, please notify me immediately by
 telephone (44 207 384 8102) or e-Mail ([EMAIL PROTECTED]).
  
-- 


Oisin Kim
Software Engineer
Aurium - the new brand for Conceptual Drift 
Clifton House
Lower Fitzwilliam Street
Dublin 2
Web - http://www.aurium.net
Email - [EMAIL PROTECTED]
Mobile - +353 86 841 9967
Telephone - +353 1 661 1132






Re: Off-topic: UML Tools...Help!!!

2001-12-07 Thread Oisin Kim

I agree totally, very feature rich, a real quality product, more
features than you could ever possibly use, but at £5000 a seat the price
is slightly prohibitive. I was lucky enough to use Together Control
Center for my Thesis, if you can afford it, get it!
Otherwise, for 10% of the functionality, for free get Poseidon! If you
like it and use it commercially pay the $150 or so dollars for the
Professional version.

Oisin

On Fri, 2001-12-07 at 13:47, Curt Smith wrote:
 I have a team using TogetherJ for our modeler, IDE and deploy tool.
 TogetherJ, the first to market with a great all Java UML modeler, round trip
 code generator product.  Supports all IDE functions including debugging into
 your appserver's VM, deploy, call Ant, JUnit etc etc.  Very feature rich.
 
 togethersoft.com
 
 Curt
 
 Oisin Kim wrote:
 
  John,
  have a look at Poseidon, the community edition is free and it's 100%
  Java so multi platform, although it runs best with 1.3.1_01 JRE...
  Oisin
 
  On Thu, 2001-12-06 at 15:28, [EMAIL PROTECTED] wrote:
   Hi,
  
   I have been asked by my manager to evaluate some UML modelling tools:
   Rational Rose and Select. However, I have never really used UML so I
   probably wasn't the best person to ask :)
  
   So, if anyone could tell me any pros and cons of these packages I would
   appreciate it. Developers are gonna be using JBuilder 5 Enterprise, and the
   idea would be to farm out classes/beans you have designed and structured in
   the UML model.
  
   Any information or experiences you would like to share would be appreciated
   as I don't have a clue :)
  
   Thanks,
  
   Johnny
  
  
   Confidentiality Notice:
   The information in this e-Mail message is confidential and for the use of
   the named recipients only. The information may be protected by privilege,
   work product immunity or other applicable law.
   If you are not the intended recipient - the retention, dissemination,
   distribution or copying of this e-Mail message is strictly prohibited. If
   you receive this e-Mail message in error, please notify me immediately by
   telephone (44 207 384 8102) or e-Mail ([EMAIL PROTECTED]).
  
  --
 
  
  Oisin Kim
  Software Engineer
  Aurium - the new brand for Conceptual Drift
  Clifton House
  Lower Fitzwilliam Street
  Dublin 2
  Web - http://www.aurium.net
  Email - [EMAIL PROTECTED]
  Mobile - +353 86 841 9967
  Telephone - +353 1 661 1132
  
 
 
-- 


Oisin Kim
Software Engineer
Aurium - the new brand for Conceptual Drift 
Clifton House
Lower Fitzwilliam Street
Dublin 2
Web - http://www.aurium.net
Email - [EMAIL PROTECTED]
Mobile - +353 86 841 9967
Telephone - +353 1 661 1132






Re: Date conversion problem ??

2001-10-08 Thread Oisin Kim

I had this problem with PostgreSQL,
the simplest solution is to save your timestamp as a long and construct a 
Date object with this long value,
I've seen some sites that say the problem is a JDBC driver problem, with the 
PostgreSQL JDBC driver. The problem lies with the getTimeStamp() method as 
far as I can remember,
the short of all this is:
use a long value, from System.getcurrentTimeMilliseconds()..
write this value to the DB,
create a new Date object passing in the long value as the parameter...
Hope this helps,
Oisin

On Monday 08 October 2001 09:04, Eddie wrote:
 Thanks Frederik,

 But what I don't understand is why Date only contains the second part and
 not the millisecond part and when it does ? That is, when I create a Date
 object and print the millisecond part with the getTime() method, I do see
 the millisecond part but when I receive something from the database, the
 millisecond part is zero. Does this mean that is only zero when the date
 field is handled by the JDBC part ??

 Eddie

 - Original Message -
 From: Fredrik Lindgren [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Friday, October 05, 2001 6:50 PM
 Subject: Re: Date conversion problem ??

  You are right that is not the JDBC driver that makes this happen. It is
  JDBC itself. java.sql.Timestamp is a subclass of java.util.Date but it
  returns the integral seconds when calling getTime(). It supports nano
  second precision with the getNanos() method.
 
  The javadoc includes this note:
  Note: This type is a composite of a java.util.Date and a separate
  nanoseconds value. Only integral seconds are stored in the
  java.util.Date component. The fractional seconds - the nanos - are
  separate. The getTime method will return only integral seconds. If a
  time value that includes the fractional seconds is desired, you must
  convert nanos to milliseconds (nanos/100) and add this to the
  getTime value.  The Timestamp.equals(Object) method never returns  true
  when passed a value of type java.util.Date because the nanos component
  of a date is unknown. As a result, the Timestamp.equals(Object) method
  is not symmetric with respect to the java.util.Date.equals(Object)
  method.  Also, the hashcode method uses the underlying  java.util.Date
  implementation and therefore does not include nanos in its computation.
 
Due to the differences between the Timestamp class and the
  java.util.Date class mentioned above, it is recommended that code not
  view Timestamp values generically as an instance of java.util.Date.  The
  inheritance relationship between Timestamp and java.util.Date really
  denotes implementation inheritance, and not type inheritance.
 
  I hope this helped
 
  /Fredrik Lindgren
 
  Ed Bras wrote:
   Hellu,
  
   I retrieve a datetime  field from the Ms SQL server. With a win sql

 client I

   see:
   2001-10-03 19:33:10.257
  
   When I print the field in an EJB (I use CMP) the millisecond part is

 zero

   !!!:
   Wed Oct 03 19:33:10 GMT+02:00 2001
   In milliseconds: 100213039
  
   I had the same problem with the Postgres driver so I don't think it is

 the

   JDBC driver (Opta driver of i-net)
  
   Has anyone any idea what is happening and how I can solve this ??
   Hope to get an answer, otherwise I have to convert the datetime fields

 in

   the database to a long to store it in milliseconds, which isn't very

 elegant

   I think !?
  
   Eddie

-- 





RE: STRANGE (and BIG!!!) PROBLEM

2001-09-27 Thread OMurchu, Oisin



check 
in the orion-application.jar file in your application-deployments\APP_NAME 
directory - I tend to get multiple library path="./lib" / tags in 
it, which causes Orion to hang. (Orion adds these into tags in itself upon 
deployment for some strange reason.)

  -Original Message-From: Magnus Rydin 
  [mailto:[EMAIL PROTECTED]]Sent: 26 September 2001 
  20:17To: Orion-InterestSubject: SV: STRANGE (and BIG!!!) 
  PROBLEM
  My 
  bet is that you have something strange in your ejb-jar.xml that causes Orion 
  to start eating memory like popcorn.
  It 
  would be great to hear the typo that led to this situation once you've found 
  it.
  WR
  
-Ursprungligt meddelande-Från: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]För Mirel 
RataSkickat: den 26 september 2001 18:50Till: 
Orion-InterestÄmne: Re: STRANGE (and BIG!!!) 
PROBLEM


  It's a little bit strange... I'm implementing security 
  on my application and customizing my xml descriptors. All went ok (I had 
  Basic Authentication) and I wanted to implement security also in the EJBs 
  methods. I change the ejb-jar.xml source and this text appears 
  :
  
  Auto-deploying UbicuaCMP.jar (Classes were 
  updated)... The compiler has run outof memory. Consider using 
  the "-J-mxnumber" command line option to increase the maximum 
  heap size.Error compiling D:\Orion155\ubicua/UbicuaCMP.jar: Syntax 
  error in sourceOrion/1.5.2 initialized
  
  I work with 512MB memory... so I don´t think is a 
  problem of lack of memory... I try to use also the 
  "-J-mxnumber" command but it doesnt work !. Can anybody 
  explain where and how works this command ? (a sample example will be 
  wellcomed !)


orion-application.xml

2001-09-13 Thread OMurchu, Oisin

I'm having a problem deploying to Orion, which causes the deployment
time to increase over time, and eventually the jvm orion is in to run
out of memory. Basically, I'm using ANT to deploy, calling the Orion
admin tool (com.evermind.client.orion.OrionConsoleAdmin) and passing the
relevant parameters into it. The EAR file I'm deploying includes a lib
directory, with all of the required extra jar files in it (utilities,
etc). In order for orion to use these when loading a bean, I put the
line library path=../lib/ into orion-application.xml, between the
persistence/ and principals/ tag. Orion does indeed load up the jar
files as expected, so that works. 
The problem is that each time I deploy, the number of  library
path=../lib/ tags at least doubles, and at one stage I was left with
over 500 library path=../lib/ tags in the orion-application.xml
file. At this stage, the server slowed to a crawl, and either took
several minutes to load up the beans, or else crashed. 
Has anybody come across this behaviour? And what can I do about it?

And does anybody know of a good source of documentation on the various
configuration options available for Orion, as I find it is poorly
documented in all areas. Maybe the people at IronFlare could get their
act together from counting all the money from Oracle, and produce a
decent, (even semi-)professional set of documentation.

Regds.,

Oisín.




Re: Help with exception, could be classpath related

2001-08-10 Thread oisin

Hi Ashok,

the two beans are in two individual ejb-jar files, with both beans deployed 
successfully, I know this because they work fine when I connect simple clients to 
them,  and both work from the same client when the classpath is set correctly.

The contents of the files are

ejb-jar2.jar 
SimpleSessionBean.class + other classes

ejb-jar1.jar 
SimpleEntityBean + other classes

By other classes I mean the Home interfaces etc etc and standard java classes which 
the Beans use.

The SimpleSessionBean references the SimpleEntityBean and some of the standard classes.

I don't think ears are suitable for this are they?

Thanks for all your help,
I really do appreciate it!
Albert.

Subject: Re: Help with exception, could be classpath related
Date: Thu, 09 Aug 2001 20:08:03 -0700
From: Ashok Banerjee [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]


Are the 2 beans in the different applications (ear files)? If so you may want
to specify one application as the parent of the other. Cheers,
Ashok

[EMAIL PROTECTED] wrote:
 Hello All,
 hope you can help me with this as I'm unsure exactly what it means,
 I use a session bean to invoke methods on an entity bean, the error seems
 to be in the Entity Bean but it has been tested from a client and it works,
 I think it may be due to the classpath, as I've had to put the classes into
 the server.xml as Library path=...file before I could see them from
 ejbs. any ideas are very welcome,
 Thanks,
 Albert.
 Here is the exception I get from the terminal I start Orion server from:

 java.lang.ClassCastException: __Proxy0
 at SimpleEntityBean.Submit(SimpleEntityBean.java:230)
 at
 SimpleEntity_EntityBeanWrapper0.Submit(SimpleEntity_EntityBeanWrapper0.java
:268) at java.lang.reflect.Method.invoke(Native Method)
 at com.evermind._dh._gc(Unknown Source)
 at com.evermind._if.run(Unknown Source)

 Email just got more fun @ another.com
 http://another.com

---

-- 

Be passionate about your email
Just click here: http://another.com


Re: Directory Listing

2001-07-27 Thread Oisin Kim

The following code will give you the contents of a particular directory (a 
list of files / folders), you could use this to configure/ select what you 
want to display, really up to yourself,
NOTE this isn't a servlet or jsp it's just a plain application, you'll need 
to tweak it to get what you want, 
Oisin


// DirList.java
// Displays directory listing.
/** DirList.java lists the contents of teh current directory
 *  by running it as java DirList after compiling it.
*/
import java.io.*;
import java.util.*;

public class DirList 
{
public static final String foldername = C:\\somedir;
  
public static void main(String[] args) 
{
  //first teh path for folder on the server is given
  File path = new File(foldername);
  
  //now we create an array of strings which will hold the file names
  String[] list;

  //get the file in the dir and copy the filenames to the array entries
  list = path.list();

  //output the filenames to system.out
  for(int i = 0; i  list.length; i++)
  { 
//instead of just outputting them
System.out.println(list[i]);
  }//end for
}//end main
}//end class dirlist

On Friday 27 July 2001 12:01, Juan Fuentes wrote:
 I have an application with directory-browing=allow. When I request for
 a directory, orion displays a page with the directory list.

 How could I write a JSP/Servlet to customize this list ??

 TIA

-- 





Help with Deploying a simple Entity EJB

2001-07-09 Thread Oisin Kim

Hello to you all,
this is a resend
Can anyone tell me why I'm getting the following error when I try to deploy 
an 
Entity bean. 

[root@mcdonalds orion]# java -jar orion.jar
Auto-deploying /usr/orion/application-deployments/HLR/HLR-ejb.jar (No 
previous deployment found)... Error compiling 
/usr/orion/application-deployments/HLR/HLR-ejb.jar: Variable contained 
illegal space
Orion/1.5.2 initialized

I have all the files in place in the jar file they are:

[root@mcdonalds HLR]# jar tf HLR-ejb.jar 
META-INF/
META-INF/MANIFEST.MF
ie/tcd/cs/dsg/HLR/Client_1.class
ie/tcd/cs/dsg/HLR/HLRBean.class
ie/tcd/cs/dsg/HLR/HLR.class
ie/tcd/cs/dsg/HLR/HLRHome.class
ie/tcd/cs/dsg/HLR/HLRPK.class
META-INF/ejb-jar.xml

I've already created a META-INF folder and put application.xml in to it.
I've also placed application-client.xml here too.

Thanks for any help in advance!
Oisin


+-+
   _/_/_/_/_/  _/_/_/  __/_/_/_/  Oisin Kim
  _/ _/_/  _/ _/  Dept. Computer Science
 _/ _/_/ _/   Trinity College Dublin
_/ _/_/ _/tel : (+353 86).841 9967
   _/ _/_/  _/ _/ email: [EMAIL PROTECTED]
  _/  _/_/_/  __/_/_/_/   http://www.cs.tcd.ie/Oisin.Kim/

+-+




Re: SV: Anyone using TogetherSoft TCC with Orion?

2001-06-27 Thread Oisin Kim

Just FYI got htis from Together supportmight concern some of you!
Oisin

--cut--
There are issues with Together and jdk1.3.1 running on RH7.1.  To do
this you will need to edit the java wrapper script and add the following
lines
to the top of the script:
LD_ASSUME_KERNEL=2.2.5;export LD_ASSUME_KERNEL
To edit the java wrapper on Unix, change directories into the
JDK_HOME/bin
directory and,
$ vi .java_wrapper
Also, if you are getting users with errors like:
/usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut
User will need to create a symbolic link from /usr/cut to /usr/bin/cut.
--end cut--




 Tuesday 26 June 2001 16:57, you wrote:
 We use another product called CocoBase by Thought Inc.  It handles all of
 our 1:* relationships.

 At this point you need to use an O/R mapping tool or write your own code
 to do it.  Until EJB 2.2 or 2.3 is formalized.

 Jonathan Bricker
 Lilly Research Labs
 Java ATG




 Magnus Rydin [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 06/26/01 07:51 AM
 Please respond to Orion-Interest


 To: Orion-Interest [EMAIL PROTECTED]
 cc:
 Subject:SV: Anyone using TogetherSoft TCC with Orion?

 How do you model EJB 2.0 relations with Together?
 WR
 -Ursprungligt meddelande-
 Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Skickat: den 26 juni 2001 05:31
 Till: Orion-Interest
 Ämne: Re: Anyone using TogetherSoft TCC with Orion?


 We are using TogetherJ with Orion.  I'm not sure I can help you but for
 hot deployment we just make an .ear file and move it to the applications
 directory.  Orion does the rest.  All done in a make file.

 From our makefile:
 ### begin: rules for creating application jar.

 DIST_DIR=$(APP_HOME)/dist
 EJB_TMP_DIR=$(APP_HOME)/ejb_tmp



 deploy:
 cp $(APP_NAME).ear $(ORION_HOME)/applications

 dist:   pre_dist ejb_jar war
 @echo -
 @echo Creating $(APP_NAME) EAR ...
 @cd $(DIST_DIR); \
 $(JAR) cf ../$(APP_NAME).ear *;
 @echo -
 rm -rf $(DIST_DIR);

 pre_dist:FORCE
 @echo -
 @echo Preparing EAR ...
 @mkdir -p $(DIST_DIR)/META-INF;
 @cp application.xml $(DIST_DIR)/META-INF;
 @echo -

 war:$(DIST_DIR)
 @echo -
 @echo Creating WEB Archive (WAR)...
 @rm -rf web/WEB-INF/classes/com;
 @cd web/WEB-INF/classes; \
 cp -rf $(APP_HOME)/lib/* .;
 @cp -rf web web_tmp;
 @cd web_tmp; \
 find . -name CVS -prune -exec rm -rf {} \;
 @cd web_tmp; \
 $(JAR) cf $(DIST_DIR)/$(APP_NAME).war *;
 @rm -rf web_tmp;
 @echo -

 ejb_jar:$(DIST_DIR) ejb-jar.xml
 @echo -
 @echo Creating EJB JAR...
 @mkdir -p $(EJB_TMP_DIR);
 @cd $(EJB_TMP_DIR); \
 cp -rf $(APP_HOME)/lib/* .;
 @mkdir -p $(EJB_TMP_DIR)/META-INF;
 @cp $(APP_HOME)/ejb-jar.xml $(EJB_TMP_DIR)/META-INF/;
 @cd $(EJB_TMP_DIR); \
 $(JAR) cf $(DIST_DIR)/$(APP_NAME)Ejb.jar *;
 @rm -rf $(EJB_TMP_DIR);
 @echo -


 $(DIST_DIR):
 mkdir -p $(DIST_DIR);

 $(EJB_TMP_DIR):
 mkdir -p $(EJB_TMP_DIR);

 deploy_web:
 cd web; \
 rm -f *~; \
 cp -rf * $(ORION_HOME)/applications/$(APP_NAME)/$(APP_NAME)

 ### end: rules for creating application jar.
 Jonathan Bricker
 Lilly Research Labs
 Java ATG



 Ronald F. Lens [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 06/25/01 02:09 PM
 Please respond to Orion-Interest

 To:Orion-Interest [EMAIL PROTECTED]
 cc:
 Subject:Anyone using TogetherSoft TCC with Orion?


 Hi all,

 Does anyone have any experience using TogetherSoft TCC v5 (or 4.x) with
 orion? I'm still struggling to get the deployment tool to work with orion.
 I got pretty close using the EJB 2.0 generic version in TogetherSoft but
 it doesn't provide all the bells and whistles you'd like (like hot
 deployment).

 Any help would be greatly appreciated.
 Ronald


Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1
Content-Transfer-Encoding: quoted-printable
Content-Description: 


-- 


+-+
   _/_/_/_/_/  _/_/_/  __/_/_/_/  Oisin Kim
  _/ _/_/  _/ _/  Dept. Computer Science
 _/ _/_/ _/   Trinity College Dublin
_/ _/_/ _/tel : (+353 86).841 9967
   _/ _/_/  _/ _/ email: [EMAIL PROTECTED]
  _/  _/_/_/  __/_/_/_/   http://www.cs.tcd.ie/Oisin.Kim/

+-+




Question About Clustering EJB's

2001-06-16 Thread Oisin Kim

Hi All,
I've noticed that some asked for help on how-to cluster EJB's and got no 
reply. I thought I read in the documentation that this isn't possible, is 
it?? 
Or has someone got a workaround that wouldn't involve sharing a database, 
hard disk or anything that would be a single point of failure?
Thanks,
Oisin Kim




Re: Simple Clustering Question

2001-06-11 Thread Oisin Kim

Hello All, 

I just thought I'd send this to explain to people who are having trouble 
understanding how to set up the default web app clustering and exactly how a 
broadcast IP is set up.
I am a newbie to Orion Server and got 4 machines to act as a cluster after 
some advice from Lachezar!

I'd like to thank Lachezar and Juan and for their help on the Orion interest 
mailing list.

Before You Start The Servers.
You need to have a broadcast network address for all the machines on your 
cluster,
this could mean having to have an extra network card configured for that 
broadcast IP address or configuring you network card to listen to a broadcast 
ip address in addition to the hosts ip. The default broadcast ip for Orion is 
230.0.0.1, so you'll need to change the setting in 
orion/application-deployments/default/defaultWebApp/orion-web.xml if you want 
to use a different broadcast ip address and port number.

Then you can follow the document:

Enabling Web-Clustering in Orion

Oisin 

Enabling Web-Clustering in Orion

Setting up the server

1. Install orion and start it.

2. Edit the orion/application-deployments/default/defaultWebApp/orion-web.xml 
file and add:
cluster-config /

3. Repeat 1 and 2 for another (or more) box(es).To test:

1. Go to http://box1/servlet/SessionServlet. Reload a few times.

2. Go to http://box2/servlet/SessionServlet;jsessionid=ID YOU GET ON YOUR 
BOX1 SCREEN.
The counter should be the same as for the other box (box1).To put this into 
production:



On Sunday 10 June 2001 12:08, you wrote:
Hi.

  you need a switch which has multicast enabled; (most ethernet switchs
  have this capability, some just don't have it enabled)

That is not true.
Multicast is a network service. It is of type send-on-receive-anyone.
 That means, that one packet is send and it is received by anyone, listening
 to that multicast IP/PORT. If you have an Ethernet, than you have the
 Multicast ability. Routing multicast packets is a different question.
 Having one, or more Ethernet networks, connected with dumb equipment
 (HUBs, SWITHCHes, REPEATERs) also gives the multicast routing. Internet
 multicast routings is somehow more complicated.
It is enough to say, that if you have a single dumb ethernet connection
 between your boxes is enough for the Orion multicast clustering to work. Of
 course all the boxes have to be configured to use one and the same
 Multicast IP and one and the same PORT. That's it.

Lachezar.

   Hi,
  
   I've spent the last while trying to get clustering to work
   with orion server
   1.5.2 without success. First I tried to follow the instructions at
   http-clustering-howto.html from the documentation, it said:
   Setting up the server
  
   1. Install orion and start it.
  
   2. Edit the
   orion/application-deployments/default/defaultWebApp/orion-web.xml
   file and add:
   cluster-config /
  
   3. Repeat 1 and 2 for another (or more) box(es).
  
   But when I tried to connect to the server, the server let me
   know that the
   file /orion/default-web-app/WEB-INF/web.xml hadn't got the tag
   distributable/ in it.
  
   I then added this tag to all servers
   /orion/default-web-app/WEB-INF/web.xml
   file in the cluster, and tried again, this time they actually ran the
   SessionServlet but as if they were being run individually,
   i.e. the session
   wasn't shared as it was supposed to be, I did remember to append
   ;jsessionid=ID YOU GET ON YOUR BOX1 SCREEN
   to it and tried both leaving the angle brackets in and out.
  
   I know I must be doing some thing wrong but I can't find it,
   I'd really
   appreciate some help.
  
   I noticed in the http-clustering.html that in the clustering
   it mentions the
   default for multicast host/ip to transmit and receive cluster
   data on is
   230.0.0.1, port number 9127, does this mean I have to have a
   network card
   listening on this IP/port?
  
   What exactly is a network with operational multicast
   facilities, is plain
   100Mbs ethernet running on linux OK?
  
   Thanks,
   Oisin


Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1
Content-Transfer-Encoding: quoted-printable
Content-Description: 





Simple Clustering Question

2001-06-09 Thread Oisin Kim

Hi,

I've spent the last while trying to get clustering to work with orion server 
1.5.2 without success. First I tried to follow the instructions at 
http-clustering-howto.html from the documentation, it said:
Setting up the server

1. Install orion and start it.

2. Edit the orion/application-deployments/default/defaultWebApp/orion-web.xml 
file and add:
cluster-config /

3. Repeat 1 and 2 for another (or more) box(es).

But when I tried to connect to the server, the server let me know that the 
file /orion/default-web-app/WEB-INF/web.xml hadn't got the tag 
distributable/ in it.

I then added this tag to all servers /orion/default-web-app/WEB-INF/web.xml 
file in the cluster, and tried again, this time they actually ran the 
SessionServlet but as if they were being run individually, i.e. the session 
wasn't shared as it was supposed to be, I did remember to append 
;jsessionid=ID YOU GET ON YOUR BOX1 SCREEN
to it and tried both leaving the angle brackets in and out.

I know I must be doing some thing wrong but I can't find it, I'd really 
appreciate some help.

I noticed in the http-clustering.html that in the clustering it mentions the 
default for multicast host/ip to transmit and receive cluster data on is 
230.0.0.1, port number 9127, does this mean I have to have a network card 
listening on this IP/port?

What exactly is a network with operational multicast facilities, is plain 
100Mbs ethernet running on linux OK?

Thanks,
Oisin