[JBoss-user] [EJB/JBoss] - Re: Monitoring in session facade
Is the thread id unique over all session methods invoked during a single client call? If it is this would be the criteria I'm looking for! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936901#3936901 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936901 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Monitoring in session facade
Hi I've a deep session facade in my application. I want to monitor the activities in my app from the first session call (done by the client) until this call is finished. The problem is that there are many parallel calls so I need some criteria to separate my log infos. Is there such a criteria that is unique for a special client call? (perhaps a session id or a transaction id) I use only CMP. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936869#3936869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936869 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - stateful session bean and beforeCompletion
Hello! I try to make sending an email transactional. In a stateless session bean I create a Mail-Entity instance (a data entry that persists the mail). In the server log an insert statment is logged. When I init a stateful session bean with the mail data. The stateful session implements SessionSynchronization and I send in the "beforeCompletion" method the mail. In the same method I update the Mail-Entity with the sending date. The problem is that this update does not happen (no update statment in server log). This runs all in the same transaction. Is this a configuration problem? I use JBoss 4.02 on Java 5.0. Apropos creating new Entity Bean instances works in beforeCompletion! regards Sven View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922040#3922040 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922040 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: server hangs on long transaction
I use MS SQL 2000. All bean methods are defined as "transaction required". My datasource for entities is defined in this way: AFPSDB jdbc:jtds:sqlserver://192.168.1.102:1433/AfpsEntwicklung;tds=8.0;lastupdatecount=true net.sourceforge.jtds.jdbc.Driver AfpsServer SELECT 1 MS SQLSERVER2000 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905374#3905374 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905374 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - server hangs on long transaction
Hi I use JBoss 4.0.3SP1 with CMP. If I invoke a Session Bean method from a Java Client that starts a long transaction (e.g. 1 minute) the server hangs. That means that if any other client invokes a method the server does not answer till the first method call is finished. Does JBoss not handle multiple method invocations parallel? Could this be a configuration problem? regards Sven View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905238#3905238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905238 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - RuntimeException in Timer
Hello, I use JBoss 4.0.3 and optimistic locking. Sometimes I get the following Exception. There are only jboss classes in the stack trace. Could this be a bug? regards Sven 2005/10/13 15:53:43 | ERROR [LogInterceptor] RuntimeException in method: public abstract void javax.ejb.TimedObject.ejbTimeout(javax.ejb.Timer): 2005/10/13 15:53:43 | java.lang.IndexOutOfBoundsException: Index: 3, Size: 2 2005/10/13 15:53:43 | at java.util.ArrayList.RangeCheck(Unknown Source) 2005/10/13 15:53:43 | at java.util.ArrayList.remove(Unknown Source) 2005/10/13 15:53:43 | at org.jboss.security.SecurityAssociation$SubjectThreadLocalStack.pop(SecurityAssociation.java:762) 2005/10/13 15:53:43 | at org.jboss.security.SecurityAssociation.popSubjectContext(SecurityAssociation.java:486) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.SecurityActions$5.pop(SecurityActions.java:88) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.SecurityActions.popSubjectContext(SecurityActions.java:277) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:159) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) 2005/10/13 15:53:43 | at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) 2005/10/13 15:53:43 | at org.jboss.ejb.Container.invoke(Container.java:873) 2005/10/13 15:53:43 | at org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:82) 2005/10/13 15:53:43 | at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:473) 2005/10/13 15:53:43 | at java.util.TimerThread.mainLoop(Unknown Source) 2005/10/13 15:53:43 | at java.util.TimerThread.run(Unknown Source) 2005/10/13 15:53:43 | ERROR [TimerImpl] Error invoking ejbTimeout 2005/10/13 15:53:43 | javax.ejb.EJBException: RuntimeException; CausedByException is: 2005/10/13 15:53:43 | Index: 3, Size: 2 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:382) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) 2005/10/13 15:53:43 | at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) 2005/10/13 15:53:43 | at org.jboss.ejb.Container.invoke(Container.java:873) 2005/10/13 15:53:43 | at org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:82) 2005/10/13 15:53:43 | at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:473) 2005/10/13 15:53:43 | at java.util.TimerThread.mainLoop(Unknown Source) 2005/10/13 15:53:43 | at java.util.TimerThread.run(Unknown Source) 2005/10/13 15:53:43 | java.lang.IndexOutOfBoundsException: Index: 3, Size: 2 2005/10/13 15:53:43 | at java.util.ArrayList.RangeCheck(Unknown Source) 2005/10/13 15:53:43 | at java.util.ArrayList.remove(Unknown Source) 2005/10/13 15:53:43 | at org.jboss.security.SecurityAssociation$SubjectThreadLocalStack.pop(SecurityAssociation.java:762) 2005/10/13 15:53:43 | at org.jboss.security.SecurityAssociation.popSubjectContext(SecurityAssociation.java:486) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.SecurityActions$5.pop(SecurityActions.java:88) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.SecurityActions.popSubjectContext(SecurityActions.java:277) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:159) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) 2005/10/13 15:53:43 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) 2005/10/13 15:53:43 | at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) 2005/10/13 15:53:43 | at org.jboss.ejb.Container.invoke(Container.java:873) 2005/10/13 15:53:43 | at org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:82) 2005/10/13 15:53:43 | at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:473) 2005/10/13 15:53:43 | at java.util.TimerThread.mainLoop(Unknown Source) 2005/10/13 15:53:43 | at java.util.TimerThread.run(Unknown Source) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901064#3901064 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901064 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourc
[JBoss-user] [EJB/JBoss] - Re: EJB SQL query on each entity method
I use the following in ejb's jbosscmp-jdbc.xml: on-find 255 to load all attributes in one SELECT. For more information look at chapter "11.7.3. Read-ahead" in the The JBoss 4 Application Server Guide. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890533#3890533 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890533 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EJB QL and collection parameter
Hi I want to find some entities by their keys key1,key2,key3. I can do this by: findByPrimaryKey(key1) findByPrimaryKey(key2) findByPrimaryKey(key3) in this way 3 sql select are processed (SELECT ... WHERE id=?1) Is somthing like this possible: Collection c = new Collection() c.add(key1) c.add(key2) c.add(key3) findByKeys(c) so that there is only one sql select processed (SELECT ... WHERE id=?1 OR id=?2 OR id=?3) Is there a EJB QL notation that can do this? regards, Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890356#3890356 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890356 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Security Propagation Problem: Jboss 4.0.2 vs 4.0.1sp1
Hi, I think I've the same problem. Can explain how you have solved this? Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879271#3879271 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879271 --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - reload bean cache on demand
Hello I use JBoss 4 with cmp entity beans and commit option A. Everything works fine. Now I have sometimes to change some data directly on the database. So the values in the cache of JBoss become invalid. I do not want to change the commit option and I also do not want to restart JBoss. Is there a way to force JBoss to reload or clean its cache? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867437#3867437 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867437 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - RMIClassloader problem
Hi! I've a very strange problem with RMI class loading. I've an ejb application app.ear containing some jars a.jar, b.jar, c.jar. Each jar contains some remote session beans. First I've created a jar appRemote.jar containing all the bean interfaces in order to develop a client. Running the client works fine if I would have appRemote.jar in the classpath. If I run the client without (using RMI class loading) it becomes strange. JNDI lookup works for some beans and for some beans I get an javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException ...]. I've compared classes and deployment descriptors and I cannot find any difference. Then I logged the RMIClassloader trace and there I get somthing like that: [19353093,RepositoryClassLoader,Thread-52] loadClassLocally, [EMAIL PROTECTED] url=file:/C:/Afps/Baumgarten/server/afps/tmp/deploy/tmp11451jboss-service.xml ,addedOrder=2} name=de.ibees.afps.server.einkauf.anfrage.ejb.AnfrageServiceHome [19353093,RepositoryClassLoader,Thread-52] Class in blacklist, name=de.ibees.afps.server.einkauf.anfrage.ejb.AnfrageServiceHome [19353093,RepositoryClassLoader,Thread-52] loadClassLocally, [EMAIL PROTECTED] url=file:/C:/Afps/Baumgarten/server/afps/tmp/deploy/tmp11451jboss-service.xml ,addedOrder=2} name=de.ibees.afps.server.einkauf.anfrage.ejb.AnfrageServiceHome not found [19353093,LoadMgr3,Thread-52] End beginLoadTask, ClassNotFoundException AnfrageServiceHome is a remote home interface. What could be a reason for that? Remember it works well if the interface is in the client's classpath and it happens not for all beans. I work on JBoss 4.0 Java 5.0. hope anyone can help Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858696#3858696 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858696 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: RMIClassloader problem
I've tested the same on JBoss 4.0.1RC2 and it works without any exceptions!? I hope this was an bug that is fixed now. Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858846#3858846 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858846 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: optimistic locking conflicting update
Sorry, I read too fast! Please forget my last question - next time I will read more carefully. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858014#3858014 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858014 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: optimistic locking conflicting update
Why should I not use optimistic locking? In the Admin Guide "CHAPTER 4 Transactions on JBoss - The JTA Transaction Service" it is mentioned as an alternativ to pessimistic locking. In my app I get sometimes deadlocks mostly on getting entities by different transactions. This could be solved by optimistic locking. On deadlock my app is hanging for a while (until timeout). An optimistic locking conflicting would happen immediately. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857724#3857724 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857724 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Feature-Request: optimistic lock by timestamp
Hello JBoss Developer, I'm not sure if this is the right forum but anyway: JBoss provide optimistic lock by timestamp. In this modus JBoss updates a timstamp filed on every commit and compares if the value of the timestamp is the same as on read time. This works fine. Some databases provide timestamp fields (mostly binary values) that automatically are updated on every UPDATE statement by the database itself. That makes version control much safer. It would be nice if JBoss supported this feature. I think it's very easy to support because it is the same procedure like JBoss current timestamp model but without update the timstamp field in the UPDATE statement and using another datatype (byte[]). Is this feature in planning or could this done by any configurations in the current release? regards, Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857551#3857551 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857551 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP Transaction
I've an additional question to that topic: I've a Session Bean with two methods methodA() and mehtodB(). mehtodA has transaction attribute "required" and mehtodB "requiresNew". If I call mehtodB from mehtodA by "mehtodB()" mehtodB runs in the same transaction as mehtodA. If I call mehtodB from mehtodA by "(() sessionContext.getEJBObject()).mehtodB()" mehtodB runs in a new transaction. What is the difference? Is this J2EE standard or JBoss specific? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857538#3857538 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857538 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - optimistic locking conflicting update
I use optimistic locking on JBoss 4. If there are optimistic locking conflicting because data has already changed by another task I get an "org.jboss.tm.JBossRollbackException: Unable to commit" Exception. Is there any way to exactly determine wether a JBossRollbackException is caused by a optimistic locking conflict and not by any other? Why is there no OptimisticLockException like DeadlockException? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857523#3857523 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857523 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - optimistic locking version column bug?
Hi, I use JBoss 4.0 Optimistic locking with optimistic-locking element content model "version column". If the version column is not a property of the entity bean jboss generates correct sql statement: UPDATE Person SET Name=?, Version=? WHERE ID=? AND Version=? param: i=1, type=VARCHAR, value=Test param: i=2, type=INTEGER, value=109 param: i=3, type=INTEGER, value=1 param: i=4, type=INTEGER, value=108 If the version column is a property of the entity bean jboss generates correct sql statement but an incorrect parameter list: UPDATE Person SET Name=?, Version=? WHERE ID=? AND Version=? param: i=1, type=VARCHAR, value=Test some parameter (primary key and version no.) are missing! This happens only if the value of version column is not changed during the transaction. If I set a different value to the version column property like setVersion(10) the sql statement is generated correct. But this is a second strange behaviour. If a column is a version column jboss should override all changes and set it's own increased version value (109 in the example above). Can anybody explain this behaviour or is it a bug? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857521#3857521 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857521 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: log sql statements on JBoss 4
Sorry, there is no problem in JBoss 4 - I've watched the console but the logs are written to the server.log Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857046#3857046 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857046 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - log sql statements on JBoss 4
Hi I've logged sql statements on JBoss 3.2.x by the following entry in log4j.xml: | | In JBoss 4.0 this does not work!? Does anybody know a solution? regards Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857043#3857043 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857043 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - logging configuration
Hi! I use JBoss 4.0. I get regular "[AbstractInstanceCache] Unable to passivate due to ctx lock" warnings. So my log file is full of this warnings. In the forum I learnt that it is a simple warning - nothing dangerous. Is where any way to switch off tis warning? reagrds Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856048#3856048 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856048 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Unable to passivate due to ctx lock
Hi I get some logs like "Unable to passivate due to ctx lock, id=240". Is there any way to determine what kind of ejb (class name like OrderBean) is unable to passivate? regards Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853469#3853469 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853469 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - java.net.NoRouteToHostException: No route to host
Hi I'm not sure if this is the right forum but I do the following in a session bean and I do not know where to ask else. I want to modifiy a xml file (as byte[]). If I try to load the xml into a DOM document: Document xmldoc = null; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(false); DocumentBuilder builder = factory.newDocumentBuilder(); byte[] xmlBinary = druckDokument.getJasperPrintXml(); InputStream xmlInputStream = new ByteArrayInputStream(xmlBinary); xmldoc = builder.parse(xmlInputStream); I get an java.net.NoRouteToHostException (see below). I use JBoss 4 with default server. This error only happens if my xml document contains a tag (such as http://jasperreports.sourceforge.net/dtds/jasperprint.dtd";>). Without this DOCTYPE it works. Does anybody know a reason for the NoRouteToHostException? How to work around? regards Sven INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] java.net.NoRouteToHostException: No route to host: connect INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at java.net.PlainSocketImpl.socketConnect(Native Method) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at java.net.PlainSocketImpl.doConnect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at java.net.PlainSocketImpl.connectToAddress(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at java.net.PlainSocketImpl.connect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at java.net.Socket.connect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at java.net.Socket.connect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.NetworkClient.doConnect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.openServer(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.openServer(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.New(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.New(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.http.HttpClient.New(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,195 INFO [STDOUT] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,211 INFO [STDOUT] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,211 INFO [STDOUT] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,211 INFO [STDOUT] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,211 INFO [STDOUT] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) INFO | jvm 1| 2004/10/08 15:05:52 | 15:05:52,211 INFO [STDOUT] at javax.xml.parse
[JBoss-user] [Installation & Configuration] - two servers on one machine
Hi I want to run two or more JBoss Server on one machine. I know service binding and it works well. My question is: Is there a performance/resource difference between installing a complete JBoss (with one server subfolder) for each server or installing only one JBoss with server subfolders for each server instance. regards Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3850484#3850484 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3850484 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: log4j:WARN No appenders could be found for logger
Hi Adrian, I've excluded log4j from classpath but the warning is still present. It is only on JBoss 3.2.4. The same code runs without warnings on JBoss 3.2.3. Any further ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839475#3839475 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839475 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: to many sql statements in JBoss3.2.4
I think that's it! Thank your for reply. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837901#3837901 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837901 --- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - log4j:WARN No appenders could be found for logger
Hi everyone! running code (that works fine on JBoss 3.2.3) on JBoss 3.2.4 I get some warnings while executing the following at the client: Object o = context.lookup("java:/ConnectionFactory"); Standard output shows: log4j:WARN No appenders could be found for logger (org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory). log4j:WARN Please initialize the log4j system properly. What is the reason for this warning? How could I prevent it? regards Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837725#3837725 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837725 --- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - to many sql statements in JBoss3.2.4
Hi, I've been logging sql statements on jboss 3.2.4. Every of my entity beans has an getDTO (DTO = DataTransferObject) method that builds an DTO by getting all attributes of the entity bean. JBoss does for each get a separate SELECT statement: 2004-06-07 11:32:56,329 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, PosNr FROM AngebotPos WHERE (ID=?) OR (ID=?) 2004-06-07 11:32:56,345 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, Baustein FROM AngebotPos WHERE (ID=?) OR (ID=?) 2004-06-07 11:32:56,345 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, ArtikelNr FROM AngebotPos WHERE (ID=?) OR (ID=?) 2004-06-07 11:32:56,345 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, Bezeichnung FROM AngebotPos WHERE (ID=?) OR (ID=?) 2004-06-07 11:32:56,345 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, Menge FROM AngebotPos WHERE (ID=?) OR (ID=?) 2004-06-07 11:32:56,345 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, Einheit FROM AngebotPos WHERE (ID=?) OR (ID=?) 2004-06-07 11:32:56,360 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, Preis FROM AngebotPos WHERE (ID=?) OR (ID=?) ... In JBoss3.2.3 only one SELECT for all attributes of the entity was created: 2004-06-07 11:46:38,766 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.AngebotPos] Executing SQL: SELECT ID, PosNr, Baustein, ArtikelNr, Bezeichnung, Menge, Einheit, Preis, PreisBasis, Rabatt, Gesamtpreis, BetragHW, keinPreis, keinRabatt, Provision, Langtext, Umbruch, AbsatzTrennung, TextUebernahme, Schlusstext, ArtikelNrKunde, Kostenstelle_Nr, Sachkonto_Nr, MwStSatz, sysVersion, TextPosNr, Liefertermin, KW, DLZ, Auftragmenge, offAuftragmenge, EndAuftragKZ, AgPosZusatz_ID FROM AngebotPos WHERE (ID=?) OR (ID=?) Is this a bug or a new feature? I think one SELECT for all attributes would be faster?! regard Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3837722#3837722 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3837722 --- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: How to log sql statements on JBoss3.2.3
in log4j.xml: \ \ \ ('\' must be removed) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833871#3833871 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833871 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: How to log sql statements on JBoss3.2.3
in log4j.xml: View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833870#3833870 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833870 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - How to log sql statements on JBoss3.2.3
Can anybody explain how I can JBoss force to log the sql statements generated by CMP? thanks Sven View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833858#3833858 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833858 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - jTDS and ClassCastException
Hi, I've an application running on JBoss3.2.3 and MSSQL2000. Using Microsoft's jdbc driver or i-net MERLIA everything works fine. Using jTDS I got the following exception: 14:21:14,171 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract de.ibees.afps.server.stammdaten.personal.ejb.PersonalLoca l de.ibees.afps.server.stammdaten.personal.ejb.PersonalLocalHome.findByNr(java.lang.String) throws javax.ejb.FinderException, causedBy: java.lang.ClassCastException at net.sourceforge.jtds.jdbc.PreparedStatement_base.setObject(PreparedStatement_base.java:718) at net.sourceforge.jtds.jdbc.PreparedStatement_base.setObject(PreparedStatement_base.java:608) at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.setObject(WrappedPreparedStatement.java:623) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:1278) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setArgumentParameters(JDBCAbstractCMPFieldBridge.java:354) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setInstanceParameters(JDBCAbstractCMPFieldBridge.java:336) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:117) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(JDBCStoreManager.java:627) at org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:421) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEntity(CachedConnectionInterceptor.java:387) at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:714) at org.jboss.ejb.GlobalTxEntityMap.synchronizeEntities(GlobalTxEntityMap.java:149) at org.jboss.ejb.EntityContainer.synchronizeEntitiesWithinTransaction(EntityContainer.java:119) at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:607) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1043) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:197) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:214) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:89) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:98) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:483) at org.jboss.ejb.Container.invoke(Container.java:720) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:293) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) at $Proxy161.findByNr(Unknown Source) at de.ibees.afps.server.stammdaten.personal.ejb.PersonalCtrlBean.getPersonalByNr(PersonalCtrlBean.java:519) at de.ibees.afps.server.stammdaten.personal.ejb.PersonalCtrlBean.getBOByNr(PersonalCtrlBean.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
[JBoss-user] [Persistence & CMP/JBoss] - optimistic locking and timestamp
Hi, several databases provide a timestamp mechanism that could be the base for optimistic locking scenario. But on JBoss the optimistic locking by timestamp is managed by JBoss. Is it planned to support database managed timestamps in the future? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831322#3831322 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831322 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Problems with XA Datasource
So far so bad - is there a free (or low cost) XA-driver for SQL Server 2000 that works? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830260#3830260 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830260 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Problems with XA Datasource
Hi, I'm using JBoss 3.2.3 with SQLServer 2000. Because of using MDB I get some warnings when using non XA driver (because local transaction and jms) but the code runs fine. Now I want to use the Microsoft's XA driver to avoid this warning. Running the same code I get this error: 12:59:29,984 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=Baumgarten//415, BranchQual=] errorCode=XAER_RMERR javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_start (24) returns -8 at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source) at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.start(Unknown Source) at com.microsoft.jdbcx.base.BaseXAResource.start(Unknown Source) at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:143) at org.jboss.tm.TransactionImpl.startResource(TransactionImpl.java:1148) at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:629) at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:455) at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:483) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102) at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:141) at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:72) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:612) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:594) at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:381) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:352) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:239) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:114) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489) at org.jboss.ejb.Container.invoke(Container.java:700) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy563.getArtikelStatistik(Unknown Source) at de.ibees.afps.server.stammdaten.artikel.ejb.ArtikelCtrlBean.refreshLagerStatistik(ArtikelCtrlBean.java:734) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.j
[JBoss-user] [Persistence & CMP/JBoss] - Re: slow connection from conection cache
I found the difference: pool connections use SelectMethod=cursor. This is much slower but necessary to prevent Exception "Cannot start a cloned connection while in manual transaction mode.". I use now a second pool with SelectMethod=direct for readonly SQL access. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825935#3825935";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825935>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: slow connection from conection cache
sorry instead of "conection cache" I mean "conection pool"! http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825718#3825718";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825718>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - slow connection from conection cache
Hi, I have a cmp session bean that does direct sql request on the database. I take a connection from the servers connection cache and run a SELECT statement that returns a ResultSet of 20 primary keys of a table. I cache the results in an int[] array. The hole task takes 11 seconds (1 sec for the SELECT and 10 for iteration the Resultset). If I do the same on a connection created by DriverManager.getConnection it takes only 700 millisec. I use JBoss 3.2.3 and SQL Server 2000. Why is iterating the ResultSet so slow on the connection from connection cache? regards, Sven http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825693#3825693";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825693>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user