[JBoss Web Services] - Using JBoss 4.2.3 as a webservice client, and signing it
by Arian van Dongen
Arian van Dongen [http://community.jboss.org/people/dongenar] created the discussion
"Using JBoss 4.2.3 as a webservice client, and signing it"
To view the discussion, visit: http://community.jboss.org/message/605413#605413
--------------------------------------------------------------
Hi,
I'm using JBoss 4.2.3.GA with java 5.
I created a webservice client which I generated the source code for from a wsdl with the next command in the bin folder:
wsconsume -k -o target -s source wsdlname.wsdl
I put this code in a generated jar which I am using in my client jar. I package my client jar in a war file and and package this war file in an ear.
When I deploy the ear in my container my client works as it should be. So far so good.
Now I need to implement that the soap message that is being send needs to be signed.
I've found the following "tutorial on the web which I followed":
http://www.developer.com/java/other/article.php/10936_3802631_4/Securing-... http://www.developer.com/java/other/article.php/10936_3802631_4/Securing-...
What I did is the following:
1. used keytool to create the client certificate ( I did not generate a server certificate, because I receaved it form the server)
2. added a JBoss-wsse-client.xml file to the META-INF folder
3. added a standard-jaxws-client-config.xml to the META-INF folder
I created a client and run it from the jboss/bin folder with wsrunclient.bat, this works fine.
Trying in in the container:
Now I packaged this all in my ear and tried to run it but it looks like the container does not see the configuration files in the META-INF folder. The webservice still works, but no security signature is added when it is send.
Could anyone help me what am I doing wrong? Should these files be placed in another location (not in the META-INF form the client.jar? Should anything else be configured, or should some jars be included in the classpath for this to work?
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/605413#605413]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months
[Datasource Configuration] - Get user info from DataSource connection
by Steven Bruce
Steven Bruce [http://community.jboss.org/people/mspbrst2] created the discussion
"Get user info from DataSource connection"
To view the discussion, visit: http://community.jboss.org/message/610236#610236
--------------------------------------------------------------
Is it possible to determine which users are using data pool connections? Or, which subpools are using pool connections?
My JBoss server connects to an Oracle DB, and currently we are maxing out the data pool connections for a specific data source. Since we are using subpools, the information that I am receiving from the mbean server attributes for the ManagedConnectionPool does not give me an accurate enough picture of what is really happening. By this I mean that if the max number of connections for DataSource XYZ is 10, I should have 10 connections for both user A and user B. But if user A has 8 connections and user B has 8 connections, when I retrieve my InUseConnection count from the ManagedConnectionPool, it tells me that I have 16 in use when my max is 10. Thus, I would like to be able to tell how many I have per subpool so that I have more information to analyze.
Ideally, I would like to be able to see which oracle users are using the connections, however, if the subpools are defined differently than by usernames, it would also be nice if I could see which subpools are using the connections.
Is this possible?
I'm using JBoss 4.2.3 GA if that helps.
Thanks,
Steven
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/610236#610236]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months