[JBoss-user] [Management, JMX/JBoss] - Re: Generate GUID

2004-07-03 Thread gorano
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

[JBoss-user] [Messaging, JMS & JBossMQ] - C++ Bridge

2004-06-30 Thread gorano
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://

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles Update Problem

2004-06-30 Thread gorano
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 --

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles Update Problem

2004-06-30 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: SELECT multiple fields solution

2004-06-28 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: EJB creation fails after server restarts

2004-06-28 Thread gorano
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://

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Session persistence

2004-06-28 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: .ser file missing. please help me..

2004-06-28 Thread gorano
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=

[JBoss-user] [Beginners Corner] - Re: JBoss3.2.4 + Struts

2004-06-25 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: java.lang.NoSuchMethodError in jboss3.2.4

2004-06-18 Thread gorano
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

[JBoss-user] [Installation & Configuration] - Re: Config Web Application in JBoss for Development Environm

2004-06-17 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: CMP deployment error on JBOSS 3.2.4 using Eclipse

2004-06-17 Thread gorano
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://

[JBoss-user] [Beginners Corner] - Re: depolying jars error

2004-06-17 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: depolying jars error

2004-06-17 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: java.net.SocketException: Network is unreachable: connec

2004-06-17 Thread gorano
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 -

[JBoss-user] [Beginners Corner] - Re: java.net.SocketException: Network is unreachable: connec

2004-06-17 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: java.net.SocketException: Network is unreachable: connec

2004-06-17 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: JBoss3.2.4 + Struts

2004-06-17 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Bulk deletion of CMP Entity bean

2004-06-17 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: EJB not committing

2004-06-16 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: org.jboss.util.NestedSQLException

2004-06-14 Thread gorano
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=

[JBoss-user] [Performance Tuning] - Re: Declared sql runs slowly

2004-06-14 Thread gorano
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

[JBoss-user] [Performance Tuning] - Re: Hundreds of MBeans running concurrently

2004-06-14 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: No rollback of inserted data?

2004-06-14 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Bulk deletion of CMP Entity bean

2004-06-14 Thread gorano
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 --

[JBoss-user] [Persistence & CMP/JBoss] - Re: One CMP with 2 Tables

2004-06-14 Thread gorano
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

[JBoss-user] [Installation & Configuration] - Re: starting jboss as root on linux

2004-06-11 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB-QL Finder method error

2004-06-10 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: JBoss-2.4.10_Tomcat-4.0.6 Linux stops responding

2004-06-09 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: Reconnection error post mysql shutdown...

2004-06-09 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: default page after login

2004-06-09 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: Roles Update Problem

2004-06-09 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: Jaas + Struts + mySql: Shutdown SQL Server during Jboss

2004-06-09 Thread gorano
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 -

[JBoss-user] [EJB/JBoss] - Re: Reconnection error post mysql shutdown...

2004-06-09 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: dinamic in jbosscmp-jdbc.xml

2004-06-09 Thread gorano
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

[JBoss-user] [Installation & Configuration] - Re: starting jboss as root on linux

2004-06-09 Thread gorano
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

[JBoss-user] [Installation & Configuration] - Re: JBoss-help!!!

2004-06-09 Thread gorano
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

[JBoss-user] [Management, JMX/JBoss] - Re: Questions about standard MBean Example

2004-06-07 Thread gorano
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: PM Question

2004-06-05 Thread gorano
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 --

[JBoss-user] [Management, JMX/JBoss] - Re: Questions about standard MBean Example

2004-06-03 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with users roles

2004-06-03 Thread gorano
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 ---

[JBoss-user] [HTTPD, Servlets & JSP] - Re: document root, Host-tag

2004-06-03 Thread gorano
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

[JBoss-user] [JCA/JBoss] - Re: PostgreSQL - default data source

2004-05-30 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: lookup datasource from java client

2004-05-30 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problem, when

2004-05-23 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: MBeans

2004-05-21 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: JBoss connection pool

2004-05-21 Thread gorano
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

[JBoss-user] [Performance Tuning] - Re: To many thread

2004-05-20 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Bean not found for relation

2004-05-19 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: using eclipse and lomboz to make EJB problem

2004-05-19 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: curious SQL-Statements when loading related data

2004-05-19 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: application.xml created with Ant?

2004-05-19 Thread gorano
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

[JBoss-user] [Installation & Configuration] - Re: Copying server then gives error in web console 3.2.3

2004-05-19 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: application.xml created with Ant?

2004-05-19 Thread gorano
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

[JBoss-user] [Beginners Corner] - Re: Calling JBoss 3.2.3 from standalone Tomcat

2004-05-19 Thread gorano
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:

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JbossMQ Error at Heavly load

2004-05-17 Thread gorano
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JbossMQ Error at Heavly load

2004-05-17 Thread gorano
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JbossMQ Error at Heavly load

2004-05-17 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: jbos security

2004-05-17 Thread gorano
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 -

[JBoss-user] [Performance Tuning] - Re: application on Xeon Dual CPU

2004-05-17 Thread gorano
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 :

[JBoss-user] [HTTPD, Servlets & JSP] - Re: 'NoClassDefFoundError' in org/apache/fop/apps/Driver

2004-05-17 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: NullPointerException compiling EJB-QL

2004-05-17 Thread gorano
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.

[JBoss-user] [Beginners Corner] - Re: question about classpath

2004-05-17 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems with Pks

2004-05-16 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: changing roles query and principal query in login-config

2004-05-16 Thread gorano
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 --

[JBoss-user] [EJB/JBoss] - Re: Entity insert/update

2004-05-16 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Entity insert/update

2004-05-15 Thread gorano
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

[JBoss-user] [Performance Tuning] - very high (or infinit) bean age

2004-05-13 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - CMR and 2 schemas

2004-05-11 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: EJB communication

2004-05-11 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: EJB communication

2004-05-10 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: How to store binary data using EJB?

2004-05-10 Thread gorano
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

[JBoss-user] [EJB/JBoss] - Re: EAR versus JAR

2004-05-10 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Deployment scanner fails

2004-05-10 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Deployment scanner fails

2004-05-10 Thread gorano
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)

[JBoss-user] [Persistence & CMP/JBoss] - Deployment scanner fails

2004-05-10 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: Change rolesQuery in DatabaseServerLoginModule

2004-05-10 Thread gorano
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),

[JBoss-user] [Persistence & CMP/JBoss] - Re: Ugly query (no joins)

2004-05-08 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Ugly query (no joins)

2004-05-08 Thread gorano
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Use JBOSS with Microsoft Access

2004-05-08 Thread gorano
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

[JBoss-user] [Security & JAAS/JBoss] - Re: Change rolesQuery in DatabaseServerLoginModule

2004-05-08 Thread gorano
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

[JBoss-user] [HTTPD, Servlets & JSP] - Struts and precompiled jsps

2004-05-08 Thread gorano
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 :

[JBoss-user] [JCA/JBoss] - MySql and XA datasource

2004-04-24 Thread gorano
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?