BPEL Monitor

hello everyone.
i'm trying to get the BPEL Monitor working, but even using the code from the openesb site :
GlassFishRemoteServerConnector remoteConnector = new GlassFishRemoteServerConnector(GenericConstants.SJSAS_SERVER_TYPE, "server1", hostName, portNumber + "", "8080", userName, password);
mbeanServerConn = remoteConnector.getConnection();
i'm getting the following error:
java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
     java.io.EOFException]
     at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
     at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
     at com.sun.em.connectors.RemoteServerConnector.getMBeanServerConnection(RemoteServerConnector.java:130)
     at com.sun.em.connectors.RemoteServerConnector.getMBeanServerConnection(RemoteServerConnector.java:168)
     at com.sun.em.connectors.RemoteServerConnector.getConnection(RemoteServerConnector.java:41)
     at testEjb.testEjb(testEjb.java:31)
     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:585)
     at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
     at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
     at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
     at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
     at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
     at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
     at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
     at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
     at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
     at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
     at com.intellij.rt.junit4.Junit4TestMethodAdapter.run(Junit4TestMethodAdapter.java:50)
     at junit.textui.TestRunner.doRun(TestRunner.java:115)
     at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:65)
     at junit.textui.TestRunner.doRun(TestRunner.java:108)
     at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
     at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
     at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
     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:585)
     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
     java.io.EOFException]
     at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
     at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
     at javax.naming.InitialContext.lookup(InitialContext.java:351)
     at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817)
     at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)
     at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
     ... 31 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
     java.io.EOFException
     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273)
     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
     at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
     at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
     ... 36 more
Caused by: java.io.EOFException
     at java.io.DataInputStream.readByte(DataInputStream.java:243)
     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
     ... 40 more
could anyone give me an advice in the situation?
also, are there some worthy docs for BPELManagementService? or for GlassFishRemoteServerConnector? the latter doesn't even have named parameters in his constructor, only (String s1, String s2,...)
thanks.

Yes, there will be Javadoc provided, however, we are still deciding how the api should be packaged, in fact, the GlassFishRemoteConnector may not be used at all if you do scripting, please keep monitoring this thread, will post more info.

