A client calls several applications ?

2002-02-20 Thread Remy . Boucher

Hi,

I 'm using an orion application server on which is deployed 3 applications.
I've got a problem when a client try to use these applications.

The client call a bean of the first application, and after calls differents
beans  of the second application. There is sometime a problem during the
call to the second application. This problem is not systematic...

Let 's see the message : rulbok and acs are the name of my applications

On the client :

Exception passing by from remote server:
com.evermind.server.rmi.OrionRemoteException: Disconnected:
 Protocol error: invalid domain for this connection: rulbok
com.evermind.server.rmi.OrionRemoteException: Disconnected: Protocol error:
invalid domain for this
connection: rulbok
at
com.evermind.server.rmi.RMIConnection.disconnect(RMIConnection.java:1769)
at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:541)
at java.lang.Thread.run(Thread.java:539)


On the server :

Read command: 8
Read command: 25
Disconnected: Protocol error: invalid domain for this connection: acs
Disconnected: Protocol error: invalid domain for this connection: acs


What is very surprising is that the client  sometime continue and sometime
is frozen


Thanks for your help.

-- Rémy-- 






EJB from an Applet

2002-02-20 Thread Oscar Radio

Hi all,

I'm developing an application using swing that executes remotes EJB.
The applications works fine if I executed from NetBeans, but if I executed
from an applet it gives me the next error:

JERP.Applets.CO.bin.ConexionServidorEJB.jndiContext-javax.naming.InitialCon
text@5e2ccd
java.lang.ClassCastException
at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown
Source)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at
JERP.Applets.CO.bin.PanelAccesoJERP.inicializarComponentes(PanelAccesoJERP.j
ava:142)
at
JERP.Applets.CO.bin.PanelAccesoJERP.init(PanelAccesoJERP.java:69)
at
JERP.Applets.CO.bin.AccesoJERP.inicializarComponentes(AccesoJERP.java:71)
at JERP.Applets.CO.bin.AccesoJERP.init(AccesoJERP.java:56)
at applet.init(applet.java:82)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The same code with JBoss it works. These are the jars that I put in netbeans
and in the jre:

ejb.jar
jdbc.jar
jta.jar
mail.jar
orion.jar

Thanks, Oscar.




Re: Orion 1.5.4 Local/LocalHome with BMP - deployment problem

2002-02-20 Thread Morten Wilken



im very impressed with ed romans enterprise 
javabeans 2.0... one of the best computerbooks ive ever read.

sincerely
morten wilken

  - Original Message - 
  From: 
  B.Adji 
  Maharyatno 
  To: Orion-Interest 
  Sent: Wednesday, February 20, 2002 7:04 
  AM
  Subject: RE: Orion 1.5.4 Local/LocalHome 
  with BMP - deployment problem
  
  Can 
  add:
  
  Special Edition Using EJB 2.0 [Que].
  
  Professional Java EE 1.3 is kind of everything-in-one, not so focus on 
  EJB development.
  I 
  like the Enterprise Javabeans 3ed, OReilly most, as it's easy to bring for 
  travel but covers EJB in neutral way (or at least to Sun J2EE RI 
  1.3).
  Others, I found rather specific to other EJB implementation. 
  
  The 
  author also provide workbook for implementation to EJB Containers (like WL, WS 
  and J2EE RI).
  
  Another book specific to Oracle implementation (which quite similiar to 
  Orion), is Oracle9i Web Development.
  
  Cheers.
  
  
-Original Message-From: Jorge De Flon 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 20, 2002 
9:53 AMTo: Orion-InterestSubject: Re: Orion 1.5.4 
Local/LocalHome with BMP - deployment problem
Mastering EJB 2ed (Ed Roman, etc.) [AW]
Enterprise Java Beans de Oreilly 3ed
Professional EJB wrox
Professional Java EE 1.3 [Wrox]

