[JBossMQ] - How to clean up uncommit JMS transactions on jboss 4.2.3
by glenwood
Hi,
I was using jboss HAJMS with a customized PERSISTENT TOPIC, I accidently stop message consuming for a while,which cause my JMS die,when I try to restart jboss server,I found following errors while jboss was trying to deploy jbossmq-httpil.sar under JBOSS_HOME/server/all/deploy-hasinglon/jms
jboss java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.lang.StringCoding.encode(StringCoding.java:266)
at java.lang.String.getBytes(String.java:947)
at java.io.UnixFileSystem.list(Native Method)
at java.io.File.list(File.java:973)
at java.io.File.listFiles(File.java:1051)
at org.apache.axis2.scripting.ScriptRepositoryListener.findServicesInDirectory(ScriptRepositoryListener.java:43)
17:37:43,907 ERROR [STDERR] at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:225)
17:37:43,907 ERROR [STDERR] at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:324)
17:37:43,907 ERROR [STDERR] at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:64)
17:37:43,907 ERROR [STDERR] at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:71)
17:37:43,907 ERROR [STDERR] at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:83)
17:37:43,907 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
17:37:43,907 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
17:37:43,907 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
I think it was caused by JMS uncommit transactions,does anyone know how to clean up those uncommit transactions without reinstalling jboss server,it's very important for me,thanks in advance!
btw,I'm using jboss MQ default db to implement HAMQ.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226937#4226937
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226937
15 years, 7 months
[JBoss jBPM] - Drools-fusion: Choice in Application?
by cyphr
Wondering if Drools (or Drools-fusion specifically) would be the right choice for my application:
I need to analyze certain "facts" ( events coming from a log - with a fixed TimeStamp and other values) against a bunch of rules to detect or derive another complex event or an anomality.
it could be something as simple os counting the frequency of an event over a given time frame( measured by the TimeStamp in the logs).
Or it could be something more complex as stating that if a particular pattern of events are occuring, then xyz has to be derived from the basic events etc...
can i achieve this using drools-fusion? Is there anyplace i can get some documentation and examples on getting it running? a getting started guide sorta thing?
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226934#4226934
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226934
15 years, 7 months
[JBoss Portal] - Any one for Apache Jetspeed2 and JBoss 5?
by ebross
Has anyone successfully used Apache Jetspeed2 (v.2.1.3) with JBoss-5.0.x.GA? If you have, why not brag about it: describe how you did it, i.e., installed Jetspeed2 on JBoss 5 and deployed your application ( EAR or WAR); and what were the pitfalls (if any) that you encountered?
You might be asking, who wants to know? Well, I am a portlet novice, but have already spend 12 man-hours on the Internet, reading about the stuff. And, based on the reviews, thesis and papers on portlets, I have decided on Jetspeed2 (v.2.1.3) and (of course) JBoss 5. However, I am still not very sure about using Jetspeed2 (v.2.1.3) with JBoss 5, so help a poor soul!
Thanks in advance!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226930#4226930
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226930
15 years, 7 months
[EJB 3.0] - Re: Deployment error using Service beans
by rnicholson10
My jboss-app.xml is as follows:
| <jboss-app>
| <loader-repository>
| spe-test:archive=spe-test.ear
| </loader-repository>
| </jboss-app>
|
Here are the annotations used in the service bean:
| import javax.ejb.Local;
| import javax.ejb.Remote;
|
| import org.jboss.ejb3.annotation.Management;
| import org.jboss.ejb3.annotation.Service;
|
| @Service (objectName = "spe-input:service=inputServiceBean")
| @Local(InputServiceBeanLocal.class)
| @Remote(InputServiceBeanRemote.class)
| @Management(InputServiceBeanManagement.class)
| public class InputServiceBean implements InputServiceBeanLocal, InputServiceBeanRemote, InputServiceBeanManagement
|
InputServiceBeanLocal:
| public interface InputServiceBeanLocal
| {
| void start() throws Exception;
| void stop();
|
| }
|
InputServiceBeanRemote:
| public interface InputServiceBeanRemote
| {
| void start() throws Exception;
| void stop();
|
| }
|
InputServiceBeanManagement:
| public interface InputServiceBeanManagement
| {
| void create() throws Exception;
| void start() throws Exception;
| void stop();
| void destroy();
| String update(int val);
| }
|
|
So I removed the objectName attribute of the @Service annotation. But it did not make much difference.
New service bean annotations:
| import javax.ejb.Local;
| import javax.ejb.Remote;
|
| import org.jboss.ejb3.annotation.Management;
| import org.jboss.ejb3.annotation.Service;
|
| @Service
| @Local(InputServiceBeanLocal.class)
| @Remote(InputServiceBeanRemote.class)
| @Management(InputServiceBeanManagement.class)
| public class InputServiceBean implements InputServiceBeanLocal, InputServiceBeanRemote, InputServiceBeanManagement
|
My console log is now the following (first deploy):
| 12:31:44,010 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
| 12:31:44,058 INFO [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
| 12:31:44,080 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
| SecureProfileService/remote - EJB3.x Default Remote Business Interface
| SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface
|
| 12:31:44,365 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 12:31:44,537 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
| 12:31:44,580 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.Beta1 (build: SVNTag=JBoss_5_1_0_Beta1 date=200903131506)] Started in 1m:2s:388ms
| 13:00:08,726 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@3695434{vfszip:/opt/jboss-5.1.0.Beta1-jdk6/server/default/deploy/spe-test.ear/spe-input.jar/}
| 13:00:08,740 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@3695434{vfszip:/opt/jboss-5.1.0.Beta1-jdk6/server/default/deploy/spe-test.ear/spe-input.jar/}
| 13:00:08,849 INFO [JBossASKernel] Created KernelDeployment for: spe-input.jar
| 13:00:08,849 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3
| 13:00:08,850 INFO [JBossASKernel] with dependencies:
| 13:00:08,850 INFO [JBossASKernel] and demands:
| 13:00:08,850 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 13:00:08,850 INFO [JBossASKernel] and supplies:
| 13:00:08,850 INFO [JBossASKernel] Class:com.paddypower.spe.input.bean.service.InputServiceBeanRemote
| 13:00:08,850 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/remote-com.paddypower.spe.input.bean.service.InputServiceBeanRemote
| 13:00:08,850 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/local-com.paddypower.spe.input.bean.service.InputServiceBeanLocal
| 13:00:08,850 INFO [JBossASKernel] Class:com.paddypower.spe.input.bean.service.InputServiceBeanLocal
| 13:00:08,850 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/remote
| 13:00:08,850 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/local
| 13:00:08,850 INFO [JBossASKernel] Class:com.paddypower.spe.input.bean.service.InputServiceBeanManagement
| 13:00:08,850 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3) to KernelDeployment of: spe-input.jar
| 13:00:08,977 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3,type=ManagementInterface
| 13:00:08,977 INFO [JBossASKernel] with dependencies:
| 13:00:08,977 INFO [JBossASKernel] and demands:
| 13:00:08,977 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
| 13:00:08,977 INFO [JBossASKernel] jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3
| 13:00:08,978 INFO [JBossASKernel] and supplies:
| 13:00:08,978 INFO [JBossASKernel] Class:com.paddypower.spe.input.bean.service.InputServiceBeanRemote
| 13:00:08,978 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/remote-com.paddypower.spe.input.bean.service.InputServiceBeanRemote
| 13:00:08,978 INFO [JBossASKernel] Class:com.paddypower.spe.input.bean.service.InputServiceBeanLocal
| 13:00:08,978 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/local-com.paddypower.spe.input.bean.service.InputServiceBeanLocal
| 13:00:08,978 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/remote
| 13:00:08,978 INFO [JBossASKernel] jndi:spe-test/InputServiceBean/local
| 13:00:08,978 INFO [JBossASKernel] Class:com.paddypower.spe.input.bean.service.InputServiceBeanManagement
| 13:00:08,978 INFO [JBossASKernel] Installing bean(jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3,type=ManagementInterface) into kernel
| 13:00:08,991 INFO [STDOUT] InputBeanService - Creating
| 13:00:08,994 INFO [EJBContainer] STARTED EJB: com.paddypower.spe.input.bean.service.InputServiceBean ejbName: InputServiceBean
| 13:00:09,064 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
| spe-test/InputServiceBean/remote - EJB3.x Default Remote Business Interface
| spe-test/InputServiceBean/remote-com.paddypower.spe.input.bean.service.InputServiceBeanRemote - EJB3.x Remote Business Interface
| spe-test/InputServiceBean/local - EJB3.x Default Local Business Interface
| spe-test/InputServiceBean/local-com.paddypower.spe.input.bean.service.InputServiceBeanLocal - EJB3.x Local Business Interface
|
| 13:00:09,136 INFO [STDOUT] InputBeanService - Starting
| 13:00:10,342 INFO [TomcatDeployment] deploy, ctxPath=/spe-test
|
|
And after removing the jar:
| 13:00:10,342 INFO [TomcatDeployment] deploy, ctxPath=/spe-test
| 13:00:35,500 INFO [TomcatDeployment] undeploy, ctxPath=/spe-test
| 13:00:35,551 INFO [STDOUT] InputBeanService - Stopping
| 13:00:35,551 INFO [STDOUT] InputBeanService - Stopped
| 13:00:35,584 INFO [EJBContainer] STOPPED EJB: com.paddypower.spe.input.bean.service.InputServiceBean ejbName: InputServiceBean
| 13:00:35,585 INFO [STDOUT] InputBeanService - Destroying
| 13:00:35,585 INFO [STDOUT] InputBeanService - Stopped
| 13:00:36,116 INFO [TomcatDeployment] deploy, ctxPath=/spe-test
| 13:00:36,201 WARN [HDScanner] Failed to process changes
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| DEPLOYMENTS MISSING DEPENDENCIES:
| Deployment "jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3,type=ManagementInterface" is missing the following dependencies:
| Dependency "<UNKNOWN jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3,type=ManagementInterface>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3' **")
|
| DEPLOYMENTS IN ERROR:
| Deployment "<UNKNOWN jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3,type=ManagementInterface>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.j2ee:ear=spe-test.ear,jar=spe-input.jar,name=InputServiceBean,service=EJB3' **
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
| at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:127)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:337)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:229)
| at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
| at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| at java.lang.Thread.run(Unknown Source)
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226929#4226929
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226929
15 years, 7 months
[Clustering/JBoss] - jboss deploying issue - (while the service is up)
by chades
Hi Im kind of new to clustering. Please let me know if I can assign one node as Jboss coordinator where the other nodes always refer to that node for configuration.
My requirement
I have two nodes cluster (Lets say node A and B) and application is deployed under /farm. There are instances where i need to upgrade my EAR located in /farm with out service interruption. Therefore I shut down node A (while node B gives uninterrupted service to my clients) and upgrade EAR file inside /farm and startup. When the node A is up eventually i realized my old EAR has copied back to node A from node B. Therefore i had to restart both cluster nodes (with service interruption) in order to upgrade my application. I understand it takes the configuration from the node that exists for longest time. But as of for my requirement i need to configure whether to read it from other node or not. I heard if I can configure jboss coordinator it will be ok. But if any one knows how to do that or better solution for this please reply back.
If you can let me know a solution it would be greatly appreciated.
Charith de Silva
anonymous wrote :
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226927#4226927
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226927
15 years, 7 months
[JBoss jBPM] - Re: 4 Eye Principal - Implementation
by bestage
I had a similar goal to achieve.
Example: a simple workflow like this
user A user A User B System
edit record => finalize => verify => set record active
After User A finalizes the record for verification it gets the appropriate status which I set in the ActionHandler. Now when the user B is searching records for verification he gets only those in the FINALIZED status. Now in the "verify" Action Handler you can compare the user. If user A himself is trying to verify his own record, show error message. Otherwise set the status to VERIFIFED. The next workflow stop in my case Ãs a normal Node which sets the record automatically active since it has been successfully verified.
This is just an example.
You are right, you cannot work the normal use case, where the user ID of the first user is automatically assigned to all the other tasks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226926#4226926
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226926
15 years, 7 months
[JBoss Messaging] - Re: Clustered temporary queue problem
by nyeste
Hi Tim,
Thanks for the fast reply!
I've tried to wait 10 seconds or more after the creation of the temp queue.
The request/reply case, which is in the example, is working without any wait. So if I create a temp queue on the client side, create a message, set the replyTo property to the created queue and send immediately to the server. The client always got reply through the temp queue. In this case everything is working perfectly, so the server configuration seems good. I used this example only for testing, my goal is a bit different. Sorry, if it was confusing.
I would like to use temp queues without sending a request message to the server. Because on the server side, I have to process messages from other systems and then forward them to one of the temp queues. In this case I can't send a request message from the client. I store the name of the temp queue in a jboss cache and every time a message is received from one of the other systems, I want to create a producer to the temp queue and forward the message to the client. But the createQueue(tempQueueName) call returns in most cases the above mentioned error, however the client is running, there is no error on the client side and the consumer is on the temp queue. I've tried to wait a few seconds, but it didn't help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226923#4226923
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226923
15 years, 7 months