If you want a home made solution, you can always create a UUID table in your database.
Create one field with the name and one field with
value.
You can implement a cmp, bmp or session bean to read the table, increase value and
update.
By creating a generic interface and a factory class you can
ed in production, and at the moment it looks like it works fine.
I would like to explore different (and maybe more correct solutions).
Any ideas?
/Gorano
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840437#3840437
Reply to the post :
http://
To be able to flush the entire cache, you can invoke the flushAuthenticationCache
method.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840435#3840435
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840435
--
In jboss-service.xml you will find:
|
|
| org.jboss.security.plugins.JaasSecurityManager
|
|TimeoutInSeconds
| TimeoutInSeconds
If not specified, JBoss use the following values:
DefaultCacheTimeout=1800
DefaultCacheResolution=60 (interval to check t
You can create a BMP.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840203#3840203
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840203
---
This SF.Net ema
What exactly are you caching?
Initial Context, RemoteHome or/and Remote Object?
If you give some more background I can give you some hints that works for us.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840109#3840109
Reply to the post :
http://
Sounds like a cool feature. Info about this can probably be found on Apache Tomcat
site.
I will check this useful feature out right now.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840110#3840110
Reply to the post :
http://www.jboss.org/index.html
Some .ser file??
You have to specify the name of the file and and
post the trace log to be able to get some help.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840102#3840102
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=
I think it makes more sense to have this file in the tomcat sar.
The change is in the change log. Something that has to be read when you move version.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840017#3840017
Reply to the post :
http://www.jboss.o
anonymous wrote : java.lang.NoSuchMethodError:
org.apache.bcel.generic.InstructionFactory.
You probably have another copy of bcel.jar, that
is conflicting with the version in JBoss. The most common one is if you have xalan.jar
in your JAVA_HOME/jre/lib/endorsed directory.
Info about this c
Configurations take place in web.xml and and the jboss specific jboss-web.xml.
Those files should be in the lib directory inside your war.
Yes, you have to rebuild your war every time. This is not a problem if you use a
proper IDE, for example Eclipse.
ANT is a great tool to automate all your b
If you have not succesfully deployed any CMPs yet, please provide more info on syntax
and deployment descriptors.
It is most likely your CMPs are not correct.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839160#3839160
Reply to the post :
http://
Update versions "outside" JBoss to be the same as the one used in JBoss.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839159#3839159
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839159
You have another copy of bcel.jar, that is conflicting with the version in JBoss. The
most common one is if you have xalan.jar in your JAVA_HOME/jre/lib/endorsed directory.
Info about this can be found on the WIKI.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=v
Sorry, didn't read yur post to the end :-(
Im so lazy.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839132#3839132
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839132
-
Telnet will probably fail, and you have a network issue to sort out.
If it doesn't fail you will get some rubish back from JBoss as a response.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839131#3839131
Reply to the post :
http://www.jboss.org/index.h
Try to telnet the server on port 1099.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839130#3839130
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839130
---
Th
we have a quite heavy Struts site developed and tested on 3.2.3. Deployed it on 3.2.4
production
a few days ago. We have not experienced any problems at all so far (Just want to help
ruling out any bug thoughts).
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewt
It's fine as long as the fields are "out of date" and not in use by the CMPs anymore.
In our scenario we are deleting records older then
1 week. The table is a cache for temporary mapping and we have tuned the CMP cache to
expire the records if they are 6 days or older, and the nature of the map
I don't know what your implementation looks like
, but I think you have to very
careful with the approach you have taken.
Create a separate UniqueID table instead, that keep track of the Ids.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838983#3838983
Are you using data sources? If so, make sure you
close them when you have finished using them.
check and double check.
This error occurs when you exhaust the connection pool. Larger pool will only buy you
some more time.
/G
View the original post :
http://www.jboss.org/index.html?module=
What is the total query time in the 2 examples given?
You will have an overhead from java compared to
plsql before the actual query is processed on the DB and after the query is finished
and the result is transfered back to your application. For very small queries you
could end up with this resu
Buy more hardware :-)
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838721#3838721
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838721
---
This SF.Net email
If you read the spec you will see that rollback on on only some exceptions make sense.
One of the most important things to understand in J2EE development is transactions. If
you want to
force rollback you can always play with the
setRollbackOnly() method.
/G
View the original post :
http://w
We are using the data source and make the bulk delete with a normal query.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838715#3838715
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838715
--
BMP
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838716#3838716
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838716
---
This SF.Net email is sponsored by The
Sorry. I'm just a programmer using a Linux server configured by our network guys.
I think you should ask the question in a Linux forum, since this question is not JBoss
related.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838508#3838508
Reply to the p
No bug. No workaround. You just have to get the syntax right.
If you want someone to help you out, you have to list the related parts from both
jboss.xml and jbosscmp-jdbc.xml.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838380#3838380
Reply to the po
If your manager are serious about what the development department are doing you should
have upgraded long time ago.
I don't think you will get many answers in this
forum on such an old version.
It will probably just be people like me, bothering you with useless comments about
your choice of vers
In the datasource.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838265#3838265
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838265
---
This SF.Net email is s
Why do you have to login before you access the protected area?
If you still want to do so, why not make the unprotected protected?
Ok I can see some special cases when you want to do it in the way
you describe. Make a small protected page with a redirect in the HTML
to the unprotected.
/G
Vie
If you leave your application and have a coffe, you will be able to use the new role
when you come back.
There is a cache and a time to live setting you can play with. Default is 30 minutes.
Make your changes in jboss-service.xml
org.jboss.security.plugins.JaasSecurityManagerService
/G
View
take a look at:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=50577
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838220#3838220
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838220
-
You can also play with the more generic:
| SELECT 1
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838219#3838219
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838219
I don't think you can do that. Maybe some one else have done it,
I don't know.
What I have done once is two different DBs with the same tables.
Created a super bean and inherited two beans connecting to
the different schemas. The client could choose what bean to use.
/G
View the original post
The same reason as no other applications
should run run as root.
Security. You can give an administrator
access to JBoss user but not to the rest
of the server.
At home when you play around with JBoss
it doesn't matter.
/G
View the original post :
http://www.jboss.org/index.html?mo
All versions of JBoss are complete!
I have used all versions from 3.0.8 to 3.2.4,
and all of them are working well.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838208#3838208
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode
I am using the comm library for serial port communication from an MBean. My MBean code
do not have any problems to find the classes.
Play around with it a bit more!
You can make the MBean an RMI object or use the RMIAdapter.
I also saw something in the Admin documents about client access
to MBean
did you read this one?
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=45963
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837642#3837642
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837642
--
Put the comm-files in the following JDK directories:
j2sdk/jre/lib/javax.comm.properties
j2sdk/jre/lib/ext/comm.jar
j2sdk/jre/lib/i386/win32com.dll (or equivalent for linux)
You can access an MBean remotely, but normal usage is to use the MBean as a framework
for your application. Gives you a ni
You have to post the config files before someone
can have a look into what is wrong.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837486#3837486
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837486
---
Add the file jboss-web.xml in your WEB-INF
/context-root>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837485#3837485
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837485
You can't change database in DefaultDB without changing the JMS configuration.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836923#3836923
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836923
If you have to use a datasource from your client I guess most J2EE programmers would
agree that you have a problem with the design of your application.
Use the datasource in a session bean and do remote calls from the client.
The whole idea behind J2EE is to keep the bussiness logic on the serve
Did you add "SelectMethod=Cursor" in your connection string to MSSql?
Using the jdbc driver from MS do not using cursors for larger resultsets if this
parameter is not specified, and it fails.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835990#3835
Whats wrong with all 100+ Mbeans that is already there?
A lot of the existing beans will give you useful info
about performance. Servlet process time, JMS memory usage + 1000s of other things.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835869#3835869
You can always monitor the pool from the JMX console.
http://localhost:8080/jmx-console
The MBean you are looking for will have
the db connection name included, for example DefaultDS .
You can also tune the pool from the jmx-console, min, max idle timeout etc
/Goran
View the original post :
h
I'm not confident enough to answer your question straight away, but I did
some reading on linux threading and JVMs before we built one production server.
Linux added NPTL (Native POSIX Thread Library) from version 2.6.x. This thread
library is a much better implementation than the previous threa
You can have your entities in different jars, no problem.
Do you have the beans defined in different deployment descriptors?
You can't have separate dds . Both beans have to be defined in the same dd if you have
a cmr
relationship between them.
View the original post :
http://www.jboss.org/ind
Lomboz is generating the XDoclet that prefixes your
classes and methods. This is where you have to do the changes if you want to change
the dd.
If you don't like it you have to leave Lomboz and XDoclet behind and make the dd by
hand.
/Goran
View the original post :
http://www.jboss.org/inde
This is not a bug. It is the way JBoss is doing it.
Please see, http://www.jboss.org/index.html?module=bb&op=viewtopic&t=49517
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835590#3835590
Reply to the post :
http://www.jboss.org/index.html?module=bb
With a template it would be something like this:
|
|
|
|
|
|
|
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835538#3835538
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=38355
Delete the temp directy, might help.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835521#3835521
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835521
---
This
That shouldn't be a problem at all, most stuff can be
created with Ant (apart from my coffe, but I'm working on it :-).
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835516#3835516
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=pos
If you used the default settings when you installed Tomcat it added a space in the
path to Tomcat.
Get rid of this space if you have it, otherwise it won't work.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835514#3835514
Reply to the post :
http:
Yes I know what was wrong...
Our scenario was 200,000 Hashtables created more or less at the same time, and of
course we wanted those to be pushed on to the queue as
fast as possible.
In this particular case you will always get very high load on the server, no matter
what server you have. A lit
In Adrians description of ping "algorithm" I guess the wait method is the problem, a
separate thread waiting for 60s?.
Maybe the ping should move out in the JMS main thread so the ping would be forced to
happen during heavy load!?
/Goran
View the original post :
http://www.jboss.org/inde
We had a lot of problems with the "ping" or more correct "no ping" during
heavy load. When the processor is near 100% it seems like the ping task has lower
priority than every thing else.
For us the following solution gave us amazing performance in our last
project, with a lot of JMS queues:
We
There is many ways of doing that!
I suggest that you read how to use JAAS.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835159#3835159
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835159
-
If thats true LViz, it's quite bad news if we have no intention to run more than one
JBoss instance on a multi processor machine.
If not supported in the JVM it must be a way of configuring the server
to use both processors (JVM doesn't have to know about it), or?
/G
View the original post :
Have you double checked that org/apache/fop/apps/Driver exists in your jars?
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835153#3835153
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835153
I think this is what you are looking for:
query = "SELECT OBJECT(c) FROM ContainingFamilly AS c, IN (c.Animations) AS ca, IN
(c.Families) AS cf WHERE ca = ?1 AND cf = ?2"
(I dont know the name of your cmr getters, so change where appropriate)
/Goran
View the original post :
http://www.jboss.
anonymous wrote : if i package the properties file within the jar file then put it in
the lib directory,maybe it should work.who knows?
I know it works, because I simply tested it. lib is only for files packed in jars.
anonymous wrote : but when i check the jboss_classpath cofiguration within t
I don't think Lomboz supports this. XDoclet does, so I think this is
a good moment for you to investigate the XDoclet created by the
Lomboz plugin, and add the extra XDoclet lines needed.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835111#3835111
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=49471
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835110#3835110
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835110
--
Yes, something like that.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835104#3835104
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835104
---
This SF.Net ema
Hi guys,
The scenario is:
If an cmp entity exists I want to update it, if not I want to create it.
My solution of this is to use findByPrimaryKey. If found I update.
If not found a FinderException is thrown and I create the entity in
the catch.
But we are all told not to use exceptions as a part
Hi guys,
We have a system where all logging and insertion to DB is buffered
by JMS. I also have all DB lookup cached on an entity level.
This means that our system can run for a limited period even if the DB is down.
As I understand the allowed downtime of the db depends on
how long the cache is
Hi,
Using: JBoss 3.2.4RC1, MySQL
I have a one to one unidiretional CMR with the tables in two different schemas but in
the same MySQL instance.
Jboss does not put the schema name with a "dot" in front of the tablenames in the
generated query, so it fails.
Tried to change my Xdoclet
from
@ej
Yes you are right, JBoss pass-by-reference if the remote interface is on the same
machine, and this is particular to JBoss, as I understand it
(I take my comment about "performance loss" back).
However you might consider the following differences between remote and local:
1. No need to catch re
Why not using local interfaces?
If you have no intention to split your beans over different JBoss instances
than you have a perfomance loss on using remote.
/G
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834382#3834382
Reply to the post :
http://www.jbo
The best choice of storage is probable a matter of taste.
In general a DB is just access to a file, so storing binary data as BLOBs
should be fine in most cases.
If you have the data in files already and you want to access it inside
your j2ee application, you could always try to use an MBean
(thr
Application performance has nothing or very very very... little to do with
your choice of packaging.
/Goran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834380#3834380
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply
ok more on my choice of RMI.
I am using one instance of JBoss for development, but 3 instances for deployment.
The error just causing a lot of annoying stops and starts of my Jboss between
deployment of code. Still have 50 entities to implement into
the admin toolso..."hot deployment" wo
3 Different servers.
WEB -> APP -> DB (3 tier model)
Normally you might not use JBoss as a "web server" in the web tier, but in this case
we will.
For security reasons the app server is not accecible at all from the public IP and the
web tier can of course not see the DB (good security model)
Hi guys,
I have run into some trouble. I have developed a system with 3 ear files.
Admin, ModA and ModB.
Admin contains a web interface and the model interact via RMI to
session beans in ModA and ModB.
Everything was fine until I implemented ModB. The admin interface
showed all views as expecte
The code listed below gives you user, role and group with many to many between all 3
entities.
The tables are:
CREATE TABLE SYS_ROLE (
NAME varchar(30),
ROLE_GROUP` varchar(30),
NOTE varchar(255),
PRIMARY KEY (NAME)
)
CREATE TABLE SYS_ROLE_SYS_GROUP_LINK(
SYS_GROUP_NAME varchar(30),
Ok, it seems like Jboss split the query into many queries if the
"OR NAME=?" gets bigger.
Is there anyone that have any thoughts about how Jboss are doing the underlying
queries and omptimizing them?. Is the way queries are done following the J2EE spec, or
is this spec not saying anything about
I turned on debug to see the underlying queries, and this is what I
discovered:
I have a many to many cmr between groups and roles.
This is one of the queries used to find the roles via the cmr in the group:
SELECT NAME, ROLE_GROUP, NOTE FROM SYS_ROLE WHERE
(NAME=?) OR (NAME=?) OR (NAME=?) OR (N
I guess you have to find out the mappings yourself
If no one else have done it already.
Are you using the jdbc-odbc driver from sun?
You can always play with one test cmp bean called by a junit test
xdoclet can speed your test up.
Something like this in your entity:
/**
* CMP accessor
Using form authentcation, I recommend everyone to extend
org.jboss.security.auth.spiDatabaseServerLoginModule
This class is simple and easy to extend to whatever you want.
I have made two extended versions:
1. user, role and group tables with many to many between all tables.
This gives you the
3 is normally doing the job.
But how to do in the best way with the struts web.xml?
The jsps are normally not specified in the web.xml, only in
struts-config.xml
thanks
GÃran
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834176#3834176
Reply to the post :
I'm using JBoss 3.2.4, Mysql 4.0.17 and mysql-connector 3.0.10.
I have a couple of distributed transactions between different schemas
and I want to set up proper XA support.
I know this is not supported in MySql, but there is a way of using
some kind of XA wrapper to sort the problem, isn't it?
83 matches
Mail list logo