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
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
---
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,
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
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 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
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
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'
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
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 ==
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
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
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
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
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
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
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
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
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
19 matches
Mail list logo