[EJB 3.0] - quartz-ra.rar bug?
by kvbisme
I am running a clustered environment and need cron like functionality for some periodic maintenance we perform. I originally posted this under clustering but was recommended to try my hand here by Brian Stansberry.
The examples in the EJB3 tutorial for using the quartz-ra.rar work picture perfect. That is until I actually cluster the machine up. Then instead of one job executing for the cluster it executes on each instance.
Not a problem I discover the default Quartz implementation uses the Memory Job Store. I add a -D parameter so that it uses my own quartz.properties file which switches to a JDBC based Job Store.
Next problem, the data sources don't load before the .rar files so I have to move the file to the deploy.last directory. Now my resource name is deploy.last#quartz-ra ... inconvenient, but still workable.
Now the real problem. The JobStoreCMT file checks to make sure that if the JobDetail is marked as "volatile" the corresponding Trigger is also marked as "volatile." But, in the QuartzResourceAdapter.java the JobDetail is created with a volatility set to "true" during construction, but the CronTrigger doesn't supply that option at construction and the default setting is to have the volatility set to "false," which is never changed. A mismatch and a problem for me.
So why isn't there a volatile entry in the QuartzActivationSpec so we can set this in the deployment, or at least have both Trigger and JobDetail match? I am assuming this is a bug, but JIRA said to start here first. So here I am.
------ Followup from original posting
I added a volatile flag to the activation spec and it turns out Quartz tells you that if you are using a JDBC JobStore it is never volatile. So I then just set the JobDetail's volatility setting to false as well. Anyway with this change it appears (atleast with initial testing) to fix it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970763#3970763
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970763
19 years, 7 months
[JCA/JBoss] - Seemingly random connection issues?
by znbailey
Hi all,
We have recently run into a rather strange problem. One of our clients is experiencing a database connection issue when they begin using our webapp after a period of inactivity.
The connection error they receive is the following:
| 2006-08-24 11:09:12,406 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: I/O Error: Connection reset)
|
The database type is MS SQL Server, and the DS file is configured to specify the "check-valid-connection-sql" (SELECT 1). The min pool size is 10 and the max pool size is 100. The JBoss version is 3.2.7.
The NIC settings on both servers have been checked as well as the SQL Server settings, and yet nothing remarkable has been found. Has anyone encountered this and what was the resolution? Can anyone suggest any settings that could be looked at, or debug/trace logging that could be enabled to further troubleshoot this issue?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970757#3970757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970757
19 years, 7 months
[JBossWS] - JbossXB bindings
by mauro.mellino
Hi
I've been looking into serializing custom java objects based on JBoss 1.0.2 using rpc style services.
AFAIK, the jboss XB framework is being used. Furthermore i have seen from the wiki that this framework supports custom serialization based on schema annotations.
Has anyone tried this successfully and can provide pointers?
I have tried the following:
<xsd:annotation>
| <xsd:appinfo>
| <jbxb:value marshalMethod="com.test.components.ValueMarshaler.marshal"/>
| </xsd:appinfo>
| </xsd:annotation>
in the schema declaration for one of my custom types. Is this the right approach? I have had little luck on google/wiki/etc.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970756#3970756
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970756
19 years, 7 months