Help with MDB

I have a message driven bean, which is listening to a queue for a particular message. On receiving the message it should invoke a remote interface In a session bean)for further business action, basically a validation done by the session bean.
How can I invoke that and pass the message to the session bean.?
the session bean code is below and in has the DriverValidate Remote interface.
package dlr.ecom.creditapp.backend.business;
//import dlr.ecom.creditapp.backend.database.DBSelectRow;
import dlr.ecom.creditapp.backend.database.wrapper.DbSystemAcc;
* Bean implementation class for Enterprise Bean: DriverValidate
public class DriverValidateBean implements javax.ejb.SessionBean {
     private javax.ejb.SessionContext mySessionCtx;
     * getSessionContext
     public javax.ejb.SessionContext getSessionContext() {
          return mySessionCtx;
     * setSessionContext
     public void setSessionContext(javax.ejb.SessionContext ctx) {
          mySessionCtx = ctx;
     * ejbCreate
     public void ejbCreate() throws javax.ejb.CreateException {
     * ejbActivate
     public void ejbActivate() {
     * ejbPassivate
     public void ejbPassivate() {
     * ejbRemove
     public void ejbRemove() {
     public String execute(String msg){
          try {
     //String request = "<InquiryRequest><SystemId>999999</SystemId><DealerId>999999</DealerId><DataType>DB</DataType><AccountId>TEST1</AccountId><PartnerId>DT</PartnerId><TransType>IMPORT</TransType><UserId>TEST1</UserId><ClientIp>139.126.12.54</ClientIp></InquiryRequest>";
     String response;
          System.out.println("Input msg" + msg);
          ValdatDealer validatedealer = new ValdatDealer();
          response = validatedealer.checkDealer(msg);
          System.out.println(response);
          return response;
          /*DbSystemAcc sa = new DbSystemAcc("999999","999999","DT","TEST1");
          System.out.println("Validation"+sa.getDmsIp());
          //DBSelectRow[] dr = DBWrapper.getInstance().getDBLocalHome().create().TaskSelect("Select * from DB2Admin.dealersystem");
          //System.out.println(dr.length);
          catch (Exception exp){
               exp.printStackTrace();
          return new String();
And the MDB code is below
package dlr.ecom.creditapp.backend.framework;
import javax.jms.*;
import javax.naming.*;
import javax.naming.directory.*;
import javax.rmi.PortableRemoteObject;
* Bean implementation class for Enterprise Bean: CreditAppValidate
public class CreditAppValidateBean
     implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener {
     private javax.ejb.MessageDrivenContext fMessageDrivenCtx;
     * getMessageDrivenContext
     public javax.ejb.MessageDrivenContext getMessageDrivenContext() {
          return fMessageDrivenCtx;
     * setMessageDrivenContext
     public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx) {
          fMessageDrivenCtx = ctx;
     * ejbCreate
     public void ejbCreate() {
     * onMessage
     public void onMessage(Message inMessage) {
     TextMessage msg = null;
     try {
          if (inMessage instanceof TextMessage) {
               msg = (TextMessage)inMessage;
               DriverValidate validate = (DriverValidate)msg.getText();
                         // Invoke DriverValidation
               System.out.println("Invoking MDB onMessage() now.");
               System.out.println("Message Object is: " + msg);
               System.out.println("Text message is: " + ((TextMessage)msg).getText());
               System.out.println();
          } else {
     }catch (JMSException e) {
               System.out.println("Whoops! A JMSException occurred: " + e);
               e.printStackTrace();
     * ejbRemove
     public void ejbRemove() {
thanks

Hi,
You have to lookup your session bean via jndi. Your MDB code should be something like:
// get the text from message
String toValidate = msg.getText();
// obtain a reference to your DriverValidateBean
InitialContext jndi = new InitialContext();
Object lObject = jndi.lookup("ejb/driver/ DriverValidateBean");
DriverValidateBeanHome myDriverValidateBeanHome = (DriverValidateBeanHome) PortableRemoteObject.narrow(lObject, DriverValidateBeanHome.class);
DriverValidateBean validator = myDriverValidateBeanHome.create();
// perform operations
validator.execute ( toValidate );
Hope it helps
Arnaud
www.arjuna.com

Similar Messages

  • Help with mdb core analysis tool

    Hi,
    We are having a possibly memory leak problem but we don't know for sure. In order to find out if there any memory leaks, we are trying to use "mdb" tool that comes along with Solaris (version: SunOS romeo 5.10 Generic_125100-10 sun4v sparc SUNW,Sun-Fire-T200). Problem is when I run "mdb" the module "libumem.so.1" is not loaded. This is what I get
    $$mdb core.25688
    Loading modules: [ libc.so.1 libuutil.so.1 ld.so.1 ] I have set the following:
    UMEM_DEBUG=default
    UMEM_LOGGING=transaction
    LD_PRELOAD=libumem.so.1
    But still no luck. Can anyone tell me what I need to do to load libumem.so.1 module?
    Many thanks
    Prasad

    Hi guys!
    I'm new to Java and need advice on how to develop a
    tool that analyses logfiles created by a groupware server.
    I need to this for my thesis hence the importance.
    Thanks.Ok. What's your question. Or are you looking for someone to write it for you?

  • New to dreamweaver, help with mdb

    hi I am new to dreamweaver and have some html knowledge but no fancy stuff here.  I have setup my website to communicate w/ dreamweaver but my asp pages are not interacting... that is, I cannot see any mdb database info in the "live view."  can someone please help w/ all this dns jargon.  I've searched google but it's too confusing.  i'm sure I can figure this out w/ some help.  thanks!

    Hi
    Live view will not display dynamic server side data.
    To view this you will have to set up an asp testing server, see - http://www.adobe.com/devnet/dreamweaver/articles/setting_up_asp.html.
    If you are just starting can I recommend that you consider using php/mysql in place of asp/mdb (or msql), as the php set-up is much better supported in dreamweaver and on this forum.
    For more info on setting-up and using both these set-ups, see - http://www.adobe.com/devnet/dreamweaver/application_development.html.
    PZ

  • Help with mdb ::memstat and kstat commands

    hello
    I'm trying to work out exactly what the "Anon" row in mdb -k ::memstat output means. I assume it works by using statistics available using kstat, but I'd really like to know exactly which ones. I've seen that "Anon" memory is used for heap, stack, copy-on-write and shared memory, but I can't dig out matching kstat statistics.
    Anyone either know the answer, or know a good resource for understanding what kstat statistics are available?
    Phil

    hello
    I'm trying to work out exactly what the "Anon" row in mdb -k ::memstat output means. I assume it works by using statistics available using kstat, but I'd really like to know exactly which ones. I've seen that "Anon" memory is used for heap, stack, copy-on-write and shared memory, but I can't dig out matching kstat statistics.
    Anyone either know the answer, or know a good resource for understanding what kstat statistics are available?
    Phil

  • Durable Subscription with MDB in Weblogic 7.0

    Hi,
              I am using WLS 7.0 as the JMS Provider and as the EJB Container(no
              clustering). My question is do I need MDB with durable subscription. I
              cannot think of a instance when the container will be down but JMS
              provider is still running if I am using WLS as both container and JMS
              provider.
              One instance i can think of is if the MDB is not deployed (upon a new
              release of our application, for some strange reason) but rest of the
              application is deployed then the producers will produce messages for
              the off-line subscriber.
              If I assume that the above is not likely to happen, can you think of
              any compelling reason for me to use MDB with durable subcription .
              Thanks for your input.
              ssahu
              

    1) The MDB should only specify "durable" if it is receiving from a
              topic. Durable does not apply to queues.
              2) If messages are non-persistent, then you likely don't need durable.
              As these messages don't survive the shutdown...
              3) Making it durable helps with race-conditions during shutdown or
              startup where messages are sent but the MDB isn't up. It also helps
              with the condition where shutdown occurs before the MDB finishes
              processing all of its messages. (So Durable ensures that the
              MDB does not miss a message. It may even help in the non-persistent
              case if is possible that the MDB is temporarily undeployed (by you)
              while the server is up.
              [email protected] wrote:
              > Hi,
              > I am using WLS 7.0 as the JMS Provider and as the EJB Container(no
              > clustering). My question is do I need MDB with durable subscription. I
              > cannot think of a instance when the container will be down but JMS
              > provider is still running if I am using WLS as both container and JMS
              > provider.
              > One instance i can think of is if the MDB is not deployed (upon a new
              > release of our application, for some strange reason) but rest of the
              > application is deployed then the producers will produce messages for
              > the off-line subscriber.
              >
              > If I assume that the above is not likely to happen, can you think of
              > any compelling reason for me to use MDB with durable subcription .
              >
              > Thanks for your input.
              >
              > ssahu
              

  • MQ with MDB on WL 7.1

              I have setup MQ 5.2 and want to use it with MDB's on weblogic 7.1.
              I DO NOT WANT TO use bridging.
              I have a netscape LDAP server from which i get the JNDI context for the MQ.This
              works fine with a pure java client and reciever class.
              But when using MDB to recieve i get the following error:
              <Sep 3, 2003 11:00:23 AM EDT> <Warning> <EJB> <010061> <The Message-Driven EJB:
              com.message.MyMessageDrivenEJB is unable to connect to the JMS destination: JAVA
              BEEN.TEST. The EJB container will automatically attempt to re-establish the conn
              ection with the JMS server. This warning may occur during WebLogic Cluster start
              -up if the JMS destination is located on another server. When the JMS server con
              nection is re-established, the Message-Driven EJB will again receive JMS message
              s.
              The Error was:
              The JMS destination with the JNDI name: JAVABEEN.TEST could not be found. Please
              ensure that the JNDI name in the weblogic-ejb-jar.xml is correct, and the JMS
              d
              estination has been deployed.>
              here is my weblogic-ejb-jar.xml
              <?xml version="1.0" ?>
              <!DOCTYPE weblogic-ejb-jar (View Source for full doctype...)>
              - <!-- Sample MessageDriven bean Weblogic deployment descriptor
              -->
              - <weblogic-ejb-jar>
              - <weblogic-enterprise-bean>
              <ejb-name>com.message.MyMessageDrivenEJB</ejb-name>
              - <message-driven-descriptor>
              - <pool>
              <max-beans-in-free-pool>5</max-beans-in-free-pool>
              <initial-beans-in-free-pool>2</initial-beans-in-free-pool>
              </pool>
              <destination-jndi-name>cn=JAVABEEN.TEST</destination-jndi-name>
              <initial-context-factory>com.sun.jndi.ldap.LdapCtxFactory</initial-context-factory>
              <provider-url>ldap://aseq05.test.com:1390/ou=jms,ou=naming,o=com.test</provider-url>
              <connection-factory-jndi-name>cn=TEST0D2</connection-factory-jndi-name>
              </message-driven-descriptor>
              <jndi-name>MdbForMQ</jndi-name>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              

    Yes, it works - even transactionally - although sometimes it
              takes a little fiddling.
              If you haven't already done so, I suggest that you start
              by reading the "Using Foreign JMS Providers with WebLogic Server"
              white-paper on http://dev2dev.bea.com/technologies/jms/index.jsp
              Furthermore note that WL 8.1 contains features that ease
              the integration task somewhat (the white-paper was written before 8.1).
              Do the tracing flags Greg suggested reveal anything?
              Tom
              sam wrote:
              > Greg,
              >
              > thks for taking time to respond, i appreciate.
              >
              > I still cant get this working, can we even use MDB( deployed on WL 7.1) with MQ
              > ??
              >
              > thks
              >
              > Sam
              >
              >
              >
              >
              > "Greg Brail" <[email protected]> wrote:
              >
              >>The basic stuff appears to be there and OK in weblogic-ejb-jar.xml. Are
              >>you
              >>sure that you have the classes for your LDAP provider in the server's
              >>CLASSPATH? That's a pretty common problem.
              >>
              >>You could also start your server with:
              >>
              >>-Dweblogic.ejb.jms.connect.debug=true
              >>-Dweblogic.ejb.jms.connect.verbose=true
              >>
              >>and the "StdoutDebugEnabled" flag set on the "Server" element in config.xml.
              >>This will cause the EJB container to print all sorts of diagnostic
              >>information that should help with the debugging.
              >>
              >> greg
              >>
              >>"sam" <[email protected]> wrote in message
              >>news:[email protected]...
              >>
              >>>I have setup MQ 5.2 and want to use it with MDB's on weblogic 7.1.
              >>>I DO NOT WANT TO use bridging.
              >>>
              >>>I have a netscape LDAP server from which i get the JNDI context for
              >>
              >>the
              >>MQ.This
              >>
              >>>works fine with a pure java client and reciever class.
              >>>
              >>>But when using MDB to recieve i get the following error:
              >>>
              >>><Sep 3, 2003 11:00:23 AM EDT> <Warning> <EJB> <010061> <The Message-Driven
              >>
              >>EJB:
              >>
              >>>com.message.MyMessageDrivenEJB is unable to connect to the JMS
              >>
              >>destination: JAVA
              >>
              >>>BEEN.TEST. The EJB container will automatically attempt to re-establish
              >>
              >>the conn
              >>
              >>>ection with the JMS server. This warning may occur during WebLogic
              >>
              >>Cluster
              >>start
              >>
              >>>-up if the JMS destination is located on another server. When the JMS
              >>
              >>server con
              >>
              >>>nection is re-established, the Message-Driven EJB will again receive
              >>
              >>JMS
              >>message
              >>
              >>>s.
              >>>The Error was:
              >>>The JMS destination with the JNDI name: JAVABEEN.TEST could not be
              >>
              >>found.
              >>Please
              >>
              >>> ensure that the JNDI name in the weblogic-ejb-jar.xml is correct,
              >>
              >>and the
              >>JMS
              >>
              >>>d
              >>>estination has been deployed.>
              >>>
              >>>
              >>>here is my weblogic-ejb-jar.xml
              >>>
              >>>
              >>>
              >>> <?xml version="1.0" ?>
              >>> <!DOCTYPE weblogic-ejb-jar (View Source for full doctype...)>
              >>>- <!-- Sample MessageDriven bean Weblogic deployment descriptor
              >>> -->
              >>>- <weblogic-ejb-jar>
              >>>- <weblogic-enterprise-bean>
              >>> <ejb-name>com.message.MyMessageDrivenEJB</ejb-name>
              >>>- <message-driven-descriptor>
              >>>- <pool>
              >>> <max-beans-in-free-pool>5</max-beans-in-free-pool>
              >>> <initial-beans-in-free-pool>2</initial-beans-in-free-pool>
              >>> </pool>
              >>> <destination-jndi-name>cn=JAVABEEN.TEST</destination-jndi-name>
              >>>
              >><initial-context-factory>com.sun.jndi.ldap.LdapCtxFactory</initial-context-f
              >>actory>
              >>
              >>>
              >><provider-url>ldap://aseq05.test.com:1390/ou=jms,ou=naming,o=com.test</provi
              >>der-url>
              >>
              >>> <connection-factory-jndi-name>cn=TEST0D2</connection-factory-jndi-name>
              >>> </message-driven-descriptor>
              >>> <jndi-name>MdbForMQ</jndi-name>
              >>> </weblogic-enterprise-bean>
              >>> </weblogic-ejb-jar>
              >>
              >>
              >
              

  • Deploying J2EE application with MDB

    Hi,
    I am looking for a solution to deploy a J2EE application with MDB and the resource provider as well. For now, I only see the solution to manually create a resource provider by the EM enterprise console or to add the resource provider into the application.xml in the oc4j instance.
    Any help appreciated
    Peter

    Hi,
    This looks like an incorrect AQ JMS Jar file. Please contact the AQ team if this is a known issue and if required log a tar against AQ.
    Thanks
    Raja

  • Issue with MDB (jms Queue) in weblogic 8.1

              Hi all...
              I'm facing a strange kind of problem with MDB using weblogic 8.1.
              The code worked perfectly in weblogic 7.0.
              This is wht i'm trying to achieve..
              i'm having a MDB which implements a onMessage().
              I'm publishing message thru a standalone client. Publishing works fine..
              The problem is onMessage(javax.jms.Message msg) is never been called :-(.
              when i monitor it shows that messages are recieved..
              Am is missing something that is really important..
              here is my code
              package com.csxwt.zodiac.service.domain;
              import javax.ejb.*;
              import javax.jms.*;
              import javax.naming.*;
              import java.io.Serializable;
              //import com.csxwt.zodiac.service.domain.TestObject;
              public class MDBTestBean implements MessageDrivenBean, MessageListener {
              MessageDrivenContext messageDrivenContext;
              public void ejbCreate() throws CreateException {
              System.out.println("into the ejb create");
              /**@todo Complete this method*/
              public void ejbRemove() {
              /**@todo Complete this method*/
              public void onMessage(javax.jms.Message msg) {
              System.out.println("into the onMessage method 1 ");
              ObjectMessage objectMsg = null;
              String strObject = "Test";
              try
              System.out.println("into the onMessage method 2 ");
              if (msg instanceof ObjectMessage)
              System.out.println("into the onMessage method 3");
              objectMsg = (ObjectMessage) msg;
              Serializable serializableObj = objectMsg.getObject();
              String test = serializableObj.toString();
              System.out.println("value of the message sent " + test);
              TestObject test1 = null;
              if(serializableObj instanceof TestObject )
              test1 = (TestObject) serializableObj;
              System.out.println("after getting the test value ");
              System.out.println("getting the test object valuye " + test1.getName());
              else
              return;
              catch (Exception e)
              System.out.println("Message Bean:unexpected Exception thrown ");
              e.printStackTrace();
              public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext)
              System.out.println("into MDB context");
              this.messageDrivenContext = messageDrivenContext;
              here are the 2 xml files....
              <ejb-jar>
              <enterprise-beans>
              <message-driven>
              <display-name>MDBTest</display-name>
              <ejb-name>MDBTest</ejb-name>
              <ejb-class>com.csxwt.zodiac.service.domain.MDBTestBean</ejb-class>
              <transaction-type>Container</transaction-type>
              <message-selector>GATE_LANE</message-selector>
              <message-driven-destination>
              <destination-type>javax.jms.Queue</destination-type>
              </message-driven-destination>
              </message-driven>
              </enterprise-beans>
              <assembly-descriptor>
              <container-transaction>
              <method>
              <ejb-name>MDBTest</ejb-name>
              <method-name>*</method-name>
              </method>
              <trans-attribute>Required</trans-attribute>
              </container-transaction>
              </assembly-descriptor>
              </ejb-jar>
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>MDBTest</ejb-name>
              <message-driven-descriptor>
              <pool>
              <max-beans-in-free-pool>200</max-beans-in-free-pool>
              <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
              </pool>
              <destination-jndi-name>zodiac.jms.queue.HardWareOutMessageQueue</destination-jndi-name>
              </message-driven-descriptor>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              Am i missing something somewhere?????
              any help in this is highly appreciated..
              thanks in advance.
              r
              sasi
              

    Check your log for error and warning messages. If there
              are some, they should help trace down the problem. If there
              aren't any, try confirm that your MDB is deploying in
              the first place.
              The MDB below is a Q MDB, but you write below that your client
              is a "publisher". "Publisher" implies a topic producer, not
              a queue producer, and topic producer can't publish to queues.
              Tom
              T. Sasii Dharma wrote:
              > Hi all...
              >
              > I'm facing a strange kind of problem with MDB using weblogic 8.1.
              > The code worked perfectly in weblogic 7.0.
              > This is wht i'm trying to achieve..
              > i'm having a MDB which implements a onMessage().
              > I'm publishing message thru a standalone client. Publishing works fine..
              > The problem is onMessage(javax.jms.Message msg) is never been called :-(.
              > when i monitor it shows that messages are recieved..
              > Am is missing something that is really important..
              >
              > here is my code
              >
              > package com.csxwt.zodiac.service.domain;
              >
              > import javax.ejb.*;
              > import javax.jms.*;
              > import javax.naming.*;
              > import java.io.Serializable;
              > //import com.csxwt.zodiac.service.domain.TestObject;
              >
              > public class MDBTestBean implements MessageDrivenBean, MessageListener {
              > MessageDrivenContext messageDrivenContext;
              > public void ejbCreate() throws CreateException {
              > System.out.println("into the ejb create");
              > /**@todo Complete this method*/
              > }
              > public void ejbRemove() {
              > /**@todo Complete this method*/
              > }
              > public void onMessage(javax.jms.Message msg) {
              > System.out.println("into the onMessage method 1 ");
              > ObjectMessage objectMsg = null;
              > String strObject = "Test";
              > try
              > {
              > System.out.println("into the onMessage method 2 ");
              > if (msg instanceof ObjectMessage)
              > {
              > System.out.println("into the onMessage method 3");
              > objectMsg = (ObjectMessage) msg;
              > Serializable serializableObj = objectMsg.getObject();
              > String test = serializableObj.toString();
              > System.out.println("value of the message sent " + test);
              > TestObject test1 = null;
              > if(serializableObj instanceof TestObject )
              > {
              > test1 = (TestObject) serializableObj;
              > System.out.println("after getting the test value ");
              > System.out.println("getting the test object valuye " + test1.getName());
              > }
              >
              > }
              > else
              > {
              > return;
              > }
              >
              > }
              > catch (Exception e)
              > {
              > System.out.println("Message Bean:unexpected Exception thrown ");
              > e.printStackTrace();
              > }
              >
              > }
              > public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext)
              > {
              > System.out.println("into MDB context");
              >
              > this.messageDrivenContext = messageDrivenContext;
              > }
              > }
              >
              >
              > here are the 2 xml files....
              >
              > <ejb-jar>
              > <enterprise-beans>
              > <message-driven>
              > <display-name>MDBTest</display-name>
              > <ejb-name>MDBTest</ejb-name>
              > <ejb-class>com.csxwt.zodiac.service.domain.MDBTestBean</ejb-class>
              > <transaction-type>Container</transaction-type>
              > <message-selector>GATE_LANE</message-selector>
              > <message-driven-destination>
              > <destination-type>javax.jms.Queue</destination-type>
              > </message-driven-destination>
              > </message-driven>
              > </enterprise-beans>
              > <assembly-descriptor>
              > <container-transaction>
              > <method>
              > <ejb-name>MDBTest</ejb-name>
              > <method-name>*</method-name>
              > </method>
              > <trans-attribute>Required</trans-attribute>
              > </container-transaction>
              > </assembly-descriptor>
              > </ejb-jar>
              >
              > <weblogic-ejb-jar>
              > <weblogic-enterprise-bean>
              > <ejb-name>MDBTest</ejb-name>
              > <message-driven-descriptor>
              > <pool>
              > <max-beans-in-free-pool>200</max-beans-in-free-pool>
              > <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
              > </pool>
              > <destination-jndi-name>zodiac.jms.queue.HardWareOutMessageQueue</destination-jndi-name>
              > </message-driven-descriptor>
              > </weblogic-enterprise-bean>
              > </weblogic-ejb-jar>
              >
              > Am i missing something somewhere?????
              > any help in this is highly appreciated..
              >
              > thanks in advance.
              >
              > r
              > sasi
              

  • Help with if statement in cursor and for loop to get output

    I have the following cursor and and want to use if else statement to get the output. The cursor is working fine. What i need help with is how to use and if else statement to only get the folderrsn that have not been updated in the last 30 days. If you look at the talbe below my select statement is showing folderrs 291631 was updated only 4 days ago and folderrsn 322160 was also updated 4 days ago.
    I do not want these two to appear in my result set. So i need to use if else so that my result only shows all folderrsn that havenot been updated in the last 30 days.
    Here is my cursor:
    /*Cursor for Email procedure. It is working Shows userid and the string
    You need to update these folders*/
    DECLARE
    a_user varchar2(200) := null;
    v_assigneduser varchar2(20);
    v_folderrsn varchar2(200);
    v_emailaddress varchar2(60);
    v_subject varchar2(200);
    Cursor c IS
    SELECT assigneduser, vu.emailaddress, f.folderrsn, trunc(f.indate) AS "IN DATE",
    MAX (trunc(fpa.attemptdate)) AS "LAST UPDATE",
    trunc(sysdate) - MAX (trunc(fpa.attemptdate)) AS "DAYS PAST"
    --MAX (TRUNC (fpa.attemptdate)) - TRUNC (f.indate) AS "NUMBER OF DAYS"
    FROM folder f, folderprocess fp, validuser vu, folderprocessattempt fpa
    WHERE f.foldertype = 'HJ'
    AND f.statuscode NOT IN (20, 40)
    AND f.folderrsn = fp.folderrsn
    AND fp.processrsn = fpa.processrsn
    AND vu.userid = fp.assigneduser
    AND vu.statuscode = 1
    GROUP BY assigneduser, vu.emailaddress, f.folderrsn, f.indate
    ORDER BY fp.assigneduser;
    BEGIN
    FOR c1 IN c LOOP
    IF (c1.assigneduser = v_assigneduser) THEN
    dbms_output.put_line(' ' || c1.folderrsn);
    else
    dbms_output.put(c1.assigneduser ||': ' || 'Overdue Folders:You need to update these folders: Folderrsn: '||c1.folderrsn);
    END IF;
    a_user := c1.assigneduser;
    v_assigneduser := c1.assigneduser;
    v_folderrsn := c1.folderrsn;
    v_emailaddress := c1.emailaddress;
    v_subject := 'Subject: Project for';
    END LOOP;
    END;
    The reason I have included the folowing table is that I want you to see the output from the select statement. that way you can help me do the if statement in the above cursor so that the result will look like this:
    emailaddress
    Subject: 'Project for ' || V_email || 'not updated in the last 30 days'
    v_folderrsn
    v_folderrsn
    etc
    [email protected]......
    Subject: 'Project for: ' Jim...'not updated in the last 30 days'
    284087
    292709
    [email protected].....
    Subject: 'Project for: ' Kim...'not updated in the last 30 days'
    185083
    190121
    190132
    190133
    190159
    190237
    284109
    286647
    294631
    322922
    [email protected]....
    Subject: 'Project for: Joe...'not updated in the last 30 days'
    183332
    183336
    [email protected]......
    Subject: 'Project for: Sam...'not updated in the last 30 days'
    183876
    183877
    183879
    183880
    183881
    183882
    183883
    183884
    183886
    183887
    183888
    This table is to shwo you the select statement output. I want to eliminnate the two days that that are less than 30 days since the last update in the last column.
    Assigneduser....Email.........Folderrsn...........indate.............maxattemptdate...days past since last update
    JIM.........      jim@ aol.com.... 284087.............     9/28/2006.......10/5/2006...........690
    JIM.........      jim@ aol.com.... 292709.............     3/20/2007.......3/28/2007............516
    KIM.........      kim@ aol.com.... 185083.............     8/31/2004.......2/9/2006.............     928
    KIM...........kim@ aol.com.... 190121.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190132.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190133.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190159.............     2/13/2006.......2/14/2006............923
    KIM...........kim@ aol.com.... 190237.............     2/23/2006.......2/23/2006............914
    KIM...........kim@ aol.com.... 284109.............     9/28/2006.......9/28/2006............697
    KIM...........kim@ aol.com.... 286647.............     11/7/2006.......12/5/2006............629
    KIM...........kim@ aol.com.... 294631.............     4/2/2007.........3/4/2008.............174
    KIM...........kim@ aol.com.... 322922.............     7/29/2008.......7/29/2008............27
    JOE...........joe@ aol.com.... 183332.............     1/28/2004.......4/23/2004............1585
    JOE...........joe@ aol.com.... 183336.............     1/28/2004.......3/9/2004.............1630
    SAM...........sam@ aol.com....183876.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183877.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183879.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183880.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183881.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183882.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183883.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183884.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183886.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183887.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183888.............3/5/2004.........3/8/2004............     1631
    PAT...........pat@ aol.com.....291630.............2/23/2007.......7/8/2008............     48
    PAT...........pat@ aol.com.....313990.............2/27/2008.......7/28/2008............28
    NED...........ned@ aol.com.....190681.............4/4/2006........8/10/2006............746
    NED...........ned@ aol.com......95467.............6/14/2006.......11/6/2006............658
    NED...........ned@ aol.com......286688.............11/8/2006.......10/3/2007............327
    NED...........ned@ aol.com.....291631.............2/23/2007.......8/21/2008............4
    NED...........ned@ aol.com.....292111.............3/7/2007.........2/26/2008............181
    NED...........ned@ aol.com.....292410.............3/15/2007.......7/22/2008............34
    NED...........ned@ aol.com.....299410.............6/27/2007.......2/27/2008............180
    NED...........ned@ aol.com.....303790.............9/19/2007.......9/19/2007............341
    NED...........ned@ aol.com.....304268.............9/24/2007.......3/3/2008............     175
    NED...........ned@ aol.com.....308228.............12/6/2007.......12/6/2007............263
    NED...........ned@ aol.com.....316689.............3/19/2008.......3/19/2008............159
    NED...........ned@ aol.com.....316789.............3/20/2008.......3/20/2008............158
    NED...........ned@ aol.com.....317528.............3/25/2008.......3/25/2008............153
    NED...........ned@ aol.com.....321476.............6/4/2008.........6/17/2008............69
    NED...........ned@ aol.com.....322160.............7/3/2008.........8/21/2008............4
    MOE...........moe@ aol.com.....184169.............4/5/2004.......12/5/2006............629
    [email protected]/27/2004.......3/8/2004............1631
    How do I incorporate a if else statement in the above cursor so the two days less than 30 days since last update are not returned. I do not want to send email if the project have been updated within the last 30 days.
    Edited by: user4653174 on Aug 25, 2008 2:40 PM

    analytical functions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#81409
    CASE
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#36899
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/04_struc.htm#5997
    Incorporating either of these into your query should assist you in returning the desired results.

  • I need help with Sunbird Calendar, how can I transfer it from one computer to the other and to my iphone?

    I installed Sunbird in one computer and my calendar has all my infos, events, and task that i would like to see on another computer that i just downloaded Sunbird into. Also, is it possible I can access Sunbird on my iphone?
    Thank you in advance,

    Try the forum here - http://forums.mozillazine.org/viewforum.php?f=46 - for help with Sunbird, this forum is for Firefox support.

  • Hoping for some help with a very frustrating issue!   I have been syncing my iPhone 5s and Outlook 2007 calendar and contacts with iCloud on my PC running Vista. All was well until the events I entered on the phone were showing up in Outlook, but not

    Hoping for some help with a very frustrating issue!
    I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud  2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel.  I even uninstalled iCloud on the PC and downloaded it again (same version). 
    The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.”  After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
    Sound familiar?  Any ideas on how to solve this iCloud/Outlook issue?  Thanks much in advance!

    Hoping for some help with a very frustrating issue!
    I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud  2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel.  I even uninstalled iCloud on the PC and downloaded it again (same version). 
    The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.”  After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
    Sound familiar?  Any ideas on how to solve this iCloud/Outlook issue?  Thanks much in advance!

  • Help with HP Laser Printer 1200se

    HP Support Line,
    Really need your assistance.  I have tried both contacting HP by phone (told they no longer support our printer via phone help), the tech told me that I needed to contact HP by e-mail for assistance.   I then sent an e-mail for assistance and got that reply today, the reply is as follows  "Randall, unfortunately, HP does not offer support via e-mail for your product.  However many resources are available on the HP web site that may provide the answer to your inquiry.  Support is also available via telephone.  A list of technical support numbers can be round at the following URL........."  The phone numbers listed are the ones I called and the ones that told me I needed to contact the e-mail support for help.
    So here I am looking for your help with my issue.
    We just bought a new HP Pavillion Slimline Desk Top PC (as our 6 year old HP Pavillion PC died on us).  We have 2 HP printers, one (an all-in-one type printer, used maily for copying and printing color, when needed) is connected and it is working fine with the exception of the scanning option (not supported by Windows 7).  However we use our Laser Printer for all of our regular prining needs.  This is the HP LaserPrinter 1200se, which is about 6 years old but works really well.  For this printer we currently only have a parallel connection type cord and there is not a parallel port on the Slimline HP PC.  The printer also has the option to connedt a USB cable (we do not currently have this type of cable).
    We posed the following two questions:
    1.  Is the Laser Jet 1200se compatible with Windows 7?
    and if this is the case
    2.  Can we purchase either a) a USC connection cord (generic or do we need a printer specific cord)? or b) is there there a printer cable converter adapater to attach to our parallel cable to convert to a USB connection?
    We do not want to purchase the USB cable if Windows 7 will not accept the connection, or if doing this will harm the PC.
    We really would appreciate any assitance that you might give us.
    Thank you,
    Randy and Leslie Gibson

    Sorry, both cannot be enabled by design.  That said, devices on a network do not care how others are connected.  You can print from a wireless connection to a wired (Ethernet) printer and v/v.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Going to Australia and need help with Power converters

    Facts:
    US uses 110v on 60hz
    Australia 220v on 50hz
    Making sure I understood that correctly.  Devices I plan on bringing that will use power are PS3 Slim, MacBook Pro 2008 model, and WD 1TB External HDD.  My DS, and Cell are charging via USB to save trouble of other cables.
    Ideas I've had or thought of:
    1.  Get a power converter for a US Powerstrip, and then plug in my US items into the strip and then the strip into an AUS Converter into Australian outlet.  Not sure if this fixes the voltage/frequency change.
    2.  Get power converters for all my devices.  But, not sure if my devices needs ways of lowering the voltage/increasing frequency or something to help with the adjustment.
    3.  Buy a universal powerstrip, which is extremely costly and I wouldn't be able to have here in time (I leave Thursday).  Unless Best Buy carrys one.  

    godzillafan868 wrote:
    Facts:
    US uses 110v on 60hz
    Australia 220v on 50hz
    Making sure I understood that correctly.  Devices I plan on bringing that will use power are PS3 Slim, MacBook Pro 2008 model, and WD 1TB External HDD.  My DS, and Cell are charging via USB to save trouble of other cables.
    Ideas I've had or thought of:
    1.  Get a power converter for a US Powerstrip, and then plug in my US items into the strip and then the strip into an AUS Converter into Australian outlet.  Not sure if this fixes the voltage/frequency change.
    2.  Get power converters for all my devices.  But, not sure if my devices needs ways of lowering the voltage/increasing frequency or something to help with the adjustment.
    3.  Buy a universal powerstrip, which is extremely costly and I wouldn't be able to have here in time (I leave Thursday).  Unless Best Buy carrys one.  
    Check the specs on input voltage/frequency of your power supplies.
    Many laptop power supplies are "universal/global" and are specced something like 80-265 volts AC 50/60 Hz, but not all.  These will just need a connector adapter.
    Unsure about the PS3 Slim - if it isn't universal it could be difficult as you'll need a 110/220 transformer, one big enough (power-handling wise) for the PS3 will be very bulky.
    For the external WD HDD, if it doesn't have a universal supply, you're probably best off just finding a new wallwart for it that is capable of running on 220/50.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • Creation of context sensitive help with pure FM 12 usage doesn't work

    Hi,
    I hope somebody is able to help me with a good hint or tip.
    I am trying to create a context-sensitive Microsoft Help with FM12 only using the abilities of FM (no RoboHelp). For some reasons, my assigned ID's are not used in the generated chm file and therefore the help does not work context-sensitively.
    What did I do?
    - I created my FM files and assigned topic aliases to the headers. I did this two ways: a) using the "Special" menue and assigning a CSH marker and/or b) setting a new marker of type "Topic Alias" and typing the ID. I used only numeric IDs like "2000" or "4200",
    - I created a .h file (projectname.h) - based on the format of the file projectname_!Generated!.h (I read this in some instructions). So the .h file (text file) looks like this:
    #define 2000 2000 /* 4 Anwendungsoberfläche */
    #define 2022 2022 /* 4.1.1 Menü Datei */
    #define 2030 2030 /* 4.1.3 Menü Parametersatz */
    #define 2180 2180 /* 6.6.7 Objektdialog Q-Regler */
    #define 2354 2354 /* 6.9.2 Objektdialog Extran Parameter */
    #define 2560 2560 /* 6.9.5 Objektdialog Extran2D Parametersatz */
    - I published the Microsoft HTML Help. A projectname_!Generated!.h has been created. My IDs were not used in this file:
    #define 2000    1
    #define 2022    2
    #define 2030    3
    #define 2180    4
    #define 2354    5
    #define 2560    6
    - When I open the .chm file and look in the source code, the ID even is totally different. It is not the one, I assigned in FM, it is not the one which I assigned in the projectname.h file and it even is not the one, which was put in the projectname_!Generated!.h file. It is a generated name starting with CSH_1 ...n in a consecutive way numbered.
    Example:
    <p class="FM_Heading1"><a name="XREF_72066_13_Glossar"></a>Gloss<a name="CSH_1"></a>ar</p>
    What goes wrong? Why does FM not take my assigned IDs? I need to use these IDs since our programmers are using those already - I had to re-create the whole online help but the programs stay untouched.
    Please help!
    Many thanks
    Mohi

    Hi Jeff,
    thanks for your note!
    The text in my marker is just a number like "2000" or "4200". As said, I created manually a my.h file and used this marker there. E.g.
    #define 2000 2000.
    Whereby the first 2000 (in my opinion) is the marker text and the second 2000 is the context ID which the programmers are using for the context sensitive call of the help. My definitions in the my.h file were translated to #define 2000 1 (in the my_!Generated!.h file). The source code "translates" the context ID into CSH_8.
    I am still confused :-/
    Thanks
    Mohi

  • Need help with Boot Camp and Win 7

    I have iMac 27" (iMac11,1) 2.8 GHz, quad core, 8MB of L3, 8GB of Memory, Boot ROM Version IM111.0034.B02 and SMC Version 1.54f36 and can't get this machine to run Windows 7 using Boot Camp.  I have successfully loaded Win 7 but when it claims to be starting I only get a black screen after initial start up.
    I have checked and rechecked my software updates and have read and reread the instructions, however, I can't update my Boot Camp to 3.1 (my machine says i'm running 3.0.4) and I need 3.1 but can't load 3.1 because it is an exe file that has to be loaded into Windows after I load Windows but can't open Windows because I can't load Boot Camp 3.1.  That's my excuse anyway, so I'm missing something I just can't figure out what it is....this is where you come in!
    Thanks.
    Mike

    Mike,
    I'm not going to be much help with Boot Camp however I can direct you to the Boot Camp forum where there are more people that know how to troubleshoot it and Windoze 7. You can find it at:
    https://discussions.apple.com/community/windows_software/boot_camp
    Roger

Maybe you are looking for