Search in sources :

Example 6 with RiverMarshallerFactory

use of org.jboss.marshalling.river.RiverMarshallerFactory in project wildfly by wildfly.

the class DatabaseTimerPersistence method start.

@Override
public void start(final StartContext context) throws StartException {
    factory = new RiverMarshallerFactory();
    configuration = new MarshallingConfiguration();
    configuration.setClassResolver(ModularClassResolver.getInstance(moduleLoader.getValue()));
    managedReference = dataSourceInjectedValue.getValue().getReference();
    dataSource = (DataSource) managedReference.getInstance();
    investigateDialect();
    loadSqlProperties();
    checkDatabase();
    refreshTask = new RefreshTask();
    if (refreshInterval > 0) {
        timerInjectedValue.getValue().schedule(refreshTask, refreshInterval, refreshInterval);
    }
}
Also used : MarshallingConfiguration(org.jboss.marshalling.MarshallingConfiguration) RiverMarshallerFactory(org.jboss.marshalling.river.RiverMarshallerFactory)

Aggregations

RiverMarshallerFactory (org.jboss.marshalling.river.RiverMarshallerFactory)6 MarshallingConfiguration (org.jboss.marshalling.MarshallingConfiguration)5 ZeroPortPolicy (com.sun.corba.se.spi.extension.ZeroPortPolicy)1 MediaContent (data.media.MediaContent)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 File (java.io.File)1 IOException (java.io.IOException)1 InvalidClassException (java.io.InvalidClassException)1 ArrayList (java.util.ArrayList)1 TransactionManager (javax.transaction.TransactionManager)1 EJBComponent (org.jboss.as.ejb3.component.EJBComponent)1 StatelessSessionComponent (org.jboss.as.ejb3.component.stateless.StatelessSessionComponent)1 ATTest (org.jboss.eap.additional.testsuite.annotations.ATTest)1 EJBMetaDataImplIIOP (org.jboss.ejb.iiop.EJBMetaDataImplIIOP)1 HomeHandleImplIIOP (org.jboss.ejb.iiop.HomeHandleImplIIOP)1 InputStreamByteInput (org.jboss.marshalling.InputStreamByteInput)1 MarshallerFactory (org.jboss.marshalling.MarshallerFactory)1 OutputStreamByteOutput (org.jboss.marshalling.OutputStreamByteOutput)1 RiverMarshaller (org.jboss.marshalling.river.RiverMarshaller)1