Search in sources :

Example 1 with EjbMonitoringProbeProvider

use of com.sun.ejb.monitoring.probes.EjbMonitoringProbeProvider in project Payara by payara.

the class SafeProperties method registerEjbMonitoringProbeProvider.

private void registerEjbMonitoringProbeProvider(String appName, String modName, String ejbName) {
    // Always create to avoid NPE
    try {
        ProbeProviderFactory probeFactory = ejbContainerUtilImpl.getProbeProviderFactory();
        String invokerId = EjbMonitoringUtils.getInvokerId(appName, modName, ejbName);
        ejbProbeNotifier = probeFactory.getProbeProvider(EjbMonitoringProbeProvider.class, invokerId);
        if (_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE, "Got ProbeProvider: " + ejbProbeNotifier.getClass().getName());
        }
    } catch (Exception ex) {
        ejbProbeNotifier = new EjbMonitoringProbeProvider();
        if (_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE, "Error getting the EjbMonitoringProbeProvider");
        }
    }
}
Also used : ProbeProviderFactory(org.glassfish.flashlight.provider.ProbeProviderFactory) EjbMonitoringProbeProvider(com.sun.ejb.monitoring.probes.EjbMonitoringProbeProvider) TransactionRequiredLocalException(javax.ejb.TransactionRequiredLocalException) EJBAccessException(javax.ejb.EJBAccessException) InvocationTargetException(java.lang.reflect.InvocationTargetException) EJBException(javax.ejb.EJBException) DeploymentException(org.glassfish.deployment.common.DeploymentException) AccessException(java.rmi.AccessException) AccessLocalException(javax.ejb.AccessLocalException) TransactionRolledbackLocalException(javax.ejb.TransactionRolledbackLocalException) SystemException(javax.transaction.SystemException) NoSuchEJBException(javax.ejb.NoSuchEJBException) NamingException(javax.naming.NamingException) RemoveException(javax.ejb.RemoveException) EJBTransactionRequiredException(javax.ejb.EJBTransactionRequiredException) EJBTransactionRolledbackException(javax.ejb.EJBTransactionRolledbackException) RemoteException(java.rmi.RemoteException) RollbackException(javax.transaction.RollbackException) FinderException(javax.ejb.FinderException) CreateException(javax.ejb.CreateException) NoSuchObjectLocalException(javax.ejb.NoSuchObjectLocalException)

Aggregations

EjbMonitoringProbeProvider (com.sun.ejb.monitoring.probes.EjbMonitoringProbeProvider)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 AccessException (java.rmi.AccessException)1 RemoteException (java.rmi.RemoteException)1 AccessLocalException (javax.ejb.AccessLocalException)1 CreateException (javax.ejb.CreateException)1 EJBAccessException (javax.ejb.EJBAccessException)1 EJBException (javax.ejb.EJBException)1 EJBTransactionRequiredException (javax.ejb.EJBTransactionRequiredException)1 EJBTransactionRolledbackException (javax.ejb.EJBTransactionRolledbackException)1 FinderException (javax.ejb.FinderException)1 NoSuchEJBException (javax.ejb.NoSuchEJBException)1 NoSuchObjectLocalException (javax.ejb.NoSuchObjectLocalException)1 RemoveException (javax.ejb.RemoveException)1 TransactionRequiredLocalException (javax.ejb.TransactionRequiredLocalException)1 TransactionRolledbackLocalException (javax.ejb.TransactionRolledbackLocalException)1 NamingException (javax.naming.NamingException)1 RollbackException (javax.transaction.RollbackException)1 SystemException (javax.transaction.SystemException)1 DeploymentException (org.glassfish.deployment.common.DeploymentException)1