Similar Messages

  • BPEL Monitoring Reports

    Hi everyone!
    There is a way to implement some report services based on BPEL processes? the client does not want to use Oracle BAM. Exists something like Oracle BAM i can use? the Dev guide has information about sensors but is not too much information, i´m still confused about how to use this sensors!!! the client wants to make decisions based in this reports i need to implement. Something like a Balance Score Card but for monitoring processes, time spent on a human task, number of task resolved by a user and so on...
    Any ideas? any Solution? any help, guide?
    Best Regards and Blesses!

    When you create Sensor Actions, you specify where the sensor data should go.
    If you select database, the sensor data will be stored in tables in the BPEL PM dehydration store DB. You can write reports on that using any reporting tool that can query this database.
    Alternatively, you can write the sensor data to a JMS queue or topic, if your reporting tool can read JMS.
    Lastly, you could write a custom java class that implements a sensor and write the data out to a file or something in any format you want if that is more suitable for your reporting tool. Your custom class should implement com.oracle.bpel.sensor.DataPublisher

  • BPEL Monitoring

    Hi,
    I understand that the Java API for Oracle BPEL allows accessing extensive data on BPEL process instances. However, imagine the situation when one wants to subscribe to "events" corresponding to various changes occurring to instances, for example, <assign> or <invoke> activities. The latter case can be used for monitoring while the former may be used for polling or querying the instance status. I am wondering if there is a way to have a form of callback hooks for the purpose of monitoring?
    Cheers,
    Alex

    Edwin,
    A comprehensive monitoring (including, e.g, that based on events calculus) will be built into the SeCSE (service-centric systems engineering) framework. SeCSE is a large four year EU project that combines academia (City, Groningen, Lancaster, Milano,...) and industry (Computer Associates, Fiat, Microsoft,...). We are currently in the inception phase but the first prototypes are due this year. Our previous effort in monitoring was based on offline use of log4j for IBM BPEL but I'm campaigning for Oracle BPEL, and Sensor is great news indeed. I do need some example/documentation preferably very soon.
    Best,
    Alex

  • How to design BPEL process where BPEL is called by PL/SQL code?

    Hi,
    My BPEL process is called by a PL/SQL code given below.
    CREATE OR REPLACE PROCEDURE testd(errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2)
    IS
    soap_request VARCHAR2(20000);
    soap_respond VARCHAR2(10000);
    http_req UTL_HTTP.REQ;
    http_resp UTL_HTTP.RESP;
    l_detail VARCHAR2(10000);
    endpoint VARCHAR2(130);
    begin
    endpoint := 'http://afsmlnx04.rheem.com:7105/soa-infra/services/default/HelloWorldPayload/bpelprocess1_client_ep';
    soap_request := '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body xmlns:ns1="http://oracle.nl/HelloWorldPayload"><ns1:process><ns1:input>abc</ns1:input></ns1:process></soap:Body></soap:Envelope>';
    http_req := utl_http.begin_request(
    endpoint
    , 'POST'
    , 'HTTP/1.1'
    utl_http.set_header(http_req
    , 'Content-Type'
    , 'text/xml');
    utl_http.set_header(http_req
    , 'Content-Length'
    , length(soap_request));
    utl_http.set_header(http_req
    , 'SOAPAction'
    , 'process');
    utl_http.write_text(http_req, soap_request);
    http_resp := utl_http.get_response(http_req);
    utl_http.read_text(http_resp, soap_respond);
    utl_http.end_response(http_resp);
    dbms_output.put_line('soap'||soap_respond);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(http_resp);
    WHEN utl_http.request_failed THEN
    DBMS_OUTPUT.PUT_LINE('Request Failed: ' || utl_http.get_detailed_sqlerrm);
    WHEN utl_http.http_server_error THEN
    DBMS_OUTPUT.PUT_LINE('Server Error: ' || utl_http.get_detailed_sqlerrm);
    WHEN utl_http.http_client_error THEN
    DBMS_OUTPUT.PUT_LINE('Client Error: ' || utl_http.get_detailed_sqlerrm);
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE(sqlerrm);
    END;
    The above procedure will be defined as concurrent program in Oracle EBS.This concurrent program will call the bpel process.My question is how should i design the bpel process so that bpel will know it is called by a concurrent program?
    My BPEL is doing picking a file by FTP adapter and inserting data into a table.
    Please throw some lights on this!!

    Option 1:
    You have to design the service as a synchronous BPEL process
    1. Do a synchronous ftp get to read the file.
    2. Transform and write it into database table
    3. Reply results back to plsql
    Disadvantage: Your BPEL process should complete from BPEL timeout happens.
    Option 2:
    1. Enqueue the message into AQ from the concurrent program
    2. From the BPEL monitor the AQ, start the process when the message arrives
    3. Do a synchronous ftp get to read the file.
    4. Transform and write it into database table
    You cannot reply the results back to concurrent program.
    5. However, you could have another AQ to send the results back to concurrent program.
    6. Your concurrent program should listen to the resultsAQ to get the results back from BPEL.
    Option 2 is a relliable design.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Best practises for install BPEL

    We are planning to start to use BPEL, but we are having problems finding any documents on best practise on the install of the product.
    1. Sould we install in Lunix or Windows.
    2. In prodcution we will need fault tollerance can BPEL do this well.
    3. Does the BPEL monitoring work well.
    We want to install this right first time rather than just install from the CD's then try to fix the issues we wrong design later, we have been burnt by do this way before.
    Regards
    Sean Bell

    Hi,
    1) install it on the platform you know best. because
    2) you can only get fault tolerance or high availability on a platform you know how to administer.
    for HA look at
    http://www.oracle.com/technology/products/ias/bpel/pdf/bpel-admin-webinar.pdf
    3) BAM is the word you are searching for:
    http://www.oracle.com/technology/products/integration/bam/index.html

  • BPEL vs  ESB

    Hi,
    I want to raise this oft-repeated question and compile all the information in one thread.
    The following are the points of comparison between the two that I can think of. Please verify and add to the list:
    Use ESB: The payload has everything needed for transforming into the output format
    Use ESB: Transformations and invocations are simple, say sequential
    Use ESB: Stateless
    Use ESB: Memory footprint - smaller for ESB for similar project (say developing a program that reads a DB and writes a file)..can somebody provide any figures
    Use ESB: When you want to use DVM (BPEL does support DVMs via lookup-dvm, but its easier to use them in ESB)
    Use BPEL:Orchestration required
    Use BPEL:Long-lived or chatty application
    Use BPEL:Need to send notification
    Use BPEL:use business rules
    Use BPEL:splitting joining of payloads - maybe this is possible in OSB
    Use BPEL:content validation required based on business rules (and not necessarily xsd based)
    Use BPEL: when participating apps support only HTTP/XML
    Use BPEL: WSDL operations having multipart in messages
    Use BPEL: Need to send binary attachments
    Use BPEL: Monitoring using BAM etc. BPEL offers sensors
    Use BPEL: Require control over error handling. BPEL also supports fault policies (not sure if ESB supports these too)

    Use BPEL: WSDL operations having multipart in messages
    For this recommendation what is the reasoning behind? And is there a way to get around it in ESB?
    I am creating a pass through routing service for an already created client service that has multiple parts for the input and output. I have found a workaround in jdeveloper for being able to create the service by starting jdev using :Start jdeveloper.exe -J"-Dpreview_mode=true" which indicates that you cannot transform any of the values- which is fine for my services for now, but now I am finding that my routing service is only passing through the first part of the input message and I am getting the following error:
    The message Returned from the call is returned as HTML as an Error 500-Internal Service Error
    Error Message:
    oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: &quot;oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: &quot;org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
    I can see the payload that is being passed to the SOAP Service is only the first part of the message.
    Any suggestions workarounds?

  • Monitoring web services

    Hello, I have an OpenESB environment and I'm working with web services. I wonder, what is the best way to monitoring the behavior of these services?
    I used the Glassfish Web console, but I am not able to obtain information about response times to Web services that make proxy, or time used in services orchestrated in BPEL.
    It is possible do it from the Glassfish console with any particular configuration, or there is any opensource tool responsible for this.
    Thank you, a greeting.

    For monitoring BPEL orchestrated services (process status, activity, variables, suspend/resume/terminate instances), we have open source bpel monitor API and command line tool. We are working on a graphic version of BPEL monitor, but you can find a simple one contributed by a member in the community:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BPELMonitor
    Regards,
    Mei

  • TOPLINK Timestamp Issue

    We have noticed that when TOPLINK is used to insert a datetime into our table, the time entered is always an hour ahead. We are in the EST zone. When we use custom SQL and use SYSDATE to enter or update dates, the datetime is stored at the correct time zone. The BPEL transforms always show the time correctly in the BPEL monitor but by the time it gets inserted into the table it is an hour ahead. I thought maybe it was getting the date from the server but we checked and that time is local time.
    Any ideas?

    Are you trying to insert the date from BPEL Console or from ESB console. If you are inserting it from ESB console check the SYS time in ESB database.
    I guess there might be a hour time difference ESB and BPEL metadata.
    -Ramana.

  • Response time in web services

    I have a simple calculator web service running on tomcat server. On the client side, I have a loop in which I randomly select 2 operators and an operand and invoke the calculator web service.
    I was conducting tests by invoking the web service within a loop. I observed that as the number of requests increased the response time reduced. I am unable to figure out why this happens.
    Any help would be appreciated.

    For monitoring BPEL orchestrated services (process status, activity, variables, suspend/resume/terminate instances), we have open source bpel monitor API and command line tool. We are working on a graphic version of BPEL monitor, but you can find a simple one contributed by a member in the community:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BPELMonitor
    Regards,
    Mei

  • Business Activity Monitoring for BPEL Processes

    Hello,
    IEP is capable of monitoring real time events, Real time business event collection and processing.
    In that case, can we use IEP to monitor BPEL process activities with activity data.
    One very big part, the ability to provide functionality for third parties (clients like Me) to register some sort of observer to capture live BPEL process activity, is missing.
    I'm trying to cover that big hole in my project. That's the reason I'm posting about BPEL process management capabilities and events.
    But I got no concrete answers for that. Not every business use can be provided by any generic system.
    I looked at CAM (which comes with Alaska build). But I couldn't get much info about entire picture.
    Other BPEL engines, the one I have used, has the functionality to do activity monitoring and process management. (IBM Process server, Apache ODE)
    Could any IEP, BPEL component developers answer any sort of solution to my use case?
    Thank you
    Raja

    I agree that this would be very useful. If anyone can provide additional insight it would be much appreciated.

  • Best approach to monitoring 'status' and Time in BPEL/BAM?

    Hi,
    I have a composite to handle 'Orders' which goes through various stages in the process. The process will change the status of the order as it goes through various activities, and the statuses include 'Submitted', 'Started Processing' and 'Processed'.
    My question is, how would I monitor the average time that orders spend before they begin being processed i.e. the time difference between 'Submitted' status and 'Started Processing' status? Would it be using sensors (variable or activity) or feeding data through BAM adapter?
    My Data Object in BAM is currently set to hold each different order and then I have columns to record the Time at which it reaches these statuses. Following these, I then have columns to hold the differences in Time between stages to see how long the order spends in these stages E.g difference between 'Submitted' and 'Started Processing' etc etc
    Order ID | Submit Time | Started Processing Time | Processed Time | Time between 'Submitted' & 'Started Processing'
    001 | 09:00 | 11:00 | 12:00 | 2 Hours
    002 | 09:45 | 11:15 | 12:00 | 1 Hour 30 mins
    I would appreciate it if someone could guide me on whether this design approach is correct and how I can build on this please. E.g, is the data object correct for this and will it be easy to work out average times across multiple orders (not sure how I can currently include this in the data object)
    Thanks in advance

    Hi
    Yes, your data approach is correct.
    You can use BAM adapter to feed information from the composite level e.g. mediator to BAM
    and either Monitor Express ( 1-click as one response below pointed out and our recommended approach) or Sensors depending on your preference.
    You can send timestamps for various status from composite to BAM.
    Let BAM do the calculations for you.
    The order booking sample on BAM OTN under samples and tutorials will be a good sample to refer to.
    Also there are samples on Monitor Express, BPEL-BAM ( highlights BAM adapter at composite level)
    http://www.oracle.com/technology/products/integration/bam/collateral/Samples11g.html
    Regards
    Payal

  • Thread Monitoring in a clustered BPEL environment

    Hi BPEL community,
    does anybody know how I can monitor the "Pending Requests" and "Thread Allocation Activity" (BPEL Console - Threads) over all cluster-nodes? Inside the BPEL Console I only see the data of the cluster-node I'm logged in.
    I was not able to see an over-all cluster-nodes view of the load on the bpel-engine.
    Regards, Harald

    I am not familior with anything called Quartz but I think this issue should be handled task scheduler itself.
    In the place I work the task scheduler we use (I house developed one) has following approach
    Once the task is posted it is in "posted" state and once a batch server (Thats what we call the service that executes it) picks a task up it changes the state to "executing". Once the execution is complete it change the state to "ready". If an exception occures it will abort the operation and set the state to "error".
    Batch Server can pick up only the tasks with state "Posted" so two services will not pick up same task.
    By the way the tasks with error state can be reset to posted state by the user.
    probably you need a solution like this. Either you have to develop one or find one which considers the existance of multiple execution services

  • Parallel user for oc4jadmin for monitoring BPEL processes

    Dear All
    We need to create one user which can be used to monitoring the BPEL processes on console, we dont want to user oc4jadmin user, so how can we create a user who can monitor the BPEL processes, but cant do any change on the BPEL processes / console.
    regards

    Thanks for the link, i had seen it too, but i thought may be there is some standard way in Oracle to do this, may be in future release of SOA / BPEL Oracle will enhance it.
    cheers
    Mehmood
    blog url
    http://mehmoodm.blogspot.com/

  • How to monitor BPEL process..? i want to see HTTP request message..

    Hi all,
    Is there any way to monitor BPEL process. In Jdev there is tool call
    HTTP analyzer but it only monitors process which are invoked from Jdev.
    Like Java webservices can monitored via that tool. But i want to monitor BPEL
    process. I want to see Http request message. It that possible.?
    thanks a lot.
    /mishit

    Any requests you want to monitor should be routed through obtunnel. So the webservice that calls your bpel process should use the url of the machine where obtunnel is located, and obtunnel should be configured with the details of the machine where the bpel process is located.
    also, you may find this thread of interest How to capture SOAP message using TCP Monitor in JDev?

  • BPEL Designer - Monitor View for BAM

    Hi peers
    Is there anything special you need to do in JDev to enable the Monitor View in the BPEL Designer? We only have the BPEL and BPA options to choose from. The doco implies it should just 'be there'? We're using 11.1.1.1.0 of JDev.
    Thanks
    Dennis

    Are you an Oracle Employee using internal JDeveloper MAIN builds? If so please use the internal forums and not the external ones.
    http://myforums.oracle.com/

Maybe you are looking for