[JCA/JBoss] - Re: Siebel Resource Adapter for JBoss
by mandarkul
Hi Weston,
I will just explain the scenario,
1) When I call factory.getConnection() method the container calls the "createManagedConnectionConnection" method with an instance of "ConnectionManager" being passed as an argument.If I print the class-name the output is "BaseConnectionManager2" class of JBoss.
2) We are expecting the entire control being taken over by JBoss.Similarly the task of creating the connection and attaching a listener to it is expected to be done by the ConnectionManager.Therefore we are relying on BaseConnectionManager2 to create a connection and attach a listener to it.
3) In ManagedConnection's close method we are invoking the listeners explicitly.So as per our understanding the task of associating a Connection with its litener is the task of JBoss and not our RA. Correct me If I m wrong.
ManagedConnection's close method and "notifyClose" method that invokes the listeners attached to the connection.
public void close() {
| notifyClose();
| myConnection.invalidate();
| }
|
| public void notifyClose() {
| ConnectionEvent ce = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
| ConnectionEventListener cel = null;
| for(Iterator i = eventListeners.iterator(); i != null && i.hasNext();) {
| Object obj = i.next();
| System.out.println("Event Listener Class = " + obj.getClass().getName());
| cel = (ConnectionEventListener)obj;
| cel.connectionClosed(ce);
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023473#4023473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023473
19Â years, 1Â month
[JBoss Messaging] - Jboss ESB Generic methods + Documentation
by mishra.piku
Hi Guys ,
>From the documentation I was able to run the sample application provided by Jboss People. But I am unable to track the flow of the application. I want to develop a generic method so that the developer will call that method to send a Message and he will get a response Message. Can anybody tell me how to develop a customized ESB application so that it can be used in the application. I need a stater guide to achieve this. I would like to make it more specific that a message will go in one Queue and response will be acknowledged in another Queue.
My method structure will be like this
public Message sendAndGet(Message msg,... some other parameters)
{
//Receive the message and send it to Queue A
//make a webservice call
//Generate a response message
//Send the response message to the caller
//The response message should come from the Queue B
}
If I get any response in this regard, I will be obliged to the Jboss community.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023467#4023467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023467
19Â years, 1Â month
[JBoss Seam] - Re: Seam 1.2 released
by dmp
Based on the stack trace below, I don't think my little hack worked. Since the this server running this code sits behind a fairly restrictive proxy, how can I fix this problem?
tia,
-Doug
Exception during request processing: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
| org.dom4j.io.SAXReader.read(SAXReader.java:484)
| org.dom4j.io.SAXReader.read(SAXReader.java:343)
| org.jboss.seam.util.XML.getRootElement(XML.java:16)
| org.jboss.seam.core.Pages.getDocumentRoot(Pages.java:791)
| org.jboss.seam.core.Pages.parse(Pages.java:781)
| org.jboss.seam.core.Pages.createPage(Pages.java:172)
| org.jboss.seam.core.Pages.getPage(Pages.java:147)
| org.jboss.seam.core.Pages.createPageStack(Pages.java:229)
| org.jboss.seam.core.Pages.getPageStack(Pages.java:208)
| org.jboss.seam.core.Pages.applyRequestParameterValues(Pages.java:593)
| org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:176)
| org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:57)
| org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
| org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023463#4023463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023463
19Â years, 1Â month
[Beginners Corner] - Two basic questions from a new potential user
by wjscott
Hello all,
I really appreciate the time you are taking to look into this. Thanks in advance.
Question 1: J2EE Question
I want to implement EJB3 using JBoss on a Solaris server for JSP, Servlets, and Web Services. Is it possible to implement a persistent/transactional model with using enterprise beans and session / message beans and still keep a library that can be used on a disconnected client application? Currently we use our library to manage a list of people for example in our client/server model as well as a single standing swing application. Can I continue to use that library in both client and server?
Question 2: JBoss Deployment Question
We currently use Tomcat for our web application. The problem is that we cannot deploy without people losing their sessions. We pretty much have people in our system 24/7 so that poses a problem. Can JBoss support deployment of new web applications without the current users losing their sessions?
Thanks in advance to everyone that can help me out.
Jared
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023455#4023455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023455
19Â years, 1Â month