Re: [jboss-dev-forums] [JBoss AS 7 Development] - Infinispan Subsystem Management API
by Richard Achmatowicz
Richard Achmatowicz [http://community.jboss.org/people/rachmato] commented on the document
"Infinispan Subsystem Management API"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17351#comment-8216
--------------------------------------------------
"In the example provided for requiring a restart (some Transport properties), this may require a restart of +all+ nodes in the cluster. How do you model this?"
If the cluster is a collection of standalone instances, there is no cluster-wide management support, so making a change on one host will not be propagated to other hosts in the cluster. Each cluster node needs to be separately changed and separately restarted (in this case) by the administrator.
If the cluster is a server group in a managed domain, changes (made via the management console) to the Infinispan subsystem in the server group's profile will be propagated automatically to all started hosts in the server group, putting all servers in the "process-state => restart-required" state. The servers in the server group then need to be restarted, which can again be done using the management console.
--------------------------------------------------
13 years, 2 months
[jBPM Development] - How to integrate .drl file in JBPM 5 using Rule Task
by Ram Biradar
Ram Biradar [http://community.jboss.org/people/ram.biradar] created the discussion
"How to integrate .drl file in JBPM 5 using Rule Task"
To view the discussion, visit: http://community.jboss.org/message/636912#636912
--------------------------------------------------------------
Hi,
I am new to JBPM. Now i am working on Rule Task in jbpm 5 and i want to integrate .drl file in jbpm 5. Here im using process variable's name and percentage and i have written one .drl file based on the percentage i want to set the percentage what i have written in .drl.
This is my work flow:
message/636780#636780 message/636780#636780
In student task i will get one form here i will enter name and percentage and its hits simpleDrools Rule task and after that its not moving. I will sending my code what i have written in script task before the Rule task i,e input and one script task i,e output
script1 code:-
map=new java.util.HashMap();
map.put("percentage",percentage);
kcontext.setVariable("percentage",percentage);
kcontext.getKnowledgeRuntime().insert(hpm.getPercentage());
script2 code:-
map.put("name",name);
map.put("percentage",percentage);
simpleDrools.drl:--
package com.sample
import com.sample.hello.HelloProcessModel
rule "NYuser_Rule"
no-loop true
ruleflow-group "EvalLoopcondition"
when
m:HelloProcessModel(percentage>75)
then
m.setPercentage(90);update(m);
end
rule "ChileUser_Rule"
no-loop true
ruleflow-group "EvalLoopcondition"
when
m:HelloProcessModel(percentage < 75)
then
m.setPercentage(60);update(m);
end
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636912#636912]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[PicketBox Development] - JBoss AS7: Security : Custom Login Modules
by Anil Saldhana
Anil Saldhana [http://community.jboss.org/people/anil.saldhana] created the document:
"JBoss AS7: Security : Custom Login Modules"
To view the document, visit: http://community.jboss.org/docs/DOC-17357
--------------------------------------------------------------
When you write your own custom login module (or Authorization Module or Audit Provider or Mapping Provider), then you have two choices as to where the class files exist in JBoss AS7.1
h2. Options
h2.
1. Package them as part of your EE archives (such as WEB-INF/classes or WEB-INF/lib)
2. Place in a separate module in the modules directory of JBoss AS 7.1
Option 1 is covered in http://community.jboss.org/docs/DOC-16811 http://community.jboss.org/wiki/JBossAS7SecurityDomainModel
Option 2 is described here with an example:
Assume we have a web application called form-auth.war which utilizes form authentication. It is attached to the article.
It uses a security domain form-auth that will be defined in standalone/configuration/standalone.xml as follows:
<security-domain name="form-auth" cache-type="default">
<authentication>
<login-module code="custom.MyLoginModule" flag="required" module="custom_module">
<module-option name="usersProperties" value="users.properties"/>
<module-option name="rolesProperties" value="roles.properties"/>
</login-module>
</authentication>
</security-domain>
Note: You will have to download the attached custom_module.zip and unzip it in the modules directory of AS7.1
jboss-as-7.1.0.Alpha2-SNAPSHOT/modules$ ls -la
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 asm
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 ch
drwxrwxr-x. 5 anil anil 4096 Nov 16 14:53 com
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:57 custom_module
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 gnu
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 javaee
drwxrwxr-x. 25 anil anil 4096 Nov 16 14:54 javax
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 jline
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 juddi
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:53 net
drwxrwxr-x. 23 anil anil 4096 Nov 16 14:54 org
drwxrwxr-x. 3 anil anil 4096 Nov 16 14:54 sun
If everything is ok, when you start AS7.1, then you should be able to access http://localhost:8080/form-auth/ http://localhost:8080/form-auth/
Username: anil
Password: anil
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-17357]
Create a new document in PicketBox Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 2 months
Re: [jboss-dev-forums] [JBoss AS 7 Development] - Infinispan Subsystem Management API
by Richard Achmatowicz
Richard Achmatowicz [http://community.jboss.org/people/rachmato] commented on the document
"Infinispan Subsystem Management API"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17351#comment-8211
--------------------------------------------------
I'll answer the scond part first.
"In terms of initial features, I presume you'd want to focus on the needs of AS 7 for this management API, and not all of what Infinispan can do. Is this management API easily extensible for subsequent use in EDG then, where we'd want to expose more of Infinispan to users? How do you see this working?"
Yes, the AS 7 Infinispan subsystem and its management interface is really tailored to the support of clustering. Both the XML configuration of the subsystem, the defaults used as well as the management operations available are probably more limited in scope than what would be suitable for EDG where greater need for configuration of cache manager and cache behaviours would probably be required. There is a lot of scope for code reuse, as resource definitions (e.g. those classes which define the attributes and operations available for an addressable resource) can be extended. However, on the surface, it looks as though different extensions for the different versions of the subsystem will need to be installed (where the extension is used to register the parsers and the resource definitions to be used). We need to try put together a shopping list of what you would want to have exposed in the EAP vs EDG cases.
--------------------------------------------------
13 years, 2 months
Re: [jboss-dev-forums] [JBoss AS7 Development] - Infinispan Subsystem Management API
by Brian Stansberry
Brian Stansberry [http://community.jboss.org/people/brian.stansberry] commented on the document
"Infinispan Subsystem Management API"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17351#comment-8204
--------------------------------------------------
On the multi-step approach, the CLI allows batching of commands, so the series of commands listed above could be executed as an atomic batch. (Internally, a single operation, named "composite" is sent, with a single parameter whose value is a DMR list, each element of which is the DMR for one of the steps.)
When an operation executes, it is done in stages -- first is a MODEL stage where updates are applied to the configuration model, then a RUNTIME stage, where updates are applied to runtime services. Finally a VERIFY stage where container services are known to be settled and assertions about their state can be done. With a composite operation, the MODEL stage for each step is done before the RUNTIME stage for the 1st step begins. The effect of this is the RUNTIME part of the 1st step can see the model changes made in the MODEL stage of all the steps.
The other thing that can be useful is having the OperationStepHandler for the 1st step's RUNTIME stage itself add another RUNTIME step. The RUNTIME step will be added at the end of the list of RUNTIME steps and will thus execute after all the step's RUNTIME stage. So, work done by those steps can be visible to this final step.
--------------------------------------------------
13 years, 2 months