Edit Timer Event Generator MBean-Weblogic 9.2

As of new 9.0 api ,MBeanHome interface is deprecated & I have to use standard javax.management classes to connect to mbean servers.
I am been able to manage the mbean under weblogic server.
By using MBeanHome.getMBeansByType(TimerEventGeneratorsMBean.TYPE) in old API I can easily manipulate the properties.
But how can I get the Event Generator MBeans & manage their properties in new 9.0 api?
I am really worried & could not get any proper documentation of manipulating WLI Mbeans in new API.
Thanks in advance.

As of new 9.0 api ,MBeanHome interface is deprecated & I have to use standard javax.management classes to connect to mbean servers.
I am been able to manage the mbean under weblogic server.
By using MBeanHome.getMBeansByType(TimerEventGeneratorsMBean.TYPE) in old API I can easily manipulate the properties.
But how can I get the Event Generator MBeans & manage their properties in new 9.0 api?
I am really worried & could not get any proper documentation of manipulating WLI Mbeans in new API.
Thanks in advance.

Similar Messages

  • Weblogic Timer Event Generator - How it works?

    Hello everyone!
    I have wrote simple wli-application, that subscribes to the message broker channel.
    I have deployed it to the cluster (managed servers 1 (ms1) and 2(ms2)). (I use Weblogic Server 10.3, cluster contains 1 admin server and 2 managed servers.)
    Than I have created the timer event generator (EG) via wliconsole and rule for this EG - to send message to the MB-channel every 30 seconds.
    Then I redeploy EG application via console (WLS Admin Console) from managed server 1 to cluster (m.servers 1 and 2) and start it.
    Everything started ok - I got messages to both instatnces of my application in the following way:
    15:30:00 - to instance on ms1
    15:30:30 - to instance on ms2
    15:31:00 - to instance on ms1
    15:31:30 - to instance on ms2
    ...and so on
    when I shut down ms2 - I started to receive messages to instance of my application on ms1 every 30 secodns. Here Everything is OK.
    Then I start ms 2 and got the picture like:
    15:30:00 - to instance on ms1
    15:30:30 - to instance on ms2
    15:31:00 - to instance on ms1
    15:31:30 - to instance on ms2
    ...and so on
    Then I shutdown ms1... And that's all - no messages to instance on ms2 :(
    I started ms1 and no messages on both instances - on ms1 and ms2..
    Can you explain me how Timer Event Generator works? What resources it uses? And how can I setup it to get load-balancing while both instances running and failover - when one of the instances shutdowned?
    Thanks in advance,
    Vladimir.

    Hi Vladimir, it seems like we must have different environments. I don't know if you used the latest version of wli or not...
    So, not exactly for you, but for someone who happens to read this post, and has the same problems we did...
    -- I've configured the cluster address using the IP i've assigned to the servers.
    --- it means that it is like: 192.168.70.120:8013,192.168.70.120:8113 - ip's & PORT, yes?
    Yes, that's the format we are using (http://download.oracle.com/docs/cd/E13222_01/wls/docs92/cluster/setup.html#wp751583)
    -- Configured the FrontEndHost and FrontEndPort with that same values as the AdminServer.
    --- and you have the http-proxy deployed on your admin server? 'cause front-end host and port - must be the host and port of http-proxy that performs load-balancing for requests to your processes on your managed servers.
    Actually we don't need the HTTP load balance, we only start the process via EG events, so we only benifit from load balancing on the JMS queues, but i had to configure this to be able to start the process. We had errors if we didn't configure this. We used the AdminServer address and port.
    -- Relocated the Persistent Stores and JMS Servers since some were incorrectly pointing to the AdminServer.
    ---I didn't understand about what p.stores you are talking about.. I meant that you must create new JDBC p.store with table in cgDataSource and targeted to migratable target. And than you must create a new jms-server, which hosted to this p.store.
    ...But I didn't retarget any existing p.stores......
    Once the domain was created (didn't do anything but to follow the wizard) we had the persistent stores (and underlying JMS servers) targeted to the AdminServer (obviously incorrect). So we retargeted them to the Managed Server.
    -- Created the JSP_<PROCESS> table in the database.
    --- and what is this? :)
    We had to create a table to persist the wli process state, because it is a statefull process (http://download.oracle.com/docs/cd/E13214_01/wli/docs102/dbtuning/wliTuning.html)
    The matter of fact is everything works fine, despite the exceptions i mentioned in the AdminServer, once it gets started... But it seems to have no negative impact on the application, and migration is done successfully
    I will continue to work on figuring out what the origin of those exceptions is, and if i manage to find a solution i, most surely, will post it here... One thing i find to be strange is that the exceptions start even before i have anything deployed to the Migratable Target... Once i create it and restart the server i get those messages, and we tried the Concensus configuration with NodeManager, as well as the Database configuration.
    I guess that what's really important for us now is that we do have fail over and load balancing working... :D
    I don't know if it would be abusive to ask you for that document of yours, maybe it has some clue on what's wrong in our config, but again, i understand if you can't share that =)
    By the way, i'm portuguese, but since google made the translator available, i guess i can manage russian documentation as well ;)
    I can't tell you how gratefull i am for your help, and for sharing your previous experience with the rest of us. If it wasn't for your altruism i guess i would be stuck with this for much longer... you sure saved my day... BIG BIG thank you..
    Once again, thank you and i wish you all the best !!! I just wished i could be helpfull to you sometime =)

  • Using WLST: Unable to create WLI Timer Event Generator

    Hello,
    I'm trying to create a WLST script, whcih will create Timer Event Generator on WLI 9.2 MP2.
    Though to some extent script runs perfect, but it gives error when calling MBean egCfgMBean = getTarget("TimerEventGeneratorss/TimerEventGenerators")
    Here is my script:-
    import weblogic.Deployer
    import com.bea.wli.mbconnector.timer as timereggen
    import com.bea.wli.mbconnector.file as fileeggen
    import com.bea.wli.management.configuration as wlicfg #Must have wli.jar in classpath
    import java.lang.Boolean as bool
    import jarray
    import sys
    print 'Starting the Timer Event Generation Configuration script .... '
    if connected != 'true':
    print 'Connecting to weblogic server .... '
    connect(userName,passWord,URL)
    else:
    print 'Connected'
    try:
    print "Creating Timer EG ", timerEgName
    timereggen.TimerConnGenerator.main(["-inName", timerEgName,"-outfile", domaindir + "/" + "WLITimerEG_" + timerEgName + ".jar"])
    #timereggen.TimerConnGenerator.main(["-inName", timerEgName,"-outfile", domaindir,"-destJNDIName",jndiName])
    #timereggen.TimerConnGenerator.main(["-inName", timerEgName,"-outfile", domaindir])
    #wlst.config()
    custom()
    #egCfgMBean = wlst.getTarget("TimerEventGenerators/TimerEventGenerators")
    egCfgMBean = getTarget("TimerEventGeneratorss/TimerEventGenerators")
    egMBean = egCfgMBean.newTimerEventGenConfigurationMBean(timerEgName)
    #egMBean = cmo.getTimerEventGenConfigurationMBeans()
    cData = jarray.zeros(1, wlicfg.TimerEventGenChannelConfiguration)
    print 'pass one'
    cData[0] = wlicfg.TimerEventGenChannelConfiguration()
    cData[0].setChannel(channel)
    cData[0].setEffective(effectiveTime)
    #cData[0].setExpiry(expiryTime)
    cData[0].setFrequency(frequency)
    cData[0].setMessageContent(message)
    cData[0].setCalendarName(calendar)
    cData[0].setPublishAsUser(publishAsUser)
    egMBean.setChannels(cData);
    appName = "WLITimerEG_" + timerEgName
    deploy( appName, domaindir + "/" + appName + ".jar", adminServerName, "nostage" )
    cd("Applications/" + appName)
    set("LoadOrder", 1500)
    cd("../..")
    print "script returns SUCCESS"
    except:
    print "ERROR: configuration"
    #dumpStack()
    # Finished
    print 'Disconnecting from server...'
    disconnect('y')
    print 'Finished.'
    exit()
    I really need some help to fix this issue.
    Thanks
    dig

    Hi,
    RDBMS Event Generator Channel Rule Definition
    When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
    You should always use the navigation links provided and create a new channel rule definition.
    http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
    http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
    http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
    This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
    Regards,
    Kal

  • Timer Event Generator.

    Hi there
    I'm running WL Platform 8.1 SP4. I am using the timer event generator to fire requests to a channel/process. The timer is simply used to start a given process, there is no notion of message sent to it.
    Issues
    1) When defining a channel,
    e.g
    <channel name ="XToY" messageType="xml"
    qualifiedMetadataType="eg:TimerEventGenerator" />
    It seems I must define messageType="xml", if i define it as 'none' then it does not appear in the channel list when defining the timer event generator, therefore i cannot bind to it. So if I leave the messageType as xml, it appears. For the configuration of the timer, the message element is optional. Problem is when the timer now fires it throws the following error:
    <08-May-2006 10:25:25 o'clock BST> <Error> <WLI-Core> <BEA-489030> <Error publishing Timer Event message for XToYTimerEG : com.bea.wli.mbconnector.MBConnMDBBase$MBConnectorException: Can't create proc
    ess variable: com.bea.wli.mbconnector.MBConnMDBBase$MBConnectorException: Can't read XML (no root element)>
    Any ideas?
    2) Can someone direct me to any wlst scripts that allow the creation of a timer event generator in a cluster? ?I cannot find anything on dev2dev ?
    TIA
    Arvinder

    Ok, you can basically leave the messageType as XML
    and for the Timer EG configuration, for the optional message you can add <dummy/> this will fire the request and start a workflow or whatever is bound to the channel.

  • Query WLI Timer Event Generator's status

    Hi guys,
    I am using WLI 10.3. Does anyone know how to query the status of Timer Event Generator programatically?
    I am able to create and start the timer programatically through JMX and WebLogicDeploymentManager but not getting the status
    of timer. It doesn't even look like this is possible through TimerEventGenRuntimeMBean or am I missing something?
    Thanks
    Sam

    Ok, you can basically leave the messageType as XML
    and for the Timer EG configuration, for the optional message you can add <dummy/> this will fire the request and start a workflow or whatever is bound to the channel.

  • Weblogic Integration - Timer Event

    (Sorry about my english, but it isn't my native language)
    Hi, I'm working with weblogic integration 8.1 sp6 and I didn't found enough documentation about Timer Event. When I'm creating a new Timer Event Generator, Weblogic Integration Administrative Console required 2 parameters (Generator Name and JMS Connection Factory JNDI Name), and JMS Connection Factory JNDI Name show three options (weblogic.jws.jms.QueueConnectionFactory, wli.internal.egrdms.XAQueueConnectionFactory and com.bea.wli.b2b.server.TopicConnectionFactory). My question is: What is the best "JMS Connection Factory JNDI Name" option?.
    Thanks in advance.

    (Sorry about my english, but it isn't my native language)
    Hi, I'm working with weblogic integration 8.1 sp6 and I didn't found enough documentation about Timer Event. When I'm creating a new Timer Event Generator, Weblogic Integration Administrative Console required 2 parameters (Generator Name and JMS Connection Factory JNDI Name), and JMS Connection Factory JNDI Name show three options (weblogic.jws.jms.QueueConnectionFactory, wli.internal.egrdms.XAQueueConnectionFactory and com.bea.wli.b2b.server.TopicConnectionFactory). My question is: What is the best "JMS Connection Factory JNDI Name" option?.
    Thanks in advance.

  • Suspending JMS event generator

    Hi,
    How do I suspend a jms event dynamically?
    I know that this can be done with WLI Admin Console but is there another way to do this without user intervention?
    Help appreciated.

    Hello,
    event generators are in most cases EJBs (the HTTP event generator may be the only exeption).
    Suspending is actually equal to undeploying.
    I do not know, if you can use the event generator MBeans, but you can always use the weblogic.Admin command to undeploy/redeploy a JMS event generator.
    -Kai

  • Delete event generator using wlst

    Hi guys,
    Does someone know if it is possible to find timer event generator by its name and delete it in Weblogic(version 9.2.3) using wlst?
    Thanks

    You could see this informantion here:
    http://docs.oracle.com/cd/E14981_01/wli/docs1031/deploy/cluster.html#wp1519038

  • Weblogic 10R3 event generator crash

    I deloy my application on weblogic 10R3 flatform, some timer&RDBMS event generator created, most time, it works well,but sometime i find it crashes the RDBMS event generator can't work ,no row be readed,but it do exists in table, and should be readed, what happened to event generator
    in the weblogic console, i find the corresponding event generator application is abnormal, in the releated thread pool , available ejb instance size is 0, is it a problem?
    in this situation, what can i do is just to delete the specified RDBMS event generator and rereated it , who can help me? i expect your suggestion and troubleshooting, thanks.
    Edited by: 918965 on 2012-3-5 下午10:31
    Edited by: 918965 on 2012-3-7 下午6:19

    I deloy my application on weblogic 10R3 flatform, some timer&RDBMS event generator created, most time, it works well,but sometime i find it crashes the RDBMS event generator can't work ,no row be readed,but it do exists in table, and should be readed, what happened to event generator
    in the weblogic console, i find the corresponding event generator application is abnormal, in the releated thread pool , available ejb instance size is 0, is it a problem?
    in this situation, what can i do is just to delete the specified RDBMS event generator and rereated it , who can help me? i expect your suggestion and troubleshooting, thanks.
    Edited by: 918965 on 2012-3-5 下午10:31
    Edited by: 918965 on 2012-3-7 下午6:19

  • New article: Exploring the WebLogic Integration 8.1 RDBMS Event Generator

    Dev2Dev has just published an article that you may be interested in:
    Exploring the WebLogic Integration 8.1 RDBMS Event Generator
    http://dev2dev.bea.com/pub/a/2007/02/rdbms-event-generator.html
    If you'd like to write for Dev2Dev on a WebLogic Integration (or any other) topic, please contact me!
    Regards,
    Jon
    Jon Mountjoy - Editor, Dev2Dev - http://dev2dev.bea.com/pub/au/13

    If you are using a cluster you need to make sure the connection pool and data source are deployed on the admin server. I have had this problem many times before.

  • Config event generator to log when file didn't arrive at certain time?

    hi everyone
    is it possible to configure a file event generator to write a log if certain files did not arrive at pre-defined time? or any event generator to log if certain events did not happen at specified time? thanks in advance.
    Message was edited by chendongtom at Sep 13, 2004 10:23 AM

    Hi,
    I don't think, it is possible.
    What you can do is:
    Don't use file EG, but a timer EG, which kicks off a workflow, using a file control to look for/read in/.. the file and do some reporting afterwards.
    You do not have to kick-off the workflow at the exact time, but also can do it 2 hours (for example) before and use a timer inside the workflow for watching a time period for the arrival of the file.
    Keep in mind that WLI timers are not 100% exact because they are JMS based, so it is guranteed not to be started before, but can start a little bit later than start-time.
    If you are using already a scheduling system like Control-
    M, you can also leverage this to start the workflow.
    -Kai

  • Cannot see or edit time of events in iCal

    I cannot see or edit times in iCal any longer, only dates. This affects only one user, so I guess that there is a corrupted user-specific resource file somewhere that I could try renaming/deleting. Does anyone have any ideas?
    I believe that this condition was triggered by creating an iCal event from Mail.
    More details and a screenshot at http://forums.macrumors.com/showpost.php?p=8110912&postcount=10
    Thanks for any hints/suggestions.

    Eventually found in System Preferences -> International -> Formats that my region was set to "Custom". I have no idea how this happened - I certainly never set this directly through system preferences.
    I selected "United Kingdom" as my region, and the times showed up in iCal once again.

  • How to create an RDBMS event generator using wlst on weblogic 10.3

    how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
    but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.

    Hi,
    RDBMS Event Generator Channel Rule Definition
    When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
    You should always use the navigation links provided and create a new channel rule definition.
    http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
    http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
    http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
    This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
    Regards,
    Kal

  • Using JMS Event Generator w/ remote WebLogic 8.1 queue

    Hello,
    I'm trying to create a workflow that is started by a JMS message queue event.
    I'm trying to use the WLIJMSEventGenTool in WebLogic 8.1 to listen to a queue
    on a remote WebLogic 8.1 installation, publish the incoming messages to a channel,
    then initiate a workflow by subscribing to that channel. Here's a copy of my configuration
    file for the tool:
    <message-broker-jms-event-generator-def source-jndi-name="SearchInputQueue"> <channel
    name="/srm/sInput/sInput" /> </message-broker-jms-event-generator-def >
    I tried to tackle this by configuring a foreign JMS Server, Connection Factory,
    and Destination using the Weblogic Admin Console. Below are the parameters I used
    to define the remote connection
    Foreign JMS Server:
    jndi initial context factory: weblogic.jndi.WLInitialContextFactory jndi connection
    url: //OPER1090:7001
    Foreign connection factory:
    local jndi name: FtsFactory remote jndi name: weblogic.jws.jms.QueueConnectionFactory
    (Are username and password required?)
    Foreign JMS Destination:
    local jndi name: SearchInputQueue remote jndi name: InternalSearchInputQueue
    After I try to deploy my generated JMS Event jar, I receive the following error:
    <Jun 6, 2003 10:31:50 AM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven
    E JB: SearchInputQueue-UnorderedMessageListener is unable to connect to the JMS
    de stination: SearchInputQueue. The Error was: [EJB:011010]The JMS destination
    with the JNDI name: SearchInputQueue could not b e found. Please ensure that the
    JNDI name in the weblogic-ejb-jar.xml is correct , and the JMS destination has
    been deployed.>
    I'm pretty sure the problem is simply that my syntax is off somewhere in my configuration.
    I found the existing BEA documentation to be a bit too generic, containing no
    specific examples of the proper syntax to use for this task. Can anyone offer
    any advice or better, a working example? Any BEA reps out there?

    Hello,
    I'm trying to create a workflow that is started by a JMS message queue event.
    I'm trying to use the WLIJMSEventGenTool in WebLogic 8.1 to listen to a queue
    on a remote WebLogic 8.1 installation, publish the incoming messages to a channel,
    then initiate a workflow by subscribing to that channel. Here's a copy of my configuration
    file for the tool:
    <message-broker-jms-event-generator-def source-jndi-name="SearchInputQueue"> <channel
    name="/srm/sInput/sInput" /> </message-broker-jms-event-generator-def >
    I tried to tackle this by configuring a foreign JMS Server, Connection Factory,
    and Destination using the Weblogic Admin Console. Below are the parameters I used
    to define the remote connection
    Foreign JMS Server:
    jndi initial context factory: weblogic.jndi.WLInitialContextFactory jndi connection
    url: //OPER1090:7001
    Foreign connection factory:
    local jndi name: FtsFactory remote jndi name: weblogic.jws.jms.QueueConnectionFactory
    (Are username and password required?)
    Foreign JMS Destination:
    local jndi name: SearchInputQueue remote jndi name: InternalSearchInputQueue
    After I try to deploy my generated JMS Event jar, I receive the following error:
    <Jun 6, 2003 10:31:50 AM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven
    E JB: SearchInputQueue-UnorderedMessageListener is unable to connect to the JMS
    de stination: SearchInputQueue. The Error was: [EJB:011010]The JMS destination
    with the JNDI name: SearchInputQueue could not b e found. Please ensure that the
    JNDI name in the weblogic-ejb-jar.xml is correct , and the JMS destination has
    been deployed.>
    I'm pretty sure the problem is simply that my syntax is off somewhere in my configuration.
    I found the existing BEA documentation to be a bit too generic, containing no
    specific examples of the proper syntax to use for this task. Can anyone offer
    any advice or better, a working example? Any BEA reps out there?

  • Standard not allow to edit value of activity type (Time event confirm CO19)

    All expert,
    I have requirement to customize program same as CO19 for confirmation time event by using BAPI_PRODORDCONF_CREATE_TE and now pogram can post record type B10 for start and B40 for finish processing. By the way I just have a little requirement for B40 to input calculation value in program at field ActyToConf1 to ActyToConf4 and Unit/activity1 to Unit/activity4 as parameters below. but program ignore all value that I input, only get result the value from standard
    Anyone advice me how I can do that?
    gt_timeevents-orderid = caufv-aufnr.
    gt_timeevents-operation = '0010'.
    gt_timeevents-recordtype = 'B40'. "Finish
    gt_timeevents-fin_conf = 'X'.
    gt_timeevents-logdate = wa_screen300-fisbd.
    gt_timeevents-logtime = wa_screen300-fisbz.
    gt_timeevents-yield = wa_screen300-yield.
    gt_timeevents-conf_acti_unit1 = 'MIN'.
    gt_timeevents-conf_activity1 = 10.
    gt_timeevents-target_acti1 = 'X'.
    gt_timeevents-conf_acti_unit2 = 'MIN'.
    gt_timeevents-conf_activity2 = 30.
    gt_timeevents-target_acti2 = 'X'.
    gt_timeevents-conf_acti_unit3 = 'UNI'.
    gt_timeevents-conf_activity3 = 60.
    gt_timeevents-target_acti3 = 'X'.
    gt_timeevents-conf_acti_unit4 = 'UNI'.
    gt_timeevents-conf_activity4 = 30.
    gt_timeevents-target_acti4 = 'X'.
    APPEND gt_timeevents. CLEAR gt_timeevents.
    Edited by: Konnapa on May 13, 2009 7:14 AM

    Rajesh,
    Put a breakpoint and try to debug the report step by step.
    You will findout the reason very easily.
    Whenever you have a select and are trying to append into an internal table, keep checking your internal table if it is been populated with the correct records.
    This way, you will findout the cause and can correct is accordingly.
    Thanks,
    Suresh Ganti

Maybe you are looking for