[JBoss Messaging] - Receiver got Stopped with Different JBM Version(1.0.X and 1.
by Craig2007
I could able to notice some strange things.
I just tried to upgrade JBM 1.0.1.GA to JBM 1.2.0.GA.
We tried with JBoss AS 4.0.4.GA and JBM 1.2.0.GA.
Our Code was written against JMS Specification 1.1.
We used the same with two JBMs
We used JBM 1.0.1.GA , i started receiver and it was ready to accept the message and it did not close it automatically as all receivers in our codebase will continously wait for the message .It can be closed only by pressing Ctrl+C or sending shutdown control token.
It also worked as expected when we changed to JBM 1.0.1.SP5.
The same code behaved differently when i used JBM 1.2.0.GA.
Receiver started and got closed automatically.I cannot believe it and tried our 5 times ....got the same response.
No Exception at the Client side.
I got a warning at the server console ....same old warning
|
| 19:16:45,759 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 16s:470ms
| 19:19:59,706 WARN [SimpleConnectionManager] ConnectionManager[77f040] cannot look up remoting session ID 5c4o6z10-56l1ob-f4sg55yr-1-f4sg56t5-4
| 19:19:59,706 WARN [SimpleConnectionManager] A problem has been detected with the connection to remote client 5c4o6z10-56l1ob-f4sg55yr-1-f4sg56t5-4. It is possible the client has exited without closing its connection(s) or there is a network problem. Al
| l connection resources corresponding to that client process will now be removed.
|
|
How can it happen ???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069180#4069180
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069180
18Â years, 8Â months
[JBoss Seam] - Re: @DataModel on Stateful beans (broken?)
by sannegrinovero
Hi all, I'm still in need of some good advice; this is currently blocking me.
Converting the getter method with @DataModel to a simple field is working indeed, but this workaround is difficult to apply. I can't really refactor all my code in a clean way to do this, it breaks "clean code" to very ugly callbacks.. our application is quite complex now and many beans vere designed to use this datamodel on a getter method, as the method is actually a delegate.
and IF it is a bug I would need to return to old-style code when it is fixed, to clean up the terrible looking code.
I would really like to know if I have to open a JIRA, as this was working before on seam 1.0.1, 1.1.6, 1.2.0 and 1.2.1 (all which I have used) or if this behaviour will remain so in future editions.
I would really appreciate some information, thanks a lot.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069176#4069176
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069176
18Â years, 8Â months
[JBoss Seam] - Re: Is there a JBossWS client example for invoking a Seam ws
by lowecg2004
Shane,
I can confirm that I no longer get the NPE. httpSession.getAttribute("userId") is still returning null though.
Cheers,
Chris.
PS - my WS code is given in the original post. To complete the picture, here is my client call and how to get at the JSESSIONID:
final DevelopmentService_Service service = new DevelopmentService_Service();
| final DevelopmentService proxy = service.getDevelopmentServicePort();
|
| ((BindingProvider)proxy).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
|
| // the following web service call will create a new HttpSession
| // and attempt a login using the supplied credentials
| final boolean result = proxy.login(username, password);
|
| // Extract the JSESSIONID cookie from the response.
| final Map responseMap = ((BindingProvider)proxy).getResponseContext();
|
| final Map headerValues = (Map)responseMap.get(MessageContext.HTTP_RESPONSE_HEADERS);
|
| final List<String> cookieHeaders = (List<String>) headerValues.get("Set-Cookie");
|
| // You can then use HttpCookie.parse() to parse and process the cookies and test for JSESSIONID etc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069171#4069171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069171
18Â years, 8Â months