[JBoss Seam] - JBoss Rules update in Seam CVS - migration notes
by shane.bryzak@jboss.com
Seam CVS has been updated to use JBoss Rules (Drools) version 4.0.0 MR2, which requires some changes if you are using either a Seam-managed working memory or Seam security. Here are the migration notes:
1) The number of required jars has been greatly reduced. The following jars are now required to be listed in your application.xml file:
antlr-3.0b7.jar
drools-compiler-4.0.0.MR2.jar
drools-core-4.0.0.MR2.jar
janino-2.5.6.jar
mvel14-1.2beta16.jar
2) If you are using Seam's ManagedWorkingMemory class, please note that its Unwrap method now returns a StatefulSession instead of a WorkingMemory (StatefulSession now implements the WorkingMemory interface).
3) Rule compilation seems to be a little stricter on syntax. Rule definitions must be terminated with the word "end" (previously "end;" - note the semicolon, was acceptable). It also seems to be a little stricter about white space and line ends also. If your rules no longer compile, check your rule file for extraneous white space or carriage returns/linefeeds.
The Seam examples have been updated to work with this new version, so if in doubt, take a look at the examples.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044557#4044557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044557
19 years, 1 month
[JBossCache] - Re: Threading Bug in PojoCache?
by jason.greene@jboss.com
"mvlior" wrote : Hi,
|
| I've been seeing the same exception in a somewhat different scenario, but perhaps there is a connection, this being the only post mentioning
| "null PojoInstance for fqn"...
|
| Basically, I'm running a replciated cache on two different JVMs. One attaches a POJO and then detaches it, while the other tries to acces it within a org.jboss.cache.CacheListener#nodeRemoved() method. AFAIK the notifier call is on the same thread.
|
| The goal was to get a remote notification for POJO creation/deletion.
|
This is a timing problem. When a node is attached an internal node is created and the name you pass is used to create a reference node. When a node is removed the internal node is deleted first, so by the time your notification is received its not there which causes find() to fail.
2.0.0.GA will have remote pojo notification support, so I would recommend switching to that when its available.
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044555#4044555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044555
19 years, 1 month
[JBoss jBPM] - jBPM project, Eclipse, JBPM Library
by simonbaker
Could someone help me understand something about Eclipse and Libraries and JBPM projects? When I start a new JBPM project, the JBPM Library is pre-configured as one of the libraries in the Project | Properties | Java Build Path | Libraries tab.
If I delete the JBPM Library, I can't figure out how to get it back. Is this something only the plug-in can do at project creation, or is there a way to add the JBPM Library to any project? Where does this library come from?
A related question is: is it possible to create a plain Java project and turn it into a JBPM project by adding objects and setting preferences, or can you only create a JBPM Project by starting with the File | New | Project | JBoss jBPM ...
One of the reasons for the question is that I'm trying to strip down to the minimum libraries needed for our JBPM application, which will not be using JBOSS, and maybe not all the JBPM features. I could try deleting jars from the JBPM Library, but it seems it would be better to create my own User Library as a copy of the JBPM Library and then start deleting jars to see if any are not necessary. However, if I replace the JBPM Library in my project with my User Library, I'd like to be able to go back to the JBPM Library if necessary.
I'm new to Eclipse, so in the dark on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044548#4044548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044548
19 years, 1 month
[JBoss Messaging] - Re: Can't run example (JBoss Messaging 2.1)
by tamaluna
In conf\jboss-service.xml there's
<mbean code="org.jboss.management.j2ee.LocalJBossServerDomain"
| name="jboss.management.local:j2eeType=J2EEDomain,name=Manager">
| ...
| <attribute name="JMSService">jboss.mq:service=DestinationManager</attribute>
| ...
In conf\login-config.xml there's <!-- Security domain for JBossMQ -->
| <application-policy name = "jbossmq">
| <authentication>
| <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag = "required">
| <module-option name = "unauthenticatedIdentity">guest</module-option>
| <module-option name = "dsJndiName">java:/DefaultDS</module-option>
| <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
| <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
| </login-module>
| </authentication>
| </application-policy>
In conf\standardjboss.xml there are two instances, like this: <invoker-proxy-binding>
| <name>singleton-message-driven-bean</name>
| <invoker-mbean>default</invoker-mbean>
| <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
| <proxy-factory-config>
| <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
| <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
| <CreateJBossMQDestination>true</CreateJBossMQDestination>
| ...
And of course there's lib\jbossmq.jar
What can I do about this?
~PT
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044547#4044547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044547
19 years, 1 month