[JBoss Messaging] - Re: Migrate from JBossMQ over HTTPs to JBoss-Messaging
by garwind111
Hello greyfairer,
To configure HTTPS over Jboss Messaging, you must look at connection factories settings. By default, you have the bisocket connection factory.
In the source config examples, you can find HTTP and SSL Bisocket configuration file. To find HTTPS configuration, you must specify SSL socket factory.
To avoid you lost of time, see my config file :
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.messaging:service=Connector,transport=https"
| display-name="HTTPS transport Connector">
|
| <attribute name="Configuration">
| <config>
| <invoker transport="https">
| <attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="leasePeriod">10000</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="callbackStore">org.jboss.remoting.callback.BlockingCallbackStore</attribute>
| <attribute name="callbackPollPeriod" isParam="true">102</attribute>
| <attribute name="clientLeasePeriod" isParam="true">20000</attribute>
|
| <attribute name="serverSocketFactory">jboss.messaging:service=ServerSocketFactory,type=SSL</attribute>
| <attribute name="SSLImplementation">org.jboss.remoting.transport.coyote.ssl.RemotingSSLImplementation</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">9443</attribute>
| </invoker>
| <handlers>
| <!--
| <handler subsystem="web">org.jboss.remoting.samples.http.WebInvocationHandler</handler>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| -->
| <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| <!-- This depends is included because need to make sure this mbean is running before configure invoker. -->
| <depends>jboss.messaging:service=ServerSocketFactory,type=SSL</depends>
| </mbean>
Then you must write a connector for this connection factory.
Look at Jboss remoting documentation also.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179023#4179023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179023
17 years, 7 months
[Beginners Corner] - Deploying Drools Rules Engine in xercesImpl-2.4.0.jara bundl
by calemis
I am trying to build a decision engine bundle upon Drools.
I am working on eclipse and on knopflerfish osgi platform
What I am doing is to add Drool in Bundle Classpath as:
Bundle-ClassPath:..., lib/drools-jsr94-4.0.7.jar....
and i am adding the followin libraries in the classpath:
drools-jsr94-4.0.7.jar
drools-decisiontables-4.0.7.jar
drools-core-4.0.7.jar
drools-compiler-4.0.7.jar
drools-ant-4.0.7.jar
drools-analytics-4.0.7.jar
furthermore i add the following dependencies:
ant-1.6.5.jar
antlr-runtime-3.0.jar
ant-nodeps-1.6.5.jar
core-3.2.3.v_686_R32x.jar
janino-2.5.10.jar
jsr94-1.1.jar
jxl-2.4.2.jar
mvel-1.3.1-java1.4.jar
xercesImpl-2.4.0.jar
xml-apis-1.0.b2.jar
xpp3_min-1.1.3.4.O.jar
xstream-1.2.2.jar
while the bundle seems to build ok I always get the following error when i try to run it, on the following code:
RuleBase ruleBase = loadRuleBase(ruleFile);
org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'
.
.
.
Caused by: java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration
I've tried to build and install drools as bundle but I always get the same error
Is there any specific way that i need to build my bundle project with drools so that it will run properly?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179016#4179016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179016
17 years, 7 months
[JBoss jBPM] - IdentityLoginModule.java, impossibile to avoid IllegalArgume
by sunbeststar
Hi all.
I develop the web-console for jbpm server and I tried to use IdentityManagement component for it. When I access IdenityLoginModule, and call a login() method, I get an IllegalArgumentException, which I cannot avoid in anyhow.
Here is the listing of login method:
public boolean login() throws LoginException {
// get userName and password
NameCallback nameCallback = new NameCallback(null);
PasswordCallback passwordCallback = new PasswordCallback("pass",false);
try {
callbackHandler.handle(new Callback[]{nameCallback, passwordCallback});
} catch (Exception e) {
e.printStackTrace();
throw new LoginException("callback failed");
}
.... .... ....
}
In the first string there is a constructor of NameCallback, which is:
public NameCallback(String prompt) {
if (prompt == null || prompt.length() == 0)
throw new IllegalArgumentException();
this.prompt = prompt;
}
As soon as NameCallback constructor is invoked with a null argument, the code throw IllegalArgumentException immediately, and I cannot do nothing..
Can you explain how is it possible, if this class was tested or if I do something wrong?..
I use JBPM 3.2.2, jbpm-identity.jar-3.2.2 e JDK 1.6.0.
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179008#4179008
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179008
17 years, 7 months