[Datasource Configuration] New message: "Configuring a single connection pool for multiple JBoss servers"
by h c
User development,
A new message was posted in the thread "Configuring a single connection pool for multiple JBoss servers":
http://community.jboss.org/message/529524#529524
Author : h c
Profile : http://community.jboss.org/people/hchavan@apptivo.com
Message:
--------------------------------------------------------------
Hi all,
I am facing a problem in configuring multiple servers with a single connection pool.
Currently, we have 5 App servers on different machines and we have 5 database nodes.
All the databases have similar schema but data is different for different customers i.e. horizontal partitioning based on customers.
We use postgres as the database which does not supprot clustering ability.
Now the problem is that, each app server has around 100 connections to each of the database. We have observed that after 500 connections database server performance starts spiralling down. Since we dont have horizontal partitioning on the app server side, each app server can serve all the customers. This results in inefficient usage of connections.
Is there any known solution to this problem. We were thinking of creating connection pools to these database at a single node and all other nodes will start using this pool. But it seems this is not a suggested way to do it. Following link explains the problem.
http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Ad...
It also suggests that we should use Remote Session Facade Bean for this purpose. I am not sure how to do that. Since Connection is not serialiazable, how will that happen?
Any help will be really appreciated.
Thanks,
Harshad
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529524#529524
16 years, 1 month
[JBoss Web Services] New message: "Re: WS-RM Exception: cannot be cast to org.jboss.ws.core.Stu"
by Alexandre Lourenço
User development,
A new message was posted in the thread "WS-RM Exception: cannot be cast to org.jboss.ws.core.StubExt":
http://community.jboss.org/message/529521#529521
Author : Alexandre Lourenço
Profile : http://community.jboss.org/people/alexandreesl
Message:
--------------------------------------------------------------
hum, sorry, but it is already there, and dont work, anyway I just wanted to try this so I can set manually the config for the ws-security, this is because I cant make my client to use ws-security to encripty the messages, I am using jbossws native, I maked like in a tutorial I saw where you make some xml files (standard-jaxws-client-config.xml and jboss-wsse-client.xml) alongside the certificate files, look here my xml files:
<?xml version="1.0" encoding="UTF-8"?>
<jaxws-config xmlns="urn:jboss:jaxws-config:2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:javaee="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="urn:jboss:jaxws-config:2.0
jaxws-config_2_0.xsd">
<client-config>
<config-name>Standard WSSecurity Client</config-name>
<post-handler-chains>
<javaee:handler-chain>
<javaee:protocol-bindings>
##SOAP11_HTTP
</javaee:protocol-bindings>
<javaee:handler>
<javaee:handler-name>
WSSecurityHandlerOutbound
</javaee:handler-name>
<javaee:handler-class>
org.jboss.ws.extensions.security.jaxws.
WSSecurityHandlerClient
</javaee:handler-class>
</javaee:handler>
</javaee:handler-chain>
</post-handler-chains>
</client-config>
</jaxws-config>
<?xml version="1.0" encoding="UTF-8"?>
<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/
jboss-ws-security_1_0.xsd">
<key-store-file>META-INF/client.keystore</key-store-file>
<key-store-password>cyclops</key-store-password>
<trust-store-file>
META-INF/client.truststore
</trust-store-file>
<trust-store-password>cyclops</trust-store-password>
<config>
<encrypt type="x509v3" alias="wsse"></encrypt>
<requires>
<encryption></encryption>
</requires>
</config>
</jboss-ws-security>
the client code is generated by eclipse, the server part it works, but when I try to execute the client, this happens:
03:10:18,349 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: This service requires <wsse:Security>, which is missing.
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155)
at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97)
at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
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:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.ws.core.CommonSOAPFaultException: This service requires <wsse:Security>, which is missing.
at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:100)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:207)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:83)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)
at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
... 29 more
This error is driving me crazy, I simply cant get past him :-( .......
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529521#529521
16 years, 1 month
[JBoss Portal] New message: "portlet container serveResource issue"
by Rajasundaram Gopalan
User development,
A new message was posted in the thread "portlet container serveResource issue":
http://community.jboss.org/message/529517#529517
Author : Rajasundaram Gopalan
Profile : http://community.jboss.org/people/rajasundaram
Message:
--------------------------------------------------------------
Hello Jboss Portlet container contributors,
I am using jboss portlet container where I use portal taglib to call the page and portlet. One of the portlet implemented serveResource functionality.
<test:layout>
<portal:page>
<test:1column>
<jsp:attribute name="maincolumn">
<test:portlet name="serveMedia" applicationName="ServeResourceApp" />
</jsp:attribute>
</test:1column>
</portal:page>
</test:layout>
When I click the resource url it calls the jsp and portlet serveResource function using taglibs and it plays the media file.
My requirement is show open and save dialog box.
I am seeing followings are the reason:
First, it opens the response out stream on the jsp with the content type "text/html" .
Second, PortletResponse sets the contentType 'media/x-wav'
But in the JBoss Portal 2.7.1 serveResource worked well:
Page,Window and portlets are controlled by JBoss Portal they use HTTPResponse class to copy the renderResponse output stream to ServletResponse. And it opens up the save open dialog.
Is there any way I can call the page/window/portlet in jsp using scriptlets? or any other solutions?
Thanks,
Raja
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529517#529517
16 years, 1 month