-
1. Re: reclaiming managed connections
marc.fleury Apr 18, 2003 1:49 PM (in response to pucky)Just upgraded to JBoss 2.4.8 from 2.4.4. Under 2.4.4, we knew we had problems with connection pooling but did not receive the nice error, "No Managed Connections Available", that 2.4.8 gives.
We are using Oracle 9i with our jboss.jcml as follows:
oracle.jdbc.driver.OracleDriver
CisDS
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
jdbc:oracle:thin:@localhost:1521:NISC1
1200000
cisnew
30
cis
false
false
false
true
15000
120000
1800000
false
false
1.0
0
Does anyone have a solution?
Thanks,
Brent -
2. Re: not sure what pattern this would be.
marc.fleury Apr 25, 2003 1:15 AM (in response to pucky)> So I've got a web app that needs to call a session
> bean depending on the message that comes in via a
> HTTP Post.
>
> i.e. a HashMap that contains "sayHi",Service
>
> if the webapp received
> request.getParameter("command)" = "sayHi" then it
> would take the service object and see which
> sessionBean to call and load. How do I do this? is
> it reflection? Introspection?
Right I did that at instill in california, basically it is called the "jfdi" pattern.
So you come in and you want to start a sayHi session to talk to it. So the call that retrieves the session
command = HTTPSession.getValue("command");
if (session == null)
then create it from EJB command = home.create();
and keep it in memory HTTPSession.putValue("command", command);
just delegate command.doStuff();
here you are assuming a signature from the aspect that has no type, it is necessary to detype the signature so that you always know what to call. There can be an adaptor between ISO standard CRUD commands like the javabeans pattern, or you simply map it to whatever CRUD you do, like the collections API of the JDK. In AOP CRUD is instrumentable (domain of application are persistence and cache)