[JBoss Microcontainer Development] New message: "Re: Security problems with org.jboss.test:jboss-test 1.1.5.GA"
by Ales Justin
User development,
A new message was posted in the thread "Security problems with org.jboss.test:jboss-test 1.1.5.GA":
http://community.jboss.org/message/530190#530190
Author : Ales Justin
Profile : http://community.jboss.org/people/alesj
Message:
--------------------------------------------------------------
> Why not add a Privileged Block to the test class rather than do all the SM disable/enable circus?
This won't work -- as the test itself is already under security, hence privileged block would kick-in too late.
e.g. otherwise one could always get past it by simply declaring pb -- but who knows this better then you ;-)
> In addition to the Priv Block addition, you will have to figure out what is the security policy the security mgr is using. Because you will have to add policy permission there for your test class.
OK, unless you do this -- which is much more work than simple SM disable/enable.
It's not like we're breaching security here :-), it's just that we want to stick with it,
in order to see if the tested code actually has proper PBs, not the test itself. ;-)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530190#530190
16 years, 1 month
[jBPM] New message: "Re: integrating spring 2.5.6 with jbpm 4.3"
by Ken Hoying
User development,
A new message was posted in the thread "integrating spring 2.5.6 with jbpm 4.3":
http://community.jboss.org/message/530186#530186
Author : Ken Hoying
Profile : http://community.jboss.org/people/khoying
Message:
--------------------------------------------------------------
This appears to have been changed. I just started with jBPM and seem to have it all up and running under Spring. My Spring configuration looks like this:
<bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper" />
<bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<!-- This config is for unit tests as the jar will not exist yet. -->
<!-- It does not work at runtime since the files will be located in a jar and hibernate will not pick them up. -->
<property name="mappingLocations">
<value>classpath*:**/*.hbm.xml</value>
</property>
<!-- This config does not work for unit tests as the jar will not exist yet. -->
<!-- It does work at runtime since the files will be located in a jar. -->
<property name="mappingJarLocations">
<list>
<value>classpath*:**/services.jar</value>
<value>classpath*:**/jbpm-pvm-*.jar</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle10gDialect
</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.generate_statistics">false</prop>
</props>
</property>
<property name="configLocation" value="classpath:jbpm.hibernate.cfg.xml" />
<property name="eventListeners">
<map>
<entry key="merge">
<bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener" />
</entry>
</map>
</property>
</bean>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530186#530186
16 years, 1 month
[jBPM] New message: "[Q v4.3] Newbie - Web Console"
by Ken Hoying
User development,
A new message was posted in the thread "[Q v4.3] Newbie - Web Console":
http://community.jboss.org/message/530183#530183
Author : Ken Hoying
Profile : http://community.jboss.org/people/khoying
Message:
--------------------------------------------------------------
I am new to jBPM. We are embedding jBPM into an existing web application. Unfrotunately, I cannot find any relevant information on the web console and what functionality it provides.
* I am wondering first off, if the web console will even work for us since we are using jBPM as embedded rather than as its own application?
* I am a little confused as to what the jbpm.console.cfg.xml file is for and if it is even applicable in an embedded jBPM environment.
* I tried to deploy the web console to our server, but do not seem to be able to get passed the secutity. What needs to be done there for installation?
Thanks in advance,
Ken
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530183#530183
16 years, 1 month
[jBPM] New message: "[Q v4.3] Newbie with Question on Variables"
by Ken Hoying
User development,
A new message was posted in the thread "[Q v4.3] Newbie with Question on Variables":
http://community.jboss.org/message/530177#530177
Author : Ken Hoying
Profile : http://community.jboss.org/people/khoying
Message:
--------------------------------------------------------------
I am having a little trouble in understanding how variables work and are supposed to be used. Does anyone know where I can find a good reference on this? I did not find the information provided in the user or developer guide informative enough.
Specifically, I am trying to determine how to pass a business object that is not serializable to a java task. We are embedding jBPM in our existing web application and use Spring to manage our business objects. These objects are not serializable. At certain point in my process flow, I would like to execute some business methods. However, I am not sure what would be the best practice on how to do this. I tried to pass the business object as a variable when signaling execution, but caused an error that I am guessing is due to the business object not being serializable.
I am sure that I am probably going about this all the worng way, but any guidance and best practices that people can offer as I start to get a better handle on this would be greatly appreciated.
Thank you for your time and patience,
Ken
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530177#530177
16 years, 1 month