option A.
entity A : entity B :: 1:n
direct SQL to db removes one B. invalidate global instance cache using the JMX
cache service, calling remove on the PK of B. The object is removed, but the
entity A.getBs() still returns the B. If I do a remove thru entity B's
interface instead of direct SQL
make sure you are in a transaction with "Required" attribute setting. Also dont
use the EJBQLToSQL92DCompiler in deploy desc.
If that doesnt work, try CMR left join read ahead feature. that definitely
works. basically get your B attrs when you get your A's into the global cache.
use 3.2.7, not
I think xdoclet team dont support left-join tag. If u open up the
jbosscmp-jdbc_xml.xdt file from the xdoclet jar file in lib directory, you will
see read-ahead tag only supports strategy page-size and eager-load-group tags
under it. I think it is complicated by the fact that left-join could be
found the answer in xdoclet newsgroup:
http://sourceforge.net/mailarchive/message.php?msg_id=11493359
basically:
documentation is lacking, load-group is actually supported.
@jboss.load-group name="quick-info"
and on the getter method @jboss.load-group name="quick-info" will do the trick.
Dont k
I dont see xdoclet 1.2.3 supporting the tags load-group and left-join in
jbosscmp-jdbc.xml. Is there a way to add these tags ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876704#3876704
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=p
your options are:
1. use jboss-3.2.7 where it is fixed.
2. switch to org.jboss.ejb.plugins.cmp.jdbc.EJBQLToSQL92Compiler using
ql-compiler in jbossjdbc-cmp.xml. (of course you will lose the benefit of LEFT
OUTER JOIN, as the finder wont go nested anymore, and also get all fields in
the find)
Summing up how I did JMS over https (sorry Adrian, overlooked multiple
forum-related dropdowns):
deploy/jms/jbossmq-httpil.sar/META-INF should have:
| https://
| 8443
|
| deploy/jbossweb-tomcat50.sar/server.xml have:
|
certpath.keystore has your self-signed digital sign
I know it's been a year since the last post, but here are some things that
should be done:
the certificate should be stored back to the cacerts repository on the server,
so server authentication doesnt throw exception
use host ip not name if that's how the HTTPServerILService is configured.
us
Here's what I opted for:
commit option A, CMP with cache invalidation container config, get methods RO,
SimpleReadWriteEJBLock (need 3.2.7 for the correct version), use
InvalidationManager to invalidate thru JMS topic, to cover case of db write not
always going thru entity bean (which was optio
Summing up my findings here: (jboss-3.2.6, commit option A):
If u use insert-after-ejb-post-create, and set PK to dummy value, there is the
following problem:
if entity A : entity B is a 1 : n relation, and on B, you do the above,
A.getBs() will get one phantom entity (the one u put in with PK -1
I am using commit option A on entity beans, so that there is no redundant
ejbLoad of entity beans between transactions. But this means for 2 concurrent
transactions, even if they were read-only operations, one would be locked out
till the other completed, since the global instance cache is pessi
Actually I got rid of the custom config with the insert-after- stuff, as a
findAll would find the -1 PK'ed object as well (from the container's cache
maybe ?). Downside - database constraints needed to be modified. They can
always be reimposed thru EJB layer.
View the original post :
http://ww
actually I did notice further problems down the road with the insert-after-
stuff. I was setting PK to -1 in the ejbCreate(). Creation went fine, but a
find was finding this -1 PK'ed entity bean too. So I got rid of the
insert-after- stuff. Better to readjust your db constraints. setPK() and
se
I had the same problem, and worked around like this:
set the primary key in ejbCreate to some dummy value (that you know wont be
there, like -1). keep using the custom config with insert-after... and also
keep using your db generated PKs, so the actual insert will happen with the
correct db gen
the problem happens on both jboss 4.0 and 3.2.6. So I used the OracleDS instead
of the XAOracleDS (which is for 2 phase commit, which is needed if xaction
spans multiple db's which is not my case),and things worked. Of course, the
transition from hsqldb to Oracle 9i needed some fixing of the jbo
I am getting the following error on jboss4.0 rc1 and oracle 9.2.0.5.0 while
running the cmproster example with XAConnection. Basically
allowGlobalTxnModeOnly() finds transactionmode != 2 and throws exception (thru
decompiled code of the driver class).
My oracle-xa-ds.xml is below:
XAOrac
OK the examples in JBossBook_323.zip works, but the examples in JBossCMP30x.zip caused
the problem.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846948#3846948
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846948
I didnt change a thing, maybe can you zip up the entire example that runs on yours
with 3.2.5 and I can try on mine. And the sequence of ant commands you ran.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846918#3846918
Reply to the post :
http://www.jboss.
I have deployed on jboss 3.2.5 the crime portal example (available from the JBOSS docs
subscription) - I am getting following error:
2003-08-31 14:15:21,751 ERROR [org.jboss.ejb.EntityContainer] Starting failed jb
oss.j2ee:jndiName=JBossUtilAutoNumber,service=EJB^M
org.jboss.deployment.Deployment
category name="org.jnp.interfaces.NamingContext"
priority value="ERROR"
that's what I mean. The angle brackets caused the paragraph to disappear.
- amit.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841407#3841407
Reply to the post :
http://www.jboss.org/
OK I figured out:
To log4j.xml add:
Basically a WARN message was coming from this class to console, which I am now
shutting off by raising the level.
- amit.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841405#3841405
Reply to the post :
h
My class code gets an exception name not bound, and I am catching the exception, but
jboss is still logging to console. how to turn jboss console log for my class from
WARN to ERROR. Only for my class. A log4j.xml snippet..
View the original post :
http://www.jboss.org/index.html?module=bb&op=v
Try putting in the corresponding session bean's section in the ejb-jar.xml, the
following para:
jms/QCF
javax.jms.QueueConnectionFactory
Container
Let me know if that works. If yours is a topic, use the topic stuff instead.
- amit.
View
In My MBean service start() method, which gets called when the MBean is deployed, I
look up the ConnectionFactory. I get: javax.naming.NameNotFoundException:
ConnectionFactory not bound
My MBean is deployed earlier than any of the MQ services start - OIL, UIL, UIL2
invocation layers etc.
I tri
Couple of workarounds that work
(for anyone who encounters similar problem with the wiki way):
- have the MDB listen locally, and the sender send to the remote queue. This works
fine.
- Instead of MDB, just have a JMS message listener that looks up the remote queue and
listens to it by creating
I have problem with MDB deployment where it is listening to remote queue. I followed
the jboss wiki instructions.
The error in server.log is :
2004-07-01 18:14:36,423 INFO [org.jboss.ejb.EjbModule] Deploying HASecondary
2004-07-01 18:14:36,486 ERROR [org.jboss.ejb.EjbModule] Initialization faile
I am following the 3.2.3 admin development guide instructions for starting jboss0
server with examples/src/main/org/jboss/chap10/ex1/jboss-service.xml, where
ServiceBindingManager is enabled to read chap10ex1-bindings.xml which has been copied
to server directory.
I get the following error:
1
I am following the 3.2.3 admin development guide instructions for starting jboss0
server with examples/src/main/org/jboss/chap10/ex1/jboss-service.xml, where
ServiceBindingManager is enabled to read chap10ex1-bindings.xml which has been copied
to server directory.
I get the following error:
17
28 matches
Mail list logo