[jBPM] - jbpm 3 and getVariable : application slowness
by Ender Wiggin
Ender Wiggin [https://community.jboss.org/people/enderwiggin30] created the discussion
"jbpm 3 and getVariable : application slowness"
To view the discussion, visit: https://community.jboss.org/message/728360#728360
--------------------------------------------------------------
We have a small app which uses jbpm v3. One of the things in the app is to list the tasks a user is assigned to. The task details such as client name, address are stored in variable called client. When the home page is being rendered, for each task, the client is read from database and task is displayed with a proper description. The problem is for 50 tasks the user has, getting the client object means hitting the database once which slows the app. It literally takes 30 seconds for some users... When I look at hibernate layer queries, I see a bunch of select statements for each task to get the client object.
Is there a way to speed up the jbpm so that variables are loaded more efficiently or in batch ? Doing it per task instance is simply not acceptable performance wise. Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728360#728360]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[Beginner's Corner] - JAAS Login issue
by ionutvaidianu
ionutvaidianu [https://community.jboss.org/people/ionutvaidianu] created the discussion
"JAAS Login issue"
To view the discussion, visit: https://community.jboss.org/message/728886#728886
--------------------------------------------------------------
Hello,
I'm quite new to JBoss AS, so please bare with me and any help is appreciated.
Here is my problem: I have a RichFaces web application and I want to restrict access to most of the pages. As far as I have found so far the best way (opened for suggetions and debate here) to secure content is at container level by defining a security domain and a module that will authorize the users so they can be able to access secured pages.
I have done all the configuration, the pages are protected, but even from a user that authenticates. In other words event after authentication I get redirected to the login page and cannot access any of the protected pages. I get no error / message in the server console (The log level for CONSOLE is on DEBUG).
Is it a known issue, is there a WA for it or am I doing something wrong?
Thanks!
Here is the setup:
JBoss AS 7.1.1 Final, standalone configuration.
The security domain (the associated datasource is functional because at some point I got wrong password in the server console):
<security-domain name="SecuredRealm">
<authentication>
<login-module code="Database" flag="required">
<module-option name="dsJndiName" value="java:jboss/datasources/securityDS"/>
<module-option name="principalsQuery" value="select passwd from Users where username=?"/>
<module-option name="rolesQuery" value="select userRoles,'Roles' from UserRoles where username=?"/>
<module-option name="hashAlgorithm" value="MD5"/>
<module-option name="hashEncoding" value="base64"/>
<module-option name="unauthenticatedIdentity" value="guest"/>
<module-option name="maxInvalidLoginAttempts" value="5"/>
</login-module>
</authentication>
</security-domain>
jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>java:/jaas/SecuredRealm</security-domain>
</jboss-web>
web.xml
|
| <security-constraint> |
|
|
| <web-resource-collection> |
|
|
|
| <web-resource-name>SecuredRealm</web-resource-name> |
|
|
|
| <url-pattern>/*</url-pattern> |
|
|
|
| <http-method>GET</http-method> |
|
|
|
| <http-method>POST</http-method> |
|
|
| </web-resource-collection> |
|
|
| <auth-constraint> |
|
|
|
| <role-name>*</role-name> |
|
|
| </auth-constraint> |
|
|
| <!-- <user-data-constraint> --> |
|
|
| <!-- <transport-guarantee>CONFIDENTIAL</transport-guarantee> --> |
|
|
| <!-- </user-data-constraint> --> |
|
| </security-constraint> |
|
| <security-constraint> |
|
|
| <web-resource-collection> |
|
|
|
| <web-resource-name>Unprotected area</web-resource-name> |
|
|
|
| <url-pattern>/resources/*</url-pattern> |
|
|
| </web-resource-collection> |
|
| </security-constraint> |
|
| <login-config> |
|
|
|
| <auth-method>FORM</auth-method> |
|
|
|
| <realm-name>SecuredRealm</realm-name> |
|
|
|
| <form-login-config> |
|
|
|
|
| <form-login-page>/jasl.jsf</form-login-page> |
|
|
|
| <form-error-page>/jasl.jsf</form-error-page> |
|
|
| </form-login-config> |
|
|
| </login-config> |
|
|
| <security-role> |
|
|
|
| <role-name>admin</role-name> |
|
|
| </security-role> |
|
|
| <security-role> |
|
|
|
| <role-name>normal</role-name> |
|
|
| </security-role> |
|
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728886#728886]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - Re: Console crashes on opening Process Overview (fresh jBPM5.2 installation)
by hamsterdancer
hamsterdancer [https://community.jboss.org/people/hamsterdancer] created the discussion
"Re: Console crashes on opening Process Overview (fresh jBPM5.2 installation)"
To view the discussion, visit: https://community.jboss.org/message/647034#647034
--------------------------------------------------------------
Ok we found the problem.
As Tihomir already said, the problem is about the version of commons codec. We found THREE different versions of commons codec in the different projects which are parts of the jBPM Installer. 1.3, 1.4 and 1.5.
It looks like jboss loads the libraries in a different order on different systems. The following output (I've got by a colleague) may help to fix the problem permanently.
> 18:32:21,749 INFO [stdout] (http-localhost-127.0.0.1-8080-1)
> >>>>>>>>>>>> commons codec location :
> vfs:/content/jbpm-gwt-console-server.war/WEB-INF/lib/org.apache.commons.codec_1.3.0.v201101211617.jar
> 18:32:21,750 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server]]
> (http-localhost-127.0.0.1-8080-1) StandardWrapper.Throwable:
> java.lang.NoSuchMethodError:
> org.apache.commons.codec.binary.Base64.encodeBase64String([B)Ljava/lang/String;
Our temporary solution is to change the build.xml to exclude the old library on the jboss installation
> <!-- Install reporting AS7 -->
> <target name="install.reporting.into.jboss7" depends="check.birt.as7" if="birt.download" >
> <mkdir dir="${install.home}/birt"/>
> <unzip src="${install.home}/lib/birt-runtime-${birt.version.as7}.zip"
> dest="${install.home}/birt"/>
> <copy todir="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib">
> <fileset dir="${install.home}/birt/birt-runtime-${birt.version.as7}/ReportEngine/lib">
> <include name="**/*.jar"/>
> <exclude name="**/org.apache.commons.codec_1.3.0.v201101211617.jar"/>
> </fileset>
> </copy>
I hope it helps without causing additional problems^^
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647034#647034]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss Messaging] - Excessive disk usage on SQL 2008 R2 with JBoss messaging 1.4.2.GA-SP1
by Graeme Wright
Graeme Wright [https://community.jboss.org/people/gw2603] created the discussion
"Excessive disk usage on SQL 2008 R2 with JBoss messaging 1.4.2.GA-SP1"
To view the discussion, visit: https://community.jboss.org/message/729864#729864
--------------------------------------------------------------
We have seen issues when running Jboss 4.2.3 with JBoss Messaging 1.4.2.GA-SP1 using MS SQL 2008 R2 for the data-store where in high volume environments the disk usage is disproportionate to the volume of messages being persisted.
I know that there is a known behaviour with MS SQL and the following note from JBoss messaging docs explains this,
Microsoft SQL Server does not automatically de-allocate the hard-drive space occupied by data in a database when that data is deleted. If used as a data-store for services that temporarily store many records, such as a messaging service, the disk space used will grow to be much greater than the amount of data actually being stored. Your database administrator should implement database maintenance plans to ensure that unused space is reclaimed. Please refer to your Microsoft SQL Server documentation for the DBCC commands ShrinkDatabase and UpdateUsage for guidance. https://jira.jboss.org/jira/browse/SOA-629 https://jira.jboss.org/jira/browse/SOA-629
however we have seen the JBM_MSG table grow beyond the volumes actually being submitted, we have other similar environments that do not exhibit the same behaviour. Users believe the number that each message is consuming 5mb for what would only be at most few hundred KB message and is actually consming 200MB of disk to store this, obviously this sounds like an issue with SQL Server and we have opened a ticket with Microsoft but was sseeing if anyone else had seen this.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729864#729864]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months