<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: how to migrate jboss-wsse-server.xml setting of jboss 5 to jboss 7.1?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/aupres">Joseph Hwang</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/820659#820659">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Alessio, I reproduced ws-security of jbossws-cxf successfully with your document. And I have a few suggestions to Jbossws-cxf ws-security implementation. </p><p>As you know, jpa provides the persistence.xml. With this file Eclipse IDE user can interact and set properties with hibernate. For your understanding, this is the sample.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;persistence xmlns="<a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" rel="nofollow">http://java.sun.com/xml/ns/persistence</a>" xmlns:xsi="<a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br/>&#160;&#160;&#160;&#160;&#160; xsi:schemaLocation="<a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" rel="nofollow">http://java.sun.com/xml/ns/persistence</a> <a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" rel="nofollow">http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd</a>" version="2.0"&gt;</p><p> &lt;persistence-unit name="MyFamily"&gt;<br/>&#160; &lt;jta-data-source&gt;java:jboss/datasources/MySqlDS&lt;/jta-data-source&gt;</p><p>&#160; &lt;properties&gt;<br/>&#160;&#160; &lt;property name="hibernate.show_sql" value="true"/&gt; <strong>==&gt; these elements can set the properties to hibernate and generate table automatically when build</strong><br/>&#160;&#160; &lt;property name="org.hibernate.hbm2ddl" value="update"/&gt;&#160; <strong>==&gt; these elements can set the properties to hibernate and generate table automatically when build</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160; &lt;property name="org.hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/&gt;&#160; <strong>==&gt; these elements can set the properties to hibernate and generate table automatically when build</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;/properties&gt; <br/> &lt;/persistence-unit&gt;<br/>&lt;/persistence&gt;</p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>jaxws-endpoint-config.xml of jbossws-cxf&#160; in eclispe IDE has no such functions. jaxws-endpoint-config.xml in eclispe IDE throws no exception even when it is</p><p>invalid xml file. And in wsdl I have to type in &lt;wsp:Policy&gt; element manually , even namespaces.</p><p>Alessio! I suggest that Eclipse IDE user can implement jbossws-cxf ws-security easily and automatically with jaxws-endpoint-config.xml. I want two fuctions to be provided to jaxws-endpoint-config.xml.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1. During building and deploying web services in eclipse IDE, &lt;wsp:Policy&gt; element is generated automatically in wsdl with the property settings of jaxws-endpoint-config.xml file. wsdl can be generated in Eclipse IDE during deployment.</p><p>2. During building and deploying web services in eclipse IDE, jaxws-endpoint-config.xml throws exceptions when settings are not correct.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>How about my suggestion? If you agree, I will post this issue on JIRA for your development. </p><p>I am an author of JBoss AS and preparing for next JBoss AS 8, wildfly. In my next book about wildfly with eclipse, I want to add ws-security section. I am sure this will be helpful to implement ws-security in jbossws-cxf.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am waiting your positive reply. Thanks! <span> ;) </span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/820659#820659">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>