[JBoss Web Services] - Re: How can I do mutual SSL when using JBoss as Web service
by Richard Gomes
Richard Gomes [http://community.jboss.org/people/richard.anywhere] created the discussion
"Re: How can I do mutual SSL when using JBoss as Web service"
To view the discussion, visit: http://community.jboss.org/message/570402#570402
--------------------------------------------------------------
As this is high on the Google search results for "jboss WS Client Mutual Certificate" and doesn't have a posted resolution, I thought I'd post what I did to get everything working.
The basic principle here is that BOTH the Web Service (WS) and the Web Service Client (WS-C) need to have the other's key stored as "trusted". Specifically, the following needs to be set ON BOTH SIDES:
-Djavax.net.ssl.trustStore=/home/dev/.truststore
-Djavax.net.ssl.trustStorePassword=changeit
Now, both sides also need their own keystore. The key of WS needs to be trusted by WS-C and vice-versa. Set the following ON BOTH SIDES:
-Djavax.net.ssl.keyStore=/home/dev/.keystore
-Djavax.net.ssl.keyStorePassword=changeit
To get something up and running quickly, use the same keystore and truststore on both sides ... even simpler, you can create a new keystore and simply copy the output file to also become the truststore:
$JAVA_HOME/bin/keytool -genkey -alias jboss -keyalg RSA
cp .keystore .truststore
You can also do an explicit import to load a key into a truststore:
keytool -import -alias jboss -file certificate -storepass changeit -keystore .truststore
This all worked for me. If possible, please provide feedback on gotchas or success stories relating to the above.
All the best,
Richard
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570402#570402]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[JBoss Messaging] - Clustering and failover question
by Nikos Massios
Nikos Massios [http://community.jboss.org/people/massios] created the discussion
"Clustering and failover question"
To view the discussion, visit: http://community.jboss.org/message/587422#587422
--------------------------------------------------------------
Dear all,
We are working on an ESB 4.6 system clustered with 2 nodes. It is running on jboss 5.1 with oracle as an underlying database. We are facing the following problem relating to jms clustering.
1. Initially both node1 and node2 are up and running with node1 as the master node.
2. The ESB application uploads a message to the queue with name "queue_a" through node1.
3. We stop node1. Now only node2 is running and it has taken over as the master node.
4. We UNSUCCESSFULLY try to consume the message in "queue_a" through node2. No error message appears but message remains
in the queue. Basically the client waits in the blocking read message method.
If we perform a select on the messaging database we can find the message we posted on "queue_a" but "queue_a" appears 2 times in the post_office table, one time per each node_id.
Is there a way to configure jboss messaging so that a node that is running can read the messages of a node that has failed or has been shut down?
Thanks in advance,
Nikos.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587422#587422]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[JBoss Web Services] - Editing an outbound soap message
by Branislav Milojkovic
Branislav Milojkovic [http://community.jboss.org/people/crazypenguin] created the discussion
"Editing an outbound soap message"
To view the discussion, visit: http://community.jboss.org/message/589872#589872
--------------------------------------------------------------
Hi all,
I have a need to intercept an outbound SOAPMessage and add some info to it (used to sign the request).
I am using JBoss version 4.2.3. I get the following exception
...
Caused by: org.jboss.util.NotImplementedException: setTextContent
at org.jboss.ws.core.soap.NodeImpl.setTextContent(NodeImpl.java:652)
...
When invoking the second line from this piece of code:
...
Element element = node.getOwnerDocument().createElement(elementName);
element.setTextContent(elementText);
node.appendChild(element);
...
Now, if i do this in a non-ejb project, the SOAPMessage instance is one from appache-commons and that works fine, since tracking down the node I need leads me to appache implementation of the Node interface, which happens to have the setTextContent method not throw an exception. :)
Now, two solutions that come to my mind is
1) There is another way to modify an outbound SOAPMessage that I am not aware of (*crosses fingers*)
2) Somehow disable SOAP handling from JBoss, which will hopefully result in appache handling it.
Ideas? Hope I'm not giving too few details, I just don't want this message to be any longer than it needs to. (:
Kind regards,
Branislav.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589872#589872]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[JBoss Web Services] - Force MTOM Response in JBossWS-3.1.1.GA
by Marco Strauch
Marco Strauch [http://community.jboss.org/people/fambad] created the discussion
"Force MTOM Response in JBossWS-3.1.1.GA"
To view the discussion, visit: http://community.jboss.org/message/587481#587481
--------------------------------------------------------------
Hi,
How can I force a MOTOM Response although it is not neccessary because I have no binary data in the response.
The reason is follow. I have a foreign test client that sends the request with MTOM enabled and expected that the response is also using MTOM (I think this is a little bit stupid). The client is using AXIS.
In the request the client sends binary data using MTOM but in my response no binary data is available and so JBoss-WS won't enable the Mtom Feature for the response. The result is that the client don't accept my response.
All works fine when my response contains binary data (annotated with "@XmlMimeType("application/octet-stream")" ). Then JBoss-WS creates a mtom response and the client accepted the response.
Is there a workaround to force that MTOM is being enabled?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587481#587481]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 8 months
[jBPM] - jbpm5 not able to run multiple instances of a process
by ritesh adval
ritesh adval [http://community.jboss.org/people/riteshadval] created the discussion
"jbpm5 not able to run multiple instances of a process"
To view the discussion, visit: http://community.jboss.org/message/580755#580755
--------------------------------------------------------------
I ran the sample tests in jbpm-bpmn2 source directory to test if multiple process instance can be run where each instance is not yet finished. It is not working for me. What I observed is that each new instance of a process is getting 1 as the process instance id?
This is what I did:
(1) I configured persistence.xml to use mysql.
(2) I start an instance of process ( https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/B... BPMN2-EventBasedSplit.bpmn2) by running testEventBasedSplit() of org/jbpm/bpmn2/StandaloneBPMNProcessTest, and run it till just before sending Yes signal.
(3) I create another instance of above process and do the same as step (2),
So at this point there should be two process instance which are not yet completed.What I am observing is that two process instance in PROCESSINSTANCELOG have same process instance id. I tried creating one session StatefulKnowledgeSession with two instance and they are getting same instance id.
So when I recreate StatefulKnowledgeSession by using existing sessionid of database, I only get one process instance from the api which returns list of process instance.
Other thing I have noticed is that PROCESSINSTANCEINFO is always empty and no row is inserted there, could this be an issue?
I was able to configure history log to start saving , NODEINSTANCELOG, variable and PROCESSINSTANCELO, I am not sure why PROCESSINSTANCELOG is empty?
Maybe I am missing something, I am new to jbpm and trying to evaluate if we should use jbpm5 or stick to jbpm4.4 for sometime.
-Ritesh.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580755#580755]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 9 months