[JCA] New message: "Re: one data source with multiple database users"
by null null
User development,
A new message was posted in the thread "one data source with multiple database users":
http://community.jboss.org/message/529507#529507
Author : null null
Profile : http://community.jboss.org/people/deanhiller
Message:
--------------------------------------------------------------
what version of jboss are you using? I am using 5.1. I inserted log4jdbc so I can see the connection logs. I did a request from the first war which grabbed the 5th connection from the pool and then did a request from the second war and it grabbed the 5th connection as well. It is a pool after all.
Anyone know how to switch the user on the db connection? We would prefer to automate it so when our first war gets it, the user firstwarUser is used and when our second war gets it, secWarUser is used on the connection so we can track which apps where doing bad things they should not be doing(and the dbas would like to lock down the database per app which means we need a user per app). Any ideas how to do this?
thanks,
Dean
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529507#529507
16 years, 1 month
[JBoss Portal Development] New message: "trying out a portlet from the reference guide"
by Eli Galicia
User development,
A new message was posted in the thread "trying out a portlet from the reference guide":
http://community.jboss.org/message/529505#529505
Author : Eli Galicia
Profile : http://community.jboss.org/people/superdepor
Message:
--------------------------------------------------------------
I'm trying out the JSF portlet example a user types in her name and pushes the submit button and a new jsp page displays her name!
A JSPHelloUserPortlet checks if the name parameter is set, and based on this one of the jsp pages will be shown for the user.
And here is where my problem raise!
The thing is once the request parameter is set in the first JSP then it will be cashed for all subsequent requests. So the User will see the second JSP page every time after submitting her name once.
Im wondering how I could erase the request parameter...
I didn't find any method for it in the API for example request.removeParameter(String string).
How can I overcome this problem?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529505#529505
16 years, 1 month
[jBPM] New message: "Injecting external object into custom activity"
by M M
User development,
A new message was posted in the thread "Injecting external object into custom activity":
http://community.jboss.org/message/529498#529498
Author : M M
Profile : http://community.jboss.org/people/gubespam
Message:
--------------------------------------------------------------
In jbpm, you can use object references to have jbpm to dynamically inject objects into custom activities, like below:
import org.jbpm.api.activity.ExternalActivityBehaviour;public class Custom implements ExternalActivityBehaviour{ private Object externalThing;
public void setExternalThing( final Object externalThing ) { this.externalThing = externalThing; } // ...}
<process name="sample_process">
<start name="start">
<transition to="custom"></transition>
</start>
<custom class="Custom" name="custom">
<property name="inputs"><object expr="#{munchkinLand}"></object></property>
</custom>
</process>
I remember reading somewhere (can't find it now), that jbpm will search up the context chain until it finds an object with the given name ("munchkinLand" above). My question is, how does one inject an external resourceinto jBPM so that it can find it?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529498#529498
16 years, 1 month
[jBPM] New message: "Injecting external object into custom activity"
by M M
User development,
A new message was posted in the thread "Injecting external object into custom activity":
http://community.jboss.org/message/529497#529497
Author : M M
Profile : http://community.jboss.org/people/gubespam
Message:
--------------------------------------------------------------
In jbpm, you can use object references to have jbpm to dynamically inject objects into custom activities, like below:
{code}
import org.jbpm.api.activity.ExternalActivityBehaviour;
public class Custom implements ExternalActivityBehaviour
{
private Object externalThing;
public void setExternalThing( final Object externalThing )
{
this.externalThing = externalThing;
}
// ...
}
{code}
{code}
<process name="sample_process">
<start name="start">
<transition to="custom" />
</start>
<custom class="Custom" name="custom">
<property name="inputs"><object expr="#{munchkinLand}" /></property>
</custom>
</process>
{code}
I remember reading somewhere (can't find it now), that jbpm will search up the context chain until it finds an object with the given name ("munchkinLand" above). My question is, how does one inject an external resourceinto jBPM so that it can find it?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529497#529497
16 years, 1 month