[JBoss jBPM] - JBoss 3.2.2 Customization issues and correct zip file locati
by ptaborda
Good afternoon to all:
I'm currently trying to integrate jBPM 3 into a new business platform for the utility industry (electricity) started adapting jbpm 3.1.4 and compared to version 3.2.2 and i discovered differences between the databses models used, including diferent coding styles in the jbpm-console. Anyway I decided to dowload the 3.2.2 version from sourceforge but the current zip uploaded there doesn't contain any test cases or the build folder with the ant build files required to make any customization required by my current project, I tried to downloaded the soucre files via CVS using OpenSSH and Eclipse CVS plug-in, but keept receiving connect refuse messages then I decideed to ping the server mentioned on the wiki (anoncvs.forge.jboss.com -> alias for samus.prod.at12.jboss.com/64.74.196.43) but all I got was connection time-out.
Is there any other server or way to get the proper 3.2.2 source files with their ant build files and test cases, this due to what I want to achieve:
1.- Add schema="workflow" to the hibernate mappings
2.- Customized the jbpm-console web console to authenticate to openldap, btw I understood there is a confusion in how to turn-off the identity component in jbpm)
2.- Customized the ejbs to our current environment
JDK 5.0/JBoss 4.2.1; Hibernatr 3.2.5, H Annotations 3.2.0, Postgres SQL 8.2
I have another question I saw changes in the database model between version 3.1.4 and 3.2.2 are there any paper or procedure to migrate from one database model to the other, there will any migration documents any time due to development decisions or maturity of the code sobe can upgrade JBPM versions with the less hassle?
Thanks,
Pedro
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148664#4148664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148664
17 years, 11 months
[JBoss Cache: Core Edition] - Setting eviction policies dinamically
by Sancheski
Hi guys,
I am trying to configure different eviction policies to different regions dinamically and I am facing some problems.
This is what I want:
| Create an eviction policy in /NODE
| Create an evcition policy in /NODE/SUBNODE_1
| Create an eviction policy in /NODE/SUBNODE_2 and so on
| Even create an eviction policy in /NODE/SUBNODE_1/SUBNODE_A and so on
|
|
| I expected that I could create them dinamically as I am able to create them using the tree cache config file, but I have encountered some problems.
|
| First of all, if I try to create a new eviction for, let's say /NODE/SUBNODE_1, and /NODE already had one, it throws a
| RegionNameConflictException because at the time of creating the new Region (/NODE/SUBNODE_1) it checks for region conflicts. As I see in the source code, it will never allow to create a new Region under an existing one. Should work that way?
|
| Secondly, I tried to remove any parent region of a given one from the RegionManager to avoid conlflicts from first point, and then configure all eviction policies bottom-up. That is, following last example, first I set an evcition policy to /NODE/SUBNODE_1 and then to /NODE.
|
| In this case, it seems that everything is configured fine, but only the eviction policy configured for every subnode is working. As I see, there are no node entries in the eviction queue for the parent region, check it out yourself below:
|
|
| | /NODE/
| | class org.jboss.cache.eviction.FIFOConfiguration
| | LFUConfiguration: maxNodes = 2
| | Nodes in eviction queue: 0
| |
| | /NODE/SUBNODE_1
| | class org.jboss.cache.eviction.FIFOConfiguration
| | LFUConfiguration: maxNodes = 5
| | Nodes in eviction queue: 2
| |
|
| This is, mainly, how I set the eviction policies:
|
|
| | public final void addEvictionPolicy(EvictionPolicy evictionPolicy,
| | String fqn) {
| | // Activate eviction Policies
| | RegionManager regionMgr = getUnderlyingTreeCache().getEvictionRegionManager();
| | // get EvictionConfiguration
| | EvictionConfiguration config = getEvictionConfiguration(evictionPolicy);
| | if (regionMgr.hasRegion(fqn)) {
| | Region region = regionMgr.getRegion(fqn);
| | region.setEvictionConfiguration(config);
| | logger.debug("Region[{}] configured with {}", fqn, somEvictionPolicy);
| | } else {
| | EvictionPolicy policy = getEvictionPolicy(evictionPolicy);
| | policy.configure(getUnderlyingTreeCache());
| | try {
| | regionMgr.createRegion(fqn, policy, config);
| | } catch (RegionNameConflictException e) {
| | logger.error("Region Name conflict", e);
| | }
| | logger.debug(
| | "Region[{}] does not exist in RegionManager. Created and configured with {}",
| | fqn, evictionPolicy);
| | }
| | }
| |
|
| Hope someone have any idea of how to set dinamically an eviction policy over a region that already its own parent region has one set. By the way, I am using JbossCache 1.4.1.SP8 and JbossAS-4.2.2
|
| I think this is a normal case that it could come up in a real application, so I think that someone who already had at any time encountered this requirement could help me.
|
| Thanks in advance!
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148656#4148656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148656
17 years, 11 months
[JBoss Cache: Core Edition] - Re: Remoting On Existing POJO Channel
by kblanken
Hi there,
thank you, Shorrockin, for describing the problem and more importantly the solution in detail. In fact, I'm having the very same problem of creating a TreeCache instance with a multiplexer channel (JBoss Cache 1.4.1.SP9).
Here's my code:
JChannelFactory factory=new JChannelFactory();
| factory.setMultiplexerConfig(getClass().getResource("stacks.xml"));
| Channel channel = factory.createMultiplexerChannel("udp-safe", cacheName);
| channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
|
| cache = new TreeCache((JChannel) channel);
|
| PropertyConfigurator configurator = new PropertyConfigurator();
| configurator.configure(cache, getClass().getResourceAsStream("replSync-pessimistic-service.xml"));
|
| cache.createService();
| cache.startService();
When executing this code, the last line of this snippet hangs. The stacktrace is
Vector(Object).wait(long, int) line: not available [native method]
| Vector(Object).wait() line: 199
| TreeCache.getCoordinator() line: 1840
| TreeCache.determineCoordinator() line: 1818
| TreeCache.startService() line: 1580
|
Obviously no one is calling notify() on the Vector object. The only place this could happen is in the viewAccepted method of the MembershipListener interface. As this is just what Shorrockin has described, it seems to me that he has had the same problem back then.
Am I missing something here? BTW, I'm outside JBoss AS, so I can't access the cache MBean. (Can I?)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148654#4148654
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148654
17 years, 11 months