[jBPM] New message: "Saving a Date or Timestamp in database"
by Dominic Umbeer
User development,
A new message was posted in the thread "Saving a Date or Timestamp in database":
http://community.jboss.org/message/527700#527700
Author : Dominic Umbeer
Profile : http://community.jboss.org/people/homes
Message:
--------------------------------------------------------------
In default case a java.util.Date variable will stored as String in the jbpm4_variable table! See following line of the jbpm.variable.types.xml (included in jbpm.jar) file:
<type name="date" class="java.util.Date" converter="org.jbpm.pvm.internal.type.converter.DateToStringConverter" variable-class="org.jbpm.pvm.internal.type.variable.StringVariable" />
The jbpm4_variable table has a DATE_VALUE column to store timestamps, so Date's too. Is there any reason why Date's are converted to String's and not stored to DATE_VALUE column directly?
When I add something like the following to jbpm.variable.types.xml and comment out the previous line then the Date's will stored to the DATE_VALUE column.
<type name="date" class="java.util.Date" variable-class="org.jbpm.pvm.internal.type.variable.DateVariable" />
Best regards
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527700#527700
16 years, 2 months
[JCA] New message: "Re: Network boundaries in JCA?"
by Laird Nelson
User development,
A new message was posted in the thread "Network boundaries in JCA?":
http://community.jboss.org/message/527689#527689
Author : Laird Nelson
Profile : http://community.jboss.org/people/ljnelson
Message:
--------------------------------------------------------------
I followed up with the specification authors, and they said this:
> The Java EE spec [Table EE.6-1 in the Java EE 6 platform spec] does not
> require support for Connectors in application clients and the Connectors
> specification also doesn't address in any detail how application
> servers may support managed usage of a Connector in a Java EE
> application client.
>
>
>
> Some implementations (like GlassFish) will provide a local managed
> environment for a Connector in the application client's VM (ie replicate
> the pooling and other runtime infrastructure surrounding Connection
> mananement in the appclient's VM) and some others provide a proxy
> Connection handle in the application client that is a proxy to
> ManagedConnections in the server. The latter implementations may provide
> their own proxy that implements the Connection interface to the
> app-client and wire all method invocations on it to a valid "Connection"
> in the server or use other techniques thereby obviating the need to
> pass a non-serializable ManagedConnection to the application client's VM.
I thought this would be helpful to other readers.
Best,
Laird
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527689#527689
16 years, 2 months