[jBPM Development] - Research for making a process instance go on with jbpm5 after server restarting.
by jed jiang
jed jiang [https://community.jboss.org/people/jedjiang] created the discussion
"Research for making a process instance go on with jbpm5 after server restarting."
To view the discussion, visit: https://community.jboss.org/message/761013#761013
--------------------------------------------------------------
Hi all,
I 'm doing some researches for going on the process with JBPM5.3 instances in the eviroment of persistence and I create two sample:
https://community.jboss.org/servlet/JiveServlet/showImage/2-761013-19551/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-761013-19...
1.
In the process , i defined a global variableA for printing it in the script1 and script2 , and the User Task1 can update it.
I start the process and the instance will wait for completing of user task, every thing will be stored in the db.
Now i stop the server and restart it , reload the session from db ,register the workItemHandler ,and get UserTask1 to complete whole process .In the userTask1 , i can get the global variable , because it has been stored in the table of Content, and also script2 can print that variableA which is updated by user task1.
It looks like everything is ok.
Let us look another sample:
https://community.jboss.org/servlet/JiveServlet/showImage/2-761013-19553/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-761013-19...
2.
In this sample , when i complete the task 1 , i restart the server, then i reload the session , register the workItemHandler , but when i complete the task2 , the process instance will not go to the next node of script3.So i guess that the converge gateway don't know the task 1 has been completed before the server restart.
Is that correct?What should i do for this issue?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761013#761013]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 6 months
Re: [jboss-dev-forums] [JBoss AS 7 Development] - Using JBoss Negotiation on AS7
by Tim H
Tim H [https://community.jboss.org/people/queuenut] commented on the document
"Using JBoss Negotiation on AS7"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-16876#comment-10723
--------------------------------------------------
In order to get the jboss-negotiation-toolkit.war working under AS7.1, in addition to the above, I had to add an extra login-module to the SPNEGO security-domain.
<login-module code="RealmUsersRoles" flag="required">
<module-option name="usersProperties" value="/path/to/application-users.properties"/>
<module-option name="rolesProperties" value="/path/to/application-roles.properties"/>
<module-option name="realm" value="ApplicationRealm"/>
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
This is basically a copy of the entry for the "other" domain. I had to add the full path to the two properties files as it didn't like ${jboss.server.config.dir} (I was running on Windows using standalone.bat).
Lastly, I had to add the user entry to application-roles.properties
username@DOMAIN=Users
--------------------------------------------------
10 years, 6 months
[JBoss Tools Development] - Promoting JBoss Tools nightly project builds to milestone or stable release
by Nick Boldt
Nick Boldt [https://community.jboss.org/people/nickboldt] modified the document:
"Promoting JBoss Tools nightly project builds to milestone or stable release"
To view the document, visit: https://community.jboss.org/docs/DOC-47427
--------------------------------------------------------------
+*This doc is in progress and subject to change. ~nickboldt*+
Publishing SOA/BRMS Tooling components
*== STEP ONE :: Nightly Snapshot Build (Continuous Integration) ==*
Run your job as you would run a local build, that is, by invoking Maven 3 w/ Tycho 0.15 (or later) against your sources.
Then publish the output of the build to the server using publish.sh - simply run a shell script at the end of the job which does this:
Currently, the publish.sh script that everyone uses assumes a few things:
a) git or svn sources are fetched into ${WORKSPACE}/sources/, not the root ${WORKSPACE} folder
b) all builds will go into http://download.jboss.org/jbosstools/builds/staging/builds/staging/$ http://download.jboss.org/jbosstools/builds/staging/builds/staging/${JOB_...
Invocation of the script is done via Jenkins like this:
cd ${WORKSPACE}/sources/
wget http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/publish.sh http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/publish.sh -q --no-check-certificate -N
. publish.sh
*== STEP TWO :: Promoting a Snapshot to Milestone / Release ==*
You will need a second job with a "-publish" suffix which will copy your latest nightly to a new location.
Invocation of the script is done via Jenkins like this:
wget http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/promote.sh http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish/promote.sh -q --no-check-certificate -N
. promote.sh ${BUILD_TYPE} ${TARGET_PLATFORM} ${TARGET_FOLDER} ${PROJECT_NAME}
or
. promote.sh ${BUILD_TYPE} ${TARGET_PLATFORM} ${TARGET_FOLDER} ${PROJECT_NAME} SwitchYard-Tools/eclipse
Example jobs (which show how to set up the above job parameters, such as ${TARGET_PLATFORM} or ${BUILD_TYPE}):
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt... https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt...
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt... https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/SOA-Team/view/SOASt...
*== Naming conventions ==*
Development milestones (x.y.z.Beta2) go here: updates/development/{eclipse-version}/{stream}/
Stable releases (x.y.z.Final) will go in here: updates/{stable|release}/{eclipse-version}/{stream}/
Examples:
http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli... http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli...
http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli... http://download.jboss.org/jbosstools/updates/development/indigo/soa-tooli...
http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling... http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling...
http://download.jboss.org/jbosstools/updates/stable/indigo/soa-tooling/sw... http://download.jboss.org/jbosstools/updates/stable/indigo/soa-tooling/sw...
*== Integration Builds? ==*
In future, we may also have "integration" builds, which are nightlies deemed good enough for
use by downstream developers, but not stable enough (ie., not tested enough) to be released to community as a milestone.
The above process will also work for building then promoting an integration build.
*== Composite Sites? ==*
Well, it's great that we can publish to
http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling... http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling...
but what about a URL that won't change every time we release? How about
http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling... http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling...
or
http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling... http://download.jboss.org/jbosstools/updates/development/juno/soa-tooling/
Good idea. See https://issues.jboss.org/browse/JBIDE-12662 https://issues.jboss.org/browse/JBIDE-12662
*== Index Pages? ==*
Should the generated sites have a similar look and feel instead of a raw directory listing?
Yes. See https://issues.jboss.org/browse/JBIDE-12660 https://issues.jboss.org/browse/JBIDE-12660
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-47427]
Create a new document in JBoss Tools Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
10 years, 6 months
[JBoss AS 7 Development] - jboss client creates threads that are not closed during the shutdown of tomcat
by ckar
ckar [https://community.jboss.org/people/ckar] modified the document:
"jboss client creates threads that are not closed during the shutdown of tomcat"
To view the document, visit: https://community.jboss.org/docs/DOC-47431
--------------------------------------------------------------
I am developing an application that runs on Jboss AS7 and its front end, is developed on a tomcat that makes remote ejb calls to the jboss.
In tomcat i use spring and the configuration is the following
<bean id="jndiProperties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<map>
<entry key="java.naming.factory.url.pkgs" value="org.jboss.ejb.client.naming" />
</map>
</property>
</bean>
<jee:remote-slsb id="documentService"
business-interface="document.DocumentServiceInterface"
jndi-name="${document.jndi.name}"
environment-ref="jndiProperties" />
in jboss-esb-client.properties i have the following properties
endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=master
remote.connection.master.host=localhost
remote.connection.master.port=4447
remote.connection.master.username=ejb
remote.connection.master.password=whatever
remote.connection.master.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
Everything works fine till i try to shutdown tomcat, where i get a lot of errors regarding memory leakage like the following
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1@1ca9271]) and a value of type [java.util.Random] (value [java.util.Random@1194685]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder@195fb28]) and a value of type [byte[]] (value [[B@19c2afd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder@195fb28]) and a value of type [byte[]] (value [[B@1241146]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.xnio.Xnio$1] (value [org.xnio.Xnio$1@ea1895]) and a value of type [java.lang.Boolean] (value [true]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1@1ca9271]) and a value of type [java.util.Random] (value [java.util.Random@f40ddb]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1@1ca9271]) and a value of type [java.util.Random] (value [java.util.Random@1aad8e4]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder@195fb28]) and a value of type [byte[]] (value [[B@1858371]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/module] created a ThreadLocal with key of type [org.xnio.Xnio$1] (value [org.xnio.Xnio$1@ea1895]) and a value of type [java.lang.Boolean] (value [true]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Is it something that i am missing from the configuration or is it sth else?
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-47431]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
10 years, 6 months