[JBoss-user] Unknown primary key support available
JBossCMP becomes cooler. Now it supports Unknown primary keys (Refer to EJB2.0 spec 10.8.3 for details). To make use of this feature, entity beans must have prim-key-class declared as java.lang.Object and no primkey-field in ejb-jar.xml. To set up unknown primary key, the new optional unknown-pk element is used in jbosscmp-jdbc.xml. (See jbosscmp-jdbc_3_0.dtd for details). If unknown-pk element is omitted in jbosscmp-jdbc.xml, the default one from standardjbosscmp-jdbc.xml will be used. The default (and the only for now) key generator factory is UUIDKeyGeneratorFactory. It's deployed as a service (in default and all configurations) and bound to the global JNDI context. Other key generator factory implementations are welcome! The feature is available in CVS HEAD version. -- Alex Loubyansky --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Keeping MBeans in sync with my-service.xml
One last thought on this. Tomcat used to do this sort of thing with auto files in the conf directory. For example, my 3.2.3 directory has mod_jk.conf and mod_jk.conf-auto. The auto files contain incremental changes to what is in the conf file. This idea worked so poorly that a routine refrain when someone complained about unexpected errors was to "delete all auto files and restart". I'm not sure, but I think Tomcat did away with these auto files in later releases because so many people got tripped up by them. We purposely hand-write our JkMount's to avoid the auto files altogether. That experience reinforces the suggestion I made below. - Original Message - From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 02, 2002 2:00 PM Subject: Re: [JBoss-user] Keeping MBeans in sync with my-service.xml > Ok, thanks to you and Jon, I now understand. I can see the value to such a > persistence mechanism, but I can see issues also. Suppose (I'm making up a > scenario, probably not realistic) you are having problems with an mbean. > Suppose, for example, your database mbean crashes on startup. You copy your > config files to a test machine and when you run that, everything works fine. > Gosh, same config, crashes in production, works fine in test, how's that > possible? Oops, my config files have max connections = 10, but my > production environment got persisted during shutdown with max connections = > 100. > > For this to be manageable, I would think you would need some sort of > centralized config database, and both the config files and dynamic changes > through (e.g.) the JMX console would update that centralized set of config > values. And I will read up on model mbeans, just as soon as I file those > overdue tax returns . > > - Original Message - > From: "David Jencks" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 02, 2002 1:23 PM > Subject: Re: [JBoss-user] Keeping MBeans in sync with my-service.xml > > > > You ought to read about model mbeans;-) You can specify persistence > policy > > on an attribute by attribute level, so you can specify that the > > authentication cache is never saved. > > > > As to why a datasouce mbean should be persisted... the contents of the > > associated pool shouldn't be, but we're thinking about using the > > persistence mechanism to restart a server in the "last known state" rather > > than redeploying all the stuff that got it there before it shut down. > This > > would mean that if you say changed the size of the pool through the jmx > > console while the server was running, when it restarted it would remember > > the new value without you having to alter the xml dd that originally > > deployed it. > > > > thanks > > david jencks > > > > On 2002.09.02 12:47:56 -0400 Guy Rouillier wrote: > > > Sounds like your "persistence interceptor" is the same thing as my > > > saveState > > > and loadState, so I think we are on the same wavelength. > > > > > > Such as: I've written an authentication MBean that keeps a hashmap of > > > authenticated users and their permissions. There are timing sensitive > > > processes looking at this hashmap (idle timeout, etc). Thus, I don't > > > want > > > this MBean to persist between shutdowns - I want it to come up cleanly > > > each > > > time - users just log back in again after a restart. I don't even care > to > > > know that this MBean previously existed. > > > > > > Actually, I think most mbeans would work this way. For example, why > > > would a > > > database connection pool mbean care to know that it previously existed? > > > What good would that information do it? > > > > > > - Original Message - > > > From: "David Jencks" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Saturday, August 31, 2002 12:31 AM > > > Subject: Re: [JBoss-user] Keeping MBeans in sync with my-service.xml > > > > > > > > > > Such as? Would they want the fact of their existence to be saved? > > > > > > > > It's probably going to be done with an mbean persistence interceptor. > > > If > > > > you don't want the state saved, configure the mbean without the > > > persistence > > > > interceptor, or with one that doesn't save attribute values, just the > > > mbean > > > > class. > > > > > > > > thanks > > > > david jencks > > > > > > > > On 2002.08.30 23:52:37 -0400 Guy Rouillier wrote: > > > > > First I've heard of this, but hopefully you'll do this with a > > > saveState() > > > > > and loadState() function that MBeans can choose to ignore. Some > > > MBeans > > > > > don't want their state saved between shutdowns. > > > > > > > > > > - Original Message - > > > > > From: "David Jencks" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Friday, August 30, 2002 4:01 PM > > > > > Subject: Re: [JBoss-user] Keeping MBeans in sync with my-service.xml > > > > > > > > > > > > > > > > You can't do this now and I don't think it is a
RE: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i
Title: Message Try INTEGER. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Boris TamarkinSent: Wednesday, September 04, 2002 3:44 AMTo: '[EMAIL PROTECTED]'Subject: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i What correct mapping for "java.lang.Short" should be for Oracle 9i in standardjbosscmp-jdbc.xml file? I have tried java.lang.Short NUMERIC NUMBER(5) also java.lang.Short SMALLINT SMALLINT also java.lang.Short NUMERIC SMALLINT also java.lang.Short SMALLINT NUMBER(5) and no success. I got java.lang.ClassCastException in ejbCreate(..., java.lang.Short arg, ). It happens when using CMP2 on JBoss3.0.0-tomcat4.0.3. Also I tried both SMALLINT and Number(5) types for column in table in Oracle 9i database that corresponds to Short type. with all combinations above. Will appreciate help. Thanks, Boris * 14:25:57,104 ERROR [ScheduleTask] Could not create entity java.lang.ClassCastException: java.lang.Short at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt atement.java:2351) at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt atement.java:2449) at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObjec t(LocalPreparedStatement.java:607) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:15 6) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setA rgumentParameters(JDBCAbstractCMPFieldBridge.java:283) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setI nstanceParameters(JDBCAbstractCMPFieldBridge.java:262) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(J DBCCreateEntityCommand.java:192) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCr eateEntityCommand.java:131) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStor eManager.java:450) at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersisten ceManager.java:253) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.crea teEntity(CachedConnectionInterceptor.java:270) at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:57 9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC ontainer.java:1116) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep tor.java:73) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent itySynchronizationInterceptor.java:257) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo keHome(CachedConnectionInterceptor.java:215) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst anceInterceptor.java:134) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInte rceptor.java:79) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCrea tionInterceptor.java:44) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte rceptor.java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep torCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja va:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep tor.java:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1 09) at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(Base LocalContainerInvoker.java:227) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java :110) at $Proxy85.create(Unknown Source) at com.rendition.appserver.ScheduleTaskManagementEJB.addScheduleTaskInte rnal(ScheduleTaskManagementEJB.java:248) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S tatelessSessionContainer.java:664) at org.jboss.resource.connection
Re: [JBoss-user] O'Reilly JBoss 3.0 Workbook
I don't like the forums (the search feature is far too simplistic) so I'm responding here. I've been reading the O'Reilly book and downloaded your workbook about two weeks ago. I've got an app that relies on CMP 1.1 that I'm porting from Borland's App Server to JBoss. The O'Reilly book does a good job of covering both CMP 2.0 and 1.1 thoroughly. Your workbook, however, only covers CMP 2.0. Accordingly I have found it of little use. Are you planning on adding coverage of CMP 1.1 to it? Michael On Tue, 2002-09-03 at 10:34, Bill Burke wrote: > Hello all, > Sacha Labourey and I have written a companion workbook to O'Reilly's "EJB > 3rd Edition" by Richard Monson-Haefel. It will be published sometime in > October and we would really like some feedback! Please refrain from grammar > and spelling mistakes, since our editor will handle these sort of things. > > I have created a Forum thread to discuss all subjects pertaining to the > workbook: > > http://www.jboss.org/forums/thread.jsp?forum=141&thread=20594 > > > To download a 1st draft of the workbook and corresponding examples, please > go to: > > http://www.monson-haefel.com/titanbooks/jbos30worfor.html > > To use the book it is highly recommended that you also have a copy of EJB > 3rd edition since the Workbook follows closely with the chapters of EJB 3rd > edition. It can be purchased at: > > http://www.amazon.com/exec/obidos/tg/detail/-/0596002262/qid=1031070299/sr=1 > -1/ref=sr_1_1/002-1658527-7362441?v=glance&s=books > > Thanks, > Bill Burke > JBossGroup > > > > > --- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j
Title: Message Hi, I had the same problems recently. It is a classpath-related issue - make sure you have nothing on the command line classpath when running ant. Also, make sure you run 'ant clean' after an aborted build attempt. Regards, Liam. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jose Luis Peleteiro - Sistemas e ProcessosSent: Wednesday, September 04, 2002 7:06 AMTo: '[EMAIL PROTECTED]'Subject: RES: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j I downloaded CVS version, but when I try to make (ant) I recived: BUILD FAILEDfile:D:/cvsroot/xdoclet/modules/modules-common.ent:171: The task doesn't support the nested "externalizer" element. Please, Help me. -Mensagem original-De: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL PROTECTED]]Enviada em: terça-feira, 3 de setembro de 2002 12:03Para: [EMAIL PROTECTED]Assunto: Re: [JBoss-user] XDoclet jbosscmp-jdbc_xml.jJose, This file only works with the released version of XDoclet. You may want to get the CVS source and try that instead. Here's what you'll need: 1. JDK 1.4 for the build in SAX parser. 2. ANT 1.5 (requires JDK 1.4) 3. CVS HEAD version of XDoclet. Now for the changes we went through to make all this work: A) The ejbdoclet task gets the root of the package structure from the rather than using package name in the java source file. The symptoms are the will not be fully qualified in the ejb-jar.xml file. B) If you use CMR-relationships, you will need (at least for JBoss 3.0.0) to add a @jboss.relation-mapping style = "foreign-key" otherwise you will get lots of exceptions during deployment. C) The @jboss.table-name is deprecated. You must use @ejb.persistence table-name = "TABLE" instead, D) The @ejb.select tag is no longer a bean tag. Instead you place it before the abstract ejbSelect method it applies to. Also, you must remove any signature parameter. This change definitely makes sense. That's it, from what I remember, best of luck,Jonathan O'ConnorPh: +353 1 872 3305Mob: +353 86 824 9736Fax: +353 1 873 3612 Jose Luis Peleteiro - Sistemas e Processos <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03.09.2002 10:11 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: [JBoss-user] XDoclet jbosscmp-jdbc_xml.jCan any one sendme this file. (jbosscmp-jdbc_xml.j) Please! FROM: Stephen CoyDATE: 06/28/2002 07:17:41SUBJECT: RE: [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM Unfortunately, xdoclet 1.1.2 has only limited support for custom jboss queries for CMP 2.0."jboss:finder-query" generates JAWS (CMP 1.1) configuration data.I'm including a modified jbosscmp-jdbc_xml.j file that we are using, which has almost full support for "jboss:declared-sql" and "jboss:query" tags, which generate and sections in your jbosscmp-jdbc.xml file.You need to replace this file in your xdoclet.jar.Here's a sample: @jboss:declared-sql signature="Collection findInSequence()" order="precedence" @jboss:query signature="java.util.Collection ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal user)" query="SELECT DISTINCT r.worklist FROM User AS u, IN (u.userRoles) AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY r.worklist.precedence ASC" strategy="on-find" page-size="16" @jboss:query signature="java.util.Set ejbSelectGeneric( java.lang.String query, java.lang.Object[] args)" dynamic="true"For more detailed information on these JBoss constructs, the USD10 CMP documentation is well worth it.
Re: [JBoss-user] EJB Query Language question
Michael Nowotny wrote: > Hi folks! > > Using EJB ql it is possible define template queries such as > > SELECT OBJECT(p) FROM Product p where p.name = ?1 > > Now - what I'm trying to achieve is the following: > The query should not only return exact matches but products whose name > contains a given search string as well. > My approach looks like this: > > SELECT OBJECT(p) FROM Product p where p.name LIKE concat(concat('%', > ?1), '%') You can do this with JBossQL in cvs Branch_3_0, Branch_3_2, and HEAD. It will be part of the next JBoss release 3.0.3. > JBoss doesn't accept this because it expects a String literal following > the LIKE keyword. > Even the stripped down version doesn't work: > > SELECT OBJECT(p) FROM Product p where p.name LIKE ?1 > > It seems to me that EJB QL only accepts constants following a LIKE > statement. > Is there any way to achieve this kind of task using EJB QL. If not - > what other approaches might work in this context? There is no way to do this with EJB-QL; it is not allowed by the spec. You can do it with JBossQL. -dain --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i
Title: CMP2 java.lang.Short mapping for Oracle 9i What correct mapping for "java.lang.Short" should be for Oracle 9i in standardjbosscmp-jdbc.xml file? I have tried java.lang.Short NUMERIC NUMBER(5) also java.lang.Short SMALLINT SMALLINT also java.lang.Short NUMERIC SMALLINT also java.lang.Short SMALLINT NUMBER(5) and no success. I got java.lang.ClassCastException in ejbCreate(..., java.lang.Short arg, ). It happens when using CMP2 on JBoss3.0.0-tomcat4.0.3. Also I tried both SMALLINT and Number(5) types for column in table in Oracle 9i database that corresponds to Short type. with all combinations above. Will appreciate help. Thanks, Boris * 14:25:57,104 ERROR [ScheduleTask] Could not create entity java.lang.ClassCastException: java.lang.Short at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt atement.java:2351) at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt atement.java:2449) at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObjec t(LocalPreparedStatement.java:607) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:15 6) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setA rgumentParameters(JDBCAbstractCMPFieldBridge.java:283) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setI nstanceParameters(JDBCAbstractCMPFieldBridge.java:262) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(J DBCCreateEntityCommand.java:192) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCr eateEntityCommand.java:131) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStor eManager.java:450) at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersisten ceManager.java:253) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.crea teEntity(CachedConnectionInterceptor.java:270) at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:57 9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC ontainer.java:1116) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep tor.java:73) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent itySynchronizationInterceptor.java:257) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo keHome(CachedConnectionInterceptor.java:215) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst anceInterceptor.java:134) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInte rceptor.java:79) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCrea tionInterceptor.java:44) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte rceptor.java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep torCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja va:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep tor.java:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1 09) at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(Base LocalContainerInvoker.java:227) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java :110) at $Proxy85.create(Unknown Source) at com.rendition.appserver.ScheduleTaskManagementEJB.addScheduleTaskInte rnal(ScheduleTaskManagementEJB.java:248) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S tatelessSessionContainer.java:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo ke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte rceptor.java:96) at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxI nterceptorBMT.java:144) at org.jboss.ejb.pl
RES: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j
I downloaded CVS version, but when I try to make (ant) I recived: BUILD FAILEDfile:D:/cvsroot/xdoclet/modules/modules-common.ent:171: The task doesn't support the nested "externalizer" element. Please, Help me. -Mensagem original-De: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL PROTECTED]]Enviada em: terça-feira, 3 de setembro de 2002 12:03Para: [EMAIL PROTECTED]Assunto: Re: [JBoss-user] XDoclet jbosscmp-jdbc_xml.jJose, This file only works with the released version of XDoclet. You may want to get the CVS source and try that instead. Here's what you'll need: 1. JDK 1.4 for the build in SAX parser. 2. ANT 1.5 (requires JDK 1.4) 3. CVS HEAD version of XDoclet. Now for the changes we went through to make all this work: A) The ejbdoclet task gets the root of the package structure from the rather than using package name in the java source file. The symptoms are the will not be fully qualified in the ejb-jar.xml file. B) If you use CMR-relationships, you will need (at least for JBoss 3.0.0) to add a @jboss.relation-mapping style = "foreign-key" otherwise you will get lots of exceptions during deployment. C) The @jboss.table-name is deprecated. You must use @ejb.persistence table-name = "TABLE" instead, D) The @ejb.select tag is no longer a bean tag. Instead you place it before the abstract ejbSelect method it applies to. Also, you must remove any signature parameter. This change definitely makes sense. That's it, from what I remember, best of luck,Jonathan O'ConnorPh: +353 1 872 3305Mob: +353 86 824 9736Fax: +353 1 873 3612 Jose Luis Peleteiro - Sistemas e Processos <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03.09.2002 10:11 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: [JBoss-user] XDoclet jbosscmp-jdbc_xml.jCan any one sendme this file. (jbosscmp-jdbc_xml.j) Please! FROM: Stephen CoyDATE: 06/28/2002 07:17:41SUBJECT: RE: [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM Unfortunately, xdoclet 1.1.2 has only limited support for custom jboss queries for CMP 2.0."jboss:finder-query" generates JAWS (CMP 1.1) configuration data.I'm including a modified jbosscmp-jdbc_xml.j file that we are using, which has almost full support for "jboss:declared-sql" and "jboss:query" tags, which generate and sections in your jbosscmp-jdbc.xml file.You need to replace this file in your xdoclet.jar.Here's a sample: @jboss:declared-sql signature="Collection findInSequence()" order="precedence" @jboss:query signature="java.util.Collection ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal user)" query="SELECT DISTINCT r.worklist FROM User AS u, IN (u.userRoles) AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY r.worklist.precedence ASC" strategy="on-find" page-size="16" @jboss:query signature="java.util.Set ejbSelectGeneric( java.lang.String query, java.lang.Object[] args)" dynamic="true"For more detailed information on these JBoss constructs, the USD10 CMP documentation is well worth it.
Re: [JBoss-user] Oracle XA deployment: INIT_WAITING_DEPLOYER - is it deployed properly?
I think the only problem you had originally was that login-conf.xml was in the wrong place (deploy rather than conf) > > [ServiceController] jboss.jca:service=XATxDS,name=XAOracleDS does not > implement any Service methods is an annoying and meaningless message I hope to remember to remove one of these days. > [XAOracleDS] Bound connection factory for resource adapter 'Minerva > JDBC > XATransaction ResourceAdapter' to JNDI name 'java:/XAOracleDS' > indicates everything went well with your datasource and it is deployed. (It's not tested, so if you provided the wrong url or something, you will get errors when you try to get a connection). The errors about login-conf.xml can only be fixed by removing it from deploy. It is not deployable by anything: it's read on startup by the jaas framework. There is supposed to be a way to deploy additional login modules dynamically, but I haven't looked into exactly how it works. I think that it involves an additional mbean rather than a login-conf.xml file. Hope this helps david jencks On 2002.09.03 14:50:39 -0400 Bruce Snyder wrote: > This one time, at band camp, David Jencks said: > > DJ>login-conf.xml is not a deployable package. There needs to be exactly > one > DJ>of them in server/[config]/conf. > > I've only got one of them lying there. > > DJ>I think someone changed the incomplete deployment warnings to only > occur > DJ>once, so even though the login-conf.xml is still not deployed after > you > DJ>redeploy the oracle-xa-service.xml you don't get notified of the > actual > DJ>state of the server. I think your experience is a good illustration > of why > DJ>always reporting ALL the deployment problems is the clearest and most > DJ>satisfactory solution. > > I agree. Suppression of continually occurring errors only confuses > end users (like in my case ;-)). > > DJ>INIT_WAITING_DEPLOYER means there has been an attempt to deploy the > DJ>package, but currently there are no deployers that know what to do > with it. > DJ> If a deployer that recognizes that package type gets deployed, your > DJ>package will be deployed. > > OK, that makes complete sense to me. Now shouldn't the jboss-xa.rar > be handling the deployment of the oracle-xa-service.xml? If so, I've > tracked the jboss-xa.rar to be sure that it deploys successfully. I've > found no errors in the startup logs. > > Upon deploying the oracle-xa-service.xml, I'm seeing: > > [ServiceController] jboss.jca:service=XATxDS,name=XAOracleDS does not > implement any Service methods > > This message occurs twice, but no errors are thrown. Can you please > describe the meaning of this message? > > Then I see the following message: > > [XAOracleDS] Bound connection factory for resource adapter 'Minerva > JDBC > XATransaction ResourceAdapter' to JNDI name 'java:/XAOracleDS' > > This signals to me that the oracle-xa-service is being bound to the > JNDI ENC listed. But then later I receive the errors I submitted > previously. This leads me back to my original question. Shouldn't the > (already deployed) jboss-xa.rar handle this deployment? > > Thanks, > > Bruce > -- > perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E > > > > --- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle XA deployment: INIT_WAITING_DEPLOYER - isit deployed properly?
This one time, at band camp, David Jencks said: DJ>login-conf.xml is not a deployable package. There needs to be exactly one DJ>of them in server/[config]/conf. I've only got one of them lying there. DJ>I think someone changed the incomplete deployment warnings to only occur DJ>once, so even though the login-conf.xml is still not deployed after you DJ>redeploy the oracle-xa-service.xml you don't get notified of the actual DJ>state of the server. I think your experience is a good illustration of why DJ>always reporting ALL the deployment problems is the clearest and most DJ>satisfactory solution. I agree. Suppression of continually occurring errors only confuses end users (like in my case ;-)). DJ>INIT_WAITING_DEPLOYER means there has been an attempt to deploy the DJ>package, but currently there are no deployers that know what to do with it. DJ> If a deployer that recognizes that package type gets deployed, your DJ>package will be deployed. OK, that makes complete sense to me. Now shouldn't the jboss-xa.rar be handling the deployment of the oracle-xa-service.xml? If so, I've tracked the jboss-xa.rar to be sure that it deploys successfully. I've found no errors in the startup logs. Upon deploying the oracle-xa-service.xml, I'm seeing: [ServiceController] jboss.jca:service=XATxDS,name=XAOracleDS does not implement any Service methods This message occurs twice, but no errors are thrown. Can you please describe the meaning of this message? Then I see the following message: [XAOracleDS] Bound connection factory for resource adapter 'Minerva JDBC XATransaction ResourceAdapter' to JNDI name 'java:/XAOracleDS' This signals to me that the oracle-xa-service is being bound to the JNDI ENC listed. But then later I receive the errors I submitted previously. This leads me back to my original question. Shouldn't the (already deployed) jboss-xa.rar handle this deployment? Thanks, Bruce -- perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] HTTP to JMX invoker
The new stuff would be used when the client is trying to get at the JMX bus through a firewall. For example .. Swing Client -> firewall -> internet -> firewall -> jboss By default al JNDI/EJB go over RMI on port . In order for the above to work, the client firewall would have to allow RMI calls to go through and on the jboss firewall side it would have to forward port through to jboss. The new invokers wrap up the RMI call into http. Most firewalls allow http access and if the client firewall is a proxy firewall it will still work. On the server side most likely the http port is open to serve web pages so a servlet receives the response and sends it into the JMX bus. On Thu, 2002-08-29 at 00:12, Steve Knight wrote: > Hi, > > Can someone please explain to me in more detail the new HTTP to JMX Invoker > for RMI/HTTP for the JNDI service as well as > EJBs. > > > Thanks > > > --- > This sf.net email is sponsored by: Jabber - The world's fastest growing > real-time communications platform! Don't just IM. Build it in! > http://www.jabber.com/osdn/xim > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Oracle XA deployment: INIT_WAITING_DEPLOYER - is it deployed properly?
I'm resending this because I got a bizarre message from some list manager complaining about the start of the original message. If you got the first one, sorry for the noise. - login-conf.xml is not a deployable package. There needs to be exactly one of them in server/[config]/conf. I think someone changed the incomplete deployment warnings to only occur once, so even though the login-conf.xml is still not deployed after you redeploy the oracle-xa-service.xml you don't get notified of the actual state of the server. I think your experience is a good illustration of why always reporting ALL the deployment problems is the clearest and most satisfactory solution. INIT_WAITING_DEPLOYER means there has been an attempt to deploy the package, but currently there are no deployers that know what to do with it. If a deployer that recognizes that package type gets deployed, your package will be deployed. thanks david jencks On 2002.09.03 12:57:01 -0400 Bruce Snyder wrote: > I'm using JBoss 3.01 on Linux. I've configured and deployed the > oracle-xa-service.xml, login-conf.xml and the jboss-xa.rar was > already deployed. Upon starting up JBoss, I'm receiving a state of > INIT_WAITING_DEPLOYER. I can only find a reference to this in the source > and there are no notes about its meaning. Can someone tell me what it > means? Here is the full output of the error: > > --- > ... > 14:35:24,221 INFO [MainDeployer] Starting deployment of package: > file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > 14:35:24,223 INFO [MainDeployer] deployment waiting for deployer: > file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > 14:35:24,223 INFO [MainDeployer] Deployment of package: > file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml is waiting for > an appropriate deployer. > 14:35:24,226 ERROR [URLDeploymentScanner] MBeanException: Exception in > MBean operation 'checkIncompleteDeployments()' > Cause: Incomplete Deployment listing: > Packages waiting for a deployer: > [org.jboss.deployment.DeploymentInfo@d5c1b5f2 { > url=file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml } > deployer: null > status: null > state: INIT_WAITING_DEPLOYER > watch: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > lastDeployed: 1030480524223 > lastModified: 1030480524000 > mbeans: > ]Incompletely deployed packages: > [org.jboss.deployment.DeploymentInfo@d5c1b5f2 { > url=file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml } > deployer: null > status: null > state: INIT_WAITING_DEPLOYER > watch: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > lastDeployed: 1030480524223 > lastModified: 1030480524000 > mbeans: > ]MBeans waiting for classes: > > MBeans waiting for other MBeans: > > ... > --- > > > Upon changing a value in the oracle-xa-service.xml the service is > redeployed and it appears to be OK. Here is the output that appears from > the redeployment: > > --- > 14:39:29,825 INFO [MainDeployer] Undeploying > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,826 INFO [XATxConnectionManager] Stopping > 14:39:29,826 INFO [XATxConnectionManager] shutting down pool: > org.jboss.resource.connectionmanager.XATxConnectionManager@71680f > 14:39:29,827 INFO [XATxConnectionManager] Stopped > 14:39:29,827 INFO [JBossManagedConnectionPool] Stopping > 14:39:29,827 INFO [JBossManagedConnectionPool] Stopped > 14:39:29,828 INFO [XATxConnectionManager] Destroying > 14:39:29,829 INFO [JCAManagedConnectionFactory] > JCAManagedConnectionFactory.preDeregister(): JCAManagedConnectionFactory > 14:39:29,830 INFO [JCAConnectionFactory] > JCAConnectionFactory.preDeregister(): JCAConnectionFactory > 14:39:29,830 INFO [XATxConnectionManager] Destroyed > 14:39:29,831 INFO [JBossManagedConnectionPool] Destroying > 14:39:29,831 INFO [JBossManagedConnectionPool] Destroyed > 14:39:29,833 INFO [MainDeployer] Cleaned Deployment > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,833 INFO [MainDeployer] Undeployed > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,834 INFO [MainDeployer] Starting deployment of package: > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,869 WARN [ServiceController] > jboss.jca:service=XATxDS,name=XAOracleDS does not implement any Service > methods > 14:39:29,871 INFO [JBossManagedConnectionPool] Creating > 14:39:29,872 INFO [JBossManagedConnectionPool] Created > 14:39:29,872 INFO [XATxConnectionManager] Creating > 14:39:29,879 INFO [XATxConnectionManager] Created > 14:39:29,880 INFO [JBossManagedConnectionPool] Starting > 14:39:29,880 INFO [JBossManagedConnectionPool] Started > 14:39:29,889 INFO [XATxConnectionManager] Starting > 14:39:29,
Re: [JBoss-user] Oracle XA deployment: INIT_WAITING_DEPLOYER - is it deployed properly?
login-conf.xml is not a deployable package. There needs to be exactly one of them in server/[config]/conf. I think someone changed the incomplete deployment warnings to only occur once, so even though the login-conf.xml is still not deployed after you redeploy the oracle-xa-service.xml you don't get notified of the actual state of the server. I think your experience is a good illustration of why always reporting ALL the deployment problems is the clearest and most satisfactory solution. INIT_WAITING_DEPLOYER means there has been an attempt to deploy the package, but currently there are no deployers that know what to do with it. If a deployer that recognizes that package type gets deployed, your package will be deployed. thanks david jencks On 2002.09.03 12:57:01 -0400 Bruce Snyder wrote: > I'm using JBoss 3.01 on Linux. I've configured and deployed the > oracle-xa-service.xml, login-conf.xml and the jboss-xa.rar was > already deployed. Upon starting up JBoss, I'm receiving a state of > INIT_WAITING_DEPLOYER. I can only find a reference to this in the source > and there are no notes about its meaning. Can someone tell me what it > means? Here is the full output of the error: > > --- > ... > 14:35:24,221 INFO [MainDeployer] Starting deployment of package: > file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > 14:35:24,223 INFO [MainDeployer] deployment waiting for deployer: > file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > 14:35:24,223 INFO [MainDeployer] Deployment of package: > file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml is waiting for > an appropriate deployer. > 14:35:24,226 ERROR [URLDeploymentScanner] MBeanException: Exception in > MBean operation 'checkIncompleteDeployments()' > Cause: Incomplete Deployment listing: > Packages waiting for a deployer: > [org.jboss.deployment.DeploymentInfo@d5c1b5f2 { > url=file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml } > deployer: null > status: null > state: INIT_WAITING_DEPLOYER > watch: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > lastDeployed: 1030480524223 > lastModified: 1030480524000 > mbeans: > ]Incompletely deployed packages: > [org.jboss.deployment.DeploymentInfo@d5c1b5f2 { > url=file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml } > deployer: null > status: null > state: INIT_WAITING_DEPLOYER > watch: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml > lastDeployed: 1030480524223 > lastModified: 1030480524000 > mbeans: > ]MBeans waiting for classes: > > MBeans waiting for other MBeans: > > ... > --- > > > Upon changing a value in the oracle-xa-service.xml the service is > redeployed and it appears to be OK. Here is the output that appears from > the redeployment: > > --- > 14:39:29,825 INFO [MainDeployer] Undeploying > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,826 INFO [XATxConnectionManager] Stopping > 14:39:29,826 INFO [XATxConnectionManager] shutting down pool: > org.jboss.resource.connectionmanager.XATxConnectionManager@71680f > 14:39:29,827 INFO [XATxConnectionManager] Stopped > 14:39:29,827 INFO [JBossManagedConnectionPool] Stopping > 14:39:29,827 INFO [JBossManagedConnectionPool] Stopped > 14:39:29,828 INFO [XATxConnectionManager] Destroying > 14:39:29,829 INFO [JCAManagedConnectionFactory] > JCAManagedConnectionFactory.preDeregister(): JCAManagedConnectionFactory > 14:39:29,830 INFO [JCAConnectionFactory] > JCAConnectionFactory.preDeregister(): JCAConnectionFactory > 14:39:29,830 INFO [XATxConnectionManager] Destroyed > 14:39:29,831 INFO [JBossManagedConnectionPool] Destroying > 14:39:29,831 INFO [JBossManagedConnectionPool] Destroyed > 14:39:29,833 INFO [MainDeployer] Cleaned Deployment > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,833 INFO [MainDeployer] Undeployed > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,834 INFO [MainDeployer] Starting deployment of package: > file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml > 14:39:29,869 WARN [ServiceController] > jboss.jca:service=XATxDS,name=XAOracleDS does not implement any Service > methods > 14:39:29,871 INFO [JBossManagedConnectionPool] Creating > 14:39:29,872 INFO [JBossManagedConnectionPool] Created > 14:39:29,872 INFO [XATxConnectionManager] Creating > 14:39:29,879 INFO [XATxConnectionManager] Created > 14:39:29,880 INFO [JBossManagedConnectionPool] Starting > 14:39:29,880 INFO [JBossManagedConnectionPool] Started > 14:39:29,889 INFO [XATxConnectionManager] Starting > 14:39:29,896 INFO [XAOracleDS] Bound connection factory for resource > adapter 'Minerva JDBC XATransaction ResourceAdapter' to JNDI name > 'java:/XAOracleDS' > 14:39:29,896 INFO [XATxConnectionMan
[JBoss-user] New JMX4ODP Package
The JMX4ODP package has been updated on Sourceforge. JMX4ODP is a toolkit built on JMX. Its dynamicManagement package will introspect objects, remote objects, and even recognize EJB's to dynamically generate ModelMBeans to make many J2EE applications and components JMX manageable. Its j4oNet package is a peer to peer and MBean discovery framework. Its discovery mechanism allows objects to find MBeans and JMX agents running locally or across the network by criteria such as class and ObjectName. Once an MBean has been located, j4oNet can create location transparent proxies for accessing the MBean. The package is still beta, but hopefully some of you may find it useful. You can download the package from sourceforge which includes the source, classes, ant build scripts, JavaDoc, and manual: http://sfads.osdn.com/7.html?topic=jmx4odp,distcomp,java,308 or you can browse it all online at: http://sourceforge.net/projects/jmx4odp/ Lucas McGregor JMX4ODP Project Admin --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] test
burkecentral --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB Query Language question
On Tue, Sep 03, 2002 at 06:20:21PM +0200, Michael Nowotny wrote: > Hi folks! > > Using EJB ql it is possible define template queries such as > > SELECT OBJECT(p) FROM Product p where p.name = ?1 > > Now - what I'm trying to achieve is the following: > The query should not only return exact matches but products whose name contains a >given search string as well. > My approach looks like this: > > SELECT OBJECT(p) FROM Product p where p.name LIKE concat(concat('%', ?1), '%') What about doing the concat in your java code before supplying it as a parameter? Also check which functions that are available in EJB/JBoss-ql in standardjbosscmp-jdbc.xml in conf. There you find mapping for locate etc, which might contain one you neeed. If it isn't working, you mights need to use dynamic-ql > > JBoss doesn't accept this because it expects a String literal following the LIKE >keyword. > Even the stripped down version doesn't work: > > SELECT OBJECT(p) FROM Product p where p.name LIKE ?1 > > It seems to me that EJB QL only accepts constants following a LIKE statement. > Is there any way to achieve this kind of task using EJB QL. If not - what other >approaches might work in this context? > > thanks in advance -- MVH Marius Kotsbak Boost communications AS --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] test
test --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Oracle XA deployment: INIT_WAITING_DEPLOYER - is it deployed properly?
I'm using JBoss 3.01 on Linux. I've configured and deployed the oracle-xa-service.xml, login-conf.xml and the jboss-xa.rar was already deployed. Upon starting up JBoss, I'm receiving a state of INIT_WAITING_DEPLOYER. I can only find a reference to this in the source and there are no notes about its meaning. Can someone tell me what it means? Here is the full output of the error: --- ... 14:35:24,221 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml 14:35:24,223 INFO [MainDeployer] deployment waiting for deployer: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml 14:35:24,223 INFO [MainDeployer] Deployment of package: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml is waiting for an appropriate deployer. 14:35:24,226 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: [org.jboss.deployment.DeploymentInfo@d5c1b5f2 { url=file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml lastDeployed: 1030480524223 lastModified: 1030480524000 mbeans: ]Incompletely deployed packages: [org.jboss.deployment.DeploymentInfo@d5c1b5f2 { url=file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/opt/jboss-3.0.1/server/default/deploy/login-conf.xml lastDeployed: 1030480524223 lastModified: 1030480524000 mbeans: ]MBeans waiting for classes: MBeans waiting for other MBeans: ... --- Upon changing a value in the oracle-xa-service.xml the service is redeployed and it appears to be OK. Here is the output that appears from the redeployment: --- 14:39:29,825 INFO [MainDeployer] Undeploying file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml 14:39:29,826 INFO [XATxConnectionManager] Stopping 14:39:29,826 INFO [XATxConnectionManager] shutting down pool: org.jboss.resource.connectionmanager.XATxConnectionManager@71680f 14:39:29,827 INFO [XATxConnectionManager] Stopped 14:39:29,827 INFO [JBossManagedConnectionPool] Stopping 14:39:29,827 INFO [JBossManagedConnectionPool] Stopped 14:39:29,828 INFO [XATxConnectionManager] Destroying 14:39:29,829 INFO [JCAManagedConnectionFactory] JCAManagedConnectionFactory.preDeregister(): JCAManagedConnectionFactory 14:39:29,830 INFO [JCAConnectionFactory] JCAConnectionFactory.preDeregister(): JCAConnectionFactory 14:39:29,830 INFO [XATxConnectionManager] Destroyed 14:39:29,831 INFO [JBossManagedConnectionPool] Destroying 14:39:29,831 INFO [JBossManagedConnectionPool] Destroyed 14:39:29,833 INFO [MainDeployer] Cleaned Deployment file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml 14:39:29,833 INFO [MainDeployer] Undeployed file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml 14:39:29,834 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml 14:39:29,869 WARN [ServiceController] jboss.jca:service=XATxDS,name=XAOracleDS does not implement any Service methods 14:39:29,871 INFO [JBossManagedConnectionPool] Creating 14:39:29,872 INFO [JBossManagedConnectionPool] Created 14:39:29,872 INFO [XATxConnectionManager] Creating 14:39:29,879 INFO [XATxConnectionManager] Created 14:39:29,880 INFO [JBossManagedConnectionPool] Starting 14:39:29,880 INFO [JBossManagedConnectionPool] Started 14:39:29,889 INFO [XATxConnectionManager] Starting 14:39:29,896 INFO [XAOracleDS] Bound connection factory for resource adapter 'Minerva JDBC XATransaction ResourceAdapter' to JNDI name 'java:/XAOracleDS' 14:39:29,896 INFO [XATxConnectionManager] Started 14:39:29,896 INFO [MainDeployer] Deployed package: file:/opt/jboss-3.0.1/server/default/deploy/oracle-xa-service.xml --- What is going on here? Is this service waiting for something? Can someone tell me if this XA JDBC service is properly deployed and ready to use? Bruce -- perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9Ehttps://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] O'Reilly JBoss 3.0 Workbook
Hello all, Sacha Labourey and I have written a companion workbook to O'Reilly's "EJB 3rd Edition" by Richard Monson-Haefel. It will be published sometime in October and we would really like some feedback! Please refrain from grammar and spelling mistakes, since our editor will handle these sort of things. I have created a Forum thread to discuss all subjects pertaining to the workbook: http://www.jboss.org/forums/thread.jsp?forum=141&thread=20594 To download a 1st draft of the workbook and corresponding examples, please go to: http://www.monson-haefel.com/titanbooks/jbos30worfor.html To use the book it is highly recommended that you also have a copy of EJB 3rd edition since the Workbook follows closely with the chapters of EJB 3rd edition. It can be purchased at: http://www.amazon.com/exec/obidos/tg/detail/-/0596002262/qid=1031070299/sr=1 -1/ref=sr_1_1/002-1658527-7362441?v=glance&s=books Thanks, Bill Burke JBossGroup --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB Query Language question
Hi folks! Using EJB ql it is possible define template queries such as SELECT OBJECT(p) FROM Product p where p.name = ?1 Now - what I'm trying to achieve is the following: The query should not only return exact matches but products whose name contains a given search string as well. My approach looks like this: SELECT OBJECT(p) FROM Product p where p.name LIKE concat(concat('%', ?1), '%') JBoss doesn't accept this because it expects a String literal following the LIKE keyword. Even the stripped down version doesn't work: SELECT OBJECT(p) FROM Product p where p.name LIKE ?1 It seems to me that EJB QL only accepts constants following a LIKE statement. Is there any way to achieve this kind of task using EJB QL. If not - what other approaches might work in this context? thanks in advance
[JBoss-user] CMR Bug in JBoss since Version 3.0.1
Hi folks! While switching from JBoss 3.0.0 to JBoss 3.0.1 I experienced some strange behaviour from the container concerning Container Managed Relations. After some analysis the problem can be drilled down as follows: Whenever one Bean Type has two relationships with a different bean type which point to different bean instances from the same type then the container manages these two relations as pointing to the same bean instance. To clarify this statement, I'll give you an example drawn from the domain of cost accounting. This can be generalized to linear input-/output systems present in production planning environments. A cost center is a place where the firm's production takes place. Such cost centers provide services to other cost centers or finally produce products. On the other hand cost centers receive services from other cost centers (such as energy, cleaning or repair, water). This results in an Input-/Output structure which can be depicted as a graph and evaluated using a matrix and subsequently solving a system of linear equations. There are two bean types: CostCenter and CostCenterInterlinking The CostCenterInterlinking Bean manages the n:m relation between cost centers. So it has two relations with two different CostCenter bean instances. One Input and one Output. Since JBoss 3.0.1 - when queried - these two relations point to the exact same bean instance whereas the application worked fine with version 3.0.0. This behaviour is still present in 3.0.2. There might not be so many applications relying on this feature but when it comes to enterprise solutions this kind of structure is quite frequent. regards, Michael
RE: [JBoss-user] location of changelog?
If you go to the files section on sf.net, you can click on the title of the release in the list and it will show the change notes - standard sourceforge feature.. http://sourceforge.net/project/showfiles.php?group_id=22866 James > -Original Message- > From: Seth Ladd [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 9:47 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] location of changelog? > > > Hello, > > I've been searching but can't find the changelog for the > recent releases > of JBoss. Can someone post a URI for those changelogs? > > Thanks very much! > Seth > --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Is anyone able to use two jboss's on different machines?
If you want to use transactions distributed across multiple jboss servers you currently have to use the Tyrex dtm plugin. I don't know to what extent it has actually been tested with the various 3.x/4.0 versions of jboss. In jboss 4, a lot of what's needed for distributed transactions in the jboss tm is implemented in the transaction inflow contracts from jca 1.5. We still need a connector of some sort to get the calls from one jboss instance to the other. Also the jboss tm does no logging currently so won't provide any recovery support. As to whether this is a cornerstone of j2ee -- I don't have a lot of real world experience with this but I would expect you would usually get much better performance and resource utilization by keeping each unit of work in one vm and distributing the work through clustering (or just running lots of servers in parallel) and partitioning the work sequentially through MOM. So, althought the spec pushes it extensively, it may not be a really practical design for real systems. What do you think? I think the effect of removing the client session bean tx interceptor is that jboss doesn't try to propagate a transaction between servers, and your work is not done in a single transaction. Thanks david jencks On 2002.09.03 10:52:14 -0400 Josh Davis wrote: > I'm using JBoss 3.0. The interesting thing is, is that in the > standardjboss.xml file I found the container configuration for the > standard > stateless session beans and I commented out the transaction intercepter > in > the client. When I restarted my distributed calls work fine. > > Here is my guess as to what is happening. JBoss starts a transaction > when > the client session bean is called on. When the client session bean tries > to > make a distributed call to the other jboss instance it tries to pass on > the > transaction information as well. In this case none of the transaction > code > is serializable. David Jencks makes mention of this in a distributed > transaction email thread. This makes sense as to why it is happening. > > The main problem that I'm having is how are people getting this to work > by > leaving the transaction interceptor in place. My assumption is nobody > has > this working with version 3.0. Also what are the implications of leaving > > the transaction interceptor commented out? > > Shouldn't you theoretically be able to call any bean on any jboss > instance > in a distributed environment? Isn't this what the J2EE architecture is > all > about? > > Josh Davis > > >-Original Message- > >From: Sacha Labourey [mailto:[EMAIL PROTECTED]] > >Sent: Saturday, August 31, 2002 1:56 AM > >To: [EMAIL PROTECTED] > >Subject: RE: [JBoss-user] Is anyone able to use two jboss's on different > >machines? > > > > > >Hello, > > > >Can you please provide us with: > > - the version (3.0.2, 3.2beta, HEAD, etc.) > > - the client code and any config file > > - the stack trace > > > > > >Cheers, > > > > Sacha > > > > > -Message d'origine- > > > De : [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]De la part de Josh > Davis > > > Envoyé : vendredi, 30 août 2002 19:47 > > > À : [EMAIL PROTECTED] > > > Objet : RE: [JBoss-user] Is anyone able to use two jboss's on > different > > > machines? > > > > > > > > > I can see the other machine because the jndi call successfully > > > completes the > > > initial lookup of the home interface. The problem arises when the > > > home.create() method is called from the client jboss instance. I get > a > > > NotSerializableException on a TransactionImpl class. Why is a > > > TransactionImpl class even involved in my call to the other jboss > > > instance? > > > The home.create() should just return the remote stub to me. Do I > have > >to > > > configure something so the transaction interceptor isn't being > > > used. Using > > > tyrex produces the same problem. > > > > > > Josh (java guru) Davis > > > > > > >-Original Message- > > > >From: Emerson Cargnin - SICREDI Serviços > > > >[mailto:[EMAIL PROTECTED]] > > > >Sent: Friday, August 30, 2002 11:16 AM > > > >To: [EMAIL PROTECTED] > > > >Subject: Re: [JBoss-user] Is anyone able to use two jboss's on > >different > > > >machines? > > > > > > > > > > > >you have to have a jndi.properties in the classpath to allow > > > jboss to see > > > >the other host. > > > > > > > >Josh Davis wrote: > > > > > Does anyone have JBoss 3.0 running on two different machines > > > with ejb > > > > >lookups working correctly between them? I'm not talking > > > clustering > here. > > > > I want to know if anyone can successfully do a lookup from a > > >session > > > >bean to a session bean on two different machines running jboss. > > > > > > Lookups work fine from an ear file to another ear file > > > deployed in the > > > > > same jboss instance on the same machine, but fails > > > distributedly. Have > > > > > I configured something wrong? > > > >
Re: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j
I would suggest using xdoclet from xdoclet cvs or the version included in jboss cvs HEAD. xdoclet is about to release 1.2 and would appreciate reports of problems. thanks david jencks On 2002.09.03 10:11:06 -0400 Jose Luis Peleteiro - Sistemas e Processos wrote: > > > Can any one sendme this file. (jbosscmp-jdbc_xml.j) > Please! > > > FROM: Stephen Coy > DATE: 06/28/2002 07:17:41 > SUBJECT: RE: [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM > > > > > Unfortunately, xdoclet 1.1.2 has only limited support for custom jboss > > queries for CMP 2.0. > > > > "jboss:finder-query" generates JAWS (CMP 1.1) configuration data. > > > > I'm including a modified jbosscmp-jdbc_xml.j file that we are using, > > which has almost full support for "jboss:declared-sql" and "jboss:query" > > tags, which generate and sections in your > > jbosscmp-jdbc.xml file. > > > > You need to replace this file in your xdoclet.jar. > > > > Here's a sample: > > > > @jboss:declared-sql > > signature="Collection findInSequence()" > > order="precedence" > > @jboss:query > > signature="java.util.Collection > > ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal > > user)" > > query="SELECT DISTINCT r.worklist FROM User AS u, IN > (u.userRoles) > > AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY > > r.worklist.precedence ASC" > > strategy="on-find" > > page-size="16" > > > > @jboss:query > > signature="java.util.Set ejbSelectGeneric( java.lang.String > query, > > java.lang.Object[] args)" > > dynamic="true" > > > > For more detailed information on these JBoss constructs, the USD10 CMP > > documentation is well worth it. > > > > > > > > > > >class=870230914-03092002>Can any one > sendme this file. (jbosscmp-jdbc_xml.j) face=Arial size=2>class=870230914-03092002>Please! face=Arial size=2> size=2> FROM: Stephen > CoyDATE: 06/28/2002 07:17:41SUBJECT: RE: [JBoss-user] CMP > 2.0 / FINDER CREATION PROBLEM size=2> Unfortunately, > xdoclet 1.1.2 has only limited support for custom jboss > queries for CMP 2.0. > > "jboss:finder-query" generates JAWS (CMP 1.1) configuration data. > > I'm including a modified jbosscmp-jdbc_xml.j file that > we are using, > which has almost full support for "jboss:declared-sql" and "jboss:query" > tags, which generateand sections in > your > jbosscmp-jdbc.xml file. > > You need to replace this file in your xdoclet.jar. > > Here's a sample: > > @jboss:declared-sql > signature="Collection findInSequence()" > order="precedence" > @jboss:query > signature="java.util.Collection > ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal > user)" > query="SELECT DISTINCT r.worklist FROM User AS u, IN > (u.userRoles) > AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY > r.worklist.precedence ASC" > strategy="on-find" > page-size="16" > > @jboss:query > signature="java.util.Set ejbSelectGeneric( java.lang.String > query, > java.lang.Object[] args)" > dynamic="true" > > For more detailed information on these JBoss constructs, the USD10 CMP > documentation is well worth it. > --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Is anyone able to use two jboss's on different machines?
I'm using JBoss 3.0. The interesting thing is, is that in the standardjboss.xml file I found the container configuration for the standard stateless session beans and I commented out the transaction intercepter in the client. When I restarted my distributed calls work fine. Here is my guess as to what is happening. JBoss starts a transaction when the client session bean is called on. When the client session bean tries to make a distributed call to the other jboss instance it tries to pass on the transaction information as well. In this case none of the transaction code is serializable. David Jencks makes mention of this in a distributed transaction email thread. This makes sense as to why it is happening. The main problem that I'm having is how are people getting this to work by leaving the transaction interceptor in place. My assumption is nobody has this working with version 3.0. Also what are the implications of leaving the transaction interceptor commented out? Shouldn't you theoretically be able to call any bean on any jboss instance in a distributed environment? Isn't this what the J2EE architecture is all about? Josh Davis >-Original Message- >From: Sacha Labourey [mailto:[EMAIL PROTECTED]] >Sent: Saturday, August 31, 2002 1:56 AM >To: [EMAIL PROTECTED] >Subject: RE: [JBoss-user] Is anyone able to use two jboss's on different >machines? > > >Hello, > >Can you please provide us with: > - the version (3.0.2, 3.2beta, HEAD, etc.) > - the client code and any config file > - the stack trace > > >Cheers, > > Sacha > > > -Message d'origine- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de Josh Davis > > Envoyé : vendredi, 30 août 2002 19:47 > > À : [EMAIL PROTECTED] > > Objet : RE: [JBoss-user] Is anyone able to use two jboss's on different > > machines? > > > > > > I can see the other machine because the jndi call successfully > > completes the > > initial lookup of the home interface. The problem arises when the > > home.create() method is called from the client jboss instance. I get a > > NotSerializableException on a TransactionImpl class. Why is a > > TransactionImpl class even involved in my call to the other jboss > > instance? > > The home.create() should just return the remote stub to me. Do I have >to > > configure something so the transaction interceptor isn't being > > used. Using > > tyrex produces the same problem. > > > > Josh (java guru) Davis > > > > >-Original Message- > > >From: Emerson Cargnin - SICREDI Serviços > > >[mailto:[EMAIL PROTECTED]] > > >Sent: Friday, August 30, 2002 11:16 AM > > >To: [EMAIL PROTECTED] > > >Subject: Re: [JBoss-user] Is anyone able to use two jboss's on >different > > >machines? > > > > > > > > >you have to have a jndi.properties in the classpath to allow > > jboss to see > > >the other host. > > > > > >Josh Davis wrote: > > > > Does anyone have JBoss 3.0 running on two different machines > > with ejb > > > >lookups working correctly between them? I'm not talking > > clustering > here. > > > I want to know if anyone can successfully do a lookup from a > >session > > >bean to a session bean on two different machines running jboss. > > > > > Lookups work fine from an ear file to another ear file > > deployed in the > > > > same jboss instance on the same machine, but fails > > distributedly. Have > > > > I configured something wrong? > > > > > Josh (java guru) Davis > > > > > > > > > _ > > > > MSN Photos is the easiest way to share and print your photos: > > > >http://photos.msn.com/support/worldwide.aspx > > > > > > > --- > > > > This sf.net email is sponsored by: OSDN - Tired of that same old > > > > cell phone? Get a new here for FREE! > > > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > > > > ___ > > > > JBoss-user mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > >-- > > >Emerson Cargnin - MSA > > >SICREDI - Tel : 3358-4860 > > > > > > > > > > > >--- > > >This sf.net email is sponsored by: OSDN - Tired of that same old > > >cell phone? Get a new here for FREE! > > >https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > > >___ > > >JBoss-user mailing list > > >[EMAIL PROTECTED] > > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > _ > > MSN Photos is the easiest way to share and print your photos: > > http://photos.msn.com/support/worldwide.aspx > > > > > > > > --- > > This sf.net email is sponsored by: OSDN - Tired of that same old > >
Re: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j
Jose, This file only works with the released version of XDoclet. You may want to get the CVS source and try that instead. Here's what you'll need: 1. JDK 1.4 for the build in SAX parser. 2. ANT 1.5 (requires JDK 1.4) 3. CVS HEAD version of XDoclet. Now for the changes we went through to make all this work: A) The ejbdoclet task gets the root of the package structure from the rather than using package name in the java source file. The symptoms are the will not be fully qualified in the ejb-jar.xml file. B) If you use CMR-relationships, you will need (at least for JBoss 3.0.0) to add a @jboss.relation-mapping style = "foreign-key" otherwise you will get lots of exceptions during deployment. C) The @jboss.table-name is deprecated. You must use @ejb.persistence table-name = "TABLE" instead, D) The @ejb.select tag is no longer a bean tag. Instead you place it before the abstract ejbSelect method it applies to. Also, you must remove any signature parameter. This change definitely makes sense. That's it, from what I remember, best of luck, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 Jose Luis Peleteiro - Sistemas e Processos <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03.09.2002 10:11 Please respond to jboss-user To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: [JBoss-user] XDoclet jbosscmp-jdbc_xml.j Can any one sendme this file. (jbosscmp-jdbc_xml.j) Please! FROM: Stephen Coy DATE: 06/28/2002 07:17:41 SUBJECT: RE: [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM Unfortunately, xdoclet 1.1.2 has only limited support for custom jboss queries for CMP 2.0. "jboss:finder-query" generates JAWS (CMP 1.1) configuration data. I'm including a modified jbosscmp-jdbc_xml.j file that we are using, which has almost full support for "jboss:declared-sql" and "jboss:query" tags, which generate and sections in your jbosscmp-jdbc.xml file. You need to replace this file in your xdoclet.jar. Here's a sample: @jboss:declared-sql signature="Collection findInSequence()" order="precedence" @jboss:query signature="java.util.Collection ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal user)" query="SELECT DISTINCT r.worklist FROM User AS u, IN (u.userRoles) AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY r.worklist.precedence ASC" strategy="on-find" page-size="16" @jboss:query signature="java.util.Set ejbSelectGeneric( java.lang.String query, java.lang.Object[] args)" dynamic="true" For more detailed information on these JBoss constructs, the USD10 CMP documentation is well worth it.
[JBoss-user] location of changelog?
Hello, I've been searching but can't find the changelog for the recent releases of JBoss. Can someone post a URI for those changelogs? Thanks very much! Seth smime.p7s Description: S/MIME Cryptographic Signature
[JBoss-user] JBoss 3.0 & Microsoft Internet Information Services 5.0
Hi, is there anyone who has successfully configured Microsoft's Internet Information Services 5.0 (IIs) with JBoss3.0 & Tomcat ApplicationServer ? regards, Lutz Beckmann --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] XDoclet jbosscmp-jdbc_xml.j
Can any one sendme this file. (jbosscmp-jdbc_xml.j)Please! FROM: Stephen CoyDATE: 06/28/2002 07:17:41SUBJECT: RE: [JBoss-user] CMP 2.0 / FINDER CREATION PROBLEM Unfortunately, xdoclet 1.1.2 has only limited support for custom jboss queries for CMP 2.0. "jboss:finder-query" generates JAWS (CMP 1.1) configuration data. I'm including a modified jbosscmp-jdbc_xml.j file that we are using, which has almost full support for "jboss:declared-sql" and "jboss:query" tags, which generate and sections in your jbosscmp-jdbc.xml file. You need to replace this file in your xdoclet.jar. Here's a sample: @jboss:declared-sql signature="Collection findInSequence()" order="precedence" @jboss:query signature="java.util.Collection ejbSelectUserLists(com.whitesmiths.sacha.ejb.auth.interfaces.UserLocal user)" query="SELECT DISTINCT r.worklist FROM User AS u, IN (u.userRoles) AS r WHERE r.worklist IS NOT NULL AND u = ?1 ORDER BY r.worklist.precedence ASC" strategy="on-find" page-size="16" @jboss:query signature="java.util.Set ejbSelectGeneric( java.lang.String query, java.lang.Object[] args)" dynamic="true" For more detailed information on these JBoss constructs, the USD10 CMP documentation is well worth it.
[JBoss-user] JMS Clustering
Hello, Does JBOSS support JMS clustering and JMS fault tolerance? and How to do these? How can one handle JMS messages persistence? Pls send any links related to these topics. Thanks, Niket --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to configure JAXM in JBoss3.0?
What's in jaxm-provider? You can deploy regular jars by including them in server/[config]/deploy or have them loaded at startup by including them in server/[config]/lib. BTW, how do messages get into jboss? jca 1.5 has message inflow contracts for this so jaxm can call mdbs directly, otherwise what do you do? thanks david jencks On 2002.09.03 06:36:23 -0400 piussanjay wrote: > Hi, > I want to deploy JAXM client in JBoss3.0. In JAXM ,there's something > called > jaxm-provider which acts as a gateway to route the message from a JAXM > client to another. > > I deployed the jaxm .war(client) file in default\deploy dir where as > jaxm-provider is a directory which I cannot make it as a .war or .ear > file. > So this jaxm-provider dir have be be copied & put in JBoss server. > > Where do I put this dir. I have run jaxm program in Weblogic 6.1 where I > copied my jaxm-provider dir in mydomain\applications\jaxm-provider.It > worked > perfectly fine. > > Anyone just let me know how to deploy my jaxm-provider(gateway) dir in > JBoss > server & any other alternative to solve this purpose apart from not doing > .war or .ear file. But as it is like a dir structure. > > Regards > P.Sanjay > > > > > > > Hi,I want class=646471010-03092002>to deploy JAXM client in JBoss3.0. In > JAXM > ,there's something called jaxm-provider which acts as a gateway to route > the > message from a JAXM client to > another.I deployed the jaxm .war(client) file in default\deploy > dir > where as jaxm-provider is a directory which I cannot make it as a .war or > .ear > file. So this jaxm-provider dir have be be copied & put in JBoss > server.Where do I put this dir. I have run jaxm program in > Weblogic 6.1 > where I copied my jaxm-provider dir in > mydomain\applications\jaxm-provider.It > worked perfectly fine.Anyone just let me know how to deploy my > jaxm-provider(gateway) dir in JBoss server & any other alternative to > solve > this purpose apart from not doing .war or > .ear > file. But as it is like a dir structure.RegardsP.Sanjay > > > --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Off-topic: Mac OS X 10.2 Jaguar having CVS problems???
Or is it just me... Had before no problems with anonymous access like this (behind firewall): cvs -d:pserver:[EMAIL PROTECTED]:80/cvsroot/jboss login Now with 10.2 i just get: connect to cvs-pserver.sourceforge.net:2401 failed: Operation timed out Why it says port 2401 i don't now. Any idea? /Lennart --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to configure JAXM in JBoss3.0?
Hi,I want to deploy JAXM client in JBoss3.0. In JAXM ,there's something called jaxm-provider which acts as a gateway to route the message from a JAXM client to another.I deployed the jaxm .war(client) file in default\deploy dir where as jaxm-provider is a directory which I cannot make it as a .war or .ear file. So this jaxm-provider dir have be be copied & put in JBoss server.Where do I put this dir. I have run jaxm program in Weblogic 6.1 where I copied my jaxm-provider dir in mydomain\applications\jaxm-provider.It worked perfectly fine.Anyone just let me know how to deploy my jaxm-provider(gateway) dir in JBoss server & any other alternative to solve this purpose apart from not doing .war or .ear file. But as it is like a dir structure.RegardsP.Sanjay
[JBoss-user] cocoon2 with jboss-tomcat errors
Hi all, thanks for the help with eclipse! Now, on to the next problem: cocoon2 with tomcat/catalina. Per some of the posts in the forum, jetty works with cocoon2, but doesn't with the embedded tomcat configuration. I found a posting on the xml-cocoon-users list at http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102257393428531&w=2 which goes through adding some hacks to the cvs for jboss-all/catalina eliminate the jndi error, which otherwise catches you out. However, this doesn't seem to solve the problem, as now I get other errors, which seem to indicate that the cocoon-2.0.3.jar is not being found within the cocoon.war file. Here's part of the error I get when I load cocoon: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 22, column 49: cannot access class Component; file org\apache\avalon\framework\component\Component.class not found Line 23, column 53: cannot access class Configurable; file org\apache\avalon\framework\configuration\Configurable.class not found Line 24, column 53: cannot access class Configuration; file org\apache\avalon\framework\configuration\Configuration.class not found Line 25, column 53: cannot access class ConfigurationException; file org\apache\avalon\framework\configuration\ConfigurationException.class not found Line 26, column 53: cannot access class DefaultConfiguration; file org\apache\avalon\framework\configuration\DefaultConfiguration.class not found Line 27, column 50: cannot access class Parameters; file org\apache\avalon\framework\parameters\Parameters.class not found Line 29, column 29: cannot access class Constants; file org\apache\cocoon\Constants.class not found Any help appreciated. cheers, Bruce Dr. Bruce Scharlau Dept. of Computing Science University of Aberdeen Aberdeen AB24 3UE 01224 272193 http://www.csd.abdn.ac.uk/~bscharla mailto:[EMAIL PROTECTED] --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user