@ConcurrencyManagement(ConcurrencyManagementType.BEAN) @TransactionAttribute(TransactionAttributeType.REQUIRED) @ProcessApplication
/** * @author Tassilo Weidner */ @Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.BEAN) @TransactionAttribute(TransactionAttributeType.REQUIRED) @ProcessApplication(deploymentDescriptors = {"deployment-descriptor-with-custom-filename.xml"}) @Local(ProcessApplicationInterface.class) public class AnnotatedEjbPa extends EjbProcessApplication { @PostConstruct public void start() { deploy(); } @PreDestroy public void stop() { undeploy(); } }
/** * Custom {@link EjbProcessApplication} with PA lifecycle callbacks * * @author Daniel Meyer * */ @Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.BEAN) @TransactionAttribute(TransactionAttributeType.REQUIRED) @ProcessApplication @Local(ProcessApplicationInterface.class) public class CustomEjbProcessApplication extends EjbProcessApplication { @PostDeploy public void postDeploy(ProcessEngine processEngine) { Assert.assertNotNull(processEngine); } @PreUndeploy public void preUnDeploy(ProcessEngine processEngine) { Assert.assertNotNull(processEngine); } }
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) public class ClassCacheManagerEJBImpl extends ClassCacheManager { @Override @PreDestroy public void dispose() { super.dispose(); } }
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class WeblinkGroupSequenceService extends AbstractService {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) public class StatisticsBean implements Statistics {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class JoynrStatusMetricsAggregator implements JoynrStatusMetrics, MqttStatusReceiver, StatusReceiver { private AtomicInteger numDiscardedMqttRequest = new AtomicInteger();
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.READ) public class FormManagerServiceEJBImpl extends FormManagerServiceImpl{ @Lock(LockType.WRITE) @Override public void registerForm(String deploymentId, String key, String formContent) { super.registerForm(deploymentId, key, formContent); } @Lock(LockType.WRITE) @Override public void unRegisterForms(String deploymentId) { super.unRegisterForms(deploymentId); } }
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.READ) public class QueryServiceEJBImpl extends QueryServiceImpl implements QueryServiceEJBLocal, QueryServiceEJBRemote {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.READ) public class DeploymentRolesManagerEJBImpl extends DeploymentRolesManager { @Lock(LockType.WRITE) @Override public void addRolesForDeployment(String deploymentId, List<String> roles) { super.addRolesForDeployment(deploymentId, roles); } @Lock(LockType.WRITE) @Override public void removeRolesForDeployment(String deploymentId) { super.removeRolesForDeployment(deploymentId); } @Lock(LockType.READ) @Override public List<String> getDeploymentsForUser(IdentityProvider identityProvider) { return super.getDeploymentsForUser(identityProvider); } }
/** * <p>Singleton bean which allows to execute callbacks in the context the * carrier process archive.</p> * * @author Daniel Meyer * @see ProcessArchive#executeWithinContext(ProcessArchiveCallback) */ // singleton bean guarantees maximum efficiency @Singleton //make sure the container does not synchronize access to this bean @ConcurrencyManagement(ConcurrencyManagementType.BEAN) @TransactionAttribute(TransactionAttributeType.SUPPORTS) public class ProcessArchiveContextExecutor { public <T> T executeWithinContext(ProcessArchiveCallback<T> callback) throws // gets past the EJB container (must be unwrapped by caller) FoxApplicationException { try { return callback.execute(); }catch (Exception e) { throw new FoxApplicationException("Caught Exception", e); } } }
@ApplicationScoped @Startup @ConcurrencyManagement(BEAN) public class JEEClientManager {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.READ) public class RuntimeDataServiceEJBImpl extends RuntimeDataServiceImpl implements DeploymentEventListener, RuntimeDataService, RuntimeDataServiceEJBLocal, RuntimeDataServiceEJBRemote {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.READ) public class DefinitionServiceEJBImpl extends BPMN2DataServiceImpl implements DeploymentEventListener, DefinitionService, DefinitionServiceEJBLocal, DefinitionServiceEJBRemote {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class ServiceIdentityManagerBean {
@Singleton @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class CertificateAuthorityLookupBean {
@Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.BEAN) public class ExecutorServiceEJBImpl extends ExecutorServiceImpl implements ExecutorServiceEJB, ExecutorService, RequeueAware {
@Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.WRITE) @TransactionManagement(TransactionManagementType.BEAN)
@Singleton @Startup @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER) @Lock(LockType.WRITE) @AccessTimeout(value=1, unit=TimeUnit.MINUTES)
@ConcurrencyManagement(ConcurrencyManagementType.BEAN) @TransactionAttribute(TransactionAttributeType.REQUIRED) @ProcessApplication