[JBoss Messaging] - Re: How do I empty a JBoss queue?
by asaur
"ataylor" wrote : anonymous wrote : Sorry, I'll try to make it clearer. To sum it up, I can only see 2 ways to resolve my problem (a client disconnecting from the server while there were messages being delivered and coming back later using another connection):
| I'm still not sure what you're problem is? are you saying that messages that aren't consumed disappear from the queue? This shouldn't happen, any messages that haven't been acknowledged by the client will be placed back in the queue once the server is notified that the client has died. These will be available to the next client that connects.
Sorry, but I don't know when a message is "acknowledged" by the client. What I know is that, when the client disconnects, some messages are left in a "being delivered" state. They do not return to the queue (one way or another) for further consumption. This is what I can tell you about my problem (if it is not enough, please ask me whatever else you need to know):
1 - If I go to the database and query for all the messages in that particular queue, a number (non zero!) is returned.
2 - If I use the proper MBean to list the number of messages that same queue has (using the listAllMessages button), it returns blank (zero messages).
3 - If I use the same MBean to list the counter that queue has (using the listMessageCounterAsHTML button) the number under the 'Count' column is zero and the number of the queue 'Depth' is usually the same as the number of messages being delivered (sometimes it is bigger).
4 - If I try to delete all messages in that queue, the MBean invocation fails with the same exception (java.lang.IllegalStateException) mentioned previously.
Hope this helps to clarify the issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167140#4167140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167140
17 years, 8 months
[JBoss jBPM] - Re: not binding factory to jndi, no JNDI name configured
by cshmcfan2
I get the exact same error. It acts like it's starting...then just stops cold. Here's some more of the log message if it'll help:
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jbpm-jpdl-3.2.3\server
JAVA: C:\Program Files\Java\jdk1.6.0_04\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Program Files\Java\jdk1.6.0_04\lib\tools.jar;C:\jbpm-jpdl-3.2.3\server\bin\run.jar
===============================================================================
12:18:44,077 INFO [Server] Starting JBoss (MX MicroKernel)...
12:18:44,077 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
12:18:44,077 INFO [Server] Home Dir: C:\jbpm-jpdl-3.2.3\server
12:18:44,077 INFO [Server] Home URL: file:/C:/jbpm-jpdl-3.2.3/server/
12:18:44,077 INFO [Server] Patch URL: null
12:18:44,077 INFO [Server] Server Name: jbpm
12:18:44,077 INFO [Server] Server Home Dir: C:\jbpm-jpdl-3.2.3\server\server\jbpm
12:18:44,077 INFO [Server] Server Home URL: file:/C:/jbpm-jpdl-3.2.3/server/server/jbpm/
12:18:44,077 INFO [Server] Server Log Dir: C:\jbpm-jpdl-3.2.3\server\server\jbpm\log
12:18:44,077 INFO [Server] Server Temp Dir: C:\jbpm-jpdl-3.2.3\server\server\jbpm\tmp
12:18:44,077 INFO [Server] Root Deployment Filename: jboss-service.xml
12:18:44,576 INFO [ServerInfo] Java version: 1.6.0_04,Sun Microsystems Inc.
12:18:44,576 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b19,Sun Microsystems Inc.
12:18:44,576 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
12:18:45,294 INFO [Server] Core system initialized
.........etc, etc.................
then here are the last messages before it stops:
...................................
12:19:10,893 INFO [NamingHelper] JNDI InitialContext properties:{}
12:19:10,893 INFO [DatasourceConnectionProvider] Using datasource: java:comp/env/jdbc/JbpmDataSource
12:19:10,909 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
12:19:10,909 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
12:19:10,924 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
12:19:10,924 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
12:19:10,940 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
12:19:10,940 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
12:19:10,940 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
12:19:10,940 INFO [SettingsFactory] JDBC batch size: 15
12:19:10,940 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
12:19:10,940 INFO [SettingsFactory] Scrollable result sets: enabled
12:19:10,940 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
12:19:10,940 INFO [SettingsFactory] Connection release mode: auto
12:19:10,940 INFO [SettingsFactory] Default batch fetch size: 1
12:19:10,940 INFO [SettingsFactory] Generate SQL with comments: disabled
12:19:10,940 INFO [SettingsFactory] Order SQL updates by primary key: disabled
12:19:10,940 INFO [SettingsFactory] Order SQL inserts for batching: disabled
12:19:10,940 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
12:19:10,940 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
12:19:10,940 INFO [SettingsFactory] Query language substitutions: {}
12:19:10,940 INFO [SettingsFactory] JPA-QL strict compliance: disabled
12:19:10,940 INFO [SettingsFactory] Second-level cache: enabled
12:19:10,940 INFO [SettingsFactory] Query cache: disabled
12:19:10,940 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
12:19:10,940 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
12:19:10,940 INFO [SettingsFactory] Structured second-level cache entries: disabled
12:19:10,971 INFO [SettingsFactory] Statistics: disabled
12:19:10,971 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
12:19:10,971 INFO [SettingsFactory] Default entity-mode: pojo
12:19:10,971 INFO [SettingsFactory] Named query checking : enabled
12:19:11,002 INFO [SessionFactoryImpl] building session factory
12:19:12,111 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167139#4167139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167139
17 years, 8 months