[JBoss Messaging] - Re: How to configure JBoss to use Tibco JMS over SSL
by Umesh R
Umesh R [http://community.jboss.org/people/umeshr] created the discussion
"Re: How to configure JBoss to use Tibco JMS over SSL"
To view the discussion, visit: http://community.jboss.org/message/566544#566544
--------------------------------------------------------------
If you are configuring tibco jms using ldap and SSL, your jms-ds (~/jboss-5.1.0.GA/server/default/deploy/messaging/jms-ds.xml) mbean entires would look like this
+<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name=":service=JMSProviderLoader,name=TibjmsProvider">
<attribute name="ProviderName">TIBCOJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<!--
add ldap path to myqueue factory
-->
<attribute name="QueueFactoryRef">CN=prod,OU=myappid,OU=ConnectionFactory,OU=myqueuename</attribute>
<attribute name="TopicFactoryRef">XAMyTopicConnectionFactory</attribute>
<attribute name="Properties">
java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
<!--
add ldap server url
-->
java.naming.provider.url=myldapurl
</attribute>
</mbean>
+
+ <mbean code="org.jboss.naming.NamingAlias"
name="DefaultDomain:service=NamingAlias,fromName=TopicConnectionFactory">
<attribute name="ToName">tibjmsnaming://localhost/XAMyTopicConnectionFactory</attribute>
<attribute name="FromName">MyTopicConnectionFactory</attribute>
</mbean>
+
++
+ <mbean code="org.jboss.naming.NamingAlias"
name="DefaultDomain:service=NamingAlias,fromName=QueueConnectionFactory">
<attribute name="ToName">tibjmsnaming://localhost/QueueConnectionFactory</attribute>
<attribute name="FromName">MyQueueConnectionFactory</attribute>
</mbean>+
+ <mbean code="org.jboss.naming.NamingAlias"
name="DefaultDomain:service=NamingAlias,fromName=MyQueue">
<!--
add ldap path to myqueue destination
-->
<attribute name="ToName">CN=prod,OU=Destination,OU=myqueuename</attribute>
<attribute name="FromName">jms/MyQueue</attribute>
</mbean>
+
++
Normally the cert and key path is configured in ldap(atleast in my case). Make tibco debug trace enabled so that it will print the cert path in the logs when it throws error if it is not finding the cert path. Place your ca.crt.pem and .p12 files there. The tibco debug trace can be enabled by setting respective system properties, i.e. by adding following entry to $JBOSS_HOME/server/default/deploy/properties-service.xml
+ <attribute name="Properties">
com.tibco.tibjms.debug=true
com.tibco.tibjms.ssl.debug.trace=true
com.tibco.tibjms.ssl.trace=true
</attribute>+
Make sure to add tibjms.jar, tibcrypt.jar to $JBOSS_HOME/server/default/lib. Btw, the setup did is for jboss-5.1.0.GA
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566544#566544]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[jBPM] - Impossible to find Group Tasks ordered
by Fabio Spiga
Fabio Spiga [http://community.jboss.org/people/Spiga] created the discussion
"Impossible to find Group Tasks ordered"
To view the discussion, visit: http://community.jboss.org/message/566226#566226
--------------------------------------------------------------
Hi everybody,
I need to get the group tasks for which a user is candidate in a manner ORDERED e PAGED, so the API findGroupTasks is not sufficient.
Therefore, I have replaced findGroupTasks() with the following code:
+ taskList = getTaskService().createTaskQuery()
.candidate(filter.getUsername())
.orderDesc(TaskQuery.PROPERTY_CREATEDATE)
.page(startRow, maxResults)
.list();+
The problem is that the resulting list is not ordered.
By debugging jBPM sources, I've found that the problem is in the class org.jbpm.pvm.internal.query.TaskQueryImpl within the method
+public String hql()+
Here the ORDER BY clause is added only if I'm not searching for Candidate. The original code is the following:
+....
+
+if (candidate == null && !count)
appendOrderByClause(hql);+
+....+
Why in your opinion is there such a condition?
How can I do to obtain an ordered and paged list for a candidate user?
Thanks you in advance,
Fabio
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566226#566226]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JBoss Web Services] - JBoss 5.1.0 GA web-service client problem when stress testing
by Eugen Grosu
Eugen Grosu [http://community.jboss.org/people/grosueugen] created the discussion
"JBoss 5.1.0 GA web-service client problem when stress testing"
To view the discussion, visit: http://community.jboss.org/message/564760#564760
--------------------------------------------------------------
Hello,
We are using JBoss 5.1.0 GA, jdk 1.5_22, Solaris 10.
We have implemented a wsdl-to-java EJB3.0 web-service endpoint and have generated the client artifacts using wsconsume. These artifacts are included in a client project - a war that includes a Servlet that calls the endpoint using the generated WS client.
The web-service project is deployed as an ejb jar, which is included into an .ear.
The war project (the ws client) is deployed in the same JBoss configuration as the .ear.
For testing, we implemented an HttpClient that calls the Servlet, which calls the EJB3.0 endpoint.
Everything is working well, until performing testing with 100 threads, each sending a request 50 times.
We first created a new WS Client instance for every request, but then we decided to create a pool of these instances to gain performance.
We can not reuse the same instance because the WS Client is not thread-safe.
For the pool, we used http://commons.apache.org/pool/ http://commons.apache.org/pool/.
Here is the code that creates a new instance:
public Object makeObject() {
OurEnpointWSService service = new OurEnpointWSService();
BindingProvider bp = (BindingProvider) service;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
OurEnpoint port = service.getOurEndpointWSPort();
return port;
}
At some point, after running the tests 3-4 times, we receive a lot of errors:
2010-09-29 14:44:04,980 ERROR [org.jboss.ws.core.CommonClient] (http-0.0.0.0-8080-305) Exception caught while (preparing for) performing the invocation:
javax.xml.ws.soap.SOAPFaultException: Unqualified { http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/}Client fault
at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:84)
at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)
at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:381)
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
at $Proxy569.execute(Unknown Source)
at com.orvaal.ucipPlugin.web.IgwServlet.service(IgwServlet.java:127)
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 com.orvaal.ucipPlugin.web.filter.IgwFilter.doFilter(IgwFilter.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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)
I searched for a couple of days on the net, but no luck.
If someone can help me, I would be very greatful.
Thanks in advance.
Eugen.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/564760#564760]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month