Hey, I'd like to get your opinion regarding openejb-jar.xml descriptor. I need to change the JNDI pattern as explained here http://openejb.apache.org/3.0/jndi-names.html http://openejb.apache.org/3.0/jndi-names.html . So, i created a new file openejb-jar.xml containing: <openejb-jar> <properties> openejb.jndiname.format = <my pattern> </properties> </openejb-jar>
It works like a charm :) Now, in the same module, i need to activate WS-Security like explained here http://openejb.apache.org/securing-a-web-service.html http://openejb.apache.org/securing-a-web-service.html . <openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2"> <enterprise-beans> ... <session> <ejb-name>CalculatorImpl</ejb-name> <web-service-security> <security-realm-name/> <transport-guarantee>NONE</transport-guarantee> <auth-method>WS-SECURITY</auth-method> <properties> wss4j.in.action = UsernameToken wss4j.in.passwordType = PasswordDigest wss4j.in.passwordCallbackClass=org.superbiz.calculator.CustomPasswordHandler </properties> </web-service-security> </session> ... </enterprise-beans> </openejb-jar> It works like a charm too ;-) Actually, if i need to activate WS-Security and I need to customize the JNDI template in the same module i can't. Basically, to customize JNDI template, i need to create an oepnejb-jar.xml file version 3! The ws-security feature is available in the version 2! I dug into the ReadDescriptors class. I seems like we first try to load a version 3, and as a fallback option, we try to load the version 2! IMHO, we could use namespace to mix information from different version. Any thoughts? JLouis -- View this message in context: http://n4.nabble.com/openejb-jar-xml-version-3-vs-2-tp1568849p1568849.html Sent from the OpenEJB Dev mailing list archive at Nabble.com.
