[JBoss Web Services] - SSL - TLS renegotiation
by Tomasz Tomasz
Tomasz Tomasz [http://community.jboss.org/people/sonicool] created the discussion
"SSL - TLS renegotiation"
To view the discussion, visit: http://community.jboss.org/message/625828#625828
--------------------------------------------------------------
Hello everybody,
I will be very grateful if you could help me in my problem. I have just installed Jboss-ws-native 3.4.0. Everything would be just great, but it turned out, that there is one big change in implementation of netty (which is being used by WS, and which is being installed with it). The problem is 'TLS renegotiation'. Developers which wrote class 'SslHandler.java' ( http://docs.jboss.org/netty/3.2/xref/org/jboss/netty/handler/ssl/SslHandl... http://docs.jboss.org/netty/3.2/xref/org/jboss/netty/handler/ssl/SslHandl...) turned off this functionality because of the security reasons. The problem is, that I need it. In the class, they make a notice, that if somebody will need to have this funcionality, he can always enabled it in the code. I can't 'modify and recompile' the netty (or jboss-ws). So I wanted to ask, if somebody know, how to enable this funcionality without changing the code of the jar. Maybe there is some kind of properties?
P.S I was also thinking about changing the netty.jar which is being delivered with this jboss-ws-native, from 3.2, to 3.1 (there this funcionality is enabled). What do you think about it?
I would be veeery grateful for any help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/625828#625828]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Messaging] - JMS - duplicate message in Jboss 4.1, but working fine in Weblogic 6
by Vijay DR
Vijay DR [http://community.jboss.org/people/drvijayy2k2] created the discussion
"JMS - duplicate message in Jboss 4.1, but working fine in Weblogic 6"
To view the discussion, visit: http://community.jboss.org/message/626028#626028
--------------------------------------------------------------
We have a application which created in
weblogic 6
jdk1.3
*now we migrate the same into jboss (http://www.coderanch.com/forums/f-63/JBoss) 4.1 with jdk1.6
Issues
*
1. performance is very slow
2. duplicate message calling [it calls repeatedly, so output is like duplicate]
here is our *weblogic 6 jms setting*
view plain (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... to clipboard (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)? (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)
1. <JMSConnectionFactory AllowCloseInOnMessage="false"
2. DefaultDeliveryMode="Persistent" DefaultPriority="4"
3. DefaultTimeToLive="0"
4. JNDIName="com.query.QueryConnectionFactory"
5. MessagesMaximum="-1" Name="Query Connection Factory"
6. OverrunPolicy="KeepOld" Targets="myserver" TransactionTimeout="900"/>
*Java code [queue name we created like mbean] and no problem in the code it works.*
view plain (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... to clipboard (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)? (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)
1. private final static String JMS_FACTORY="com.query.QueryConnectionFactory";
2. private final static String QUEUE_NAME="com.QueryQueue";
3.
4. private static Context ctx;
5.
6. // todo:
7. // can the connection and other variables be lazily created and stored
8. // as private variables instead of each time?
9. public final static void dispatchQuery(String sessionDirectory,
10. final QueryInfo queryInfo)
11. throws ControllerException {
12. try
13. {
14.
15. ctx = getInitialContext();
16.
17. QueueConnectionFactory cf = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
18.
19. QueueConnection queueConnection = cf.createQueueConnection();
20. queueConnection.start();
21.
22. QueueSession session = queueConnection.createQueueSession(false, // non-transacted
23. Session.AUTO_ACKNOWLEDGE);
24.
25. log("Session is: " + session);
26.
27. Queue queue = null;
28.
29. try
30. {
31. queue = (Queue) ctx.lookup(QUEUE_NAME);
32. } catch (NamingException ne) {
33. try
34. {
35. queue = session.createQueue(QUEUE_NAME);
36. ctx.bind(QUEUE_NAME, queue);
37. } catch (Exception e) {
38. e.printStackTrace();
39. }
40. }
41.
42. log("Queue is: " + queue);
43.
44. QueueSender sender = session.createSender(queue);
45.
46. QueryMessage queryMessage = new QueryMessage(sessionDirectory, queryInfo);
47. ObjectMessage om = session.createObjectMessage(queryMessage);
48. log("<<< DISPATCHER.. >> Before Sending message of " + om);
49. sender.send(om);
50. log("Sent message.");
51. } catch (JMSException je) {
52. String message = "Could not send the message due to:\n" +
53. je.getMessage();
54. throw new ControllerException(message);
55. } catch (NamingException ne) {
56. throw new ControllerException(ne.getMessage());
57. }
58. }
JBoss 4.1, the same code not working perfectly.
*jbossmq-destinations-service.xml*
view plain (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... to clipboard (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)? (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)
1. <mbean code="org.jboss.mq.server.jmx.Queue"
2. name="jboss.mq.destination:service=Queue,name=com.query.QueryQueue">
3. <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
4. </mbean>
*JAVA, we used UIL2ConnectionFactory*
view plain (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... to clipboard (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)... (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)? (http://www.coderanch.com/t/552338/JBoss/JMS-duplicate-message-Jboss-but#)
1. private final static String JMS_FACTORY="UIL2ConnectionFactory";
2. private final static String QUEUE_NAME="queue/com.query.QueryQueue";
3.
4. // rest of the code is same as above.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/626028#626028]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[EJB3] - @Pool / @ActivationConfigProperty multitheading problem?
by Martín Urtasun
Martín Urtasun [http://community.jboss.org/people/letincho] created the discussion
"@Pool / @ActivationConfigProperty multitheading problem?"
To view the discussion, visit: http://community.jboss.org/message/625898#625898
--------------------------------------------------------------
Hi, After 1 or 2 days of normal execution, the server hangs: I can't login by ssh or access to the web console (or any other application running on JBoss). The log of JBoss just stop without any exception. This problem started when I configured the pool size of may MDB with the @Pool annotation. I have more than 50 MDBs. Because of my performance problems (of throuput) I try to configure differents pool size on each MDBs. So, I'd configured \server\default\deploy\jca-jboss-beans.xml, with 2048. And put diferents values on each MDB. @ActivationConfigProperty(propertyName = "maxMessages", propertyValue = "1"), @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "50")}) @Pool (value=PoolDefaults.POOL_IMPLEMENTATION_STRICTMAX,maxSize=50,timeout=20000) The sum of the all maxSize is around 1000. I've no problem of database connection. I've no OutOfMemory exception. I've no exception on my logs. My server is running on a VirtualBox 4, with 8 processors (the host has 16) with 6GB of RAM (the host has 16GB). I guess about a multithreading problem or a pool administration bug, but I can't found any solution. Can anybody help me? Thanks in advance. Martín PD: Server information: Version: 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221100) Version Name: The Oracle Built on: May 22 2009 JVM Environment Free Memory: 2067 MB Max Memory: 2995 MB Total Memory: 2995 MB #Threads: 2206 JVM Version: 1.5.0_22-b03 (Sun Microsystems Inc.) JVM Name: Java HotSpot(TM) 64-Bit Server VM #CPU: 8 OS: Linux 2.6.32.39 (amd64)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/625898#625898]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months
[JBoss Cache] - Re: Problem externalizeSession Jboss 4.0.5
by Mallikarjun Reddy
Mallikarjun Reddy [http://community.jboss.org/people/mallikarjunnava] created the discussion
"Re: Problem externalizeSession Jboss 4.0.5"
To view the discussion, visit: http://community.jboss.org/message/626017#626017
--------------------------------------------------------------
Hi,
I got below error when trying with Jboss 4.2.2.GA clusters. Please let me know what exactly would be the reason for occurance of this exception.I Need do it in production server
17:02:53,935 ERROR [JBossCacheService] externalizeSession(): exception occurred externalizing session
SessionBasedClusteredSession[id: 0lBL0ZJumYyLQo2L1L7mKw**.node2 lastAccessedTime: 1315827164904 vers
ion: 1 lastOutdated: 0]
java.io.NotSerializableException: com.sun.faces.context.FacesContextImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.writeExternal(SessionBas
edClusteredSession.java:175)
at org.jboss.web.tomcat.service.session.JBossCacheService.externalizeSession(JBossCacheServic
e.java:1027)
at org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:3
16)
at org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCa
cheClusteredSession.java:121)
at org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManage
r.java:1097)
at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java
:652)
at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManage
r.java:49)
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.ja
va:98)
at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:1
57)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/626017#626017]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 3 months