Exposing Oracle CEP as WebService

Can you explain a step by step process to expose an Oracle CEP application through web services?
I was using the steps mentioned into the following link -
http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14301/webservconfig.htm - Step 14.3
I have followed the steps but while deploying the Oracle CEP server was throwing error stating - 'bea-jaxws.xml' is not found.
If you know some way to make 'bea-jaxws.xml' recognizable by the server please let me know.

You need to
1) configure glashfish webservice at server's config.xml:
<glassfish-ws>
<name>JAXWS</name>
<http-service-name>JettyServer</http-service-name>
</glassfish-ws>
2) configure a bea-jaxws.xml at META-INF
<endpoints>
<endpoint>
<name>EchoService</name>
<implementation-class>
sample.echoservice.EchoService
</implementation-class>
<url-pattern>/echo</url-pattern>
<wsdl-location>
/META-INF/wsdl/echoservice.wsdl
</wsdl-location>
<service-name>
{http://example.cep.oracle.com}EchoService
</service-name>
<port-name>
{http://example.cep.oracle.com}EchoPort
</port-name>
</endpoint>
</endpoints>
3) state the webservice configuration location at META-INF/MANIFEST.MF
BEA-JAXWS-Descriptor: META-INF/bea-jaxws.xml
4) implement the webservice like below:
import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
@WebService(name="SimplePortType", serviceName="EchoService",
portName="EchoPort",
targetNamespace="http://example.cep.oracle.com")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.BARE)
public class EchoService{
@WebMethod()
@WebResult(name="echoWorldResponse", targetNamespace="http://example.cep.oracle.com", partName="parameters")
public String echoWorld(String message) {
System.out.println("echo:" + message);
return "echo:" + message;
Note that only SOAPBinding.ParameterStyle.BARE is supported in OCEP for now.
Let me know if you still have question.
Junger

Similar Messages

  • Error while running the sample program in Oracle CEP

    Hi I am New to CEP. I have installed Oracle CEP 11g. I am trying to run the example available in sample folder. I am getting the below error.
    Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.wlevs.Server.main(Server.java:185)
    Caused by: java.lang.IllegalArgumentException: Bundle <file:/D:/bea/modules/com.bea.core.apache.commons.logging.api_1.1.0.jar> has no known start level label
         at com.bea.backplane.launcher.Launcher.getStartLevelLabelFromJarLabel(Launcher.java:1663)
         at com.bea.backplane.launcher.Launcher.updateStartLevelViaJarLabel(Launcher.java:1714)
         at com.bea.backplane.launcher.Launcher.adjustStartLevel(Launcher.java:1625)
         at com.bea.backplane.launcher.Launcher.prepareConfig(Launcher.java:1169)
         at com.bea.backplane.launcher.Launcher.run(Launcher.java:539)
         at com.bea.backplane.launcher.Launcher.main(Launcher.java:149)
         ... 5 more
    Please let me know the reason for getting the error.

    I'm gussing you installed OCEP in an existing ORACLE_HOME. You should create a new home otherwise the modules may conflict with other products.
    andy

  • How can I access the Oracle CEP from the a simple java code

    I want to access the current values in coherence cache and show those in a screen. So for that I want to create a java class which can access the Coherence cache of the CEP application and get the current values in the Cache.
    Do anyone had any sample code for this, or any idea how to do this.

    As mentioned, you can use Spring to pass a reference to your cache to an event bean as shown below.
    Once you have a reference to the cache you can use whatever Coherence APIs you need.
    For example: get an object based on the key, perform an invoke, or a query to get the values that you want to display.
    Here's some sample code:
    IN EPN
    <wlevs:caching-system id="CoherenceCachingSystem" provider="coherence" />
    <wlevs:cache id="TransactionCache" caching-system="CoherenceCachingSystem"
              value-type="TransactionAmount" key-class="com.oracle.poc.event.TransactionAmountKey">                                   
    </wlevs:cache>
    <wlevs:event-bean id="TransactionCacheQuery" class="com.oracle.cep.eventbeans.TransactionCacheQuery">
         <wlevs:listener ref="P1TotalChannel" />
         <wlevs:instance-property name="transactionCache" ref="TransactionCache" />
    </wlevs:event-bean>
    EVENT BEAN:
    import com.tangosol.net.NamedCache;
    import com.tangosol.util.aggregator.DoubleSum;
    import com.tangosol.util.filter.EqualsFilter;
    public class TransactionCacheQuery implements StreamSource, StreamSink {
         private StreamSender streamSender_;
         @SuppressWarnings("unchecked")
         private Map transactionCache;     
         @SuppressWarnings("unchecked")
         public void setTransactionCache(Map transactionCache) {
              this.transactionCache = transactionCache;
         public void setEventSender(StreamSender sender) {
              streamSender_ = sender;
         public void onInsertEvent(Object event) throws EventRejectedException {
              if (event != null){
                   if (event instanceof MyEvent){
                        MyEvent my = (MyEvent)event ;
                        NamedCache cache = (NamedCache)transactionCache ;
                        Object totalAmount = cache.aggregate(
                                  new EqualsFilter("getACCT_NUMBER", my.getACCT_NUMBER()),
                                  new DoubleSum("getAmount"));
                        double transactionsTotal = 0.00 ;
                        if (totalAmount instanceof Double){
                             transactionsTotal = ((Double)totalAmount).doubleValue();
                        my.setTransactionsTotal(transactionsTotal);
                        // send new event to the processor
                        streamSender_.sendInsertEvent(my);     
    }

  • Java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : Failure in SDOSerializer.deserialize

    Hi All,
    I am getting this exception while invoking one of our service from EM. Any pointers will be very helpful.
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : Failure in SDOSerializer.deserialize. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:813) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:385) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:303) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:187) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1491) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:111) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:384) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:114) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:101) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:111) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:384) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:114) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:95) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:972) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:439) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:219) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:102) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:211) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:131) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:447) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:183) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:419) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:61) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3739) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3705) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2282) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2181) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : Failure in SDOSerializer.deserialize. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:362) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:1004) at

    Hi,
    its JDeveloper and ADF on this forum. For EM related questions, you should try the EM forum
    Frank

  • Exposing business services as webservices

    Hi All,
    Im new to webservices.I have a running java web application.
    I need to expose some methods as webservices.
    Can it be possible to create a single ear file,using which i can access webapplication and webservice wsdl file and how
    Regards,
    Bhuvan.

    Yes, you can mix different type of J2EE artifacts in a single application. The easiest way to do this may be to use JDeveloper 10g (or the 11g Tech Preview) and to build you web service application, then add the remaining of you web application into the same project.
    Hope it helps,
    -Eric

  • What should be configured as channel in Oracle CEP HTTP adapter for remote publishing?

    Hi,
    Below is the adapter configuration that I have for Oracle CEP HTTP adapter for remote publishing. What exactly should be configured in <channel> here? In the oracle documentation example, it only says /channel2 as an example.
    Below is the HTTP adapter configuration file that I have created.
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application">
        <http-pub-sub-adapter>
            <name>HttpPostAdapter</name>
            <server-url>http://localhost:8080/RESTfulWS/rest/UserInfoService/post/jsonstream</server-url>
            <channel>/RESTfulWS</channel>
            <event-type>com.wipro.event.ResultEvent1</event-type>
        </http-pub-sub-adapter>
    </wlevs:config>
    '/RESTfulWS' in my above configuration is the context-root of my rest service.But this is not working so I would like someone to help me understand this configuration.
    Many thanks.
    Regards
    Sowmya

    Hi, Sowmya,
    From your configuration
    Is the http://localhost:8080/RESTfulWS/rest/UserInfoService/post/jsonstream httppubsub server? I don't think the oep http pub adapter can publish event to rest service.
    For http pub adapter, you can take a look at fx sample, it publishes events to a embedded http pub/sub server of oep.
    Thanks,
    Gala

  • How to  Instantiate Oracle BPM Process Webservice from the OSB

    Hi,
    In our project we have one requirement i.e Instantiate Oracle BPM Process Webservice from the OSB.After register BPM service in to OSB I am creating one Message flow to instantiate BPM Process.
    first call to startSession Operation, then use response of startSession operation is used as reqest for BPM process operation.
    Can u tell me how do we use response of startSession operation to the request of BPM process.
    Thanks in Advance.

    An easier way of instantiating a BPM process via a WS call is to set the authentication type to 'Username Token Profile' on your web service operation in BPM studio and then redeploy it. If you use this type of security on your bpm process operations you can start the process in one call instead of having to get a session first and then starting the process.
    Once you've updating the process, re-register the new process WSDL and business service with OSB (or import it manually) and you can just call the start process operation in one request (passing a username and password using the WS-UsernameToken method) without having to get a session first.
    Hope this all make sense,
    Mike.

  • Oracle CEP and JDBC Adapter

    I am using Oracle CEP 10g on WIndows.
    I wrote the following code on CEP:
    OracleDataSource ods = new OracleDataSource();
    ods.setURL("jdbc:oracle:thin:scott/[email protected]:1521/orcl");
    Connection conn = ods.getConnection();
    // Check for the existence of a previous customerID
    String selectStmt     = "SELECT * from STEPS " +
         "WHERE (streamID='" +
         this.customerId +
         "') and (assetid='" +
         this.eventName +
    Statement stmt  = conn.createStatement();
    //System.out.println("-- calling SELECT");
    //System.out.println(selectStmt);
    ResultSet rs    = stmt.executeQuery(selectStmt);This works great, except it is exceedingling slow. I am sending about 20,000 messages to this code.
    I think the problem is that I open the connection everytime I perform a select (and later an insert statement).
    The server instance goes away after the message has been processed, and I can not save the connection.
    Would using an adapter in config.xml prevent this openig a new connection every time a message invokes this code ?
    If so, I have never done JDBC with an adapter and I dont understand how to use an adapter to use a WHERE clause to select on variables, since in the example I have seen so far, it places "SELECT 1 from DUAL" into the config.xml and does not explain how to get mix have the SELECT statement interact with code variables or better yet how to get your code to get a connection handle.
    Could someone please post an exaqmple of how to use an adapter with JDBC, and possibly how to get your code to access a connection handle from the config.xml ?
    Thanks

    Hi,
    From note : 831162,
    <i>Oracle JDBC Driver (classes12.zip / classes12.jar) Deadlocks
    Q: I have deployed the Oracle classes12.zip / classes12.jar JDBC driver as per the instructions in the XI Configuration Guide.
    Unfortunately, I frequently notice hanging database connections. A thread dump taken according to the instructions in note 710154 shows one or more blocking JDBC Sender/Reciver threads and optionally that the JVM has detected a deadlock.
    A: <b>The Oracle classes12.zip / classes12.jar driver is compatible with JDK 1.2 and 1.3 only, but not with JDK 1.4. Upgrade to a current version of the driver (ojdbc14.jar). For details, refer to note 941317.</b>
    Make sure that you remove classes12.zip / classes12.jar from aii_af_jmsproviderlib.sda prior to adding the new driver as per the instructions in the answer to question #1 above as you will get a class name collision otherwise (all JARs from aii_af_jmsproviderlib.sda are loaded into the same class loader and the driver class name of both driver versions is the same).
    Before deploying the updated driver, ensure that the new version is still compatible with your Oracle database server release. For details, refer to the release notes provided by Oracle.</i>
    Regards,
    Bhavesh

  • Basic questions about Oracle CEP

    Hi there,
    We are considering different alternatives for handling some business rules for our educational platform and I am not sure Oracle CEP would be a viable option (I have read a few things on the internet about it), let me elaborate:
    We have users being trained on different devices/clients (Mobile, Websites, Offline training), all these clients are sending data to our LRS system (TinCan API). We have about 20 million new events every month (we call them Statements, according to TinCan API terminology).
    We are looking for a solution where we could:
    Handle up to 2.000 events per second (peak usage);
    Be able to restore from disasters (is replaying all events the ONLY option? It would take ages to reply the last, say, 2 years of events);
    The Derives we want to get come from different Detections, examples:
    Has this particular user achieved a set of pre-defined goals (ordering does not matter )? --> So issue him BADGE A;
    Has this particular user finished training 1 in the last 180 days and training 2 in the last 30 (now)? --> So issue him BADGE B;
    Does that user already have BADGE A and BADGE B and have finished training 1? --> So issue him BADGE C;
    Analyze only events which are now facts, in other words, events which are already in the DB, or that we can ensure will go to the DB, otherwise we can have fake BADGES;
    Allow the business user (the one responsible for the educational platform) to create (with little to no IT assistance) new rules and publish them into production easily. Because we add new training every week and so, we need this to be reflect in the CEP platform. Also, we could change the rules for issuing BADGES for 2015, for example.
    The architecture from 1 mile high is something like this:
    Where should we “plug” Oracle CEP? Of course, the more decoupled, the better.
    Any help would be really appreciated.
    Cheers

    Oracle Event Processing (OEP, formerly Oracle Complex Event Processing (CEP))  is a stand-alone server. It would go between your service bus (Tin Can) and the database. You might consider implementing the business rules engine with OEP. There was support added for that in OEP 12c.

  • How to stop and start oracle CEP server?

    I want to start and stop oracle CEP server without using eclipse IDE.How can I do it?

    first you need know where the domain is, and then go to the server's directory, run startwlevs.sh or stopwlevs.sh.
    for example, assuming you use helloworld sample, you are at $FMW_HOME/ocep_11.1/samples/domains/helloworld_domain, and then go to the defaultserver directory to run the startwlevs.sh script

  • Exposing Oracle FORMS to PORTAL...?

    Hi Sharmila/anyone..!
    Is there any sample available for exposing Oracle FORMS 6. developed application to PORTAL. Or is there anything needs to be installed on PORTAL server to access Oracle FORMS...!
    Any idea would be highly appreciated.
    Thanks.
    Rakesh.

    Hi,
    You can have a look at Metalink Note: 132858.1 ( Is it possible to publish Reports6i/Forms6i as portlet within Portal? ).
    The note is basically for Portal 3.0.9.x, but the concepts discussed in this Note shoutd give you the necesssary ideas.
    Regards,
    Sandeep

  • Exposing AQ's as Webservices

    Hi,
    Is there a working example to expose AQ's as Webservices.
    Regards
    Deepak

    Yes, you can mix different type of J2EE artifacts in a single application. The easiest way to do this may be to use JDeveloper 10g (or the 11g Tech Preview) and to build you web service application, then add the remaining of you web application into the same project.
    Hope it helps,
    -Eric

  • Oracle CEP error

    I am using ORalce WebLogic, ORacle CEP on WIndows
    I am also using the Eclipse 3.3.2 (Europa) version for ORacle CEP specifid in the Oracle CEP directions
    I also installe the ORacle CEP plu-in into Eclipse.
    I created a HelloWorld application, and ran it, it worked perfectly
    I then make minor chages to the HellowWOrld.context.xml file and Config.xml file to include JMS output according to the Oracle directions.
    The following is the HelloWorld.context.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:osgi="http://www.springframework.org/schema/osgi"
         xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
         xsi:schemaLocation="
      http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/osgi
      http://www.springframework.org/schema/osgi/spring-osgi.xsd
      http://www.bea.com/ns/wlevs/spring
      http://www.bea.com/ns/wlevs/spring/spring-wlevs.xsd">
         <wlevs:event-type-repository>
            <wlevs:event-type type-name="HelloWorldEvent">
                <wlevs:class>com.bea.wlevs.event.example.helloworld.HelloWorldEvent</wlevs:class>
            </wlevs:event-type>
        </wlevs:event-type-repository>
         <wlevs:adapter id="helloworldAdapter" class="com.bea.wlevs.adapter.example.helloworld.HelloWorldAdapter" >
            <wlevs:instance-property name="message" value="HelloWorld - the current time is:"/>
        </wlevs:adapter>
         <wlevs:adapter id="jmsOutbound" provider="jms-outbound"/>
         <wlevs:processor id="helloworldProcessor" />
         <wlevs:stream id="helloworldInstream">
              <wlevs:listener ref="helloworldProcessor" />
              <wlevs:source ref="helloworldAdapter" />
         </wlevs:stream>
         <wlevs:stream id="helloworldOutstream" advertise="true">
              <wlevs:listener ref="jmsOutbound" />
              <wlevs:source ref="helloworldProcessor" />
         </wlevs:stream>
    </beans>The following is the config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <processor>
              <name>helloworldProcessor</name>
              <rules>
                   <rule id="helloworldRule"><![CDATA[ select * from HelloWorldEvent retain 1 event ]]></rule>
              </rules>
         </processor>
         <jms-adapter>
              <name>jmsOutbound</name>
              <event-type>HelloWorldEvent</event-type>
              <jndi-provider-url>
                   t3://127.0.0.1:7001
              </jndi-provider-url>
              <destination-jndi-name>QueueOut</destination-jndi-name>
              <user>weblogic</user>
              <password>password</password>
              <delivery-mode>nonpersistent</delivery-mode>
         </jms-adapter>
         <stream>
              <name>helloworldOutstream</name>
              <max-size>10000</max-size>
              <max-threads>2</max-threads>
         </stream>
    </n1:config>
    </n1:config>The following is the resulting error:
    <May 15, 2009 4:02:09 AM EDT> <Notice> <evs4j> <BEA-2049007> <The cluster protocol is disabled>
    <May 15, 2009 4:02:12 AM EDT> <Notice> <Server> <BEA-2046000> <Server STARTED>
    <May 15, 2009 4:02:13 AM EDT> <Notice> <Server> <BEA-2045000> <The application bundle "HelloWorldJMS" was deployed successfully to file [C:\bea\user_projects\domains\CEP_DOM\defaultserver\applications\HelloWorldJMS\HelloWorldJMS.jar]>
    <May 15, 2009 4:02:13 AM EDT> <Notice> <Server> <BEA-2045000> <The application bundle "HelloWorldJMS" was deployed successfully to file:/C:/bea/user_projects/domains/CEP_DOM/defaultserver/applications/HelloWorldJMS/HelloWorldJMS.jar>
    <May 15, 2009 4:02:14 AM EDT> <Error> <org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext> <BEA-000000> <Post refresh error
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsOutbound': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Error processing service annotation for [jmsOutbound] in bundle [HelloWorldJMS]
         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:142)The EPN viewer displays correctly, with the helloworldAdapter, helloworldProcessor, and jmsOutboud objects all display in blue with their proper icons, and are properly connected.
    I changed none of the java code from the helloworkd source. The bean its refering to is the jmsOUtbound, and apparently so is the service annotation.
    Can anyone tell me how to resolve this problem ?
    I don't really see how this sould be a problem, as I was following the instructions explicitly.
    Thanks, Gideon
    Edited by: user10747262 on May 18, 2009 7:58 AM

    I had the wrong xml file in my post, I just edited it with the correct one. Does any one see what the problem is ?
    Thanks

  • Getting error while configuring Oracle CEP server in Eclipse

    Hi,
    While Configuring OCEP Server in eclipse, and specifying the Oracle Middleware Home Directory as "C:/Oracle/Middleware/user_projects/domains/ocep_domain/defaultserver"; I am getting the below error:
    The location "C:/Oracle/Middleware/user_projects/domains/ocep_domain/defaultserver" contains the BEA home definition file "C:/Oracle/Middleware/user_projects/domains/ocep_domain/defaultserver/registry.xml," but that file does not contain an Oracle CEP component entry with an "InstallDir" attribute.
    I tried re-installing OCEP server, but still the problem persists. Please help me on this.
    Regards,
    Swati
    Edited by: 999706 on Apr 30, 2013 1:08 AM

    Hi Swati,
    Please make sure you installed:
    1) Eclipse Indigo SR2 for Linux: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk.tar.gz
    2) Plugin in from the installation, the path like: Oracle/Middleware/ocep_11.1/eclipse-update-site/cep-tools=11.1.1.20130109-2314/. Note the plugin download site is not updated. So you can't use the install Plugin via URL
    I assume you are using PS6. For other version, please check the document accordingly.
    Thanks
    Junger

  • Instantiate Oracle BPM Process Webservice from the OSB.

    Hi,
    In our project we have one requirement i.e Instantiate Oracle BPM Process Webservice from the OSB.After register BPM service in to OSB I am creating one Message flow to instantiate BPM Process.
    first call to startSession Operation, then use response of startSession operation is used as reqest for BPM process operation.
    Can u tell me how do we use response of startSession operation to the request of BPM process.
    Thanks in Advance.

    An easier way of instantiating a BPM process via a WS call is to set the authentication type to 'Username Token Profile' on your web service operation in BPM studio and then redeploy it. If you use this type of security on your bpm process operations you can start the process in one call instead of having to get a session first and then starting the process.
    Once you've updating the process, re-register the new process WSDL and business service with OSB (or import it manually) and you can just call the start process operation in one request (passing a username and password using the WS-UsernameToken method) without having to get a session first.
    Hope this all make sense,
    Mike.

Maybe you are looking for

  • How to change settings from CMYK to RGB in illustrator and photoshop

    Everything is in CMYK and I need to change it to RGB for my M2 dtg garment printer, because my colors on shirts are not coming out right.  My rip software for printer is in RGB.  When I open new file in illustrator and click advanced to change to RGB

  • Scanning with Kodak i65 and Vista

    Hi, I am having trouble 'Creating a PDF from Scanner' with a Kodak i65 scanner. Everytime I attempt to scan a document with Acrobat 8 and Vista I receive a scanning failed message. The 'Scan Validation Tool' scans documents fine to the .tiff format h

  • Scheduled ship date

    Hi , Our client has a requirement that schedule ship date should be Sysdate+2. I created a defaulting rule schedule ship date = sysdate+2. When i create a sales order the schedule ship date comes as sydate+2 eg : sysdate : 29 jan 2008 13:55:25 (the t

  • May I import a photo image from My Documents into Photoshop to resize?

    May I import a photo from My Documents into Photoshop to resize it?

  • WMII questions

    I've been playing around with wmii, and I really like it, but I've come to the point of the "why doesn't it do this?" questions. Since the arch forum seems to be full of tiling wm advocates, I thought I'd ask here first: 1. Is it possible to maximize