I am just reading them all and I like the first the most
regards




  - Original Message - 
  From: 
  Robert S. 
  Sfeir 
  To: Orion-Interest 
  Sent: Tuesday, February 19, 2002 
  11:41 AM
  Subject: Re: Orion 1.5.4 
  Local/LocalHome with BMP - deployment problem
  
  2) can u pls suggest some good 
  books/online material to EJB basics
  
  http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/


Orion 1.5.4 changes '.' to '_' in table specification in orion-ejb-jar.xml

2002-02-20 Thread trond ronneberg

When we are trying to deploy an existing .EAR file
to Orion 1.5.4,
Orion changes the orion-ejb-jar.xml file in a way that makes the deployed
CMP entity beans to fail:

The tables are situated in a database on a AS400 server, and when connecting
from the app-server we can not log on with the 'user' owning the tables.
Because of this, our orion-ejb-jar.xml specifies the tables to be used by
entity-beans like:

table=dtks000.quote

When starting Orion, this is now changed to:

table=dtks000_quote

which does not work.

This is not the same behavior as in Orion 1.5.3.
Is there anyone who can tell me whats wrong?

regards,
Trond Rønneberg,
Mogul Technology


_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





RE: (repost) FW: A word of warning: SwiftMQ and Resource providers.

2002-02-20 Thread Ray Harrison

I am using 1.3.1_02 and SwiftMQ 3.0 beta.

--- Geoff Soutter [EMAIL PROTECTED] wrote:
 Hmm. Strange. 
 
 I'm definitely using 1.5.4, you can see it in the console output I
 included below. I tried doing an autoupdate and trying it again, made no
 difference. I even did a recursive diff against the .zip version and the
 autoupdate version and they are identical (despite the fact autoupdate
 claimed it was overwriting most of the files).
 
 There must be a logical explanation ... but I can't see it ...
 
 I'm using jdk 1.3.1_02 and SwiftMQ 2.1.3. Is that the versions you guys
 are using?
 
 geoff
 
 PS, I'm not using Topics myself, I was only providing a FYI for those
 that cared... 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Ray Harrison
 Sent: Wednesday, 20 February 2002 10:04 AM
 To: Orion-Interest
 Cc: [EMAIL PROTECTED]
 Subject: Re: (repost) FW: A word of warning: SwiftMQ and Resource
 providers.
 
 
 Interesting - I *don't* get that error any longer with 1.5.4, though I
 did with 1.5.3.
 --- Geoff Soutter [EMAIL PROTECTED] wrote:
  Argh. Mailing lists that are not reliable annoy the  out of me.
  
  -Original Message-
  From: Geoff Soutter [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, 19 February 2002 9:32 AM
  To: 'Orion-Interest'
  Subject: RE: A word of warning: SwiftMQ and Resource providers.
  
  
  Hi Magnus,
  
  All I did was follow the instructions in the resource providers 
  document 
 
 (http://www.orionserver.com/docs/resource-providers/resource-providers.x
  ml)
  
  As soon as I added the resource-provider tag you quoted below, and 
  restarted orion, I got:
  
  C:\apps\orion\154java -jar orion.jar
  Error deploying file:/C:/temp/newsfeed/build/newsfeed/newsfeed-ejb.jar
  homes: JMS Error: Queue 'testtopic' is not local! Can't create a 
  Consumer on it!
  2002-02-19 09:23:14,435 INFO   StartupServlet - startup completed
  Orion/1.5.4 initialized
  
  Which is exactly the same error as originally reported below.
  
  Cheers,
  
  Geoff
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] On Behalf Of Magnus 
  Rydin
  Sent: Monday, 18 February 2002 7:35 PM
  To: Orion-Interest
  Subject: RE: A word of warning: SwiftMQ and Resource providers.
  
  
  Geoff,
  
  It IS fixed in 1.5.4, so please let us know what fails for you. Here 
  is a sample setup:
  
  1. Set up and start SwiftMQ.
  
  2. In your /config/application.xml have a setup like the following: 
  resource-provider 
  class=com.evermind.server.deployment.ContextScanningResourceProvider
  display-name=SwiftMQ resource name=SwiftMQ 
  description 
  SwiftMQ resource provider. 
  /description 
  property name=java.naming.factory.initial
  value=com.swiftmq.jndi.InitialContextFactoryImpl / 
  property name=java.naming.provider.url
 value=smqp://localhost:4001
  / 
  property name=resource.names
  value=testtopic,testqueue@router1,plainsocket@router1 / 
  /resource-provider
  
  3. Start Orion, deploy the ATM sample (it uses a MDB with a topic)
  
  4. Configure the ATM sample to use your resource provider with 
  something like the following in your orion-ejb-jar.xml: 
  message-driven-deployment name=mainLogger 
  destination-location=java:comp/resource/SwiftMQ/testtopic
  connection-factory-location=java:comp/resource/SwiftMQ/plainsocket@ro
  ut
  er1
  ejb-ref-mapping name=ejb/mainLog /
  /message-driven-deployment
  
  Could you please let me know where/how this fails for you?
  
  WR
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff 
  Soutter
  Sent: den 18 februari 2002 02:50
  To: Orion-Interest
  Subject: RE: A word of warning: SwiftMQ and Resource providers.
  
  FYI, this was not fixed in 1.5.4.
  
  Naughty Magnus! :-)
  
  Geoff
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] On Behalf Of Ray 
  Harrison
  Sent: Monday, 14 January 2002 8:50 AM
  To: Orion-Interest
  Subject: Re: A word of warning: SwiftMQ and Resource providers.
  
  
  According to Magnus R, the problem will be fixed in the next release. 
  I don't know if you can use SwiftMQ / Topics with the Oracle code base
 
  (OC4J), but maybe worth a shot. Hopefully soon from the good folks at 
  Orion!
  --- Graham Bennett [EMAIL PROTECTED] wrote:
   On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote:
   Recently looking at the Resource-Providers docs, and EAGER to
 use
   an external JMS for my MDBs I and a colleague decided to run
 the
   demos.  As quite a surprise the demo run ok. The MDB did
  everything
   when a message was sent to the Queue.

   The BIG disappointment was, when we tried to do the same with
 the
   topic.  In short: It does not work.
   
