[Beginner's Corner] - question about JBOSS version 4.2.2
by Ed Mahan
Ed Mahan [https://community.jboss.org/people/edman007] created the discussion
"question about JBOSS version 4.2.2"
To view the discussion, visit: https://community.jboss.org/message/726698#726698
--------------------------------------------------------------
Hello Experts, I have some questions regarding Cisco Fabric and Device manager applications
Problem description from customer:
During an internal penetration test within the company, JBOSS components running within Cisco Fabric and Device Manager were listed as potential security vulnerabilities. The report stated that JBOSS needed to be upgraded to version 4.3.0 CP08 or later. At that time, they were running version 5.04 for both Fabric Manager and Device Manager. In an attempt to upgrade the JBOSS components, Customer upgraded these applications and switch firmware to version 5.0(4b). This did upgrade JBOSS to version 4.2.2 .
Customer would like more information if there is in fact a security vulnerability within these applications and if so how to isolate or eliminate these vulnerabilities. I am not sure what penetration test tool was used and did not receive this information.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726698#726698]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM] - jbpm process REST api for signaling process does not work (is it a bug?)
by marmotadev
marmotadev [https://community.jboss.org/people/marmotadev] created the discussion
"jbpm process REST api for signaling process does not work (is it a bug?)"
To view the discussion, visit: https://community.jboss.org/message/726692#726692
--------------------------------------------------------------
Hello,
I can sucessfully invoke REST api for starting service, however invoking /rs/process/tokens/*<process instance id>*/transition?signal=*<signal name>* does not send signals to process engine.
If I run process locally (in eclipse):
#
kcontext.getKnowledgeRuntime().signalEvent( eventType, data, kcontext.getProcessInstance().getId());
- all signals reach nodes inside the process. Event/Signal nodes are configured as "external".
Here are logs for invoking HTTP requests:
DEBUG org.apache.http.impl.conn.DefaultClientConnection - Sending request: POST /gwt-console-server/rs/process/tokens/5/transition?signal=RODataReceivedSignal HTTP/1.1
DEBUG org.apache.http.wire - >> "POST /gwt-console-server/rs/process/tokens/5/transition?signal=RODataReceivedSignal HTTP/1.1[\r][\n]"
DEBUG org.apache.http.wire - >> "JSESSIONID: XRW3Gp28tTUF2NLekPsm10e6[\r][\n]"
DEBUG org.apache.http.wire - >> "Content-Length: 0[\r][\n]"
DEBUG org.apache.http.wire - >> "Content-Type: application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
DEBUG org.apache.http.wire - >> "Host: localhost:8080[\r][\n]"
DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]"
DEBUG org.apache.http.wire - >> "User-Agent: Apache-HttpClient/4.1.3 (java 1.5)[\r][\n]"
DEBUG org.apache.http.wire - >> "Cookie: JSESSIONID=XRW3Gp28tTUF2NLekPsm10e6[\r][\n]"
DEBUG org.apache.http.wire - >> "Cookie2: $Version=1[\r][\n]"
DEBUG org.apache.http.wire - >> "[\r][\n]"
DEBUG org.apache.http.headers - >> POST /gwt-console-server/rs/process/tokens/5/transition?signal=RODataReceivedSignal HTTP/1.1
DEBUG org.apache.http.headers - >> JSESSIONID: XRW3Gp28tTUF2NLekPsm10e6
DEBUG org.apache.http.headers - >> Content-Length: 0
DEBUG org.apache.http.headers - >> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
DEBUG org.apache.http.headers - >> Host: localhost:8080
DEBUG org.apache.http.headers - >> Connection: Keep-Alive
DEBUG org.apache.http.headers - >> User-Agent: Apache-HttpClient/4.1.3 (java 1.5)
DEBUG org.apache.http.headers - >> Cookie: JSESSIONID=XRW3Gp28tTUF2NLekPsm10e6
DEBUG org.apache.http.headers - >> Cookie2: $Version=1
DEBUG org.apache.http.wire - << "HTTP/1.1 200 OK[\r][\n]"
DEBUG org.apache.http.wire - << "Server: Apache-Coyote/1.1[\r][\n]"
DEBUG org.apache.http.wire - << "Content-Type: application/json[\r][\n]"
DEBUG org.apache.http.wire - << "Transfer-Encoding: chunked[\r][\n]"
DEBUG org.apache.http.wire - << "Date: Tue, 27 Mar 2012 18:18:20 GMT[\r][\n]"
DEBUG org.apache.http.wire - << "[\r][\n]"
DEBUG org.apache.http.impl.conn.DefaultClientConnection - Receiving response: HTTP/1.1 200 OK
DEBUG org.apache.http.headers - << HTTP/1.1 200 OK
DEBUG org.apache.http.headers - << Server: Apache-Coyote/1.1
DEBUG org.apache.http.headers - << Content-Type: application/json
DEBUG org.apache.http.headers - << Transfer-Encoding: chunked
DEBUG org.apache.http.headers - << Date: Tue, 27 Mar 2012 18:18:20 GMT
DEBUG org.apache.http.impl.client.DefaultHttpClient - Connection can be kept alive indefinitely
DEBUG org.apache.http.wire - << "0[\r][\n]"
DEBUG org.apache.http.wire - << "[\r][\n]"
if I look /gwt-console-server/rs/process/definition/*<my process id>*/instances, i can see that they are not "signalable":
|
| {"instances":[{"id":"1","definitionId":"*<process id>*","startDate":"2012-03-27 20:31:13","suspended":false,"rootToken":{"id":"1","name":"","currentNodeName":"","children":[],"availableSignals":[],"canBeSignaled":false}}}]} |
But they have 3 signals defined inside process:
I've started looking and gwt console code and....
org.jbpm.integration.console.ProcessManagement:65
|
| result.add(Transform.processInstance(processInstance)); |
makes transformation, which basically omits *canBeSignaled, availableSignals* fields!
>
> |
> |
> | ProcessInstanceRef result = new ProcessInstanceRef( |
> |
> |
> |
> | processInstance.getProcessInstanceId() + "", |
> |
> |
> |
> | processInstance.getProcessId(), |
> |
> |
> |
> | processInstance.getStart(), |
> |
> |
> |
> | processInstance.getEnd(), |
> |
> |
> |
> | false); |
> |
> |
> | TokenReference token = new TokenReference( |
> |
> |
> |
> | processInstance.getProcessInstanceId() + "", null, ""); |
> |
> |
> | result.setRootToken(token); |
> |
> |
> | return result; |
>
>
>
ProcessManagementTest also lacks any tests:
@Test @Ignore
public void testSignalExecution() {
// TODO implement
}
Of course, I am not sure if this is the cause of ignoring signals. By looking at signal code it seems that processes should be signaled, however I could not setup development environment for gwt-console-server to trace exact behaviour (s.
Can anyone share experience with signaling processes running on gwt-console-server (Or a way to setup a debuging environment for gwt-console-server on eclipse)?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726692#726692]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[Datasource Configuration] - trying to connect to DB2 with JBOSS AS 7.0.2
by Mike Lupo
Mike Lupo [https://community.jboss.org/people/edprairie] created the discussion
"trying to connect to DB2 with JBOSS AS 7.0.2"
To view the discussion, visit: https://community.jboss.org/message/726463#726463
--------------------------------------------------------------
Having no luck connecting to a DB2 datasource....
Error received when JBOSS starts up is:
14:40:29,641 INFO [org.jboss.as.controller] (Controller Boot Thread) Service status report
New missing/unsatisfied dependencies:
service jboss.jdbc-driver.db2jcc (missing)
Here are my files:
1. in standalone.xml
in datasource section........
<datasource jndi-name="java:jboss/datasources/examplesXADS" pool-name="examplesDB" enabled="true" jta="true" use-java-context="true" use-ccm="true">
<connection-url>
jdbc:db2://blah-blah-blah.com:50000/db2:currentPackageSet=blahblah;
</connection-url>
<driver>
db2jcc
</driver>
<security>
<user-name>
my-userid----------
</user-name>
<password>
my-password-------
</password>
</security>
(....... other parms left out.........)
</datasource>
in drivers section .........
<driver name="db2jcc" module="com.ibm.db2">
<xa-datasource-class>
com.ibm.db2.jcc.DB2XADataSource
</xa-datasource-class>
<driver-class>
com.ibm.db2.jcc.DB2Driver
</driver-class>
</driver>
2. in /jboss-as-final-7.0.2-Final/modules/com/ibm/db2/main (5 files)
A) db2jcc.jar
B) db2jcc.license_cisuz.jar
C) module.xml (contents shown)
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.ibm.db2">
<resources>
<resource-root path="db2jcc.jar"/>
<resource-root path="db2jcc_license_cisuz.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
D) db2jcc.jar.index (contents shown)
META-INF
META-INF/services
com
com/ibm
com/ibm/db2
com/ibm/db2/jcc
com/ibm/db2/jcc/a
com/ibm/db2/jcc/b
com/ibm/db2/jcc/c
com/ibm/db2/jcc/resources
com/ibm/db2/jcc/sqlj
com/ibm/db2/jcc/t2
com/ibm/db2/jcc/t2zos
com/ibm/db2/jcc/uw
com/ibm/db2/jcc/uw/a
sqlj
sqlj/runtime
sqlj/runtime/error
sqlj/runtime/profile
sqlj/runtime/profile/ref
sqlj/runtime/profile/util
COM
COM/ibm
COM/ibm/db2os390
COM/ibm/db2os390/dsn
COM/ibm/db2os390/sqlj
COM/ibm/db2os390/sqlj/jdbc
E) db2jcc_license.cisuz.jar.index (contents shown)
META-INF
META-INF/services
com/ibm/db2/licenses
Has anyone had any luck with DB2 and AS V7???
-Mike
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726463#726463]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[JBoss Messaging] - Re: JBM clients hangs when creating connections/sessions
by Matthias Grossmann
Matthias Grossmann [https://community.jboss.org/people/mgrossmann] created the discussion
"Re: JBM clients hangs when creating connections/sessions"
To view the discussion, visit: https://community.jboss.org/message/718587#718587
--------------------------------------------------------------
Hi Daniel,
in the thread dump you sent to me i found the thread which holds the lock you mentioned above:
"WorkManager(2)-29869" daemon prio=10 tid=0x00007f83f4aaa400 nid=0x78df runnable [0x000000005ba01000..0x000000005ba03c20]
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
- locked <0x00007f843449d950> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:66)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:1077)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:682)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:458)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:141)
at org.jboss.remoting.Client.invoke(Client.java:1925)
at org.jboss.remoting.Client.invoke(Client.java:786)
at org.jboss.remoting.Client.invoke(Client.java:774)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConsumerDelegate.org$jboss$jms$client$delegate$ClientConsumerDelegate$changeRate$aop(ClientConsumerDelegate.java:138)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$changeRate_N952316153687074823.invokeNext(ClientConsumerDelegate$changeRate_N952316153687074823.java)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$changeRate_N952316153687074823.invokeNext(ClientConsumerDelegate$changeRate_N952316153687074823.java)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at org.jboss.jms.client.delegate.ClientConsumerDelegate$changeRate_N952316153687074823.invokeNext(ClientConsumerDelegate$changeRate_N952316153687074823.java)
at org.jboss.jms.client.delegate.ClientConsumerDelegate.changeRate(ClientConsumerDelegate.java)
at org.jboss.jms.client.container.ClientConsumer.sendChangeRateMessage(ClientConsumer.java:754)
at org.jboss.jms.client.container.ClientConsumer.pause(ClientConsumer.java:669)
- locked <0x00007f8434479d38> (a java.lang.Object)
at org.jboss.messaging.core.impl.clusterconnection.MessageSucker.setConsuming(MessageSucker.java:317)
- locked <0x00007f840dc3dbf8> (a org.jboss.messaging.core.impl.clusterconnection.MessageSucker)
at org.jboss.messaging.core.impl.MessagingQueue.informSuckers(MessagingQueue.java:566)
at org.jboss.messaging.core.impl.MessagingQueue.setReceiversReady(MessagingQueue.java:529)
- locked <0x00007f840e9f29f0> (a org.jboss.messaging.core.impl.MessagingQueue)
at org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:667)
at org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:506)
at org.jboss.messaging.core.impl.ChannelSupport$InMemoryCallback.afterCommit(ChannelSupport.java:1072)
- locked *<0x00007f840e9f3048>* (a java.lang.Object)
at org.jboss.messaging.core.impl.tx.Transaction.commit(Transaction.java:228)
- locked <0x00007f8433fa4e20> (a org.jboss.messaging.core.impl.tx.Transaction)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:517)
This thread is also hanging in a socketRead0() which is triggered from
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:1077)
This is the point all threads are hanging even on client side. But i have no idea why the inputStream cannot be read.
You mentioned that the local message processing works, so i assume there is no issue with the database.
Regards,
Matthias
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/718587#718587]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[Beginner's Corner] - JBOSS 7.1.1 not starting - winxp/nt
by Harneet Singh
Harneet Singh [https://community.jboss.org/people/harneet85] created the discussion
"JBOSS 7.1.1 not starting - winxp/nt"
To view the discussion, visit: https://community.jboss.org/message/725277#725277
--------------------------------------------------------------
Hi,
I am totally new to JBOSS, but failry know about the concept of Application Server as I have been working with Websphere. I had two versions downloaded of JBOSS --
JBOSS community 7.1.1 (latest available as of date)
and Jboss EAP 6.0
------------------------------------------------------------------------------
Where as EAP downloaded was a JAR and had a fairly easy GUI for initail insatllation; 7.1.1 was a ZIP file, which I unzipped.
I have set JAVA_HOME and JBOSS_HOME and also rem echo off from the bat file. Apart from this I havent done any other configuration (not sure if i need to !!). After both installed, I am having same issue with both the installation.
-----------------------------------------------------------------------------
Following is the outcome after I run domain.bat for 7.1.1
I am totally unable to understand whether its starting / installing or what ??
My second question is what is the name of the process that I need to check if JBOSS starts in task manager (or ps -ef)
-------------------Kindky help---------------------------------------------------------
==============================================
==============================================
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>domain.bat
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>REM @echo off
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem --------------------------------
-----------------------------------------
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem JBoss Bootstrap Script for Windows
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem --------------------------------
-----------------------------------------
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem $Id$
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>if "Windows_NT" == "Windows_NT" (set "DIRNAME=C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\" ) else (set DIRNAME=.\)
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem Read an optional configuration file.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>if "x" == "x" (set "DOMAIN_CONF=C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\domain.conf.bat" )
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>if exist "C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\domain.conf.bat" (echo Calling "C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\domain.conf.bat" call "C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\domain.conf.bat") else (echo Config file not found "C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\domain.conf.bat" )
Calling "C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\domain.conf.bat"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem ### -*- batch file -*- ######################################################
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
##
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # JBoss Bootstrap Script Configuration ##
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
##
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem ################################
#############################################
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # $Id: run.conf.bat 88820 2009-05-13 15:25:44Z mailto:dimitris@jboss.org dimitris(a)jboss.org $
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # This batch file is executed by run.bat to initialize the environment
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # variables that run.bat uses. It is recommended to use this file to
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # configure these variables, rather than modifying run.bat itself.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>if not "x" == "x" (echo "JAVA_OPTS already set in environment; overriding default settings with values: "goto JAVA_OPTS_SET)
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Specify the JBoss Profiler configuration file to load.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Default is to not load a JBossProfiler configuration file.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "PROFILER="c:\Documents andSettings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final"\bin\jboss-profiler.properties"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Specify the location of the Java home directory (it is recommended that
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # this always be set). If set, then "C:\Program Files\IBM\SQLLIB\java\jdk\bin\java" will be used as
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # the Java VM executable; otherwise, "" will be used (see below).
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "JAVA_HOME=C:\opt\jdk1.6.0_23"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Specify the exact Java VM executable to use - only used if JAVA_HOME is
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # not set. Default is "java".
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "JAVA=C:\opt\jdk1.6.0_23\bin\java"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Specify options to pass to the Java VM. Note, there are some additional
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # options that are always passed by run.bat.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem #
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # JVM memory allocation pool parameters - modify as appropriate.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSize=256M"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Reduce the RMI GCs to once per hour for Sun JVMs.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Warn when resolving remote XML DTDs or schemas.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -
Dorg.jboss.resolver.warning=true"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Make Byteman classes visible in all module loaders
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # This is necessary to inject Byteman rules into AS7 deployments
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -
Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Set the default configuration files to use if -c, --domain-config or --host-config are not used
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "JAVA_OPTS=-Xms64M -Xmx512M -XX:
MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -
Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=domain.xml -Djboss.ho
st.default.config=host.xml"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Use JBoss Modules lockless mode
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "JAVA_OPTS=-Xms64M -Xmx512M
-XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=tr
ue -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=domain.xml -Djbos
s.host.default.config=host.xml -Djboss.modules.lockless=true"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem The ProcessController process uses its own set of java options
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "PROCESS_CONTROLLER_JAVA_OPTS=-X
ms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.pre
ferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=do
main.xml -Djboss.host.default.config=host.xml"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem The HostController process usesits own set of java options
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>set "HOST_CONTROLLER_JAVA_OPTS=-Xms6
4M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.prefer
IPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=domai
n.xml -Djboss.host.default.config=host.xml"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Sample JPDA settings for remote socket debugging
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "PROCESS_CONTROLLER_JAVA_OPT
S=-Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net
.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.confi
g=domain.xml -Djboss.host.default.config=host.xml -Xrunjdwp:transport=dt_socket,address=8788,server=y,suspend=n"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "HOST_CONTROLLER_JAVA_OPTS=-
Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.pr
eferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=d
omain.xml -Djboss.host.default.config=host.xml -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem # Sample JPDA settings for shared memory debugging
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "PROCESS_CONTROLLER_JAVA_OPT
S=-Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net
.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.confi
g=domain.xml -Djboss.host.default.config=host.xml -Xrunjdwp:transport=dt_shmem,address=jboss,server=y,suspend=n"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>rem set "HOST_CONTROLLER_JAVA_OPTS=-
Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.pr
eferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.domain.default.config=d
omain.xml -Djboss.host.default.config=host.xml -Xrunjdwp:transport=dt_shmem,address=jboss,server=y,suspend=n"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>pushd C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\..
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final>set "RESOLVED_JBOSS_HOME=C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final"
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final>popd
and was unexpected at this time.
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>if "x"c:\Documents and Settings\Admi
nistrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final"" == "x" (
C:\Documents and Settings\Administrator\Desktop\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725277#725277]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM] - Automatically updating knowledgebase & sessions with new process definitions
by Affan Dar
Affan Dar [https://community.jboss.org/people/affandar] created the discussion
"Automatically updating knowledgebase & sessions with new process definitions"
To view the discussion, visit: https://community.jboss.org/message/726466#726466
--------------------------------------------------------------
Hello folks, I have guvnor setup as my process 'definitions' editor using jackrabbit underneath as the JCR. Also, in my code I am creating the knowledgebase using this repository like so:
'''
KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
kaconf.setProperty( "drools.agent.scanDirectories", "true" );
kaconf.setProperty( "drools.agent.scanResources", "true" );
kaconf.setProperty( "drools.agent.newInstance", "false" );
// Set the interval on the ResourceChangeScannerService if the default of 60s is not desirable.
ResourceChangeScannerConfiguration sconf = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
sconf.setProperty( "drools.resource.scanner.interval", "15" ); // set the disk scanning interval to 30s, default is 60s
ResourceFactory.getResourceChangeScannerService().configure( sconf );
ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();
KnowledgeAgent ka = KnowledgeAgentFactory.newKnowledgeAgent("workflowknowledgeagent", kaconf);
ka.applyChangeSet(ResourceFactory.newUrlResource(
" http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa... http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa..."));
KnowledgeBase kb = ka.getKnowledgeBase();
'''
This is working fine but when I add or remove a process definition using guvnor and rebuild the package, the change does not automagically show up in the knowledgebase that was created towards the end of the snippet above. With 'newInstance' set to false I was hoping this would happne automatically (and also the ksessions created off of this knowledgebase will get updated as well).
Is this expected behavior or am I missing something?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726466#726466]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months