[Design of JBoss Web Services] - Re: Setting the properties on the JAXBContext
by thomas.diesler@jboss.com
I externalized construction of the JAXBContext in a JAXBHandler which is a property on the Endpoint.
| public interface JAXBHandler
| {
| /** Get a JAXBContext instance.
| */
| JAXBContext getJAXBContext(Class[] javaTypes) throws JAXBException;
| }
|
| public interface Endpoint
| {
| ...
|
| /** Get the JAXBHandler for this endpoint */
| JAXBHandler getJAXBHandler();
|
| /** Set the JAXBHandler for this endpoint */
| void setJAXBHandler(JAXBHandler handler);
|
| ...
| }
|
The JAXBHandler is injected like any other handler
| <bean name="WSEndpointHandlerDeployer" class="org.jboss.wsf.spi.deployment.EndpointHandlerDeployer">
| <property name="requestHandler">org.jboss.wsf.stack.jbws.RequestHandlerImpl</property>
| <property name="lifecycleHandler">org.jboss.wsf.stack.jbws.LifecycleHandlerImpl</property>
| <property name="jaxbHandler">org.jboss.wsf.spi.binding.jaxb.JAXBContextCache</property>
| <property name="invocationHandler">
| <map keyClass="java.lang.String" valueClass="java.lang.String">
| <entry><key>JAXRPC_JSE</key><value>org.jboss.wsf.stack.jbws.ServiceLifecycleInvocationHandler</value></entry>
| <entry><key>JAXRPC_EJB21</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB21</value></entry>
| <entry><key>JAXRPC_MDB21</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerMDB21</value></entry>
| <entry><key>JAXWS_JSE</key><value>org.jboss.wsf.stack.jbws.ServiceLifecycleInvocationHandler</value></entry>
| <entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB3</value></entry>
| </map>
| </property>
| </bean>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057999#4057999
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057999
18 years, 9 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Failover on Shutdown
by clebert.suconic@jboss.com
Can't we create a shutdown method where the sysadmin would be able to give an option for the shutdown type he wants to perform?
Say.. if the sysadmin decides to take the system down when the load is low.. he could decide to merge queues as he is planning the system out for a long period.
The sysadmin already has that option anyway... he would just have to kill the server.. this would be just a cleaner way to do it.
I thought about these options on Shutdown (Consider these options as a brain storm for now):
I - Keep Trying:
(Tell clients to keep trying reconnect until the server is back.. .the user could take that decision for quick restarts). We would need to send a message to every active connection before doing this, closing the valve on clients... and keep trying to connect until the server is back.
II - Shutdown as failover
(Merge queues as it would happen on a regular crash)
III - Just Shutdown
(And throw exceptions to clients.. so client would have to catch exception and retry "a la MQ")
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057910#4057910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057910
18 years, 9 months