tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
3
ZUGRIFFE
785
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    mkreuzspiegl mkreuzspiegl ist offline Rookie
    Registriert seit
    May 2005
    Beiträge
    5
    hallo!
    kann mir bitte jemand sagen, wie man in BEA8 einen Hintergrundprozess aktivieren kann.
    es soll damit die datenbank in bestimmten zeitabständen kontrolliert u. bei bestimmten einträgen eine weitere verarbeitung aufgerufen werden. der überwachende prozess sollte am besten schon beim deployen aktiv sein.
    ciao, markus
     

  2. #2
    Registriert seit
    Jun 2002
    Ort
    Saarbrücken (Saarland)
    Beiträge
    9.886
    Blog-Einträge
    29
    Hallo!

    Wie wär's denn damit?
    http://e-docs.bea.com/wls/docs81/jmx/timer.html

    Gruß Tom
     
    Java rocks!
    How to become a good Java Programmer?
    Does IT in Java and .Net
    The only valid measurement of code quality: WTFs / minute
    Blog
    Xing
    Twitter

  3. #3
    mkreuzspiegl mkreuzspiegl ist offline Rookie
    Registriert seit
    May 2005
    Beiträge
    5
    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.j ava:62)
    at at.sybase.j2ee.h3g.webshop.client.SystemPropertiesClientHelper.getValueForProperty(SystemPropertiesC lientHelper.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.j ava: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)
     

  4. #4
    mkreuzspiegl mkreuzspiegl ist offline Rookie
    Registriert seit
    May 2005
    Beiträge
    5
    PS: hier das ergebniss von

    InitialContext ic = new InitialContext();
    Object obj = ic.lookup("");
    EventContext ec = (EventContext) obj;
    NamingEnumeration ne = ec.list("");
    while (ne.hasMore())
    {
    Object o1 = ne.next();
    logger.debug(o1.toString());
    }


    ... formatiert u. sortiert ...


    H3G_EARH3G_WebShop_EJB_jarRetailerSignOnSession_EO: at.sybase.j2ee.h3g.webshop.ejb.RetailerSignOnSession_9bcpao_EOImpl
    H3G_EARH3G_WebShop_EJB_jarCustomerSession_EO: at.sybase.j2ee.h3g.webshop.ejb.CustomerSession_d9jopc_EOImpl
    H3G_EARH3G_WebShop_EJB_jarAttributeSession_EO: at.sybase.j2ee.h3g.webshop.ejb.AttributeSession_wuuu9w_EOImpl
    H3G_EARH3G_WebShop_EJB_jarRetailerStoreSession_EO: at.sybase.j2ee.h3g.webshop.ejb.RetailerStoreSession_2pdpy2_EOImpl
    H3G_EARH3G_WebShop_EJB_jarHelpSession_EO: at.sybase.j2ee.h3g.webshop.ejb.HelpSession_hicd3k_EOImpl
    H3G_EARH3G_WebShop_EJB_jarSequencesGenerator_EO: at.sybase.j2ee.h3g.webshop.ejb.SequencesGenerator_7z445u_EOImpl
    H3G_EARH3G_WebShop_EJB_jarRetailerMailUsernameSession_EO: at.sybase.j2ee.h3g.webshop.ejb.RetailerMailUsernameSessionBean_1if4r4_EOImpl
    H3G_EARH3G_WebShop_EJB_jarTextPropertiesSession_EO: at.sybase.j2ee.h3g.webshop.ejb.TextPropertiesSession_wogzv4_EOImpl
    H3G_EARH3G_WebShop_EJB_jarCountrySession_EO: at.sybase.j2ee.h3g.webshop.ejb.CountrySession_76vkg_EOImpl
    H3G_EARH3G_WebShop_EJB_jarDeltaVistaCheckSession_EO: at.sybase.j2ee.h3g.webshop.ejb.DeltaVistaCheckSession_8pw3ai_EOImpl
    H3G_EARH3G_WebShop_EJB_jarCodeResourceSession_EO: at.sybase.j2ee.h3g.webshop.ejb.CodeResourceSession_z0frbk_EOImpl
    H3G_EARH3G_WebShop_EJB_jarXmlHistorySession_EO: at.sybase.j2ee.h3g.webshop.ejb.XmlHistorySession_wzoaog_EOImpl
    H3G_EARH3G_WebShop_EJB_jarOracleAppsSession_EO: at.sybase.j2ee.h3g.webshop.ejb.OracleAppsSession_mg4w34_EOImpl
    H3G_EARH3G_WebShop_EJB_jarHardwareSession_EO: at.sybase.j2ee.h3g.webshop.ejb.HardwareSession_lfff9s_EOImpl
    H3G_EARH3G_WebShop_EJB_jarPaymentGatewaySession_EO: at.sybase.j2ee.h3g.webshop.ejb.PaymentGatewaySession_sjr86o_EOImpl
    H3G_EARH3G_WebShop_EJB_jarSystemPropertiesSession_EO: at.sybase.j2ee.h3g.webshop.ejb.SystemPropertiesSession_kanfps_EOImpl
    H3G_EARH3G_WebShop_EJB_jarAddressSession_EO: at.sybase.j2ee.h3g.webshop.ejb.AddressSession_orgcbw_EOImpl
    H3G_EARH3G_WebShop_EJB_jarStoreSession_EO: at.sybase.j2ee.h3g.webshop.ejb.StoreSession_pd0tqe_EOImpl
    H3G_EARH3G_WebShop_EJB_jarOrderSearchSession_EO: at.sybase.j2ee.h3g.webshop.ejb.OrderSearchSession_gcgcb4_EOImpl
    H3G_EARH3G_WebShop_EJB_jarMailSession_EO: at.sybase.j2ee.h3g.webshop.ejb.MailSession_5irwy8_EOImpl
    H3G_EARH3G_WebShop_EJB_jarPictureSession_EO: at.sybase.j2ee.h3g.webshop.ejb.PictureSession_grgxvk_EOImpl
    H3G_EARH3G_WebShop_EJB_jarSignOn_EO: at.sybase.j2ee.h3g.webshop.ejb.SignOn_emdnug_EOImpl
    H3G_EARH3G_WebShop_EJB_jarStatusChangeSession_EO: at.sybase.j2ee.h3g.webshop.ejb.StatusChangeSession_587nm8_EOImpl
    H3G_EARH3G_WebShop_EJB_jarCartOrderAnnotationSession_EO: at.sybase.j2ee.h3g.webshop.ejb.CartOrderAnnotationSession_d1jari_EOImpl
    H3G_EARH3G_WebShop_EJB_jarAdminRightSession_EO: at.sybase.j2ee.h3g.webshop.ejb.AdminRightSession_u61xps_EOImpl
    H3G_EARH3G_WebShop_EJB_jarRetailerUserSession_EO: at.sybase.j2ee.h3g.webshop.ejb.RetailerUserSession_7lwoa8_EOImpl

    H3G_EARH3G_WebShop_EJB_jarCartSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    EmailSession: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarProductSearchSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    Gis2G3GSession: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_Hardware: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarRetailerCreditCheckSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_WebShop: weblogic.rmi.cluster.ClusterableRemoteObject
    ProductSearchSession: weblogic.rmi.cluster.ClusterableRemoteObject
    CcDecisionReasonSession: weblogic.rmi.cluster.ClusterableRemoteObject
    RetailerCreditCheckSession: weblogic.rmi.cluster.ClusterableRemoteObject
    CategorySearchSession: weblogic.rmi.cluster.ClusterableRemoteObject
    CartSession: weblogic.rmi.cluster.ClusterableRemoteObject
    DataSetSession: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarCcDecisionReasonSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarEmailSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    NameService: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarCategorySearchSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarDataSetSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_OracleApps: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarGis2G3GSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject
    PageAccessSession: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_IM: weblogic.rmi.cluster.ClusterableRemoteObject
    H3G_EARH3G_WebShop_EJB_jarPageAccessSession_EO: weblogic.rmi.cluster.ClusterableRemoteObject

    weblogic: weblogic.jndi.internal.ServerNamingNode
    jms: weblogic.jndi.internal.ServerNamingNode
    mail: weblogic.jndi.internal.ServerNamingNode
    javax: weblogic.jndi.internal.ServerNamingNode

    CartSessionLocal: javax.naming.LinkRef
    ProductSearchSessionLocal: javax.naming.LinkRef
    Email: javax.naming.LinkRef
    RetailerCreditCheckSessionLocal: javax.naming.LinkRef
    DataSetSessionLocal: javax.naming.LinkRef
    CcDecisionReason: javax.naming.LinkRef
    CategorySearchSessionLocal: javax.naming.LinkRef
    Gis2G3GSessionLocal: javax.naming.LinkRef
     

Ähnliche Themen

  1. Antworten: 2
    Letzter Beitrag: 19.09.11, 08:34
  2. fileupload mit struts
    Von cheops16 im Forum Enterprise Java (JEE, J2EE, Spring & Co.)
    Antworten: 1
    Letzter Beitrag: 14.09.09, 11:23
  3. Struts + MySQL
    Von ava99 im Forum Enterprise Java (JEE, J2EE, Spring & Co.)
    Antworten: 0
    Letzter Beitrag: 12.03.09, 14:22
  4. Hintergrundprozess
    Von notebook20000 im Forum Hosting & Webserver
    Antworten: 2
    Letzter Beitrag: 14.03.07, 09:28
  5. Hintergrundprozess mit PHP starten
    Von notebook20000 im Forum PHP
    Antworten: 2
    Letzter Beitrag: 13.03.07, 16:59