[JBoss jBPM] - Re: Configuring JBoss with Eclipse/Exadel
by dabd
"fady.matar" wrote : It works fine for me, I'm not having that problem at all. Can you elaborate more on this?
Out of despair I copied the jars from C:\jbpm-jpdl-3.2.GA\server\server\jbpm\lib to C:\jbpm-jpdl-3.2.GA\server\server\default (This is the directory that eclipse complained that didn't have the javax.servlet.jar)
and I managed to add JBoss 4.04 to the Servers View.
Now I get the following error when starting the server from Eclipse.
14:56:43,515 INFO [Server] Starting JBoss (MX MicroKernel)...
14:56:43,515 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
14:56:43,531 INFO [Server] Home Dir: C:\jbpm-jpdl-3.2.GA\server
14:56:43,531 INFO [Server] Home URL: file:/C:/jbpm-jpdl-3.2.GA/server/
14:56:43,531 INFO [Server] Patch URL: null
14:56:43,531 INFO [Server] Server Name: default
14:56:43,531 INFO [Server] Server Home Dir: C:\jbpm-jpdl-3.2.GA\server\server\default
14:56:43,531 INFO [Server] Server Home URL: file:/C:/jbpm-jpdl-3.2.GA/server/server/default/
14:56:43,531 INFO [Server] Server Log Dir: C:\jbpm-jpdl-3.2.GA\server\server\default\log
14:56:43,531 INFO [Server] Server Temp Dir: C:\jbpm-jpdl-3.2.GA\server\server\default\tmp
14:56:43,531 INFO [Server] Root Deployment Filename: jboss-service.xml
14:56:44,046 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
14:56:44,046 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
14:56:44,046 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
14:56:44,390 INFO [Server] Core system initialized
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: url file:/C:/jbpm-jpdl-3.2.GA/server/server/default/conf/jboss-service.xml could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:770)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Unknown Source)
14:56:44,421 INFO [Server] Runtime shutdown hook called, forceHalt: true
14:56:44,421 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
14:56:44,421 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055240#4055240
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055240
18Â years, 10Â months
[JCA/JBoss] - Re: Why is jboss closing my connection?
by adrianï¼ jboss.org
"teknokrat" wrote : Ok, thanks. Is there a way to switch this off on a per connection factory level? I would like to get the benefits of the checking for database connections but not on my own session based connections.
|
As per the docs:
debug=false in jbossjca-service.xml
But then avoiding connection leakage becomes your problem. :-)
As stated many times in this forum. Holding one connection per ejb instance
is an anti-pattern and a totally inefficient use of resources.
The connections are already pooled (and cached at the transaction level)
by JCA which leads to a much more efficient use of resources.
| // CMT Required Transaction
| public void doSomething()
| {
| ConnectionFactory cf = ...
| Connection c1 = cf.getConnection(); // Handle
| Connection real2 = c.getRealConnection(); // Real
|
| Connection c2 = cf.getConnection(); // Handle
| Connection real2 = c.getRealConnection(); // Real
|
| assert c1 != c2; // Handles are not the same instance
| assert real1 == real2; // But you always use the same real/underlying connection in the same transaction
| }
|
"teknokrat" wrote :
| Also, just out of curiosity, what is the heuristic that jboss uses to decide that a connection has been checked out of the pool long enough and needs closing?
|
In a transaction - the end of the transaction
Otherwise the end of request (EJB method/Web invocation)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055235#4055235
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055235
18Â years, 10Â months