Error deploying
file:/D:/Temp/Orion/applications/Orion2SwiftMQ/Orion2SwiftMQ.jar
homes: JMS Error: Queue 'testtopic' is 

RE: (repost) FW: A word of warning: SwiftMQ and Resource providers.

2002-02-20 Thread Ray Harrison

Also, I just tested the ATM as per Magnus' suggestion and it worked there as well. 
Have you tried
it with SwiftMQ 3.0 (I know they just got rid of their free licenses)? I will try it 
later with
version 2.x.
Cheers
Ray
--- Ray Harrison [EMAIL PROTECTED] wrote:
 I am using 1.3.1_02 and SwiftMQ 3.0 beta.
 
 --- Geoff Soutter [EMAIL PROTECTED] wrote:
  Hmm. Strange. 
  
  I'm definitely using 1.5.4, you can see it in the console output I
  included below. I tried doing an autoupdate and trying it again, made no
  difference. I even did a recursive diff against the .zip version and the
  autoupdate version and they are identical (despite the fact autoupdate
  claimed it was overwriting most of the files).
  
  There must be a logical explanation ... but I can't see it ...
  
  I'm using jdk 1.3.1_02 and SwiftMQ 2.1.3. Is that the versions you guys
  are using?
  
  geoff
  
  PS, I'm not using Topics myself, I was only providing a FYI for those
  that cared... 
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] On Behalf Of Ray Harrison
  Sent: Wednesday, 20 February 2002 10:04 AM
  To: Orion-Interest
  Cc: [EMAIL PROTECTED]
  Subject: Re: (repost) FW: A word of warning: SwiftMQ and Resource
  providers.
  
  
  Interesting - I *don't* get that error any longer with 1.5.4, though I
  did with 1.5.3.
  --- Geoff Soutter [EMAIL PROTECTED] wrote:
   Argh. Mailing lists that are not reliable annoy the  out of me.
   
   -Original Message-
   From: Geoff Soutter [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, 19 February 2002 9:32 AM
   To: 'Orion-Interest'
   Subject: RE: A word of warning: SwiftMQ and Resource providers.
   
   
   Hi Magnus,
   
   All I did was follow the instructions in the resource providers 
   document 
  
  (http://www.orionserver.com/docs/resource-providers/resource-providers.x
   ml)
   
   As soon as I added the resource-provider tag you quoted below, and 
   restarted orion, I got:
   
   C:\apps\orion\154java -jar orion.jar
   Error deploying file:/C:/temp/newsfeed/build/newsfeed/newsfeed-ejb.jar
   homes: JMS Error: Queue 'testtopic' is not local! Can't create a 
   Consumer on it!
   2002-02-19 09:23:14,435 INFO   StartupServlet - startup completed
   Orion/1.5.4 initialized
   
   Which is exactly the same error as originally reported below.
   
   Cheers,
   
   Geoff
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]] On Behalf Of Magnus 
   Rydin
   Sent: Monday, 18 February 2002 7:35 PM
   To: Orion-Interest
   Subject: RE: A word of warning: SwiftMQ and Resource providers.
   
   
   Geoff,
   
   It IS fixed in 1.5.4, so please let us know what fails for you. Here 
   is a sample setup:
   
   1. Set up and start SwiftMQ.
   
   2. In your /config/application.xml have a setup like the following: 
   resource-provider 
   class=com.evermind.server.deployment.ContextScanningResourceProvider
   display-name=SwiftMQ resource name=SwiftMQ 
   description 
   SwiftMQ resource provider. 
   /description 
   property name=java.naming.factory.initial
   value=com.swiftmq.jndi.InitialContextFactoryImpl / 
   property name=java.naming.provider.url
  value=smqp://localhost:4001
   / 
   property name=resource.names
   value=testtopic,testqueue@router1,plainsocket@router1 / 
   /resource-provider
   
   3. Start Orion, deploy the ATM sample (it uses a MDB with a topic)
   
   4. Configure the ATM sample to use your resource provider with 
   something like the following in your orion-ejb-jar.xml: 
   message-driven-deployment name=mainLogger 
   destination-location=java:comp/resource/SwiftMQ/testtopic
   connection-factory-location=java:comp/resource/SwiftMQ/plainsocket@ro
   ut
   er1
 ejb-ref-mapping name=ejb/mainLog /
 /message-driven-deployment
   
   Could you please let me know where/how this fails for you?
   
   WR
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff 
   Soutter
   Sent: den 18 februari 2002 02:50
   To: Orion-Interest
   Subject: RE: A word of warning: SwiftMQ and Resource providers.
   
   FYI, this was not fixed in 1.5.4.
   
   Naughty Magnus! :-)
   
   Geoff
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]] On Behalf Of Ray 
   Harrison
   Sent: Monday, 14 January 2002 8:50 AM
   To: Orion-Interest
   Subject: Re: A word of warning: SwiftMQ and Resource providers.
   
   
   According to Magnus R, the problem will be fixed in the next release. 
   I don't know if you can use SwiftMQ / Topics with the Oracle code base
  
   (OC4J), but maybe worth a shot. Hopefully soon from the good folks at 
   Orion!
   --- Graham Bennett [EMAIL PROTECTED] wrote:
