BI Beans consume

I need to know how can i measure a BI Beans consume ? My application access one cube with 3 dimensions, each dimension has 16 levels. Each conection use just a PGA portion ?

You should call disconnect on the Session object. Please find the attached sample code that the customer. Assuming BIThinSession is created as below:
<orabi:BIThinSession scope="Session" configuration="/Project3OLAPConfig1.xml" id="BIThinSession1">
The JSP code to disconnect it looks like below:
<%
BISession biSession = (BISession) pageContext.getAttribute("BIThinSession1", pageContext.SESSION_SCOPE);
if ( biSession != null ) {
try {
biSession.disconnect();
session.invalidate();
catch (Exception e) {
%>
Note : the BIThin Session ids should match.

Similar Messages

  • Help : Message Driven bean seeing the same message multiple times.

    ( We are using weblogic 8.1 on Solaris )
    We have a bunch of message driven beans with the transaction type as 'Container' and the acknowledge-mode mode as auto-acknowledge. They are consuming messages from a weblogic Queue ( javax.jms.Queue ). The MBD container is also weblogic 8.1.
    We have 7 instances of the bean consuming messages.
    Most of the messages are picked up and processed only once as expected.
    But randomly we are seeing that sometimes the same message is delivered again ( Message.getJmsRedelivered = true ) eventhough it was once picked up and processed successfully once.
    We are completely lost and our production machine is in big trouble as a result of this.
    ( Is it possible that weblogic uses unreliable UDP for acknowledging messages. If yes where do we change this setting )
    Any help will be greatly appreciated
    Thanks
    --sony
    ================ejb-jar.xml BEGIN
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>DslUpdtDdpostPrcsrMDB</description>
    <ejb-name>DslUpdtDdpostPrcsrMDB</ejb-name>
    <ejb-class>
    com.bellsouth.snt.idm.ejb.wfac.DslUpdtDdpostPrcsrMDB
    </ejb-class>
    <transaction-type>Container</transaction-type>
    <message-selector>
    <![CDATA[ idm_state = 'dsl_updt_dd_post' ]]>
    </message-selector>
    <acknowledge-mode>auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <env-entry>
              <env-entry-name>MDB_NAME</env-entry-name>
              <env-entry-type>java.lang.String</env-entry-type>
              <env-entry-value>dsl_updt_dd_post</env-entry-value>
    </env-entry>
    <!--security-identity><use-caller-identity/></security-identity-->
    <resource-ref>
    <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>DslUpdtDdpostPrcsrMDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    ================ejb-jar.xml END
    ================weblogic-ejb-jar.xml BEGIN
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>DslUpdtDdpostPrcsrMDB</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>10</max-beans-in-free-pool>
    <initial-beans-in-free-pool>0</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>
    idm.jms.clip.WfacClipResponseQueue
    </destination-jndi-name>
    <connection-factory-jndi-name>
    idm.jms.IdmXaJmsQueueConnectionFactory
    </connection-factory-jndi-name>
    </message-driven-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>
    300
    </trans-timeout-seconds>
    </transaction-descriptor>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <jndi-name>idm.jms.IdmXaJmsQueueConnectionFactory</jndi-name>
    </resource-description>
    </reference-descriptor>
    <jndi-name>jms.DslUpdtDdpostPrcsrMDB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ================weblogic-ejb-jar.xml END

    The transaction attribute for the MDB is set to 'Required'. Is it possible
    that your application logic may process the message successfully even in
    case of a transaction roll back? If the transaction rolls back, the message
    will be re-delivered.
    There is some docs on exactly-once processing which may help
    http://e-docs.bea.com/wls/docs81/ejb/message_beans.html#1147208
    --Sathish
    <Sony Antony> wrote in message news:[email protected]...
    ( We are using weblogic 8.1 on Solaris )
    We have a bunch of message driven beans with the transaction type as
    'Container' and the acknowledge-mode mode as auto-acknowledge. They are
    consuming messages from a weblogic Queue ( javax.jms.Queue ). The MBD
    container is also weblogic 8.1.
    We have 7 instances of the bean consuming messages.
    Most of the messages are picked up and processed only once as expected.
    But randomly we are seeing that sometimes the same message is delivered
    again ( Message.getJmsRedelivered = true ) eventhough it was once picked
    up and processed successfully once.
    We are completely lost and our production machine is in big trouble as a
    result of this.
    ( Is it possible that weblogic uses unreliable UDP for acknowledging
    messages. If yes where do we change this setting )
    Any help will be greatly appreciated
    Thanks
    --sony
    ================ejb-jar.xml BEGIN
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
    JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>DslUpdtDdpostPrcsrMDB</description>
    <ejb-name>DslUpdtDdpostPrcsrMDB</ejb-name>
    <ejb-class>
    com.bellsouth.snt.idm.ejb.wfac.DslUpdtDdpostPrcsrMDB
    </ejb-class>
    <transaction-type>Container</transaction-type>
    <message-selector>
    <![CDATA[ idm_state = 'dsl_updt_dd_post' ]]>
    </message-selector>
    <acknowledge-mode>auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <env-entry>
    <env-entry-name>MDB_NAME</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>dsl_updt_dd_post</env-entry-value>
    </env-entry>
    <!--security-identity><use-caller-identity/></security-identity-->
    <resource-ref>
    <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>DslUpdtDdpostPrcsrMDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    ================ejb-jar.xml END
    ================weblogic-ejb-jar.xml BEGIN
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic
    8.1.0 EJB//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>DslUpdtDdpostPrcsrMDB</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>10</max-beans-in-free-pool>
    <initial-beans-in-free-pool>0</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>
    idm.jms.clip.WfacClipResponseQueue
    </destination-jndi-name>
    <connection-factory-jndi-name>
    idm.jms.IdmXaJmsQueueConnectionFactory
    </connection-factory-jndi-name>
    </message-driven-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>
    300
    </trans-timeout-seconds>
    </transaction-descriptor>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
    <jndi-name>idm.jms.IdmXaJmsQueueConnectionFactory</jndi-name>
    </resource-description>
    </reference-descriptor>
    <jndi-name>jms.DslUpdtDdpostPrcsrMDB</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ================weblogic-ejb-jar.xml END

  • Fascinating but tough : OO Design

    Hi people,
    this is a tough abstract question.
    The technology I intended to use was EJB initially, but try not to think
    about EJB here.
    Here is what I try to implement, how it will be realised best, is treated in
    a section further below.
    The problem :
    several organizational units have to be running a giant enterprise. These
    units can be seen as humans. Each of them has a profession, and an office.
    Together they all form a big enterprise. The structure of the enterprise is
    the best an enterprise can have : every "employee" sees himself as an
    enterprise within the enterprise. An "intrapreneur".
    So every employee has its office, it's communication channels, it's decisive
    power, and it's own "personality" - try not to focus on the "personality"
    here, peronality will not be implemented, don't worry.
    Example : Paul is an employee who gets a regular salary and enjoys a sure
    job: he takes decisions in favor of the enterprise as a whole. Whereas Tom
    is a guy who may profit from the enterprise's growth, but is more
    independent than Paul. He needs big deals, and he's paid by the number of
    deals he is making, and the size of his deals.
    If Paul is getting the following requests within the time of 1 hour:
    1) +10:00AM "I need a big machine with great CPU Power"
    2) +10:30AM "I need a small machine affordable for less than 1000$",
    he will chose the small request and handle it. Why ? Because Paul knows that
    Marc is an expert for big machines, and he will be able to handle the
    request better. So he will chose request 2 and communicate request 1 to
    Marc.
    Whereas if Tom would have gotten this requests, his behaviour would have
    been :
    1) +10:00AM "I need a big machine with great CPU Power"
    Tom accepts it - it's his BIG Deal man !!
    2) +10:30AM "I need a small machine affordable for less than 1000$",
    Tom is busy and refuses the order, communicates it to Paul.
    These guys react upon messages that may be interesting to them.
    Additionally, they may have "deadlines" - like - Tom needs to make at least
    one decision every hour.
    If at 11:00AM there's no deals, he may set some actions.
    So Tom will "activate" himself hourly and see for a decision, if none has
    been made - am I right here ? Well - I even think there would have to be
    some activation scheduling mechanism here or what would you say ?
    I could have realised an enterprise scenario in a synchronous way with
    classic EJB.
    I chose async for reasons of load balancing and because of more independence
    between the objects, which are not just "slaves", but maybe later will get
    their own "life" in there, and act as masters AND slaves.
    The questions are :
    1) what about transactions in a message driven solution ? suppose we have a
    request which needs the acknowledgement of 10 employees who could complete
    the task together for the customer. We could implement transactions in
    including the "OK"'s in the message or issuing "Acknowledge" requests to
    every employee involved. But maybe there is already a transaction mechanism
    more simple and efficient within the EJB2.0 specification for a
    message-oriented application.
    2) suppose we realise this scenario in message-driven EJB : then I would
    have to have a messagedriven bean acting as request handler for Paul e.g.
    The messagedriven "PaulSecretary" bean consumes a request message for Paul,
    and invokes the method "checkYourDesk" for Paul. Paul is a stateful session
    bean, which has gathered state information over time. It's "checkYourDesk"
    method brings Paul back to life, he checks the new state and makes
    decisions. The decisions taken are returned to PaulSecretary, and the
    secretary will then write a response to a topic or queue, or maybe do
    nothing, based upon Paul's answer.
    So far, so good. But now comes the big deal : Paul needs to check his desk
    every hour at least. No matter if anything in the outside world has changed
    or not, no matter if any new message of interest for him pending, he needs
    to get back to life every hour, and check his situation : why ? Because his
    state has changed ? Why has his state changed. Because one hour has passed
    and nothing's been published. He will have to take a decision now, and maybe
    he will do nothing, or maybe he will contact somebody and tell him "there's
    nothing going on, what should I do ?"
    So - I guess what I would need know for Paul would be a SchedulingManager
    which activates Paul every hour e.g. The SchedulingManager would contact
    Paul's Secretary by generating a message directed to Paul every hour. This
    would wake up his secretary who would wake up Paul etc.
    Additionally : Paul is an employee, he acts like 100 other employees in the
    enterprise who are active all day. Those employees of his department inherit
    from a general employee class. But TOM is a company within the company. He
    has a very specific behaviour, but inherits behaviour from Paul's department
    too.
    The workers in Paul's department are all doing the same job with the same
    behaviour. So some of the incoming information for the department could be
    treated by any employee in the department. But nevertheless, some of the
    incoming information is addressed to one specific employee in the
    department. The employees of the department need to maintain state
    information of their own, because they all accepted different requests and
    have a history based upon which they will react. Let's say the workers in
    Pauls department should listen to the topic "Computer Sales Requests".
    Additionally they have to generate some action every 2 hours. The workers
    maintain state.
    Tom is a special case and has it's own EJBs running there and listening to
    topics.
    How should one be running this in an EJB context ? There are some
    possibilities :
    1) all of the employees of Pauls department listen to one topic. They are
    messagedriven beans. They get a method invoked, do something, and return. To
    do something, they have to rely on state information. One way to resolve
    this is to maintain state in a store (database, file, javaspace etc.)
    somewhere. Another solution is to model state in a stateful session bean,
    one for each employee.
    a) state in a store : the messagedriven bean retrieves state from the
    store and does it's task and completes. Scheduling is still done with a
    SchedulingManager. One for each employee in the department, or one for the
    whole department, generating "Wakeup" messages.
    b) state in stateful session beans : same thing, but : per employee, we
    now have a messagedriven secretary and a stateful session bean. What about
    the performance impact here - imagine we have 2000 employees of the same
    behaviour - that would mean 2000 secretarybeans and 2000 stateful session
    beans !
    Personally I think it would make no big difference.
    In this possibility, "Tom" would be just another messagedriven component,
    with it's own behaviour, but inheriting some things from Paul's department
    employees. But he would have his own SchedulingManager I guess. The
    scheduling is giving me headaches, as scheduling is very close to individual
    behaviour.
    I would have liked to model everything specific to the employee in 1 or 2
    beans, but not 3 of them !!
    Ok and now there's the other question : how would you design the Scheduling
    beans ? They would have to be running all the time wouldn't they ? So they
    would have to be invoked once, and then execute a "Schedule" method all the
    time of their life. Is this feasible at all ? Would I never risk they would
    get passivated ? How would you design them ? And more globally, how would
    you design scheduling ?
    2) the second possibility is to "group" some of the beans of the 1st design
    alternative into one. I guess there are many possibilities for this to be
    done, so I don't outline everything here. I would nevertheless be interested
    how would do it.
    Well, to me this design seems unnecessarily complex. What would you say ?
    How would YOU design the handling of such "beings" ?
    Would you use EJB ?
    Best regards,
    Jubin Zawar

    Dear Wayne,
    thanks for a reply. I have done many systems in OO design, in fact I studied
    computer science. The reason I try to do "much with little" is that of
    flexibility.
    The idea to design the system with "beings" came up because of economical
    impacts I cannot outline here.
    So the problem is given, if you can come up with a new idea or criticise my
    design in a concrete way, I will be very thankful.
    Best regards,
    Jubin Zawar
    "Wayne L Price" <[email protected]> schrieb im Newsbeitrag
    news:[email protected]...
    I don't believe anyone can design your system for you. I suggest you look
    up the concept of 'functional decomposition' - it should be in some of the
    many fine books on software design. My personal belief is that you are
    attempting to do too much with too little. Even if you could pack
    everything into a couple of beans, they would be huge and complex - notonly
    a maintenance nightmare, but also a scalability problem.
    "Jubin Zawar" <[email protected]> wrote in message
    news:[email protected]...
    Hi people,
    this is a tough abstract question.
    The technology I intended to use was EJB initially, but try not to think
    about EJB here.
    Here is what I try to implement, how it will be realised best, is
    treated
    in
    a section further below.
    The problem :
    several organizational units have to be running a giant enterprise.
    These
    units can be seen as humans. Each of them has a profession, and anoffice.
    >>
    Together they all form a big enterprise. The structure of the enterpriseis
    the best an enterprise can have : every "employee" sees himself as an
    enterprise within the enterprise. An "intrapreneur".
    So every employee has its office, it's communication channels, it'sdecisive
    power, and it's own "personality" - try not to focus on the
    "personality"
    here, peronality will not be implemented, don't worry.
    Example : Paul is an employee who gets a regular salary and enjoys asure
    job: he takes decisions in favor of the enterprise as a whole. WhereasTom
    is a guy who may profit from the enterprise's growth, but is more
    independent than Paul. He needs big deals, and he's paid by the numberof
    deals he is making, and the size of his deals.
    If Paul is getting the following requests within the time of 1 hour:
    1) +10:00AM "I need a big machine with great CPU Power"
    2) +10:30AM "I need a small machine affordable for less than 1000$",
    he will chose the small request and handle it. Why ? Because Paul knowsthat
    Marc is an expert for big machines, and he will be able to handle the
    request better. So he will chose request 2 and communicate request 1 to
    Marc.
    Whereas if Tom would have gotten this requests, his behaviour would have
    been :
    1) +10:00AM "I need a big machine with great CPU Power"
    Tom accepts it - it's his BIG Deal man !!
    2) +10:30AM "I need a small machine affordable for less than 1000$",
    Tom is busy and refuses the order, communicates it to Paul.
    These guys react upon messages that may be interesting to them.
    Additionally, they may have "deadlines" - like - Tom needs to make atleast
    one decision every hour.
    If at 11:00AM there's no deals, he may set some actions.
    So Tom will "activate" himself hourly and see for a decision, if none
    has
    been made - am I right here ? Well - I even think there would have to be
    some activation scheduling mechanism here or what would you say ?
    I could have realised an enterprise scenario in a synchronous way with
    classic EJB.
    I chose async for reasons of load balancing and because of moreindependence
    between the objects, which are not just "slaves", but maybe later will
    get
    their own "life" in there, and act as masters AND slaves.
    The questions are :
    1) what about transactions in a message driven solution ? suppose wehave
    a
    request which needs the acknowledgement of 10 employees who could
    complete
    the task together for the customer. We could implement transactions in
    including the "OK"'s in the message or issuing "Acknowledge" requests to
    every employee involved. But maybe there is already a transactionmechanism
    more simple and efficient within the EJB2.0 specification for a
    message-oriented application.
    2) suppose we realise this scenario in message-driven EJB : then I would
    have to have a messagedriven bean acting as request handler for Paul
    e.g.
    The messagedriven "PaulSecretary" bean consumes a request message forPaul,
    and invokes the method "checkYourDesk" for Paul. Paul is a statefulsession
    bean, which has gathered state information over time. It's
    "checkYourDesk"
    method brings Paul back to life, he checks the new state and makes
    decisions. The decisions taken are returned to PaulSecretary, and the
    secretary will then write a response to a topic or queue, or maybe do
    nothing, based upon Paul's answer.
    So far, so good. But now comes the big deal : Paul needs to check hisdesk
    every hour at least. No matter if anything in the outside world haschanged
    or not, no matter if any new message of interest for him pending, he
    needs
    to get back to life every hour, and check his situation : why ? Becausehis
    state has changed ? Why has his state changed. Because one hour haspassed
    and nothing's been published. He will have to take a decision now, andmaybe
    he will do nothing, or maybe he will contact somebody and tell him"there's
    nothing going on, what should I do ?"
    So - I guess what I would need know for Paul would be a
    SchedulingManager
    which activates Paul every hour e.g. The SchedulingManager would contact
    Paul's Secretary by generating a message directed to Paul every hour.This
    would wake up his secretary who would wake up Paul etc.
    Additionally : Paul is an employee, he acts like 100 other employees inthe
    enterprise who are active all day. Those employees of his departmentinherit
    from a general employee class. But TOM is a company within the company.
    He
    has a very specific behaviour, but inherits behaviour from Paul'sdepartment
    too.
    The workers in Paul's department are all doing the same job with the
    same
    behaviour. So some of the incoming information for the department couldbe
    treated by any employee in the department. But nevertheless, some of the
    incoming information is addressed to one specific employee in the
    department. The employees of the department need to maintain state
    information of their own, because they all accepted different requestsand
    have a history based upon which they will react. Let's say the workersin
    Pauls department should listen to the topic "Computer Sales Requests".
    Additionally they have to generate some action every 2 hours. Theworkers
    maintain state.
    Tom is a special case and has it's own EJBs running there and listeningto
    topics.
    How should one be running this in an EJB context ? There are some
    possibilities :
    1) all of the employees of Pauls department listen to one topic. Theyare
    messagedriven beans. They get a method invoked, do something, andreturn.
    To
    do something, they have to rely on state information. One way to resolve
    this is to maintain state in a store (database, file, javaspace etc.)
    somewhere. Another solution is to model state in a stateful session
    bean,
    one for each employee.
    a) state in a store : the messagedriven bean retrieves state fromthe
    store and does it's task and completes. Scheduling is still done with a
    SchedulingManager. One for each employee in the department, or one for
    the
    whole department, generating "Wakeup" messages.
    b) state in stateful session beans : same thing, but : peremployee,
    we
    now have a messagedriven secretary and a stateful session bean. What
    about
    the performance impact here - imagine we have 2000 employees of the same
    behaviour - that would mean 2000 secretarybeans and 2000 statefulsession
    beans !
    Personally I think it would make no big difference.
    In this possibility, "Tom" would be just another messagedrivencomponent,
    with it's own behaviour, but inheriting some things from Paul'sdepartment
    employees. But he would have his own SchedulingManager I guess. The
    scheduling is giving me headaches, as scheduling is very close toindividual
    behaviour.
    I would have liked to model everything specific to the employee in 1 or
    2
    beans, but not 3 of them !!
    Ok and now there's the other question : how would you design theScheduling
    beans ? They would have to be running all the time wouldn't they ? So
    they
    would have to be invoked once, and then execute a "Schedule" method allthe
    time of their life. Is this feasible at all ? Would I never risk theywould
    get passivated ? How would you design them ? And more globally, how
    would
    you design scheduling ?
    2) the second possibility is to "group" some of the beans of the 1stdesign
    alternative into one. I guess there are many possibilities for this to
    be
    done, so I don't outline everything here. I would nevertheless beinterested
    how would do it.
    Well, to me this design seems unnecessarily complex. What would you say
    How would YOU design the handling of such "beings" ?
    Would you use EJB ?
    Best regards,
    Jubin Zawar

  • Ignore my previous Q. Clearer descriprition of JMS FAilover problem

              I'm using weblogic700 .
              I have a cluster( say mycluster) and two weblogic servers ms1 and ms2 in this cluster.
              I have configured a connection factory and its target is assigned to my cluster.
              I have configured a JMS Server and its target is assigned to ms1.
              It has a destination myqueue.
              The listen address for ms1 and ms2 is host1
              The listen port for ms1 and ms2 are 7011 and 7021.
              Now I deploy a message driven bean to mycluster.
              I have a JMS client. Using it if I send a message with a PROVIDER_URL t3://host1:7011
              then the message is consumed.
              (the message is sent to myqueue and the message driven
              bean consumes messages at myqueue).
              Now what should I do If ms1 stops.How can I support failover( even it requires
              some manual steps.)
              So my Question is: How do use the facilty of migration of pinned services in
              this case?
              Also as in the case of servlet and jsp where I can get a common entry point(
              the host and port number of the proxy server which I got by configuring the HTTPClusterServlet)
              how can I get a common address which I will use in my client for sending my
              messages ?
              I feel I am not supposed to use individual server addresses in sending my messages
              to my message driven bean deployed in cluster.
              

              Be honest, the Weblogic document about multiple instances require you have multiple
              IPs (names) for the same machine and each IP refers to 1 instance,this way, you can
              always use the same port. I am not sure how to implement this concept. Grab your
              system and network administrator to help you.
              "Aniket karmakar" <[email protected]> wrote:
              >
              > Thanks Mr Wendy Zhang...I have successfully tested migration of pinned
              >services(
              >IN MY CASE JMS)
              > With your concept of the entry point (t3://s1,s2,s3:p)I could test the
              >migration.But
              >the only point which still itches me is that I
              >cannot have two clustered servers on the same machine.In that case I cannot
              >have
              >the same port number for both of them.
              >
              >"Wendy Zhang" <[email protected]> wrote:
              >>
              >>For the common address, please check the detail from Weblogic 7 JNDI document.
              >>The
              >>last paragraph has a simple description. The address is the address you
              >>put in the
              >>Cluster address, for example, if you use comma seperated addresses and
              >you
              >>have three
              >>servers s1,s2 and s3 with port p, the common address appeared in your JMS
              >>client
              >>is t3://s1,s2,s3:p. The Weblogic library used in your client knows how
              >to
              >>handle
              >>this address.
              >>
              >>
              >>"Aniket" <[email protected]> wrote:
              >>>
              >>> I'm using weblogic700 .
              >>>
              >>>I have a cluster( say mycluster) and two weblogic servers ms1 and ms2
              >>in
              >>>this cluster.
              >>> I have configured a connection factory and its target is assigned
              >to
              >>>my cluster.
              >>> I have configured a JMS Server and its target is assigned to ms1.
              >>> It has a destination myqueue.
              >>>
              >>> The listen address for ms1 and ms2 is host1
              >>> The listen port for ms1 and ms2 are 7011 and 7021.
              >>>
              >>> Now I deploy a message driven bean to mycluster.
              >>>
              >>> I have a JMS client. Using it if I send a message with a PROVIDER_URL
              >>>t3://host1:7011
              >>>then the message is consumed.
              >>>(the message is sent to myqueue and the message driven
              >>>bean consumes messages at myqueue).
              >>>
              >>> Now what should I do If ms1 stops.How can I support failover( even
              >>it
              >>>requires
              >>>some manual steps.)
              >>> So my Question is: How do use the facilty of migration of pinned services
              >>>in
              >>>this case?
              >>>
              >>> Also as in the case of servlet and jsp where I can get a common entry
              >>>point(
              >>>the host and port number of the proxy server which I got by configuring
              >>>the HTTPClusterServlet)
              >>>
              >>> how can I get a common address which I will use in my client for
              >sending
              >>>my
              >>>messages ?
              >>>
              >>> I feel I am not supposed to use individual server addresses in sending
              >>>my messages
              >>> to my message driven bean deployed in cluster.
              >>
              >
              

  • How to consume Stateless session bean (ejb3.0)

    Hi,
    Using SAP NWDS, and Java EE 5 engine, I created an EJB 3.0 project (using the wizard) that includes my bean, local and remote classes with the correponding annotation.
    Now I have headhackes trying to consume (at least to call a methode from my bean).
    Here is the framework:
    Ejb project includes: myClassBean, myClassLocal (interface), myClassRemote(interface).
    In another java project, I try to use my bean method like this:
    InitialContext ctx = new InitialContext();
    myClassRemote classRemote= (myClassRemote) ctx.lookup("sap.com/<name of the ear>/myClassBean");
    ResultSet rs = classRemote.getMyMethod("param");
    Thus this implementation do not work. The nasted exception is NameNotFound exception during the look up.
    I readt a lot of document on the sdn and sap portal but all describe the creation of ejb and not really their consumption.
    Can you help?
    Thanks in advance,
    Marc

    Hi Marc,
    Hope <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/605ff5f2-e589-2910-3ead-e558376e6f3d">this</a> answers your questions!
    Cheers,
    Vladimir

  • Consuming a webservice from a message bean?

    i set up a webservice proxy in another application project.
    i want another project's Message Bean to consume the webservice proxy
    that is in the other project?
    TIA

    just moved the web service proxy to the same application..

  • RE: Consuming and Creating a CMP Entity Bean

    Hi There,
    I have been trying to find an answer for 1 day. I don't know ehre to look next.
    I am creating a CMP entity bean. I have created all the set and get mehtods as abstract functions. I have added a ejbCreate and a matching ejbPostCreate. The class code looks like this.
    public abstract class COrderBean implements EntityBean {
         protected EntityContext entctx;
         //abstract declarations of property accessors
         public abstract int getId();
         public abstract void setId(int intid);
         public abstract String getCustomerID();
         public abstract void setCustomerID(String strcustomerid);
         public abstract Date getDate();
         public abstract void setDate(Date datorder);
         public abstract String getNotes();
         public abstract void setNotes(String strnotes);
         public void ejbActivate() {}
         public void ejbPassivate() {}
         public void ejbRemove() {}
         public void ejbLoad() {}
         public void ejbStore() {}
         public void setEntityContext(EntityContext context)
              entctx = context;
         public void unsetEntityContext()
              entctx = null;
         public COrderPK ejbCreate()
              return null;
         public COrderPK ejbCreate(int new_id, String new_customerid, Date new_order_date, String new_notes) throws CreateException
              setId(new_id);
              setCustomerID(new_customerid);
              setDate(new_order_date);
              setNotes(new_notes);
              return new COrderPK(getId());
         public void ejbPostCreate(int id, String customerid, Date order_date, String notes) {}
    My client code works with both BMP entity beans and session beans. It is shown below. I am working with Sun's Application Server 8.0 and I created the database schema with the capture-schema.exe command.
    Properties prps = new Properties();
              props.put("javax.rmi.CORBA.UtilClass","com.sun.corba.ee.impl.javax.rmi.CORBA.Util");
              props.put("org.omg.CORBA.ORBClass","com.sun.corba.ee.impl.orb.ORBImpl");
              props.put("org.omg.CORBA.ORBSingletonClass","com.sun.corba.ee.impl.orb.ORBSingleton");
              Context context = new InitialContext(props);
              Object obj = context.lookup("corbaname:iiop:localhost:3700#COrderBean");
              //Object obj = context.lookup("entitybean.OrderItem");
                   IOrderHome home = (IOrderHome)PortableRemoteObject.narrow(obj,Class.forName("ctaejb.entitybean.order.IOrderHome"));
                   //use create
                   IOrderRemote remote = home.findByPrimaryKey(new COrderPK(1));
                   System.out.println(remote.getDate().toString());
    I am getting the follwing error. Can someone please help. Thanks in advance.
    WARNING: "IOP00810257: (MARSHAL) Could not find class"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
         at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:7987)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:330)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:296)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:255)
         at com.sun.corba.ee.spi.servicecontext.UEInfoServiceContext.<init>(UEInfoServiceContext.java:30)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.spi.servicecontext.ServiceContextData.makeServiceContext(ServiceContextData.java:114)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.unmarshal(ServiceContexts.java:195)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:365)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:470)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:327)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:158)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at ctaejb.entitybean.order._IOrderHome_DynamicStub.findByPrimaryKey(_IOrderHome_DynamicStub.java)
         at mainapp.CTestApplication.main(CTestApplication.java:32)
    Caused by: java.lang.ClassNotFoundException
         ... 27 more
    org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.ee.spi.servicecontext.UEInfoServiceContext.<init>(UEInfoServiceContext.java:34)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.spi.servicecontext.ServiceContextData.makeServiceContext(ServiceContextData.java:114)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.unmarshal(ServiceContexts.java:195)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:365)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:470)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:327)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:158)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at ctaejb.entitybean.order._IOrderHome_DynamicStub.findByPrimaryKey(_IOrderHome_DynamicStub.java)
         at mainapp.CTestApplication.main(CTestApplication.java:32)

    Forget it. All the code works. I didn't know that the Sun App Server required a Persistence Manager to work with CMP entity beans. Once I added the persistence manager, all was OK. Have a good day.

  • Consume SAP WebService Bean with Flex

    Hello,
    I have an flex application thaht call an sap java webservice bean. And this bean have his own xml namespace.
    How can I read this xml in flex ?
    I have done some test with e4x but I found no solution.
    flex :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.collections.ArrayCollection;
                   import mx.rpc.events.ResultEvent;
                   [Bindable] private var liste:ArrayCollection = new ArrayCollection();
                   private function go(event:Event):void {
                        ws.getIViews.send();
                   private function ergebnis(event:ResultEvent):void {
                        for each(var xml:XML in event.result) {
                   liste.addItem(xml.child("pns:link"));
                        //liste = event.result as ArrayCollection;
                   private function fehler(event:Event):void {
                        Alert.show(event.target.toString(),"Fehler");
              ]]>
         </mx:Script>
         <mx:WebService id="ws" wsdl="http://x.xxt.net:50000/xxPortalServices/Config1?wsdl">
              <mx:operation name="getIViews" result="ergebnis(event)" resultFormat="e4x" fault="fehler(event)">
                   <mx:request>
                        <id>
                        </id>                    
                   </mx:request>
              </mx:operation>
         </mx:WebService>
         <mx:Button id="get" click="go(event)" label="hol"/>
         <mx:DataGrid id="dg" dataProvider="" x="61" y="65">
              <mx:columns>
                   <mx:DataGridColumn dataField="link"/>
              </mx:columns>
         </mx:DataGrid>
    </mx:Application>
    XML:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
          <rpl:getIViewsResponse xmlns:rpl="urn:xxPortalServicesVi">
             <rpl:Response xmlns:pns="urn:com.xx.ws.prt">
                <pns:IViewsModelDTO>
                   <pns:link>test123</pns:link>
                   <pns:pcdpath>portal_content/XX</pns:pcdpath>
                   <pns:title>test123</pns:title>
                </pns:IViewsModelDTO>
             </rpl:Response>
          </rpl:getIViewsResponse>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Edited by: Daniel Rothmund on Oct 17, 2009 6:47 PM

    namespace soapen = "http://schemas.xmlsoap.org/soap/envelope/";
    namespace rpl = "urn:xxPortalServicesVi";
    namespace pns = "urn:com.xx.ws.prt" ;
    use namespace soapen;
    somevariable = responsexml.someelement (to read the entire soap body)
    use namespace rpl ;
    somevariable = responsexml.someelement (to read getIViewsResponse)
    use namespace pns ;
    somevariable = responseexml.someelement (to read rpl:Response)
    i haven't tested this, but should work.
    you may also check this
    http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_6.html
    Regards
    Raja
    Edited by: Durairaj Athavan Raja on Oct 26, 2009 8:40 AM

  • Newbie consuming bean from VB6 COM

    Hi - I'm completely new to Beans and am trying to call a Java method from VB6 as 'proof of concept'.
    My java code has one method that returns a string; it compiles OK to a .class file; I can create a .jar using a manifest file containing "Java-Bean: True"; and I can use the activex packager to create a .tlb file.
    When I try to instantiate my class from VB6 using early binding I get "automation error - the specified module could not be found", and late binding using CreateObject just gives me "activex component cannot create object"
    Does anyone have ideas to what the problem is ??
    Thanks, Andrew.

    you need to compile your bean with the ActiveX packager (packager.exe) to a DLL. then you must register the dll (e.g. with regsvr32.exe), then you must reference the component (DLL) in visual basic, and then you can use it:
    Private Sub Form_Load()
        Dim value
        Dim java As Object
        Set java = CreateObject("JavaTestBean.Bean.1") 'create bean object
        java.setValue (3)         'call method setValue() of bean
        value = java.getValue()   'call method getValue() of bean
        MsgBox "Value: " & value  'print calculated value
        Set java = Nothing
    End Sub
    see also http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html

  • Calling EJB 3.0 Stateless Session Bean

    Dear all,
    I created a stateless session bean with a hello world method on it. Now i want to call the method from a BeanDecorator class, through a getter metod. When i use the jndi lookup in my getter, i can call the helloWorld method without a problem. However, when i dont use the jndi lookup, and only use the @EJB annotation, i always get a nullpointer.
    This is working:
    InitialContext ic = new InitialContext();
                   test = (TestLocal)ic.lookup("test.be/ear~bd/LOCAL/TestBean/"+TestLocal.class.getName());
                   test.helloWorld()
    This gives nullpointer:
    @EJB
    private TestLocal test;
    test.helloWorld();
    What is the correct way to consume session beans without having to explicitly code the jndi lookup?
    Kind regards.

    Hi,
    any annotation like this can be used only in "managed classes" like Session Beans, Servlets etc. Managed classes are those classes managed by the J2EE server. Managed here means, lifetime controlled by server.
    You can find this in J2EE specification.
    Frank

  • Calling Enity Bean's business methods from a session bean in EJB 3.0 specif

    Hello everybody,
    Happy to be a member with you in this forum.
    This is my first participation in this forum.
    I have some problem to start with EJB 3.0 specification, I have created an entity bean with some business methods that access a mysql datbase, then i want to create a stateful session bean to provide the client an interface to consume business methods in Enity be
    Please can someone you help me with an example

    @Vladimir Pavlov
    I did not understand what you are trying to convey...
    Whenever an attribute of this bean is modified we want to access that latest value.... Is there any way to know, when the attribute is modified? Just with get/set we can not know, when it is modified... am i right?
    We want to achieve this without modifying the existing source code of the EJB....
    @ Ivo Simeonov
    As of my knowledge, to use interceptors we need to modify the EJB source code, but we do not want to touch the source code....
    All this has to be achieved dynamically when the application is deployed in the production.... is it possible???

  • Remote Delta link setup problem with Bean / Access Service

    Hello,
    I am trying to setup Remote Delta Link (RDL) between two portals. (Both portals same version - EP 7.0 EHP1 SP 05 - are in the same domain)
    I already have the Remote Role Assignment working without any issues.
    The following have been done successfully:
    1. Same user repository has been setup for both the portals
    2. Setup trust between producer and consumer (SSO working fine)
    3. Producer added and registered succesfully on consumer
    4. Permissions setup on producer and consumer
    4. pcd_service user with required UME actions setup
    I am able to see all the remote content in the Consumer portal.
    When I try to copy the remote content and paste it as local content, I am getting the following error:
    Could not create remote delta link to object 'page id'. Could not connect to the remote portal. The remote portal may be down, there may be a network problem, or your connection settings to the remote portal may be configured incorrectly.
    After increasing the log severity, I am able to see the following in Default Trace:
    com.sap.portal.fpn.transport.Trying to lookup access service (P4-RMI) for connecting to producer 'ess_int' with information: com.sap.portal.fpn.remote.AccessServiceInformation@31c92207[connectionURL=hostname.mycompany.com:50004, shouldUseSSL=false, RemoteName=AccessService]
    com.sap.portal.fpn.transport.Unable to lookup access service (P4-RMI) with information: com.sap.portal.fpn.remote.AccessServiceInformation@31c92207[connectionURL=hostname.mycompany.com:50004, shouldUseSSL=false, RemoteName=AccessService]
    AbstractAdvancedOperation.handleDirOperationException
    [EXCEPTION]
    com.sap.portal.pcm.admin.exceptions.DirOperationFailedException: Could not retrieve the bean / access service to connect with producer
    Could not retrieve the bean / access service to connect with producer
    Like you can see above, there is some bean / access service which is not retrieved successfully. I am not sure if this is a permission problem on the consumer.
    I have checked that the P4 ports are configured correctly (standard - not changed) and I am able to telnet from producer to consumer (and vice versa) on the P4 port.
    I am stuck at this point and am not able to find any information on this.
    I would really appreciate if some one can point me in the right direction.
    Thank you for reading.
    - Raj

    Hi Raj,
    Please check your config of the P4 port on the producer.  Is it really 50004 (check SystemInfo of the producer)?
    I do think there's a problem with the P4 communication since RDL requires P4 connection.
    Do you have load balanced consumer-producer connection? Please refer to this blog for further details
    Little known ways to create a load balanced Consumer – Producer connection in a FPN scenario
    Regards,
    Dao

  • Creating a web service to consume price of a particular stock from ???

    hey,
    i'm new, donno much about web services in terms of writing it, but i do have some knowledge about wat it actually does...
    im here becuz i wanna create a web service to consume the price of a particular stock and then store the closing price along with the dates into a database
    now, im abit lost here.. how do i know where to get the information from? is it possible for me to write a web service to communicate with Yahoo! Finance or any other sites which allows consumption of information?

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • Message Driven Bean and transaction handling

    We are using container managed transactions with MDB's running on OC4J version 10.1.2. We have two database serveres, both running Oracle 10g.
    The MDB consume messages from the AQ-database through JMS (connected to a JDBC datasource registered as "jdbc/OracleAQDS").
    The MDB onMessage() code update the second database, using a JDBC datasource registered as "jdbc/OracleDBDS".
    We need atomic behaviour - if the MDB enforce a roll-back we want the updates aginst the second database to be rolled-back as well.
    (1) Should we use XA-datasources since AQ and DB runs on two different servers or do the OC4J container "magically" provide two-phase-commit for us?
    (2) If the MDB does a roll-back we would like to add an error record to a database table. Can we configure a third datasource and prevent if from beeing part of the container managed MDB roll-back?
    (3) When the MDB force a roll-back, is there some way for us to override the retry-delay in our Java code? If we catch certain errors during processing in onMessage we know that it is not necessary to retry for at least one hour (while less severe errors should be retried in just seconds).

    {color:#008000}Hi Friends,
    Thought of updating the answers for my questions in case somebody else would find it helpful.
    {color}
    {color:#999999}{color:#00ccff}I'm trying to make message driven bean and use the OnListener method.
    But since I'm doing this for the first time I have very limited knowledge.
    The following are my doubts :
    1. Should I have a main function while using the MDB?{color}
    {color:#008000} There is no need for any main function.{color}
    {color:#00ccff}2. Is it mandatory to have JNDI setup done?
    {color} {color}{color:#008000} There is no need for any JNDI setup done. But you need to configure the details on the
    Websphere by creating valid entries inside Resources namely -
    Queue Connection Factory, Queues and Listener Ports under the server.
    Thanks,
    Arun Prithviraj{color}

  • How to get the number of messages consumed by a MDB ??

    Hi all,
    How to get the number of messages consumed by a MDB displayed in OEM in a Java Application ???
    DMS ??? what use DMS ???
    tanks

    ok.
    Well using DMS is one way to get at these sorts of stats in a programmatic manner.
    There's a Java API you can use, or you could call out to the Spy servlet to query the DMS stats in either text or XML form.
    I don't have an MDB published so I can't show you specifiically, but here's the sort of query you can use to extract the data.
    http://localhost:8888/dms0/Spy?format=raw&table=oc4j_ejb_stateless_bean&recurse=children
    Which produces a table of the TEXT form:
    <DMSDUMP version='9.0.4' timestamp='1163456821185 (Tue Nov 14 08:57:01 CST 2006)' id='8888' name='OC4J'>
    <statistics>
    /oc4j [type=n/a]
    /oc4j/default [type=oc4j_ear]
    /oc4j/default/EJBs [type=oc4j_ejb]
    /oc4j/default/EJBs/jmsrouter_ejb [type=oc4j_ejb_pkg]
    /oc4j/default/EJBs/jmsrouter_ejb/AdminMgrBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     1     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     1     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/EnqueuerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/TimerHandlerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    </statistics>
    </DMSDUMP>
    Or produces an XML document of the form:
    http://localhost:8888/dms0/Spy?format=xml&table=oc4j_ejb_stateless_bean&recurse=children
    You can use the Spy console to find the table that contains the details for MDB and then take it from there.
    This is not what you specifically want to do, but it does provide a good overview of how DMS is used.
    http://www.oracle.com/technology/pub/notes/technote_dms.html
    -steve-

Maybe you are looking for

  • Is it possible to use the same calculations in another frame. Or maybe another solution.

    Hello everyone. Sorry to bother you again. As you have probably have seen before  I am working on a calculator. I ran into another problem as i want to add some more features to the calculator i already made. The problem is this: I have included a ch

  • Processing the batches of data in parallel

    Hi friends, Can any one suggest me how to process the bathces of data in parallel. Please see the requirement below. •     A new version of ZREDISND1_OLD named ZREDISND1_EINVOICE with the possibility of processing the blocked invoices with parallel p

  • How to print screen

    Does anyone know how copy a screenshot with a Mac. Cheers

  • Why are the tab icons blank in FF 8.0?

    After updating to 8.0 the icons on my tabs are all blank except for FF icons. No other websites show any icons on the tabs only a blank box.

  • Using an html window on Moodle site

    I am using Moodle and am having an annoying problem when I try to do html editing. The "pop up" window is extended and not populated with any data - see [http://dl.dropbox.com/u/2228975/Web%20clips%20etc/Screenshot%201.png screenshot 1]. [http://dl.d