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

Similar Messages

  • 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 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 =)

  • 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

  • I am unable to create a new event on my iPhone with IOS 7.0.4. I tap the plus sign, fill in the details, tape Done and ... nothing. Repeatedly. No problem on my iMac or iPad, just with the phone. Help.

    I am unable to create a new event on my iPhone with IOS 7.0.4. I tap the plus sign, fill in the details, tape Done and ... nothing. Repeatedly. No problem on my iMac or iPad, just with the phone. Help.

    Assuming you're creating this event to place in your calendar, and assuming this calendar is shared with your iMac and iPad using iCloud, might the calendar be restricted on your iPhone?
    Check Settings > General > Restrictions

  • How to create a time event without having user interface freeze

    Hi,
    I am new to labwindows and i am trying to create a time event where every hour for 24 hours i want my program to write somethign in excel. 
    I tried using function Delay and SyncWait and those functions freezes up the user interface.
    Any tips/help will be appreciated.
    Thank You
    Solved!
    Go to Solution.

    Many, if not most, CVI developers wind up implementing a delay function for themselves that periodically, during the delay, wakes up and processes events so that the GUI isn't frozen.
    The idea is to break the wait or delay up into pieces, and process system events in between each piece.
    A timer works too, you can try the async timer that Wolfgang mentioned, it runs a bit better and on a separate thread, so it lets you do what you normally would with the main thread and the GUI, yet still get timer function.   If you use a smart delay, you still wind up doing nothing a great deal of the time, and events are only processed periodically.

  • I am unable to create reminders or events in iCal with my iPhone 5

    I am unable to create reminders or events in iCal with my iPhone 5.

    Go to settings>iCloud and turn Contacts and Calender on.

  • 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.

  • Value change using DataSocket can't create value change event on remote computer?

    I am trying to create an event on the remote computer:
    Local computer:
    Change a value in remote computer by DataSocket.
    Remote Computer:
    create a event: when the value changes.
    I can see the value change on the remote computer; however, the value change doesn't cause the "value change event".
    Anyone tried this before?  Thanks.
    ------- LabVIEW 2009, So Easy, Even a Therapist Can Do It -------

    Hi,
    Event Structure monitors a specified event based on user interaction on the front-panel objects. However, it does not monitor event generated programmatically like a change in the DataSocket data value. In order to generate a value change event with the DataSocket, you will need to use the "value (signaling)" property node for the DataSocket data or control. This property node sets the value of the control and also generates a Value Change event.
    To create the property node, simply right click the control and select "Create>>Property Node>> Value (Signaling)". You can then wire the output from the DataSocket read to this property.
    You can also checkout this knowledgebase entry for additional information.
    Tunde

  • WLI MQ Event Generator Tuning

    Greetings:
    I have a MQ Event generator that subscribes to a qlocal and publishes messages onto a channel read by a business process.
    I need to process around 10 messages a second syncronously through this process (fifo), judging by the process instance monitoring I am able to process most transactions in <.1 seconds. However, it doesn't seem like the event generator is polling/publishing fast enough to fully utilize the efficiency of the process. I routinely have thousands of messages backing up on the queue awaiting processing. I have tried different configurable params on the event generator (500 messages every 10 seconds, 1 msg every 100 msecs etc) to no avail... i still only seem to be pulling one message in just under a second.
    I'm wondering where I can tune this piece of the application. All my threads seem pretty free etc...
    Any help would be greatly appreciated. Thanks!

    Suspending / resuming event generators is nothing else then undeploying /redeploying the component, which is building up the event generator (either a MDB or a servlet). That can be done via the JMX Api.
    If you are using Timer events , you have to do that inside a workflow. A cron job calling a script could do that less resource intensive (or use whatever scheduling system which is available like Control-M ...)
    Be also aware that WLI timers are JMS based, so an event is only guaranteed to be raised not before the scheduled time, but maybe not exactly at the scheduled time.
    -Kai

  • 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.

  • After Creating a RecordSet using Wizard, Unable to Create RecordSet Paging - Error Occurs

    I created a record set using the wizard and it tested just fine using the test button.  So my next step was to create the "RecordSet Paging" "Move to First Record", whe I select this I get the error "Before using this Server Behavior, please create a record set"
    The record set is there, it is even checked off in the binding list as being there, yet I can not do anything, I even went in and deleted it and tried again with the same result, this is getting very annoying and is causing me a lot of extra work.
    Is this a BUG!!!
    I have seen this issue several times now.
    Running Version 11.0 build 4993
    Signed
    Frustrated!!!!!

    Hi,
    For questions regarding dynamic site development,  hop over to the following forum.  You'll get better answers there.
    Dreamweaver Application Development Forum
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Unable to create all-day events or see old ones

    I can create an all-day event but on ical but then it disapears from the desktop but shows up on ipad and iphone through icloud. 

    ethankromhout wrote:
    I opening a ticket on this as well, but I thought someone here might have a quick insight. It was brought to my attention by a user today, that if you create an all day calendar event in Calendar Express or UWC, it simply fails to appear in the calendar view. Searching for it you can find the event, but it won't show up in your week or day view, and won't affect you availability, even if that option was selected when creating the event.
    The user feels this started last week. We did apply a point patch, 125816-12 on 2/17/2009, though that same patch was applied in test and I don't see the problem there. The internal Sun IT systems hit the very same issue last year (bug #6709380 - "All day events not showing for all the users in Sedge Calendar"). Restarting the calendar server (front-end and back-end) fixed the problem in that case.
    Unfortunately we were never able to track down the root cause of this intermittent problem (not for a lack of trying mind you) -- the internal systems are now running CS6.3 and have not hit the problem since.
    One thing I can suggest however is upgrading the back-end to the same revision as the front-end. With calendar server it is best to keep the back-end and front-end at the same revision.
    Regards,
    Shane.

  • Error while creating rules for Event generator

    Hi,
    I followed the PO samples in dev2dev site to create an EventGenerator(both file and JMS) from a jython script. While creating rules for the eventgenerator, am getting the following exception.
    "AttributeError: 'None' object has no attribute 'newFileEventGenConfigurationMBean'"
    here is the PO sample code,
    egCfgMBean = getMBean("FileEventGenerators/FileEventGenerators")
    egMBean = egCfgMBean.newFileEventGenConfigurationMBean(egName)
    I used getMBean() instead of wlst.getTarget() to retrieve the MBean info.
    The server is weblogic 9.2 and domain is Integration domain. Looks like the getMBean() wasnt able to locate the Eventgenerator MBean for some reason and hence the variable 'egCfgMBean ' is always null. Anyone had this issue before.
    Thanks.

    It looks like getMBean("FileEventGenerators/FileEventGenerators") is not
    returning an MBean. "None" is returned if no MBean is found. Check the path
    parameter to getMBean() and make sure it is correct. If you know the object
    name of the MBean you are interested in, you may be able to use the
    getPath() command to get its path.
    wls:/mydomain/serverConfig>path=getPath('com.bea:Name=myserver,Type=Server')
    wls:/mydomain/serverConfig> print path
    <Ramesh R> wrote in message news:[email protected]..
    Hi,
    I followed the PO samples in dev2dev site to create an EventGenerator(both
    file and JMS) from a jython script. While creating rules for the
    eventgenerator, am getting the following exception.
    "AttributeError: 'None' object has no attribute
    'newFileEventGenConfigurationMBean'"
    here is the PO sample code,
    egCfgMBean = getMBean("FileEventGenerators/FileEventGenerators")
    egMBean = egCfgMBean.newFileEventGenConfigurationMBean(egName)
    I used getMBean() instead of wlst.getTarget() to retrieve the MBean info.
    The server is weblogic 9.2 and domain is Integration domain. Looks like the
    getMBean() wasnt able to locate the Eventgenerator MBean for some reason and
    hence the variable 'egCfgMBean ' is always null. Anyone had this issue
    before.
    Thanks.

  • 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

Maybe you are looking for

  • HT204266 How do I see more than one issue of a magazine at a time in Newsstand on the iPad?

    I can only see the most recent issue but I haven't read the last one (or the one before that, etc.). I want to see them for as long as it takes to read them.

  • End Call Not Working

    Is anybody else having problems ending a call with the stop button on screen on Iphone 5?

  • House Cleaning internal HD

    My HD says I have 74 gb with 72 being used. I want to try and clean it up so I have more space. I know I have two backup folders one in HD that says it is incrmental backups of home folder. that have occurred every week since May. How far back can I

  • Unable to connect to the router! (wrt54g v. 2)

    I just got a router from a garage sale; it was still in the box and everything. Well, I tried hooking it up to my modem and computer to get wifi, but I can't get it to work. This is the setup: modem -> router -> computer I can access the internet whe

  • Pass the shipment costs to billing document

    Hi All, I want to transfer the shipment costs to billing document. But i don't want to transfer to customer. I want to post it as accruals. What are the settings need to do in SD and transportation module for copying the shipment costs to billing doc