On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote:
Recently looking at the Resource-Providers docs, and EAGER to
  use
an external JMS for my MDBs I and a 

SV: (repost) FW: A word of warning: SwiftMQ and Resource providers.

2002-02-20 Thread Magnus Rydin

For the record,
in our tests we were using both 1.3.1_02 and 1.4.0_b92 together with
Swift 2.1.3

WR

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] För Ray Harrison
Skickat: den 20 februari 2002 13:40
Till: Orion-Interest
Ämne: RE: (repost) FW: A word of warning: SwiftMQ and Resource
providers.


Also, I just tested the ATM as per Magnus' suggestion and it worked
there as well. Have you tried it with SwiftMQ 3.0 (I know they just got
rid of their free licenses)? I will try it later with version 2.x.
Cheers Ray
--- Ray Harrison [EMAIL PROTECTED] wrote:
 I am using 1.3.1_02 and SwiftMQ 3.0 beta.
 
 --- Geoff Soutter [EMAIL PROTECTED] wrote:
  Hmm. Strange.
  
  I'm definitely using 1.5.4, you can see it in the console output I 
  included below. I tried doing an autoupdate and trying it again, 
  made no difference. I even did a recursive diff against the .zip 
  version and the autoupdate version and they are identical (despite 
  the fact autoupdate claimed it was overwriting most of the files).
  
  There must be a logical explanation ... but I can't see it ...
  
  I'm using jdk 1.3.1_02 and SwiftMQ 2.1.3. Is that the versions you 
  guys are using?
  
  geoff
  
  PS, I'm not using Topics myself, I was only providing a FYI for 
  those that cared...
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] On Behalf Of Ray 
  Harrison
  Sent: Wednesday, 20 February 2002 10:04 AM
  To: Orion-Interest
  Cc: [EMAIL PROTECTED]
  Subject: Re: (repost) FW: A word of warning: SwiftMQ and Resource
  providers.
  
  
  Interesting - I *don't* get that error any longer with 1.5.4, though

  I did with 1.5.3.
  --- Geoff Soutter [EMAIL PROTECTED] wrote:
   Argh. Mailing lists that are not reliable annoy the  out of 
   me.
   
   -Original Message-
   From: Geoff Soutter [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, 19 February 2002 9:32 AM
   To: 'Orion-Interest'
   Subject: RE: A word of warning: SwiftMQ and Resource providers.
   
   
   Hi Magnus,
   
   All I did was follow the instructions in the resource providers
   document 
  
  (http://www.orionserver.com/docs/resource-providers/resource-provide
  rs.x
   ml)
   
   As soon as I added the resource-provider tag you quoted below, 
   and
   restarted orion, I got:
   
   C:\apps\orion\154java -jar orion.jar
   Error deploying 
   file:/C:/temp/newsfeed/build/newsfeed/newsfeed-ejb.jar
   homes: JMS Error: Queue 'testtopic' is not local! Can't create a 
   Consumer on it!
   2002-02-19 09:23:14,435 INFO   StartupServlet - startup completed
   Orion/1.5.4 initialized
   
   Which is exactly the same error as originally reported below.
   
   Cheers,
   
   Geoff
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]] On Behalf Of Magnus
   Rydin
   Sent: Monday, 18 February 2002 7:35 PM
   To: Orion-Interest
   Subject: RE: A word of warning: SwiftMQ and Resource providers.
   
   
   Geoff,
   
   It IS fixed in 1.5.4, so please let us know what fails for you. 
   Here
   is a sample setup:
   
   1. Set up and start SwiftMQ.
   
   2. In your /config/application.xml have a setup like the 
   following:
   resource-provider 
  
