[JBossWS] - Re: how to set headers in JAX-WS
by alessio.soldano@jboss.com
I investigated this a bit further... first of all, the reason why you don't get the parameter corresponding to the soap header is that the JAX-WS specs say that only the wsdl:part from the abstract portion of the contract (i.e. the wsdl:portType section) are mapped to Java method parameters.
I see three possible solutions to this, unfortunately they're all not so easy / for beginners:
- manually modify the wsdl before consuming it, in order to let wsconsume generate the soap header parameter too
- create a SOAPHandler and mess with SAAJ to manually add the header when sending the message
- leverage SunRI tool (wsimport), which starting from v. 2.1.3 has a new option -XadditionalHeaders that map additional headers in wsdl:binding section as method parameters.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116960#4116960
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116960
18 years, 3 months
[JBoss Seam] - Re: pages.xml & param
by kooudy
I have discovered following:
1. When I come to page detail.jsp for the first time, param name is included in URL (but I don't need that here :) ).
2. When param tag isn't as a child of redirect tag, then after invoking search.actionSearch param name isn't included in URL although it is defined in page tag.
Reference guide:
anonymous wrote : Any navigation rule with a redirect to the view id transparently includes the request parameter. The
| value of the parameter is determined by evaluating the value binding at the end of the invoke application
| phase.
3. Model isn't updated according to param name (GET request with name param).
Reference guide:
anonymous wrote :
| The param declaration is bidirectional, just like a value binding for a JSF input
| When a non-faces (GET) request for the view id occurs, Seam sets the value of the named request parameter
| onto the model object, after performing appropriate type conversions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116959#4116959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116959
18 years, 3 months
[JBoss Seam] - Calling the same method on different beans from the same act
by kummer
I am trying to reuse a facelets file in various use cases with a different stateful session bean managing each use case.
In order to do that the beans outject themselves as "manager". For example:
| @Stateful @Name("auditOrderManager") public class AuditOrderManager {
| @Out AuditOrderManager manager = this;
| @In private FacesMessages facesMessages;
| @Begin(nested=true) public void doSelectOrder() {...}
| }
|
and
| @Stateful @Name("cancelOrderManager") public class CancelOrderManager {
| @Out CancelOrderManager manager = this;
| @In private FacesMessages facesMessages;
| @Begin(nested=true) public void doSelectOrder() {...}
| }
|
In an action attribute a call is made to a method, which is present on all these different managers.
| <h:column>
| <f:facet name="header">Ta-Nr</f:facet>
| <s:link value="-"
| action="#{manager.doSelectOrder}"/>
| </h:column>
|
The doSelectMethod of the correct manager does get called, but appearantly the annotations have no effect. The facesMessages component is not injected and the conversation doesn't nest. Giving a concrete component name in the action solves that problem but precludes reuse. Since the same fragment is used all over the application I would rather not have a spearate instance of it for each manager.
Is there a way to achieve reuse in this case?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116957#4116957
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116957
18 years, 3 months
[EJB 3.0] - Re: One PersistenceUnit, multiple DataSources
by fla83tn
I tried to do as you adviced but I get the following error on jboss4.2.2-GA
[Configuration] Reading mappings from resource : persistence-mapping-file.xml
10:02:10,488 ERROR [AbstractKernelController] Error installing to Start: name=persistence.units:unitName=NewsCrawlerPu state=Create
javax.persistence.PersistenceException: [PersistenceUnit: NewsCrawlerPu] Unable to find XML mapping file in classpath: ../persistence-mapping-file.xml
at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:892)
I want to deploy a ear file containing a WAR and JAR archives.I inserted the persistence.xml both in the WAR and JAR (under WEB-INF and META-INF respectively), do I have to ass it also to the classpath on the Manifest of the archives?
Flavio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116953#4116953
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116953
18 years, 3 months