[JBoss jBPM] - How to config jbpm-console for mysql and jboss correct!!!
by inxaoc
If you download starter-kit-3.2.2 you will get jbpm-console.war example in deploy folder. it works good if you run it as standalone app with start.bat but if you will try to migrate this app to real jboss server and try use Mysql (instead of Hipersonik) it will work awry! I've made this instructions (http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmOnTomcat)/
In this article is described how to use Tomcat:
3.1 Create a file jbpm-console.xml in /$CATALINA_HOME/conf/Catalina/localhost similar to
|
| <Context>
| <Realm className="org.apache.catalina.realm.JDBCRealm"
| driverName="com.mysql.jdbc.Driver"
| connectionURL="jdbc:mysql://localhost:3306/jbpm32"
| connectionName="jbossjbpm"
| connectionPassword="jbossjbpm"
| userTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g"
| userNameCol="g.TYPE_ = 'security-role' AND m.GROUP_ = g.ID_ AND m.USER_ = u.ID_ AND u.NAME_"
| userCredCol="DISTINCT u.PASSWORD_"
| userRoleTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g"
| roleNameCol="g.NAME_" />
| </Context>
|
But how to config security for jboss (I should config it in login-config.xml?) and what query I should use to get different meanings for authorization, like in the mentioned piece of code?
Does anybody have working example of jbpm-console.war?????
Please share your experience in using mysql and jboss for jbpm!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119776#4119776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119776
18 years, 3 months
[JBossWS] - Re: Writing a client - no examples for BindingProvider based
by jeff norton
Aha. I see from your example that I need to supply the target endpoint address explicitly (arg! these things need to be documented). That was what I was missing. Now I can get the case where I supply the WSDL as a file to work. However that doesn't do me a lot of good as I cannot use a hard-coded path. I would really like to put it in the WAR but I don't know how to create a URL that references things in the WAR (is there a way?). I could explicitly deploy the WSDL file into somewhere like $JBOSS_DIR/server/default/deploy/foo.wsdl but I don't really have a $JBOSS_DIR variable available at runtime. I guess I could set a property that would point to it.
As for getting the QName, do you have an @WebService annotation in your generated client service class (e.g. SubscriberServicesService)? If you do, it should have name and targetNamespace parameters. You should be able to form a QName using the values of those parameters as:new QName(targetNamespace, name)
The no arg public constructor should also have an example of it. Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119769#4119769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119769
18 years, 3 months