class=com.evermind.server.deployment.ContextScanningResourceProvider
   display-name=SwiftMQ resource name=SwiftMQ 
   description 
   SwiftMQ resource provider. 
   /description 
   property name=java.naming.factory.initial
   value=com.swiftmq.jndi.InitialContextFactoryImpl / 
   property name=java.naming.provider.url
  value=smqp://localhost:4001
   /
   property name=resource.names
   value=testtopic,testqueue@router1,plainsocket@router1 / 
   /resource-provider
   
   3. Start Orion, deploy the ATM sample (it uses a MDB with a topic)
   
   4. Configure the ATM sample to use your resource provider with
   something like the following in your orion-ejb-jar.xml: 
   message-driven-deployment name=mainLogger 
   destination-location=java:comp/resource/SwiftMQ/testtopic
  
connection-factory-location=java:comp/resource/SwiftMQ/plainsocket@ro
   ut
   er1
 ejb-ref-mapping name=ejb/mainLog /
 /message-driven-deployment
   
   Could you please let me know where/how this fails for you?
   
   WR
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff
   Soutter
   Sent: den 18 februari 2002 02:50
   To: Orion-Interest
   Subject: RE: A word of warning: SwiftMQ and Resource providers.
   
   FYI, this was not fixed in 1.5.4.
   
   Naughty Magnus! :-)
   
   Geoff
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]] On Behalf Of Ray
   Harrison
   Sent: Monday, 14 January 2002 8:50 AM
   To: Orion-Interest
   Subject: Re: A word of warning: SwiftMQ and Resource providers.
   
   
   According to Magnus R, the problem will be fixed in the next 
   release.
   I don't know if you can use SwiftMQ 

