Hi,
You will find an example for load balancing an MBean
in the jmx tests in the testsuite of 3.2.2
There is now a generic HA proxy factory extending the
one described in Chapter 2 of the admin docs.
To avoid your particular problem, you'll need
something similar to the clean shutdown interceptor
I figured out what I was doing wrong after some
drifting through the source code. Anyways, now it load
balances fine.
(Instead of sourceObject.getClass(), I used
org.jboss.jmx.adaptor.rmi.RMIAdaptor.class.)
However, I observed that when I tried to test the
failover by stopping one of my servers,
On Fri, 2003-09-19 at 10:47, Rafal Kedziorski wrote:
> hi,
>
> in the latest (2003-08-03) payed clustering documentation on page 37
> listing 5-5 and 5-6 shows how poxies works.
>
> Now my question. We workinf with JBoss 3.2.2RC2 and 3.2.2RC4 and start to
> develop an application which will run
If you always want the ejb calls to ignore any colocated beans you would
need to replace the org.jboss.invocation.InvokerInterceptor in the
proxy-factory-config for the bean to use a variation that bypassed the
colocation check. Its invoke method would simply be:
public Object invoke(Invocation
Two things, I think you can set a LoadBalance policy on home
lookups.
xdoclet tags:
* @jboss.cluster-config
* partition-name="MyCluster"
* home-policy="org.jboss.ha.framework.interfaces.RoundRobin"
* bean-policy="org.jboss.ha.framework.interfaces.RoundRobin"
The other way is not to cal
gt; is in Branch_3_2.
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On
> > Behalf Of
> > > Simone Milani
> > > Sent: lundi, 18. août 2003 18:16
> > > To: [EMAIL PROTECTED]
> &
imone Milani
> > Sent: lundi, 18. août 2003 18:16
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Load-Balancing Problems
> >
> >
> > Hi Sacha,
> >
> > Thanks again! Yes is very easy to check it
> provided that
> > you know ho
] On Behalf Of
> Simone Milani
> Sent: lundi, 18. août 2003 18:16
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi Sacha,
>
> Thanks again! Yes is very easy to check it provided that
> you know how
> to check it :)
&
Hi Sacha,
Thanks again! Yes is very easy to check it provided that you know how
to check it :)
Cheers
Simone
- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 16, 2003 7:20 AM
Subject: RE: [JBos
> Thanks very much! It works.
> Would it not be a good idea then to throw an error when using
> a clustered declared EJB within a non cluster enabled container?
Well, what is not easy is how to determine that a stack is a non-clustered
stack? You could implement your own invoker, etc. and th
CTED]>
Sent: Friday, August 15, 2003 1:58 PM
Subject: RE: [JBoss-user] Load-Balancing Problems
Yes, you have changed the configuration-name and build your own which is now
incompatible with clustering! You should extend the clustered configuration
when building "Standard Stateless Sess
tPrime @ position "+ i +": " + myPrime);
}
And all the calls get sent to the same member.
Any idea?
Thanks
Simone
- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 5:07 PM
S
Hello Simone,
> Apologies if I am confusing things. I have a Stateless
> Session EJB
> declared now as
> true.
> The code I am running is the following:
>
> TestHome testHome = (TestHome) javax.rmi.PortableRemoteObject.narrow(
>ctx.lookup("EJB/Session/Test"),
>TestHome.clas
ginal Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Simone Milani
> Sent: vendredi, 15. août 2003 14:41
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi Sasha,
>
> That was what I thought as
Hi Sacha,
It is a SLSB and here is the stack trace of the call:
10:43:21,773 ERROR [LogInterceptor] RuntimeException:
java.lang.RuntimeException: Test
at
com.db.gm.mercury.ejb.session.test.TestBean.getPrimeAtPosition(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invo
ilani
> Sent: vendredi, 15. août 2003 11:46
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi Sacha,
>
> It is a SLSB and here is the stack trace of the call:
>
> 10:43:21,773 ERROR [LogInterceptor] RuntimeException:
>
-
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 15, 2003 12:57 PM
Subject: RE: [JBoss-user] Load-Balancing Problems
OK, so check your JBoss.xml file as in the current setup you are *not* using
clustering: the invoker is the standard JR
: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> I am using 3.2.2RC2 ...
>
> Chris
>
> Sacha Labourey wrote:
>
> >... Or use 3.2.x which removes this issue.
> >
> >
> >
> >>-Original Message-
>
Behalf Of
> Simone Milani
> Sent: jeudi, 14. août 2003 18:56
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Opppss, sorry. I had the bean tagged as
> false.
>
> Thanks
>
> Simone
> - Original Message -
What kind of EJB is that?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Simone Milani
> Sent: jeudi, 14. août 2003 16:52
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
> Hi,
&
ould like to do the
> lookup and the create
> only one and do round robin after that. Is it
> possible?
>
> Thanks!
>
> Simone
> - Original Message -
> From: "Sacha Labourey"
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Se
!
Simone
- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 8:28 AM
Subject: RE: [JBoss-user] Load-Balancing Problems
Then that is very strange as with 3.2.x you should be able to re-create you
I am using 3.2.2RC2 ...
Chris
Sacha Labourey wrote:
... Or use 3.2.x which removes this issue.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Adrian Brock
Sent: mardi, 12 août 2003 17:50
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Load
... Or use 3.2.x which removes this issue.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Adrian Brock
> Sent: mardi, 12 août 2003 17:50
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Load-Balancing Problems
>
>
I'm getting same problem. Is round-robin loadbalance works or not?
-Original Message-
From: Christofer Dutz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 6:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Load-Balancing Problems
I am using 3.2.2RC2 ...
Chris
Opppss, sorry. I had the bean tagged as
false.
Thanks
Simone
- Original Message -
From: "Simone Milani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 3:51 PM
Subject: Re: [JBoss-user] Load-Balancing Problems
> Hi,
>
You are probably doing sessionHome.create() on every request?
This creates a new remote interface proxy, which will round-robin
all servers.
However if you only do one invocation it will
always use the first server and never get to the others.
You can get similar problems with other patterns in y
Hi Eric (et all),
I am using JBoss "out of the box" so I'm using Hypersonic SQL as the database. The
tables were created by JBoss deployment and the statements used look fine. I generated
the whole lot (CMP Bean, ejb-jar.xml, JBoss XML) using xdoclet 1.2.2. Perhaps now I
need to post up the EA
> A couple of extracts are included below from the files Eric mentions.
Looks OK. What database are you using? Did you create the tables by hand?
--
Eric Jain
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo
A couple of extracts are included below from the files Eric mentions.
Thanks,
Peter.
On Fri, 15 Mar 2002 14:30:14 +0100
"Eric Jain" <[EMAIL PROTECTED]> wrote:
> > Any idea what's going on?
>
> Perhaps the primary-key declaration in your ejb-jar.xml is faulty, or more
> likely there is an erro
> Any idea what's going on?
Perhaps the primary-key declaration in your ejb-jar.xml is faulty, or more
likely there is an error in the declaration of the findByPrimaryKey() method
in the bean's home interface, so if you could post those excerpts...
--
Eric Jain
___
Thanks Michael for getting me started down the right track.
I had used a utility to generate the list of instance variables
in the Bean class which neglected to declare them all
"public." Set them all to public and all back to normal.
Frank
> I have an CMP entity bean running with 2.4.3 and my
It depends upon what your concerns are. If the system thread supply is
exhausted, our experience is that jBoss will wedge completely to the point
where it will have to be killed at the operating system level. As long as
the demand for threads does not exceed supply, we have been able to stress
j
Interesting
|1. We ran jBoss/Tomcat on Linux using a creaking old 166MHz Pentium with
|64MB RAM and 256MB swap space. This configuration thrashed noticeably
and here I was discussing my latest 1.4 Ghz Athlon with half a gig of RAM
linux desktop :)
|because of memory limitations, but we tested
1. We ran jBoss/Tomcat on Linux using a creaking old 166MHz Pentium with
64MB RAM and 256MB swap space. This configuration thrashed noticeably
because of memory limitations, but we tested with our load simulator and
the system never fell over. Enormous amounts of memory are consumed by
the Hyper
There were several posts not long ago, describing exactly who to use the
ClassLoader (as far as I remember) to load config files, search the archive
;-)
Burkhard
- Original Message -
From: "Xavier deheul" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 1:05 PM
Sub
I have experienced the same problem, and noted this:
I had an entity bean with a boolean (primitive) member variable. If I added
data to the database using psql without setting the boolean field, jaws
failed with the same error message you got.
I solved it by making sure I entered a value (no
That's often caused by having a NULL in a database column that's mapped to
a primitive type (int, long). Either make the field NOT NULL in the
database or change the type of the ejb field to a wrapper class (Integer,
Long)
On Wed, 4 Apr 2001, fractals wrote:
> Hi,
>
> I dunno understand this
Yes that works perfectly well.
At 18:09 04.04.01, you wrote:
>Can you successfully look up the EJBs in your doGet method?
>
>On Wed, 4 Apr 2001, Shahar Solomianik wrote:
>
> > do you create InitialContext in the servlet init method ?
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
If you cant find the standard way for startup actions, and you still want to
use load-on-startup servlet, maybe try to forward the EmbeddedTomcat entry
in jboss.jcml , since :
___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/
I did the same thing in WL5.1 and it worked super.
Tahir
> -Original Message-
> From: Alexander Jerusalem [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 04, 2001 12:36 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] load-on-startup Servlet can't find EJB
l 04, 2001 6:36 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] load-on-startup Servlet can't find EJB
I can't put it in the service method because I want that code to run
automatically every time JBoss starts up.
thanks,
Alexander Jerusalem
At 18:23 04.04.01, you wrote:
>so
uot; , can anyone
>comment on this ?
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
>Jerusalem
>Sent: Wednesday, April 04, 2001 5:58 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [JBoss-user] load-on-startup Servlet can
Can you successfully look up the EJBs in your doGet method?
On Wed, 4 Apr 2001, Shahar Solomianik wrote:
> do you create InitialContext in the servlet init method ?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
> Jerusalem
> Sent: We
8 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] load-on-startup Servlet can't find EJB
Yes and my codes works when I put it in the service method and call the
Servlet via a browser. Only if the same code is in init does the JNDI
lookup fail.
Alexander Jerusalem
At 17:38 04.04.01, you w
Yes and my codes works when I put it in the service method and call the
Servlet via a browser. Only if the same code is in init does the JNDI
lookup fail.
Alexander Jerusalem
At 17:38 04.04.01, you wrote:
>do you create InitialContext in the servlet init method ?
>
>-Original Message-
do you create InitialContext in the servlet init method ?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
Jerusalem
Sent: Wednesday, April 04, 2001 4:11 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] load-on-startup Servlet can't find EJB
Hi,
47 matches
Mail list logo