[JBoss-user] [Persistence & CMP/JBoss] - CMR update problem in caching option A with direct SQL / cac

2005-07-01 Thread alt_amit
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

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

2005-07-01 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: xdoclet 1.2.3 support for load-group and left-join tags

2005-05-06 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: xdoclet 1.2.3 support for load-group and left-join tags

2005-05-05 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - xdoclet 1.2.3 support for load-group and left-join tags

2005-05-05 Thread alt_amit
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

[JBoss-user] [Performance Tuning] - Re: Problems with in many-to-many relations

2005-04-26 Thread alt_amit
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)

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: jms over https

2005-02-16 Thread alt_amit
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

[JBoss-user] [Beginners Corner] - Re: JMS over SSL

2005-02-16 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: commit option A plus optimistic locking on read only ope

2005-02-01 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: insert-after-ejb-post-create is broken is unknown-pk is

2005-01-27 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - commit option A plus optimistic locking on read only operati

2005-01-21 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: insert-after-ejb-post-create is broken is unknown-pk is

2005-01-08 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: insert-after-ejb-post-create is broken is unknown-pk is

2005-01-02 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: insert-after-ejb-post-create is broken is unknown-pk is

2005-01-02 Thread alt_amit
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

[JBoss-user] [Installation & Configuration] - Re: allowGlobalTxnModeOnly() throws exception in XAOracleDS

2004-12-15 Thread alt_amit
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

[JBoss-user] [Installation & Configuration] - allowGlobalTxnModeOnly() throws exception in XAOracleDS

2004-11-19 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Error compiling EJB-QL in crime portal example from JBOS

2004-09-01 Thread alt_amit
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: Error compiling EJB-QL in crime portal example from JBOS

2004-09-01 Thread alt_amit
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.

[JBoss-user] [Persistence & CMP/JBoss] - Error compiling EJB-QL in crime portal example from JBOSS do

2004-08-31 Thread alt_amit
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

[JBoss-user] [Installation & Configuration] - Re: only log ERROR messages to console log for my class

2004-07-08 Thread alt_amit
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/

[JBoss-user] [Installation & Configuration] - Re: only log ERROR messages to console log for my class

2004-07-08 Thread alt_amit
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

[JBoss-user] [Installation & Configuration] - only log ERROR messages to console log for my class

2004-07-07 Thread alt_amit
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: javax.jms.InvalidDestinationException

2004-07-07 Thread alt_amit
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

[JBoss-user] [Messaging, JMS & JBossMQ] - MBean service looks up Connection in start() from MQ service

2004-07-07 Thread alt_amit
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

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: remote queue MDB deployment problem

2004-07-07 Thread alt_amit
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

[JBoss-user] [Messaging, JMS & JBossMQ] - remote queue MDB deployment problem

2004-07-01 Thread alt_amit
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

[JBoss-user] [Installation & Configuration] - Re: Runnig 2 Servers on the same box ?????

2004-06-22 Thread alt_amit
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

[JBoss-user] [Installation & Configuration] - multiple instances of JBoss on one machine

2004-06-22 Thread alt_amit
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