[JBoss-user] [Installation, Configuration & Deployment] - CallByValue optimization - what EXACTLY is does and when can

2006-03-03 Thread tbech
I found during excercise of having two separeted EAR that I have to swithc the CallByValue to 'true' in order to have ears work I'm a little bit lost with this 'CallByValue'. My question is what exactly CallByValue does and when. 1. When using local interfaces: - passing is always by referenc

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-05 Thread tbech
I've checked 3.2.7 - the same situation. I think it is time to issue bug. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883621#3883621 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883621 ---

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-04 Thread tbech
anonymous wrote : make sure you are in a transaction with "Required" attribute setting i've checked and it is 'required'. anonymous wrote : Also dont use the EJBQLToSQL92DCompiler in deploy desc. Not used As triathlon98 says, it is similar in 4.0.2 so probably 3.2.7 also. And I have 100+ beans,

[JBoss-user] [Persistence & CMP/JBoss] - Re: eager-load-group for CMR doesn't work

2005-07-01 Thread tbech
Could someone confirm if it is normal behaviour or bug or my wrong configuration?!? It really kills performance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883344#3883344 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [Persistence & CMP/JBoss] - Re: How store a big file in postgresql without breaking the

2005-06-22 Thread tbech
SQL in SessionBean is spagethi code (or at least anti-pattern). Use Entity Bean for it. Mapping for PostgreSQL is: java.lang.Object VARBINARY BYTEA Did you try such field in entity? (I use String and TEXT for very long texts and works perfec

[JBoss-user] [Persistence & CMP/JBoss] - eager-load-group for CMR doesn't work

2005-06-21 Thread tbech
JBoss 3.2.6, default setting in standardjbosscmp-jdbc.xml, commit option A used. I observed strange selects for two applications. There is relation A -> many B (unidirectional). a.getBs() gives select: SELECT LOID FROM B WHERE (A_FK=?) and now every entity B is access by fields, it gives: SELECT

[JBoss-user] [Persistence & CMP/JBoss] - Re: postgres and foreign key relation problems

2005-06-20 Thread tbech
IMHO the method of setting fk field as nullable is the best and easiest solution. See page before how to achieve it in XDoclet. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882089#3882089 Reply to the post : http://www.jboss.org/index.html?module=bb&op=pos

[JBoss-user] [Persistence & CMP/JBoss] - creation of sequence for automatic pk values

2005-05-19 Thread tbech
Sequence is specified for pk as follows: my_sequence it there any way to tell JBoss to create the sequence when ear deployed (as for all tables, etc)? I digged and I couldn't find how. One can say: do it youselft is is just one sql: 'create sequence my_sequence'

[JBoss-user] [JCA/JBoss] - Re: Problem with hot deployment of datasource.

2005-04-15 Thread tbech
Adrian, I don't undestand your possition. I'm not 'lazy user', before making post I check forum and wiki for half a day. And as you have seen I tried to debug and UNDERSTAND what is going on after redeploying of DS. Also several other people have seen my post - no answer, so seems that noone is

[JBoss-user] [JCA/JBoss] - Re: Problem with hot deployment of datasource.

2005-04-14 Thread tbech
Some more info. JBOss 3.2.6. I tried to debug and found that: exception is frown in TXConnectionManager: public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) throws ResourceException { if (poolingStrategy ==

[JBoss-user] [JCA/JBoss] - Problem with hot deployment of datasource.

2005-04-13 Thread tbech
I have problem with hot deployment of datasource. I just touch file - no content change. Datasource is redeployed. Trying to make a query and exteption is frown: javax.ejb.FinderException: Find failed: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut

[JBoss-user] [Persistence & CMP/JBoss] - Re: Am I able to relocate ?

2005-04-06 Thread tbech
You reported similar topic as me in 'http://www.jboss.org/index.html?module=bb&op=viewtopic&t=62276' My situation is more annoying as I have to modify Java files as well to switch the DB. It is my first BIG dissapointment after a year of using JBoss. Unfortunately I cannot help you, I don't see

[JBoss-user] [Persistence & CMP/JBoss] - Entity Beans not portable between diffirent DB

2005-04-05 Thread tbech
e-sql here" * @jboss.entity-command-attribute name="sequence" value="xxx_sequence" Should I back 20 years and make some preprocessing (like C #define)? Horrible. Should I do some postprocessing on descriptors? (a little bit better). Does someone has good experience with such tiny but u

[JBoss-user] [JCA/JBoss] - Re: getiing Datasource/Connection in Session/Entity (beforeC

2005-03-23 Thread tbech
In fact I was thinking of EntityBean (instead of EJBObject) and only connection in the server layers, never to the client of course. There is often a need to have the connection (in server side layers) to do some queries (fast line reader design pattern) or huge-updates. And currently I don't s

[JBoss-user] [JCA/JBoss] - getiing Datasource/Connection in Session/Entity (beforeCompl

2005-03-17 Thread tbech
Hi all, I want to do some business checking in beforeCompletion. In order to do this I have to get the db connection. How to obtain the connection in easy portable way? Till now I've seen: use JNDI + hardcoded name of datasource, lookup, get datasource and getConnection. 1. Is a connection retri

[JBoss-user] [EJB/JBoss] - Exceptions and setRollbackOnly automaticaly???

2004-12-16 Thread tbech
Hi all, Is there a way to tell the container (in declarative way) to make setRollbackOnly for desired exceptions? If session bean(s) have big amount of business methods (> 100), it is extremely boring and faultfull to put everywhere try catch { setRollbackOnly}. So I would imagine that in descrip

[JBoss-user] [Security & JAAS/JBoss] - advice and help needed to implement authentication (servlet/

2004-12-07 Thread tbech
Hi all, I'm currently trying to properly build in authentication into application servlet/struts + ejb. There are following issues: 1. entity bean should log the user in DB; 2. some urls are accessed only with authorisation; 3. some are unauthorised; - in this case one of the field of entity

[JBoss-user] [EJB/JBoss] - Post action after deployment

2004-05-06 Thread tbech
Hi all, I need to add some post actions after the deployment. The best would be on the entity bean layer - when entity bean is deployed it launches my hook (method). I need such a method to make some configuration in DB (create some data) and launched only once (just after deployment) If possible

[JBoss-user] [Persistence & CMP/JBoss] - EXISTS operator

2004-04-20 Thread tbech
Hi all, How to write in EJB-QL the EXISTS statement in WHERE (like in SQL92)? For now it seems to me that it is not in the EJB-QL spec and JBoss-QL as well. More general observation, which probably most of you can share: I've just started to be familiar wit JBoss and CMP and found that some very b