[jBPM] - When to call kSession.dispose()?
by Ryan Peterson
Ryan Peterson [http://community.jboss.org/people/rrpeterson] created the discussion
"When to call kSession.dispose()?"
To view the discussion, visit: http://community.jboss.org/message/627318#627318
--------------------------------------------------------------
I was wondering: How often should kSession.dispose() be called for any given session?
For instance, suppose you have the following:
// create kSession
JPAKnowledgeService.newStatefulKnowledgeSession()
// do some operations with kSession:
ksession.getWorkItemManager().registerWorkItemHandler(x, y);
...
// start the process instance
kSession.startProcess(processId, params)
// Should kSession.dispose() be called here, since we're doing doing work on the ksession for now?
Suppose we re-load the session later:
JPAKnowledgeService.loadStatefulKnowledgeSession()
// Should kSession.dispose() only be called here?
I'm mostly unsure if .dispose() needs to be called after each transaction with a kSession, or if it should only be called once the kSession is complete/aborted?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627318#627318]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[jBPM] - jBPM, Drools, AS7 does any of this work? Very confusing what is needed.
by Jim Dwyer
Jim Dwyer [http://community.jboss.org/people/JimDwyer] created the discussion
"jBPM, Drools, AS7 does any of this work? Very confusing what is needed."
To view the discussion, visit: http://community.jboss.org/message/625800#625800
--------------------------------------------------------------
I have been banging on this integration for to long. I have been integrating jBPM and AS7. It seems to be up and running as the jbpm-client and jbpm-client-server are running (with a few console exceptions ) in AS7. I have the jBPM5.1 database using Postgres. So things are integrating but it is slow going.
I went to upload a process definition and according to http://docs.jboss.org/jbpm/v5.1/userguide/ch15.html http://docs.jboss.org/jbpm/v5.1/userguide/ch15.html I need the Drools guvnor up and running as well. This is fine I want to use Drools anyway.
I have searched the web and forums for answers to the following questions. There seems to be much talk about things but no definative answers. If somebody can shed some light on my questions it would be appreciated.
Questions:
What is the best tool to use for developing jBPM workflows? Drools flow? Eclipse? BPMN2? Can I deploy a process from there?
How do I load a jBPM process definition into jBPM5.1? I would like to drop it in a directory on AS7 and have AS7 pick it up automatically and deploy it. Is that possible?
How do I define jBPM users and groups? I am using the user.properties and roles.properties files included in the jbpm-console-server and am able to log into the jbpm console. Are these the same users and groups for the jbpm tasks? It doesn't seem to be the case. If not: How do I load users and groups into jBPM5.1?
What version of Drools should I use for AS7? Has anybody integrated this successfully? Does drools 5.2 install into AS7? I was reading that there are issues and that drools 5.4 would fix them. Drools 5.4 doesn't seem to be available for download. Now what?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/625800#625800]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[Javassist] - how to get ClassPool in EclipseApplication
by Dennis Knotz
Dennis Knotz [http://community.jboss.org/people/sprigg] created the discussion
"how to get ClassPool in EclipseApplication"
To view the discussion, visit: http://community.jboss.org/message/627204#627204
--------------------------------------------------------------
Hi,
I have a problem with getting the ClassPool in my EclipseApplication.
Here's the Use Case: I have an EclipseApplication where I can "run" my Interpreter for diagrams. To evaluate the guards i wanted to change an evaluation method, so i can use the whole java spectrum of conditions without writing my own Parser.
Now my problem: testing in an small java project worked perfectly, but integrating the "evaluation-classes" into my application won't work. Debugging says that the ClassPool.getDefault(); throws an Exception (unfortunately a non catchable).
And the question: what am i doing wron? is there any other way to get the ClassPool? Or is there any other way to manipulate classes without that pool?
Here is the Code of my Evaluator ok, it's not a beauty ;-):
try{
ClassPool pool = ClassPool.getDefault();
[...]
}catch(Exception e)
{e.printStackTrace();}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627204#627204]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Tools] - Adding some grease with JBoss Tools 3.3 M3
by Max Rydahl Andersen
Max Rydahl Andersen [http://community.jboss.org/people/maxandersen] modified the blog post:
" Adding some grease with JBoss Tools 3.3 M3 "
To view the blog post, visit: http://community.jboss.org/community/tools/blog/2011/09/19/adding-some-gr...
--------------------------------------------------------------
It's time for a new fresh milestone update of JBoss Tools:
http://community.jboss.org/servlet/JiveServlet/showImage/38-4159-17004/gr... http://community.jboss.org/servlet/JiveServlet/downloadImage/38-4159-1700...
h4. 3.3 M3 (Greased Lightning)
[ http://www.jboss.org/tools/download/dev Download] [ http://download.jboss.org/jbosstools/updates/development/indigo/ Update Site] [ http://docs.jboss.org/tools/whatsnew What's New] [ http://www.jboss.com/index.html?module=bb&op=viewforum&f=201 Forums] [ http://jira.jboss.com/jira/browse/JBIDE JIRA] [ http://twitter.com/jbosstools Twitter]
JBoss Tools is a set of plugins for Eclipse that complements, enhances and goes beyond the support that exist for JBoss and related technologies in the default Eclipse distribution. For this release we continue to move Maven, CDI, Java EE support forward and also add in a few new "surprise" features.
h2. Installation
As always, get and install http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/... Eclipse 3.7 (Indigo) JEE bundle - with the JEE bundle you majority of the dependencies letting you save bandwidth:
Once you have installed Eclipse, you either find us on http://marketplace.eclipse.org/content/jboss-tools-indigo Eclipse Marketplace under "JBoss Tools (Indigo)" or use our update site directly.
The updatesite URL to use from Help > Install New Software... is:
http://download.jboss.org/jbosstools/updates/development/indigo/ http://download.jboss.org/jbosstools/updates/development/indigo/
h3. Maven Profile Selection
In this release we've therefore included an UI which allows you to easily set/change the profiles on single and multiple projects.
This is especially something that becomes useful when you use Arquillian where it is a common practice to use Maven profiles to toggle the various dependency sets for each server you wish to test against.
It works by you selecting the relevant project(s), press *Ctrl+Alt+P* or use *Maven > Select Maven Profiles...* and a dialog box appears allowing you to enable/disable the available profiles for the project(s):
http://community.jboss.org/servlet/JiveServlet/showImage/38-4159-16994/ma... http://community.jboss.org/servlet/JiveServlet/downloadImage/38-4159-1699...
h3. Easier Remote Debugging
Ever been tired of having to manually configure ports, projects and source path lookups for debugging on Remote Applications in Eclipse ?
We are, especially after we learned that JVM's running on Hotspot provides API to discover such applications and allow for easy configuration of your debugger. In this release we've thus added a command available from *Debug As... > Remote Java Application*... in the context menu on any set of resources.
Once you select this command we use the Hotspot API to discover the remote running applications, allow you to select which you application want to connect to and then we do the tedious work of configuring the ports, names and source code lookups (including maven dependencies if applicable) for your Remote debugging.
http://community.jboss.org/servlet/JiveServlet/showImage/38-4159-16996/re... http://community.jboss.org/servlet/JiveServlet/downloadImage/38-4159-1699...
No need for manual tweaking anymore.
Thanks to http://community.jboss.org/people/aslak Aslak Knutsen for bringing us the idea and initial code to make this happen!
h3. Running Server Detection
The server adapters now attempt to detect if a server is already running to avoid port conflicts and UI inconcistencies. If a server is detected running you are shown a dialog allowing you to choose to either have the server adapter assume it is already running or force the launch anyway.
http://community.jboss.org/servlet/JiveServlet/showImage/38-4159-17003/se... http://community.jboss.org/servlet/JiveServlet/downloadImage/38-4159-1700...
h3. CDI & Seam Solder
The CDI tooling add a bunch of quickfixes to have JBoss Tools fix common issues. To aid in searching and navigating your CDI application Find References (*Ctrl+Shift+G*) will now show the full list of injection points and EL usage of your beans and Seam Solder and Config annotations and XML now have easy hyperlink navigation to it's declarations.
h3. @ManagedBean's
The JSF tooling now detects @ManagedBean annotations. This avoids false warnings/errors when importing JSF 2 examples. Do consider using @Named instead for better integration into the JavaEE stack.
h3. SAR Projects
For a long time we have been asked about providing support for SAR style projects for use on older versions of JBoss AS. This style of project packaging is now supported both in pure WTP style projects and via Maven.
h3. GWT Tools are back
Since last time Google released their GWT eclipse plugin in a version that supports Eclipse 3.7 allowing us to reenable the GWT Tools.
h3. And more...
There are additional bugfixes and more features to browse over at http://docs.jboss.org/tools/whatsnew/ What's New & Noteworthy
Like the new features ? Leave a comment to let us know!
And by all means,
Have fun!
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/community/tools/blog/2011/09/19/adding-some-gr...]
13 years, 3 months