java.io.EOFException 1.5.4

2002-02-20 Thread Mike Weissman

I have installed 1.5.4 and am using j2sdk1.4.0
when running orion get java.io.EOFException spit out from console window 
every few seconds.  Same problem as was reported in an earlier version.
java.io.EOFException
 at java.io.DataInputStream.readFully(DataInputStream.java:212)
 at java.io.DataInputStream.readUTF(DataInputStream.java:579)
 at java.io.DataInputStream.readUTF(DataInputStream.java:550)
 at com.evermind._gt._na(.:25)
 at com.evermind._gs._na(.:96)
 at com.evermind._kk.run(.:186)
 at java.lang.Thread.run(Thread.java:536)
I tried autoupdate as recommended on earlier version, no change.
any help is appreciated.

thank you
mike
-- 
##
Michael Weissman  [EMAIL PROTECTED]
Clarent Corporation 7851 S. Elati St. Suite 200
Littleton, Co 80120  Ph: 303-734-5003  Fax: 303-734-4244
In the land of the dark, the ship of the sun is drawn by the
grateful dead -- Egyptian Book of the Dead
##





More Clustering woes

2002-02-20 Thread Jesse Schoch


I was trying to setup vrrpd (a free vrrp) implementation to provide
availability for boxes running loadbalancer.jar but it seems there is
multicast address conflict.

Is there a way to set what multicast the loadbalancer.jar uses?

-jesse schoch





Re: Virtual hosting configuration

2002-02-20 Thread Scott Farquhar

Dominic,

I'm not sure if you are aware of the Atlassian Knowledge Base, but a 
quick search there produces a few results:

   http://kb.atlassian.com/search.jsp?query=virtual+host

Which gives the document:

   http://kb.atlassian.com/content/orionsupport/articles/vhosts.html

Cheers,
Scott

