[JBoss jBPM] - My Plan: JBPM 2 Wiki Bridge
by gf_public
Hello
I have a plan: I want to write something like a "jbpm-Plugin", that updates a wiki whenever new workflow-instances are created and finished. I don't want to implement that into the design of the workflow process. It should be something that you can plug into "any" jbpm installation, and then it starts writing to a wiki. I am writing a little Servlet for the snipsnap wiki software (www.snipsnap.org), that shall update the pages.
My question is now: What is the best practice to have this servlet called by the jbpm.
My first idea is JMS+MDBs. Is it possible to configure jbpm, so that it sends messages to a topic as a publisher?
Then I would try to write my first MDB, which then calls the wiki-servlet.
Let me tell you the versions i am using.. I don't want to change these anymore as time is passing by ...
JBoss 4.0.2 (from the starters-kis)
jbpm 3.1.2 (from the starters-kis)
Thanks for any comments on my idea,
Gregor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965304#3965304
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965304
19 years, 9 months
[JBossCache] - Re: JBoss Cache run from within an application WAR file...
by carlabramsson
Hi John!
Simply put a config-file in the root of your classpath (web-inf/classes for example) and then write a wrapper (singleton) around the the TreeCache that starts the cache.
Code to init the cache. You could call this block from a ContextListener in you webbapp.
| try {
| cache = new TreeCache();
| } catch (Exception e) {
| throw new Exception("Could not create cache!",e);
| }
| PropertyConfigurator config = new PropertyConfigurator(); // configure tree cache. Needs to be in the classpath
| try {
| config.configure(cache, "my-treecache-config.xml");
| } catch (ConfigureException e) {
| throw new Exception("Could not configure cache!",e);
| }
|
| try {
| cache.startService();
| } catch (Exception e) {
| throw new Exception("Could not start cache!",e);
| }
|
Then create whatever put-, get-, remove-methods you need in the wrapper.
The treecache instance will register itself and can be found in your jmx-console.
Hope this helps!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965302#3965302
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965302
19 years, 9 months
[Installation, Configuration & Deployment] - Port Bindings not working?
by Fraser
Hey All,
I'm trying to configure multiple instances of jboss using the port binding xml configuration system. I've followed the documentation and the AS is using the files as configured and the correct ports are being used. However, it always falls over with the following message, even if only one instance is started.
I'm using version 4.0.4.GA on a Windows XP/SP2 box.
Heres the stdout message:
16:30:26,329 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 16:30:26,439 INFO [WebService] Using RMI server codebase: http://VENUS:18083/
| 16:30:26,798 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:11099, RMI=/0.0.0.0:11098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
| 16:30:28,798 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/GTX/deploy/ejb-deployer.xml
| org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.ejb:service=EJBDeployer
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
Any assistance in this would be greatly appreciated. I've searched for a solution with no success for a day or so now.
I'm using the example-bindings.xml file, using the default bindings with 10000 added to each port number.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965300#3965300
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965300
19 years, 9 months
[Messaging, JMS & JBossMQ] - Durable Topic that is password protected in EJB 3.
by foxviewn2632
How do you annotate for a password if the topics client id is pasword protected. I annotated my bean as follows:
@MessageDriven(
description="My Message driven bean to test JMS implementation. ",
name="PubMan",
activationConfig={
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic")
,@ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/SmithfieldDurableTopic")
,@ActivationConfigProperty(propertyName="Durability",propertyValue="Durable")//subscription
,@ActivationConfigProperty(propertyName="subscriptionName",propertyValue = "john")
,@ActivationConfigProperty(propertyName="clientID",propertyValue = "DurableSubscriberExample")
,@ActivationConfigProperty(propertyName="acknowledgeMode",propertyValue = "AUTO-ACKNOWLEDGE")
}
)
I have the client Id set but how do I put a password into this? Below is the error message.
2006-08-15 10:27:19,381 WARN [org.jboss.ejb3.mdb.MDB] JMS provider failure detected:
javax.jms.InvalidClientIDException: This client id is password protected DurableSubscriberExample
at org.jboss.mq.sm.jdbc.JDBCStateManager.checkLoggedOnClientId(JDBCStateManager.java:308)
at org.jboss.mq.sm.AbstractStateManager.addLoggedOnClientId(AbstractStateManager.java:199)
at org.jboss.mq.server.JMSDestinationManager.checkID(JMSDestinationManager.java:384)
at org.jboss.mq.server.JMSServerInterceptorSupport.checkID(JMSServerInterceptorSupport.java:138)
at org.jboss.mq.server.TracingInterceptor.checkID(TracingInterceptor.java:226)
at org.jboss.mq.server.JMSServerInvoker.checkID(JMSServerInvoker.java:139)
at org.jboss.mq.il.jvm.JVMServerIL.checkID(JVMServerIL.java:204)
at org.jboss.mq.Connection.setClientID(Connection.java:508)
at org.jboss.ejb3.mdb.MDB.innerCreateTopic(MDB.java:463)
at org.jboss.ejb3.mdb.MDB.innerCreate(MDB.java:342)
at org.jboss.ejb3.mdb.MDB.innerStart(MDB.java:225)
at org.jboss.ejb3.mdb.MDB$ExceptionListenerImpl.onException(MDB.java:1133)
at org.jboss.ejb3.mdb.MDB$1.run(MDB.java:237)
2006-08-15 10:27:19,381 INFO [org.jboss.ejb3.mdb.MDB] Trying to reconnect to JMS provider
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965296#3965296
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965296
19 years, 9 months