Joseph Hwang [
https://community.jboss.org/people/aupres] created the discussion
"Re: how to migrate jboss-wsse-server.xml setting of jboss 5 to jboss 7.1?"
To view the discussion, visit:
https://community.jboss.org/message/820659#820659
--------------------------------------------------------------
Alessio, I reproduced ws-security of jbossws-cxf successfully with your document. And I
have a few suggestions to Jbossws-cxf ws-security implementation.
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.
<persistence xmlns="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="MyFamily">
<jta-data-source>java:jboss/datasources/MySqlDS</jta-data-source>
<properties>
<property name="hibernate.show_sql" value="true"/> *==>
these elements can set the properties to hibernate and generate table automatically when
build*
<property name="org.hibernate.hbm2ddl" value="update"/>
*==> these elements can set the properties to hibernate and generate table
automatically when build*
<property name="org.hibernate.dialect"
value="org.hibernate.dialect.MySQL5Dialect"/> *==> these elements can set
the properties to hibernate and generate table automatically when build*
</properties>
</persistence-unit>
</persistence>
jaxws-endpoint-config.xml of jbossws-cxf in eclispe IDE has no such functions.
jaxws-endpoint-config.xml in eclispe IDE throws no exception even when it is
invalid xml file. And in wsdl I have to type in <wsp:Policy> element manually , even
namespaces.
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.
1. During building and deploying web services in eclipse IDE, <wsp:Policy> 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.
2. During building and deploying web services in eclipse IDE, jaxws-endpoint-config.xml
throws exceptions when settings are not correct.
How about my suggestion? If you agree, I will post this issue on JIRA for your
development.
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.
I am waiting your positive reply. Thanks! ;)
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/820659#820659]
Start a new discussion in JBoss Web Services at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]