Dominic Hanlan wrote:

 I am trying to configure virtual hosting on Orion. I produce .ear files 
 with Ant for my deployment, and have used virtual hosting for about a year.
 
 Unfortunately my server crashed, and the config files :-( were not 
 backed up.
 
 The only references / tutorials I can now find do not reference the .ear 
 files in the path.
 
 Configuring for single hosts works fine with the .ear specified in the 
 path, where and how do I specify the .ear files when using virtual hosting.
 
 Regards
 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





Many clicks, many request...

2002-02-20 Thread Juan Andres Chau Li

Hi,
If I make 100 clicks fastly from my browser in a servlet, it generates 100
requests and 100 processes in the server. One only process is very time
consuming.

Is there a way to process the fisrt click and avoid the rest 99 clicks.

Any alternatives?

Thank you.
Andres.





Re: BMP Entity Bean Performance Problem

2002-02-20 Thread Scott Farquhar

Tim,

As I am not sure of the exact nature of your entity beans, I can't give 
you any detailed suggestions, but many people impement a 'dirty' flag in 
their code.

eg:

void setName(String name)
{
dirty=true;
this.name = name;
}

ejbStore()
{
   if (!dirty)
   return;
   else
   {
 doUpdate();
 dirty=false;
   }
}

This limits the number of updates that you are doing.

I assume that you have a very good reason for using BMP, but I would 
suggest that you use CMP where possible.  The performance benefits are 
quite large.

Cheers,
Scott

Tim Kang wrote:

 Hi
 
 I am using JSP (client) and BMP Entity beans (for mysql db) in my
 application. I am having a few problems in terms of performance.
 
 1. When I call homeObject.findAll() for the first time, ejbLoad() is invoked
 for every row in the database. I know this only happens once so I can
 tolerate this but I am open to suggestions.
 
 2. Once the entity beans are loaded, I call
 homeObject.findByPrimaryKey().getSomeAttribute(). This calls ejbStore() for
 every row in the database as well. This is not acceptable as the EJB is
 performing UPDATE * number of rows in DB.
 
 I tried to solve this by implementing a stateful session bean acts a middle
 layer between JSP and entity beans. However, the problem still exists
 
 My session bean code:
 
 public class PubcompanyManagerBean implements SessionBean{
 
   private SessionContext context;
 
   private PubCompany pubcompany;
   private PubCompanyHome pubcompanyhome;
 
   public void ejbCreate() throws NamingException, RemoteException {}
 
   public void ejbRemove() {}
   public void ejbActivate() {}
   public void ejbPassivate() {}
   public void setSessionContext(SessionContext sc) {
 context = sc;
   }
 
   // Business logic methods
   public Collection getAllPubCompanies() throws NamingException,
 RemoteException, FinderException {
 Context context = new InitialContext();
 pubcompanyhome = (PubCompanyHome)PortableRemoteObject.narrow(
   context.lookup(java:comp/env/crm/PubCompany), PubCompanyHome.class);
 Collection companyList = pubcompanyhome.findAll();
 return companyList;
   }
 
   public PubCompany getPubCompany(String companyid) throws NamingException,
 RemoteException, FinderException {
 Context context = new InitialContext();
 pubcompanyhome = (PubCompanyHome)PortableRemoteObject.narrow(
   context.lookup(java:comp/env/crm/PubCompany), PubCompanyHome.class);
 pubcompany = pubcompanyhome.findByPrimaryKey(companyid);
 return pubcompany;
   }
 }
 
 
 Thanks in advance,
 
 Tim
 
 
 
 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





RE: Many clicks, many request...

2002-02-20 Thread Casey Helbling

you could try some java script on the input type... but that is a pain but
it works.


Casey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Juan Andres
Chau Li
Sent: Wednesday, February 20, 2002 5:08 PM
To: Orion-Interest
Subject: Many clicks, many request...


Hi,
If I make 100 clicks fastly from my browser in a servlet, it generates 100
requests and 100 processes in the server. One only process is very time
consuming.

Is there a way to process the fisrt click and avoid the rest 99 clicks.

Any alternatives?

Thank you.
Andres.





Re: Many clicks, many request...

2002-02-20 Thread Tim Endres

This is usually handled by wrapping JavaScripts around the clickable object
to disable it upon the first click, thus eliminating the next 99 clicks.
tim.

 Hi,
 If I make 100 clicks fastly from my browser in a servlet, it generates 100
 requests and 100 processes in the server. One only process is very time
 consuming.
 
 Is there a way to process the fisrt click and avoid the rest 99 clicks.
 
 Any alternatives?
 
 Thank you.
 Andres.
 
 





RE: Many clicks, many request...

2002-02-20 Thread SAURUGGER,PETER (A-PaloAlto,ex2)

Yes. On the Web page use a scripted button to submit the formdata; use
boolean variable isSubmitted to indicate whether to submit. Once you set it
to true after submission, simply ignore the next click or alert the user
that it was done already and s/he has to be patient and wait ...

--peter

-Original Message-
From: Juan Andres Chau Li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 3:08 PM
To: Orion-Interest
Subject: Many clicks, many request...


Hi,
If I make 100 clicks fastly from my browser in a servlet, it generates 100
requests and 100 processes in the server. One only process is very time
consuming.

Is there a way to process the fisrt click and avoid the rest 99 clicks.

Any alternatives?

Thank you.
Andres.





How is the autoid generated? Chokes SAP DB.

2002-02-20 Thread Ray Harrison

Hi -
Does anyone know off hand how the autoid is generated in 1.5.4? The value produced 
chokes SAP DB
(it produces an invalid exponent error when trying to insert the row). Works fine in 
Oracle.

Thanks much
Ray

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com