[JBoss Cache] - does jboss JGroup membership affect Cache cluster,
by Bond Chan
Bond Chan [https://community.jboss.org/people/bondchan921] created the discussion
"does jboss JGroup membership affect Cache cluster,"
To view the discussion, visit: https://community.jboss.org/message/742940#742940
--------------------------------------------------------------
Q2.1: Jboss TreeCache have been configure "*FD timeout"*, is this the real timeout or is the value of parameter *SyncReplTimeout* when decide remove cache from ClusteredCacheView
Q2.2: in the following cache log clip, it seems node lost in the JGroup, cause the node lost in the CacheView, my question is the CacheView maintained by the answer of Q2.1 and the JGroupView ?
(1099 is JNDI port, 7930 is replication cache port, 7920 is invalidation cache port, 7910 is the ControlChannel port, 7900 is the DataChannel port 7800 is JGroup port)
2012-06-14 03:28:01,049 New cluster view for partition PRODPartition_HA: 12 ([10.164.107.69:1099, 10.164.218.18:1099, 10.164.107.65:1099] delta: -1)
2012-06-14 03:28:01,091 viewAccepted(): [10.164.107.69:7930|12] [10.164.107.69:7930, 10.164.218.18:7930, 10.164.107.65:7930]
2012-06-14 03:28:01,057 I am (10.164.107.65:1099) received membershipChanged event:
2012-06-14 03:28:02,047 Dead members: 1 ([10.164.218.14:1099])
2012-06-14 03:28:02,161 New Members : 0 ([])
2012-06-14 03:28:02,161 All Members : 3 ([10.164.107.69:1099, 10.164.218.18:1099, 10.164.107.65:1099])
2012-06-14 03:28:02,161 Suspected member: 10.164.218.14:7800
2012-06-14 03:28:02,293 viewAccepted(): [10.164.107.69:7920|12] [10.164.107.69:7920, 10.164.218.18:7920, 10.164.107.65:7920
4.3.0.GA_CP07
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742940#742940]
Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - Multiple Threads on a Stateful Session
by Richard Evans
Richard Evans [https://community.jboss.org/people/r3vans] created the discussion
"Multiple Threads on a Stateful Session"
To view the discussion, visit: https://community.jboss.org/message/744840#744840
--------------------------------------------------------------
I am trying to get an multi-threaded application to run against a single kSession.
I have made every serviceTask asynchronous but I CANNOT eliminate problems that I think are related to persistence context.
Each Handler lools like this:
executeWorkItem(WorkItem workItem, WorkItemManager manager ) {
WorkHandlerRunner task = new WorkHanderRunner ( kSession, workItem, this)
threadPoolTaskExecutor.execute ( task )
}
WorkHandlerRunner run looks like this
Constructor saves kSesssion, workItem and workItemHandler
run() {
WorkItemManager manager = kSession.getWorkItemManager()
results = runInTransaction ( manager )
manager.completeWorkItem ( workItem.getId(), results)
}
@Transactional
Map<String, Object> runInTransaction ( WorkItemManager manager) {
// the doExecute does the business work and does not call into kbpm code
return handler.doExecuteWorkItem (workItem, manager)
}
When run it sometimes works for a while but eventually falls over with a mixture of exceptions like
- JPAWorkItemManager.internalWorkItem ( JPAWorkItemManager.java 43 ) - NPA
- ProcessInstanceImp.getProcess ( kruntime null )
I am trying to get a better handle on what happens and when but wonder whether at this light level of reporting someone can spot the obvious mistake.
Cheers,
Richard
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744840#744840]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss Tools] - [m2e] [maven-bundle-plugin] Adding OSGI bundle resource to a server
by Eric Belanger
Eric Belanger [https://community.jboss.org/people/ebelanger070] created the discussion
"[m2e] [maven-bundle-plugin] Adding OSGI bundle resource to a server"
To view the discussion, visit: https://community.jboss.org/message/743172#743172
--------------------------------------------------------------
Greetings,
I'm using JBoss Tools 3.3.0 (Latest version on the Eclipse Marketplace), Eclipse 3.7, Maven 2 Eclipse (M2E) and JBoss AS 7.1.1.
I'm having a problem with the 'Servers' view not discovering my maven project as an OSGI resource when selecting the 'Add and Remove...' context menu option. A normal project that was created as a Plugin Project with Eclipse will be discovered though. So far, I know that the project nature 'org.eclipse.pde.PluginNature' is configured in the M2E generated .project file, so this doesn't seem to be the trigger for discovery.
Funny thing is that if I configure the maven project to not generate the PluginNature and then convert the maven project to a Plugin Project, JBoss Tools will now discover this project. The only problem is that this operation needs to be done each time a maven project is imported into the workspace.
I also looked into adding the project to the eclipse target platform, but that doesn't seem to be it either.
In brief, I am wondering what 'triggers' a workspace project to be discovered as an osgi resource for the JBoss Tools.
Thank you for your time.
Eric
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/743172#743172]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[JBoss Web Services] - JBOSS-WS verify password Digest manually at the server
by Ken Barnes
Ken Barnes [https://community.jboss.org/people/kenbarnes] created the discussion
"JBOSS-WS verify password Digest manually at the server"
To view the discussion, visit: https://community.jboss.org/message/744889#744889
--------------------------------------------------------------
I am using jboss 5.1.0.GA and jbossws-3.1.2.GA.
I am attempting to verify the password digest on the server side outside of the Jaas module like so
private void testSHA(String nonce, String created, String passwordDigest) {
Base64 encoder = new Base64();
String concat = nonce + created + "password";
try {
MessageDigest md = MessageDigest.getInstance("SHA1");
md.update(concat.getBytes());
byte[] arr = md.digest();
String fin = encoder.encodeBase64String(arr);
System.out.println("fin: "+fin);
System.out.println("dig: "+pd);
} catch (NoSuchAlgorithmException ex) {
Logger.getLogger(NtcssWsSecurityServer.class.getName()).log(Level.SEVERE, null, ex);
}
}
All values are pulled off the soap header and the "password" is shared.
If I use SOAP UI to submit the request, with nonce,created, and password digest I can never get the digest to match up. Also It looks like the nonce is Base64 encoded and Hashed at the server.
What Am I missing.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744889#744889]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - Re: Log tables not persisted
by Rajan Vij
Rajan Vij [https://community.jboss.org/people/rajvij] created the discussion
"Re: Log tables not persisted"
To view the discussion, visit: https://community.jboss.org/message/742563#742563
--------------------------------------------------------------
Hi Rajan,
Something like that is alos happening with me as well. I have created process and they are perfectly working fine, but I really don't c any of them in my DB. There is only one entity that I have created is available with data in db.
Properties in persistence.xml
<
property name=++"javax.persistence.jdbc.driver"++ value=++"org.h2.Driver"++ />
<property name=++"javax.persistence.jdbc.url"++ value=++"jdbc:h2:tcp://localhost/~/test;DB_CLOSE_DELAY=-1;MVCC=TRUE"++ />
<property name=++"javax.persistence.jdbc.user"++ value=++"sa"++ />
<property name=++"javax.persistence.jdbc.password"++ value=++""++ />
<property name=++"hibernate.show_sql"++ value=++"true"++ />
<property name=++"hibernate.hbm2ddl.auto"++ value=++"create"++ />
and I don't see test.h2.db being created as well.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742563#742563]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months