Re: [JBoss-user] Commit Option A and ejbCreate [auf Viren geprüft]
I am doing all of the object creation inside a single transaction as far as I know, by running inside a SLSB with RequiresNew as the Transaction type. The transaction type of ejbCreate is Requires, which won't create a new transaction will it? I suppose I could change it to Supports? I've never been forced to use ejbPostCreate for CMR setting before, although I have done it that way in the past. I'm currently using androMDA to do code generation, and I generally leave the CMRs out of my EJB create methods. I'll be putting a bug in on this one as soon as I get a spare moment and can write a very small program that demonstrates the bug. -Neal On January 22, 2004 05:19 am, Jonathan.O'[EMAIL PROTECTED] wrote: > Neal, > What are the transaction types for the ejbCreate(), the > ejb.setRelatedItem(item) and the calling method? You must be > creating multiple transactions, and with commit-option A, its > caching the value. Still doesn't make sense though. Also, why can't > you move setting the CMRs into ejbPostCreate? > Ciao, > Jonathan O'Connor > XCOM Dublin > > > > Neal Sanche <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 21.01.2004 22:55 > Please respond to > [EMAIL PROTECTED] > > > To > jboss-user <[EMAIL PROTECTED]> > cc > > Subject > [JBoss-user] Commit Option A and ejbCreate [auf Viren geprüft] > > > > > > > Hi All, > > I have recently been experimenting with Commit Option A and have > noticed on rare occasions that creation of an EJB and subsequent > setting of some of its CMRs will fail with an EJB spec violation in > JBoss 3.2.4RC1. The exception mentions that the CMR should only be > set in the ejbPostCreate. However, I am not actually setting any > CMRs in the ejbCreate, I am doing so in subsequent lines of the > code. For example: > > MYEJBLocal ejb = myhome.create(); > ejb.setRelatedItem(item); > > The exception will occur on the call to setRelatedItem() which is a > CMR method, which is in this case a one to one relation. I am also > using the unknown-pk functionality with mysql to have > auto-incrementing primary keys, if that makes a difference. > > So far, this doesn't ever happen when the commit option is B, which > is the default in the Entity container. > > Any ideas? > > -Neal > > > > --- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > --- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Could not create entity:COM.ibm.db2.jdbc.DB2Exception
This is what is now in 3.2.4rc1 and head: java.lang.Object VARBINARY BLOB(2000) this works here with the net driver. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Mikkel HeisterbergSent: Saturday, January 03, 2004 11:05 AMTo: [EMAIL PROTECTED]Subject: Re: [JBoss-user] Could not create entity:COM.ibm.db2.jdbc.DB2ExceptionHi, I had the same problem but found the solution in the JBoss forum. You have to define a new mapping in standardjbosscmp-jdbc.xml: [B VARBINARY BLOB(2000) This will let you use byte arrays (byte[]) for blobs. "Lazyboy" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 16-12-2003 08:58 Please respond to[EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Could not create entity:COM.ibm.db2.jdbc.DB2Exception hi,everyoneI want to use blob,my table is:+++| VARCHAR | BLOB |+++ But,there is something wrong,like below:javax.ejb.CreateException: Could not createentity:COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0123E SQL datatype out of range¡£ SQLSTATE=HY004 atorg.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:311) atorg.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:144) atorg.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:518) atorg.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:208) atorg.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:269) at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:736) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) atorg.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1042) atorg.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) atorg.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:197) atorg.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214) atorg.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) atorg.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:89) atorg.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) atorg.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) atorg.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) atorg.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267) atorg.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:98) atorg.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) atorg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) atorg.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:484) at org.jboss.ejb.Container.invoke(Container.java:720) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) atorg.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanSer
RE: [JBoss-user] Garbage Collector: Service?
Hi Heiko, Thanks for reply. Please bear my ignorance. Could you give a more detailed explanation? Did you mean writing a seperate class and deploy it as a '-service.xml' file. If then, how can I schedule this class to be run, say every 5 mins? Thanks Muraly At 09:13 23/01/2004 +0100, you wrote: Hi, > Is there any particular service available in JBoss to > schedule the garbage collector? use jboss.system:type=System and there the runGarbageCollector call. Heiko --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss.net: How can I modify the service name displayed in WSDL?
Rob The @jboss-net.web-service tag has a parameter "urn" which can be used to set the service name something like: * @jboss-net.web-service * urn="MySessionService" * expose-all="true" -jason On Jan 23, 2004, at 8:35 AM, Rob Moore wrote: I am using the jboss.net xdoclet task and have not been able to figure out how to modify the value that the jboss.net/axis services display for the service name of my session bean. Because it is a local bean, the service has 'Local' appended to the name session bean name automatically so that I end up with something like MySessionLocalService. While it is functional, I cringe at the name and would like to modify it. I thought this would be a fairly easy thing to do, but am unable to determine how to do so. Am I overlooking something or is this just a fact of life? Thanks, Rob --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] OOM wrapped in UndeclaredThrowable
Hi, Today we saw this exception log in one of our environments running jboss 3.0.8: 12:39:55,861 WARN [ClientConsumer] Could not send messages to a receiver. java.lang.reflect.UndeclaredThrowableException: java.lang.OutOfMemoryError <> 12:39:55,861 ERROR [JMSDestinationManager] The connection to client ID:91 failed. 12:39:55,924 ERROR [SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.AcknowledgementRequestMsg896683[msgType: m_acknowledge, msgID: 4449, error: null] javax.jms.JMSException: The provided subscription does not exist at org.jboss.mq.server.ClientConsumer.acknowledge(ClientConsumer.java:317) at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationMana ger.java:520) at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationMana ger.java:504) at org.jboss.mq.server.JMSServerInterceptorSupport.acknowledge(JMSServerInt erceptorSupport.java:197) at org.jboss.mq.server.TracingInterceptor.acknowledge(TracingInterceptor.ja va:404) at org.jboss.mq.server.JMSServerInvoker.acknowledge(JMSServerInvoker.java:1 99) at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketMa nagerHandler.java:81) at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java :355) at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:376) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecuto r.java:732) at java.lang.Thread.run(Thread.java:479) 1. We are wondering how it is possible that an OOM ends up inside a UndeclaredThrowableException. 2. Is it somehow possible that an OOM originating on a remote client results in such a stack trace? Any help or insite is appreciated, thanks, Sebastian Hauer Software Engineering [EMAIL PROTECTED] Sakonnet Technology 594 Broadway Suite 1008 New York, NY 10012 www.sknt.com +1 917 237 3831 direct +1 212 343 3103 fax ___ This message is for the named recipient's use only. It may contain sensitive and private proprietary information. No confidentiality is waived or lost by any incorrect transmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Sakonnet Technology, LLC and its subsidiaries reserve the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] How to read message counter infos ?
>From the admin/devel guide: *Type: Either Queue or Topic indicating the destination type. *Name: The name of the destination. *Subscription: The subscription ID for a topic. *Durable: A boolean indicating if the topic subscription is durable. *Count: The number of message delivered to the destination. *CountDelta: The change in message count since the previous access of count. *Depth: The number of messages in the destination. *DepthDelta: The change in the number of messages in the destination since the previous access of depth. *Last Add: The date/time string in DateFormat.SHORT/DateFormat.MEDIUM format of the last time a message was added to the destination. Scott Stark Chief Technology Officer JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel GARDAIS Sent: Friday, January 23, 2004 3:20 AM To: jboss-user Subject: [JBoss-user] How to read message counter infos ? Hi, >From the jmx-console, reading : Topic,performance,-,false,853,351,0,0,1/23/04 11:23:55 AM I understand : - kind : Topic - name : performance - don't know what is the third param - persistance : false - message send ? - message failed ? - dont know - dont know - last message sent timestamp ? I am right with this interpretation ? What are the missing fields ? thanks, ionel _ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PostgreSQL and foreign keys
Hi, I'm desperately trying to get JBoss and PostgreSQL working together with foreign keys. I'm using JBoss 3.2.3 and PostgreSQL 7.3.4. I want to map the following two tables: CREATE Table kv ( pkey serial not null, kvid int2 not null, nummer integer not null, passwort varchar(63), patientanzahl int2, pzf int2, daz int2, CONSTRAINT id_kv UNIQUE (kvid), CONSTRAINT pk_kv PRIMARY KEY(pkey) ); CREATE Table teilnehmer ( pkey serial not null, teilnehmer_id integer not null, fk_kv int4, firma varchar(255), nachname varchar(255), vorname varchar(255), titel varchar(63), anrede int2 , strasse varchar(255), plz varchar(255), ort varchar(255), mail varchar(255), telefon varchar(255), fax varchar(255), CONSTRAINT id_teilnehmer UNIQUE (teilnehmer_id), CONSTRAINT pk_teilnehmer PRIMARY KEY(pkey), CONSTRAINT rel_teilnehmer_kv FOREIGN KEY (fk_kv) REFERENCES kv (pkey) on delete cascade ); Do you have any hints for me? And please be kind and do not answer "google is your friend" or similar. I searched not only on the mailing list archive but in the forums and the whole web. ;) I think I'm confused with how to do this because of the different JBoss versions (when searching for help in the JBoss persistence forum e.g.) and workarounds posted for them. For clarity I uploaded my two beans and their dds here: http://www.user.fh-stralsund.de/~sestgran/temp/ Can anyone help me on this issue? I can't get it to work correctly. Thanks in advance Steffen Gransow --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Garbage Collector: Service?
It is my understanding there is little point in an arbitrary GC call. Periodic GC calls have some benefit in terms of distributing effort over time however that is already available through JVM options. That memory shoots up is not relevant unless and until there is insufficient memory to satisfy an allocation request. At that point the GC will run and all threads are suspended within the JVM so no allocation request will occur. The GC will run as often as needed to satisfy the need for additional memory. Out of memory will occur if and only if there are indeed to many reachable references that cannot be released. I would add that the heap is divided in two so that you can run out of the so-called eden space and that can be adjusted using the JVM memory switches. Seems to be a common misconception that forcing a GC will cure out of memory problems. If anybody has knowledget that contradicts this by all means post it since this seems to be an area of frequent concern. Kind of off-topic AFA JBoss is concerned however. -Original Message- From: Muraly R [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 9:42 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Garbage Collector: Service? Hi Gurus, Is there any particular service available in JBoss to schedule the garbage collector? The reason for this question is our application is using heavy weight objects like Vector, HashTable, etc. heavily. As a result of this after a simple get query the JBoss memory shoots up and it is not returning to is normal state. Hence this query. Also, for SessionBeans(Stateful/Stateless), if the is configured as follows: 50 100 600 600 300 300 400 60 1 0.75 and if the ejbRemove() of the corresponding beans are populated with code to 'null' the object will this help. Please suggest. Cheers Muraly --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user