iterator extremely slow problem
Because I found my search was very slow, so I made a simple test:
code:*
..
System.out.println(before findAll. time is+new Date().getTime());
Iterator
I'm using jboss3.03 and jdk1.4
_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---
This sf.net email is sponsored
On Tue, 2002-10-29 at 17:28, Bill Burke wrote:
JBoss is being used in production everywhere. I've been at 6 sites myself
over the past year. IMHO and experience, entity beans are not the right
choice if you're doing complex reporting. A handmade query cache with
direct JDBC will always be
Hello Gene,
According to the Log4J informations (time),
It doesn't seem the problem comes from Iterator but from
the getStudent() method:
18:13:02,484 INFO [STDOUT] in while. interval is6141
18:13:08,328 INFO [STDOUT] graduate is Íõ ά
Cheers,
Loïc
Internet
[EMAIL
Can any one help me with the cinfiguration of jboss default port. In order
to run 2 installations on one server I wish to change the default port(s)
from 1099 to 1066.I have edited the jboss.jcml for the naming service but
the second installtaion still tries to run on 1099 produving a jvm
I've tried both Konqueror and Netscape doing searches in the forums and
never get anything back. I browsed the installation and config forum.. noted
xalan mentioned and then searched for xalan in that forum. Nothing returned.
I'm logged in as user cleary. What gives?
James
Absolutely!
I don't have to add much to this, but I think that this request
(non-container ejb-ql) is so important (and a good workaround,
too), that I simply couldn't resist to reply.
Anyway, would this be difficult to achieve?
Regards,
Michael Bartmann
Pete Beck wrote:
On Tue, 2002-10-29
Running EJB-QL without Container/EB
We need to consider few points.
1) If there is no container then how do we parse the XML?
2) If there are no Entity beans then how do you query?
3) If Above points are sorted out then how do we achieve complex
joins/unions?
4) Moreover, In case of
Comments inline,
Regards,
Michael
saroj kumar wrote:
Running EJB-QL without Container/EB
We need to consider few points.
1) If there is no container then how do we parse the XML?
As I understand the main usecase: We _have_ entities (tereby xml) and
containers, but have
a way to
onsdagen den 6 november 2002 kl 13.51 skrev saroj kumar:
1) If there is no container then how do we parse the XML?
2) If there are no Entity beans then how do you query?
3) If Above points are sorted out then how do we achieve complex
joins/unions?
How would Hibernate stand up ? ...
As a
Michael,
The idea for an in memory query engine is interesting, but this requires
that all of you data to fit into memory and actually be in memory. If
you want to write it, that would be cool, but I think there are way more
important things to make CMP fast.
-dain
Michael Bartmann wrote:
Are you trying to say that you iterate over all of the cmr's in the
iterate. If you are, there is little that can be done. The current
read ahead code does not support reading ahead across relationships
on-find in response to a query. I suggest you try OptimizeIt to make
sure, but I would
Hi all.
I've posted weeks ago explaining my problem, but got no response.
My problem is that when i start JBoss 2.4.8 and 2.4.9 WITHOUT doing any
configuration changes, it says
WARN,XAConnectionFactory] XAConnectionImpl:
org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@53c375 has no current tx!
Hi all,
I am experienced two problems with JBoss on W2K + Sun JDK 1.4.0:
1. My application has run on JBoss 3.0.0 for several days without
problem, but when I tried to upgrade to JBoss 3.0.4, the JVM hang a
couple of times. I looked into the logs and could not find any exception
or
Hi,
Is it possible to configure jboss deployment
directory to deploy my
.jar files in another place than '$JBOSS_HOME/server/default/deploy' ?
TIA,
Sebastien
Hello I have been trying to look for info on this problem and I have not
found anything useful.
Let me describe my problem.
I have an applet that accesses a servlet that in turn communicates with an
EJB.
in the Applet.destroy() I send a request to my servlet called endSession
this gets handled
Yes, I also think it's a CMR problem, I really wonder why it is so slow to
get CMR.
Any other idea???help!!!
Gene
Hello Gene,
According to the Log4J informations (time),
It doesn't seem the problem comes from Iterator but from
the getStudent() method:
18:13:02,484 INFO [STDOUT]
Dain,
I'm a bit confused (especially by your phrase in memory query) and I
don't know if you
misunderstood me (or Pete's original post) or I misunderstand you.
I'll try to make clear what I meant:
1) we have a jboss with cmp2 container and deployed entities, so this
container
knows how to
Hi,
i'm using a external ldap in jboss 3.0, but when a stop and restart my ldap server,
jboss looses the connection to the ldap server. Is there a way the jboss restabilish
the connection to the external ldap ?
Thanks
.david
---
This
Hello, all - seeing some weird behavior since we upgraded from JBoss
2.4.7 to 3.0.3. I have attached our old jboss.jcml and our new
oracle-servic.xml to this email, and have included full environment
listings at the bottom of this email.
Our application has a servlet in the web tier that
Hi,
what about:
- read the primarykey from DB in ejbFindByPrimaryKey()
- set the internal data from DB in ejbLoad()
- implement a read-method in the RemoteInterface which returns an object
containing all the data
- implement a write-method in the RemoteInterface which gets an object with
the
hi all,
I'd like how to formulate a query when there is a cmr field involved.
I want a query like this:
* @ejb.finder
*signature=java.util.Collection findInPeriod( int pCalendarId,
java.sql.Date pFromDate, java.sql.Date pToDate )
*query=SELECT OBJECT(Holyday) FROM WaHolyday
Hi,
I am unable to create a new security realm using the LdapLoginModule. I
would appreciate some help configuring a new realm to point to a LDAP
directory server.
OS: XP pro SP1
JDK: 1.4.1_01
JBoss: 3.0.3
snippet from login-config.xml
!-- Internal Directory Service Authentication --
You can probably ignore this message without ill effects.
david jencks
On 2002.11.06 09:33:44 -0500 Giorgio Ponza wrote:
Hi all.
I've posted weeks ago explaining my problem, but got no response.
My problem is that when i start JBoss 2.4.8 and 2.4.9 WITHOUT doing any
configuration changes, it
Hi all. I have design question which I'm sure someone on this list can
answer without blinking, but which has been giving me fits:
Basically, I have an entity bean A whose name is derived from the names
of its CMR entity beans B and C. I.e., the name is not stored in one of
A's CMP fields
You can investigate the wrapper behavior by inserting these log statements
in
connector/src/main/org/jboss/resource/adapter/jdbc/local/LocalManagedConnection.java.
private static final Logger log =org.jboss.logging.
Logger.getLogger(LocalManagedConnection.class);
public void begin()
I'd like to ignore the message but i tell u this.
If i use Jboss 2.4.4 with a ConnectionPool of 30, if i run JMeter for a
test, it uses different connections.
If i use JBoss 2.4.9 with a ConnectionPool of 30, it always returns the
first and only connection created during startup, ignoring the
Hi:
We are in the process of moving our applications from JBoss 2.4.1 to Jboss
3.0.3, and discovered that objects passed to a remote interface are being
referenced instead of serialized like that should in accordance to the J2EE
specs. This is not the behavior we want to have, otherwise we would
Hi,
Today I tried to bind a web application to the root context of Jetty
running in Jboss 3.0.4.
I followed the instructions to create a tomcat style ROOT.war.
Unfortunately it did not work instead of getting bound to / the web app
was bound to /ROOT.
What am I doing wrong?
Here is the
Hello,
Problem configuring authentication with
JBoss 3.0.4.
This worked with JBoss 2.4.4.
Error when performing JAAS auth:
14:18:46,360 ERROR [UsersRolesLoginModule]
Failed to load users/passwords/role files
java.io.IOException: Properties file
users.properties not found
at
That is not a bug, but a feature. I would advise against turning off
that feature. (Don't know how you would turn that off) Slow
performance of apps is 9 times out of 10 caused by serialization. Do
you really want unnecessary serializations going on, slowing down your app?
Keith wrote:
Actually to answer my question.
I was able to bind ROOT.war to the / context using a jboss-web.xml file
where I defined / as context.
According to the current documentation I should have been able to do
this without the jboss-web.xml setting though.
Sebastian
-Original Message-
From:
Keith
I had a similar issue a while ago. I think you have to treat your beans
like
any other local object. Yes, they are running remotely, but the idea is
that
applications using them shouldn't think that's necessarily the case and rely
on this behaviour. With a local object, all parameters
Its a known issue, see bug [ 575000 ] Can't disable call by reference.
https://sourceforge.net/tracker/?func=detailaid=575000group_id=22866atid=376685
To workaround this you could install a custom interceptor that marshalled the
invocation and return values to mimic the call by value semantics.
I removed all of the realms from the login-config.xml except the LdapLogin Module and
still all default realms are loaded and my ldap realm is nowhere to be found.
I am unable to change the default realms, was this working on any previous 3.x jboss?
I was ok when using the auth.conf file in Jboss
Hello,
JBoss 3.0.4 with Tomcat.
I have configured login-config.xml (snippet
below), but I am getting this error, which
looks like JBoss is not getting something
from that file properly.
16:23:44,594 ERROR [STDERR]
javax.security.auth.login.LoginException:
java.lang.NullPointerException
1. where did you find this instruction ?
2. have you tried root.war ?
Jules
Sebastian Hauer wrote:
Actually to answer my question.
I was able to bind ROOT.war to the / context using a jboss-web.xml file
where I defined / as context.
According to the current documentation I should have been able
Changing the
readahead strategy should not change the results i've posted, as i run though
the beans once, hense they are loaded.
So back to the
questions: Is it acceptable that adding 2 cmrs takes 450% the
time
-Original Message-From: Herve Tchepannou
[mailto:[EMAIL
Make sure you are changing the right
login-config.xml (all or default or minimal).
One way to do that is to rename all other
setups that you are not using.
I am using 'default', so I renamed all the
rest, just to make sure nothing from there
is getting loaded, since it is not very
clear from
Hi Jules,
-Original Message-
From: Jules Gosnell [mailto:jules;mortbay.com]
Sent: Wednesday, November 06, 2002 3:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Jboss 3.0.4 with Jetty, ROOT.war
1. where did you find this instruction ?
I found it in my copy of the JBoss
I built the server from CVS and it's reporting Cp1252 as an Invalid
encoding name.
That makes it hard to deploy Bill and Sacha's Richard Monson-Haefel
examples.
RH Linux 7.3
jdk1.3.1_06
I'll post the (lengthy) stack trace if it's not me.
Title: RE: [JBoss-user] 3.2.0beta2 chokes on Cp1252
cp1252 is a Windows encoding. Doesn't surprise me
that it's not valid on Linux. Should probably be
UTF-8.
JD
-Original Message-
From: Tom Coleman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 06, 2002 1:45 PM
To: [EMAIL
I can confirm a while ago I found this bug too, neither upper or lowercase
worked for me, so forced to use the config file also. From the jetty docs:
-
Given the code above, Jetty would look in the directory ./webapps/ for all
war files and subdirectories, and configure itself with each
I have also had a lot of trouble using the LdapLoginModule
successfully. I finally decided to roll my own implementation because
I couldn't hardly read the code from the source distro ;-)
I also had a problem with the method by which the searches were being
performed, specifically, that my
Hi,
I'm in the process of porting an existing J2EE application from the
Orion Application Server to JBoss 3.0.3. The main entry point into the
application is a Swing application client ( applet ). I'm having
troubles establishing an InitialContext with JBoss. On orion, a
specific context
OK Guys,
Thanks for the input.
I'll check up on this.
Jules
LaBanca, Rick wrote:
I can confirm a while ago I found this bug too, neither upper or lowercase
worked for me, so forced to use the config file also. From the jetty docs:
-
Given the code above, Jetty would look in the
SADECE TÜRK KAÞARLAR VAR!!!
DÜNYANIN EN SEKSÝ KIZLARINI CANLI SEYREDÝN! KARÞILIKLI CHAT YAPIN, WEBCAM DE
ÝSTEDÝÐÝNÝZ HERÞEYÝ YAPSINLAR! SÝZ ÝSTEYÝN ONLAR SOYUNSUN!
TÜRK KIZLARI-TÜRK KAÞARLARI-TÜRK ÜNV. KIZLARI-TÜRK EV KADINLARI VAR! YABANCI HATUN
YOK! HEPSÝ SADECE AMA SADECE TÜRK HATUNLARI!
One thing that confused me when I was doing this was that I needed to name
the war file ROOT.war. Calling it root.war didn't work (deployed at /root
instead of /).
From: Jules Gosnell [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 06 Nov 2002 20:56:34 +
To: [EMAIL PROTECTED]
Did you miss my email? It is slow because there is no way to readahead
across a cmr on-find in response to a query. This will eventually be
in, but it is not not, so you get a query for each cmr you load. If you
use commit option A all data will be eventually be cached so it will be
fast.
Now I am completely confused. What exactly do you want that you can't
do today?
-dain
Michael Bartmann wrote:
Dain,
I'm a bit confused (especially by your phrase in memory query) and I
don't know if you
misunderstood me (or Pete's original post) or I misunderstand you.
I'll try to make
No i did not see that email.
I am using commit option A. The first time that I run through all beans, the
main ones as well as the relationship ones should all get cached, right?
If this is correct then my question stands because the times that i posted
were the 4th read.
Please see the code
I just tested on JBoss3.0.4 (all previous tests were on 3.0.3).
The times are not any better. Heres the output:
19:45:41,671 INFO [STDOUT] testing retrival speed...
19:45:41,671 INFO [STDOUT] Initial Retrival, beans may or maynot be in
cache.
19:45:41,937 INFO [STDOUT] finder took 266ms.
Well, it should be fast then. Now is when you fire up OptimizeIt and
findout what part of my code is wasting all that time.
-dain
Luttrell, Peter wrote:
No i did not see that email.
I am using commit option A. The first time that I run through all beans, the
main ones as well as the
Problem solved. After researching the source for the security.auth.spi
package (you gotta love open source) and some MySQl docs, I discovered
that MySQL returns MD5() encrypted passwords in HEX format. SO I simply
changed the hashEncoding to HEX, and all worked just as
documented/expected.
How do you know you are always getting the same connection?
Is your useage multithreaded so you have 30 simultaneous transactions? If
you have only one thread at a time, using only one connection is entirely
appropriate.
david jencks
On 2002.11.06 12:53:10 -0500 Giorgio Ponza wrote:
I'd like
I'm facing a problem when try to lookup to local home entity bean with
error java.lang.ClassCastException. But I've no problem with lookup to
remote home.
InitialContext ic = new InitialContext();
out.print(JSP Done, Initial Context + BR);
Object objRef = ic.lookup(RadiusHome);
I believe that despite Crimson's opinion to the contrary, this is not a
valid encoding. Try encoding=ISO-8859-1 or UTF-8.
david jencks
On 2002.11.06 16:45:18 -0500 Tom Coleman wrote:
I built the server from CVS and it's reporting Cp1252 as an Invalid
encoding name.
That makes it hard to
On Wednesday 06 November 2002 10:49 pm,
[EMAIL PROTECTED] wrote:
I'm facing a problem when try to lookup to local home entity bean
with error java.lang.ClassCastException. But I've no problem with
lookup to remote home.
InitialContext ic = new InitialContext();
out.print(JSP Done,
I've been doing a:
* @jboss:query signature=Collection
findFundStatusReservedByJbCode(java.lang.Integer
JB_CODE)
* query=SELECT OBJECT(jr) FROM GlJournalBatch jb,
IN(jb.glJournals) jr WHERE jb.jbCode=?1 AND
jr.jrFundStatus='R'
and keep getting a:
org.jboss.deployment.DeploymentException:
The jr.jrFundStatus field is obviously a number and therefore cannot be
compared to a string literal. Either change the field to a String or
change the query.
-dain
Rene Palad wrote:
I've been doing a:
* @jboss:query signature=Collection
findFundStatusReservedByJbCode(java.lang.Integer
Hi Neal,
I create entity bean with EJB2.0 CMP2.0, compose of Radius.java,
RadiusHome.java, RadiusBean.java. I have one method call findAll() to query
all record in the database.
Source code of RadiusHome.java
package testdb;
import javax.ejb.*;
import java.util.*;
import java.lang.*;
public
Thanks. I was just migrating my codes from caucho
resin-ee to jboss 3x. I guess 'char' comparison
inside EJB-QL expression isn't in the specs but this
worked fine in resin-ee, it appears that it was
proprietary. I should have made it a String for
portability. Anyway, as a workaround, I just
62 matches
Mail list logo