[jboss-user] [JBossWS] - Re: WebServices logging
Hi I tried out the recording sample in jboss 3.1.0 WS. I just took out the recording sample alone from /root/jbossws-native-src-dist/modules/testsuite/framework-tests/src/test/java/org/jboss/test/ws/management/recording It throws exception java.lang.IllegalArgumentException: Cannot obtain 'null/management-recording-native.jar'. System property 'test.archive.directory' not set. at org.jboss.wsf.test.JBossWSTestHelper.getArchiveFile(JBossWSTestHelper.java:276) at org.jboss.wsf.test.JBossWSTestHelper.deploy(JBossWSTestHelper.java:66) the property is set in the ant process. How can i run separately View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4223417#4223417 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4223417 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Hi all Thanks for the reply and your time, Now, I have moved to jboss 4.2.3 GA. I could find the record processors installed. I enabled recording for both log recorder and memory buffer recorder. In the web service endpoint, I provided the config | @WebService() | @EndpointConfig(configName = Standard Endpoint) | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) | I had enabled web service trace too, in the jboss_log4j.xml But could not find any recording in server.log :-( regards KRS View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4218477#4218477 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4218477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
The documentation clearly says the Record Management is available starting from version 2.0.3. Which version of JBossWS are you using? The version that comes with JBoss 4.2.2.GA is 2.0.1.SP2, thus if you did not change anything about that, you would simply need to upgrade to a more recent version. In that case, take a look at the supported target containers matrix : http://jbossws.jboss.org/mediawiki/index.php?title=Supported_Target_Containers This said, for a simple use of the Record Management with Native stack you don't need to do anything special besides going to the JMX console and activate the recording flag in the already installed LogRecorder instance for you endpoint. No implementation required, no changes to the endpoint config required (assuming you're using one of the provided endpoint configuration). The LogRecorder will simply log every message going through your endpoint into your server.log. Further customization and usescases are explained in the documentation, I'm sure you'll understand everything easily once you have that stuff (i.e. you using a jbossws version that has that). Also consider taking a look at the testcases in the sources, package org.jboss.test.ws.management.recording. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4215153#4215153 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4215153 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Read Records Management Framework documentation above, please. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214792#4214792 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Hi I read through the Records management framework documentation. But i Could not figure out how to achieve it.. The implementation portion in the document is not clear. Somehow i figured out /home/krs/mobicents-all-1.2.0.BETA3-jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/deploy/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml and added the bean properties for the recorders. Don't know it is what we need to do. Where will the logged information available.. How to get that.. Could u specify implementation specific details.. or point to any other links View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4215120#4215120 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4215120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Also i found that the default standard endpoint config at jboss-4.2.2.GA/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-endpoint-config.xml has no pre-handler-chains Element in it The config is endpoint-config | config-nameStandard Endpoint/config-name | /endpoint-config View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4215122#4215122 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4215122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
How to enable recording - which file has the configuration View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214780#4214780 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Hi all Now that we could not log to database directly. We did the following work around. Wrote the log events as xml elements, using XMLLayout and then watch the log file. Whenever, the log file changed, the application starts and log are inserted into db Next issue we are facing is there is no link between the request and response. Is there any means to identify the response for particular request? or can be extend JBOSS web Trace class? regards KRS View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214361#4214361 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214361 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
mobaxkrs wrote : Next issue we are facing is there is no link between the request and response. | Is there any means to identify the response for particular request? | I'd suggest to use our Records Management Framework. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214371#4214371 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214371 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Another option you have is to use WS-Addressing in your web services and use MessageID correlation identifier to identify which response belongs to which request. Then you could identify related messages using your log4j integration work you already did ;) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4214374#4214374 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4214374 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Try adding priority value=TRACE/ to the category. P.S. When posting XML text or source code, please enclose the text in UBBCode code tags - you can do this by selecting the text and clicking the Code button above the editor window. Also, click the Preview button to ensure that the formatting is correct and the XML text shows up before posting. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4209588#4209588 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4209588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
I have already given that !-- -- !-- All Web Service Trace logged directly to MySQL Database, through JDBC Appender -- !-- -- appender name=JDBC class=org.apache.log4j.jdbc.JDBCAppender | errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/ | param name=Driver value=com.mysql.jdbc.Driver/ | param name=URL value=jdbc:mysql://127.0.0.1:3306/logdb / | param name=user value=root / | param name=password value=root / | param name=sql value=insert into logTable (message, class, priority, log_date) | values ('%m', '%c', '%p', '%d{dd.MM.}')/ | /appender | | category name=org.jboss.ws.core.MessageTrace | appender-ref ref=JDBC/appender-ref | priority value=TRACE/ | /category The same category works if it is for a file appender Pls help View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4209760#4209760 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4209760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
Hi Now all webservices are logged to a file as xml. We need to log in a MySQL database. I used JDBCAppender and the configuration is as shown param name=sql value=insert into logTable (message, class, priority, log_date) values ('%m', '%c', '%p', '%d{dd.MM.}')/ appender-ref ref=JDBC/appender-ref But in the database, i get only debug and info, not the Traces from MessageTrace class Why? regards KRS View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4209358#4209358 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4209358 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
http://jbossws.jboss.org/mediawiki/index.php?title=Log4J View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4208465#4208465 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4208465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WebServices logging
It Works.. Thanks a lot.. I had been beating the bush around for the past 5 days... You saved my work Thanks again for your instant reply. regards KRS View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4208828#4208828 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4208828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user