Danke für die schnelle Antwort! Das war genau, was ich brauchte ... auch das Beispiel mit dem Listener. Leider gibt es Probleme, wenn ich mit dem Listener mit Lookup auf meine EJB's zugreifen will. Unten die Fehlermeldung - der Aufruf in der Klasse funktioniert sonst im ganzen Projekt!
Hast du eine Idee diesen Fehler zu umgehen?
lg, Markus
05.05.24 09:21:21 FATAL SystemPropertiesClientHelper.getEJB (77) - ServiceLocatorException while creating the EJB
javax.naming.NameNotFoundException: remaining name: env/ejb/remote/SystemPropertiesSession
at at.sybase.j2ee.h3g.webshop.servicelocator.web.ServiceLocator.getRemoteHome(ServiceLocator.java:84)
at at.sybase.j2ee.h3g.webshop.client.SystemPropertiesClientHelper.getEJB(SystemPropertiesClientHelper.java:62)
at at.sybase.j2ee.h3g.webshop.client.SystemPropertiesClientHelper.getValueForProperty(SystemPropertiesClientHelper.java:39)
at at.sybase.j2ee.h3g.webshop.admin.listener.OracleAppsListener.getPeriod(OracleAppsListener.java:149)
at at.sybase.j2ee.h3g.webshop.admin.listener.OracleAppsListener.startTimer(OracleAppsListener.java:39)
at at.sybase.j2ee.h3g.webshop.admin.listener.OracleAppsListener.handleNotification(OracleAppsListener.java:86)
at weblogic.time.common.internal.TimerListener$1.run(TimerListener.java:48)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.time.common.internal.TimerListener.deliverNotification(TimerListener.java:44)
at weblogic.management.timer.Timer.deliverNotifications(Timer.java:578)
at weblogic.time.common.internal.TimerNotification$1.run(TimerNotification.java:122)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.time.common.internal.TimerNotification.execute(TimerNotification.java:119)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)