Package life scope?

hi,
I am newbie to PL/SQL package. I have known how to write and call it. but I always compare it with Java/C++ class. I want to know what is different between them, because PL/SQL package doesn't have >new< keyword. When I use a function/procedure in package, it seems that I have only one instance of my PL/SQL package. How about the package life scope?
Any documents and examples for package life scope are welcome.
Thanks.
Wu JianHua.

You can think of a session and a connection as the same thing. In this case, there would be two connections, so two sessions. Each session would have their own package variables.
Note that it is probably a mistake to think of packages in terms of objects if you're coming from an object-oriented background. Oracle has an entire suite of object-oriented features if that is what you're interested in. Packages should be thought of more like libraries in other languages.
The PL/SQL User's Guide and Reference will have more information if you're interested http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Package, Import scope identifing.

    This is a bit out of my league, but my question is concerning identifying classes available in a package given an import statement -- determining this information would then be useful for eliminating unneeded multiple imports ( " * " ), determining method, and member visibility, etc.
    I would like to start by writing a simple command line tool that cleans up the import on a single file. Of course, determining the used methods and classes used and then isolating the import down from say:
    import java.util.*; // TO:
    import java.Vector; // OR SOMETHING ALONG THOSE LINES.
    Without writing a full blown compiler, I was sort of wonderring if anyone had any ideas on where I might start researching the mean of getting this done.
    L-
    Student-

    Why do you want to do this? A wildcard import statement does not mean that all those classes are loaded. Only the classes actually used by your program are. At least this is my understanding. Is there a performance penalty by using wildcards that I am not aware off?
    Anyway have you looked at the Package and ClassLoader classes? You may want to start by looking at ClassLoader.getSystemClassLoader() and ClassLoader.getPackage().

  • Life Sciences, what is actually offered?

    Hi there,
    When we browse around the SAP sites (SDN, Support portal, BPX, etc) aiming at having some straight message about what is Life Science, nothing is clearly stated.
    Could anyone state exactly what is included in this so-called industry package "Life Sciences"? new functionalities? which?
    What is then the difference between paying for the "life sciences" or not paying for it?
    Please, don't forward me to an SAP link because it's likely to be useless.
    THANKS! <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 18, 2008 5:52 PM

    Hi Christo, unfortunately no one shed any light on the matter, still the same questions and doubts. If you have any answer on the matter, please let me know.
    Thanks.

  • How to access an object in a bean

    I am looking for a way to access an object in a bean and make available to the page.
    for example if i have a Bean called User and it contains an attribute Called Company as an attribute in User. Now I have User.getCompany(). and I can do this
    <%User user = request.getUser();
    Company company = user.getCompany();
    request.setAttribute("comp", company); %>
    how do I do this with useBean ?

    I am looking for a way to access an object in a bean
    and make available to the page.
    for example if i have a Bean called User and it
    contains an attribute Called Company as an attribute
    in User. Now I have User.getCompany(). and I can do
    this
    <%User user = request.getUser();
    Company company = user.getCompany();
    request.setAttribute("comp", company); %>
    how do I do this with useBean ?You can access a JavaBean Object property of another JavaBean inside the JSP with the use of EL (Expression Language)
    So if you are using JSP 2.0 or higher try this:
    <jsp:useBean id="user" class="your.package.User" scope="request"/>
    ${user.company.id}I tested the above and it works.
    Note that you need to set the Company object in the User object before trying to access it inside the JSP.
    You can also set it in the JSP if you want, (before trying to access it), but its cleaner to do it in a Servlet.
    Both User and Company must follow JavaBeans notation.
    So in the above case the User object is something like this:
    package your.package;
    public class User{
       private Customer customer;
       public User(){}
       public Customer getCustomer(){
          return customer;
       public void setCustomer(Customer customer){
         this.customer = customer;
    }And your Customer JavaBean is something like this:
    package your.package;
    public class Customer{
       private int id;
       public Customer(){}
       public int getId(){
         return this.id;
       public void setId(int id){
         this.id = id;
    }

  • Immutable and mutable object

    Here I want to post some solutions to immutable and mutable objects. First I'll brifely discribe the case when only one type (immutable or mutable) is need accross the application. Then, I'll describe case when both types is using. And finally, the case when only some object can modify this object, while for others it is immutable one. That will be illusrated on the objects discribing current date as number milliseconds from Zero Epoch Era (January 1, 1970).
    Let's start from an exampe for Immutable Object.
    public final class ImmutableDate {
        private final long date;
        public ImmutableDate(long date){
             this.date= date;
        public long getDate(){
            return date;
    }The class is final, so it is imposible to extend it (if it is possible to extend it, it will be possible to add some mutable data-members to the class. Data-member is final to avoid changing (if it is Object it is just warning to programmer not to change it, compiler just can check that reference wasn't changed, but state of this data-member can be changed). There is no method that returns reference to the data-member outside the ImmutableDate. (if data-member was immutable object,it would be possible to return refference to it, if data-member was mutable object and it was possible to revieve reference to it, than it was possible to change the state of data-member through setter function).
    Now, lets consider that we need only MutableDate. The implementation is obvious:
    public  class MutableDate {
        private long date;
        public MutableDate (long date){
             this.date= date;
        public long getDate(){
            return date;
        public void setDate(long date){
          this.date=date;
    }This is regular class.
    The question is how what should I do in the case I need both[b ]Mutable and Immutable Object. It is possible to use the above way of implementation. But there are following problems wih this:
    * Code is not re-usable. For example, getDate() is implemented twice.
    * Implementation is closed to the interface.
    * There is no abstraction such a Date. Usable, when we doen't care whether object is mutable or immutable.
    It will be also nice to have a mechanism to recieve immutable copy from any object. It can be implemnted as getImmutableDate() function. This function is usable, when we have Date object (or MutableDate) at hand and want to store it in HashMap. So immutable copy is needed. It also usable as deffencive copy of MutableDate, if want one to transfer Date to simebody we don't want to change the state.
    Second and third points leads us to declare interfaces:
    public interface Date {
      public long getDate();
      public ImmutableDate getImmutableDate(); 
    public interface ImmutableDate extends Date  {
    public interface MutableDate extends Date {
      public void setDate(long date);
    public final class ImmutableDateImpl implements Date, ImmutableDate {
    public class MutableDateImpl  implements Date, MutableDate {
    }Lets talk more on the first point. In this short example it will look like it is not bug disadvantage. But think, that there are ten data members and setting other value isnot trivvial (for example, other private data members should be recalculated) and you'll realise that this is a problem. What solution OO proposed in such a cases? Right, inheritance. But there is one pitfalls here. Immutable object has to be final (see explanation above). So the only way to do this is to define some new class and inherit from him. It will be look like the following:
    abstract class AbstractDate implements Date  {
       protected long date;
       public AbstractDate(long date){
         this.date=date;
       public long getDate(){
         return date;
    public final class ImmutableDateImpl extends AbstractDate implements Date, ImmutableDate {
      public ImmutableDateImpl(long date){
        super(date);
      public final ImmutableDate getImmutableDate(){return this;}
    public class MutableDateImpl extends AbstractDate implements Date, MutableDate {
      public MutableDateImpl(long date){
        super(date);
      public void setDate(long date){
        this.date=date;
      public final ImmutableDate getImmutableDate(){
        return return new ImmutableDateImpl(date);
    }Note that AbstractDate is declare package-private. It is doing to avoid casting this type in the application. Note also that it is possible to cast immutable object to mutable (interface MutableDate doen't extends ImmutableDate, but Date). Note also that data memer is
    protected long date;That is not private, but protected and not final. It is a cost of getting re-usability. IMHO, It is not big price. Being protected is not a problem, IMHO. Final is more for programmer, rahter than to compiler (see explanation above). Only in the case of primitive data type compiler will inforce this. programmer can know, that in he shouldn't changed this value in AbstractDate, and ImmutableDate, and he can do it only in MutableDate.
    I want to write some words about getImmutableDate() function. This function is usable, when we have Date object (or MutableDate) at hand and want to store it in HashMap. So immutable copy is needed. It also usable as deffencive copy of MutableDate, if want one to transfer Date to somebody we don't want to change the state.
    Let consider the following scenarion. We are writting a game, say chess. There are two players, that plays, desk where they play, and environmemnt (arbiter) that enforces rules. One of the players is computer. From OO point of view the implementation has to the following. There is Desk that only Environment can modify it. ComputerPlayer has to be able only to view ("read") the Desk, but not to move figute ("write"). ComputerPlayer has to talk with Environment what he want to do, and Environmnet after confirmation should do it. Here desk is immutable object to everyone, but Environment.
    If we go back to our Date, the implementation of this scenario could be
    interface AlmostImmutableDate extends Date {
      public void setDate(long date);
    public class Class1 {
      public static ImmutableDate getImmutableDate(long date){return new AlmostImmutableDateImpl(date);}
      private static class AlmostImmutableDateImpl implements Date, ImmutableDate/*, AlmostImmutableDate*/ {
        private long date;
        public AlmostImmutableDate(long date){
          this.date=date;
        public long getDate(){
          return date;
        public void setDate(long date){
          this.date=date;
        public final ImmutableDate getImmutableDate(){
          return this;
    } Which such implementation only Class1 can modify AlmostImmutableDateImpl. Others even don't know about existance of this type (it is private static class).
    It is possible to extends somehow to the case, when not one object, but (a little) group of object can modify Date. See the code above with uncommented part. One way to this is to difine new interface, say AlmostImmutableDate, with package-private scope. AlmostImmutableDateImpl will implements this interface. So, all object that has the same package as AlmostImmutableDate will can to cast the object to this type and modify it.
    Note, that AlmostImmutableDate has to extend Date interface (or ImmutableDate), but not MutableDate! If it will extand MutableDate, than it wiil be possible to cast to MutableDate in any package.
    If there is no MutableDate object in the application, so AlmostImmutableDate is unique. If there is MutableDate object in the application and we want to construct such almost immutable object, so copy&paste is needed to declare AlmostImmutableDate interface.
    Summary.
    It is difficult to define really pair of immutable object and mutable object in Java. Implementation consuming time and not very clear. There are many points to remember about (for example, data-member is not final, or order of inheritance, immutable object has to be final, and so on).
    I want to ask. If these solutions are complete? That is, it is not possible to modify immutable object or almost immutable objects not in the package of AlmostImmutableInterface. Not using reflexion, of course.
    Is these solutions are not to complicated?
    What do you think about delcaration of the third class AbstractDate? Has it to implement date? Perhaps, it is possible to define Date as abstract class (as AbstractDate was)? What do you think about definning
    protected long date;in AbstractDate?
    What do you think about function getImmutableDate() defined in Date interface? Perhaps, it should be declared in other place (even other new interface) or shouldn't be delcare at all?

    It seems to me that you are over thinking the problem:
    Why not just:
    public interface Date {
        long getDate();
    public interface MutableDate extends Date {
        void setDate(long);
    public class ImmutableDate implements Date
        final long date;
        public ImmutableDate(long date){
             this.date= date;
        public ImmutableDate(Date date){
             this.date= date.getDate();
        public long getDate(){
            return date;
    public class ModifiableDate implements MutableDate
        final long date;
        public ModifiableDate(long date){
             this.date= date;
        public ModifiableDate(Date date){
             this.date = date.getDate();
        public long getDate(){
            return date;
        public void setDate(long date){
            this.date = date;
    }

  • Getting problem in import the repository metadata into to OWB ( Sun solris)

    HI ,
    Actually as discussed before in this forum I am trying to import all metadata of repository ( exported as mdl file from window environment) into unix(sun solaris environment). After completion like 100% its giving a error.
    I am trying this from my local m/c have client of owb ,which is conneted with owb of sun solaris environment .
    error report is shown here.
    Import started at Apr 1, 2009 4:36:58 PM
    Project "HDFC_ODS_DEV"
    Configuration "DEFAULT_CONFIGURATION"
    Location Specific Configuration "DEFAULT_DEPLOYMENT"
    Calendar Module "ODS_SCHEDULES"
    Calendar "WONDERS_SCHEDULE"
    Oracle "HDFC_ODS_SOURCE"
    Warning: MDL3002: Location <PUBLIC_PROJECT.ODS_SOURCE_LOC> not found for LOCATIONUSAGE <HDFC_ODS_DEV.HDFC_ODS_SOURCE.ODS_SOURCE_LOC>
    Map "M_STG_P2_M_CMP_CHNL_SRC_V_1"
    Map "M_STG_P2_M_CMP_COMM_MODE_V_1"
    Map "M_STG_P2_M_CMP_COM_MOD_PRC_V_1"
    Map "M_STG_P2_M_CMP_CUST_CHNL_V_1"
    Map "M_STG_P2_M_CMP_CUS_CNL_PRC_V_1"
    Map "M_STG_P2_M_CMP_FRM_V_1"
    Map "M_STG_P2_M_CMP_FUNCT_AREAS_V_1"
    Map "M_STG_P2_M_CMP_FUN_ARS_PRC_V_1"
    Map "M_STG_P2_M_CMP_ISSUES_V_1"
    Map "M_STG_P2_M_CMP_REP_TPS_PRC_V_1"
    Map "M_STG_P2_M_CMP_RESP_TYPES_V_1"
    Map "M_STG_P2_M_CMP_RET_SLS_REG_V_1"
    Map "M_STG_P2_M_CMP_SRC_PRC_V_1"
    Map "M_STG_P2_M_CMP_SRC_SEARCH_V_1"
    Map "M_STG_P2_M_CMP_SRC_V_1"
    Map "M_STG_P2_M_CMP_SUB_ISSUES_V_1"
    Map "M_STG_P2_M_COUNTRIES_V_1"
    Map "M_STG_P2_M_PAYMENT_MODE_V_1"
    Map "M_STG_P2_M_REIN_NMS_V_1"
    Map "M_STG_P2_M_REV_ELAPSED_RSN_V_1"
    Map "M_STG_P2_M_REV_EVAL_DCSNS_V_1"
    Map "M_STG_P2_M_REV_EVL_DNS_STP_V_1"
    Map "M_STG_P2_M_RLTNS_V_1"
    Map "M_STG_P2_REVIVALS_V_1"
    Map "M_STG_P2_REV_CED_OPN_V_1"
    Map "M_STG_P2_REV_DCMNTS_KEPT_V_1"
    Map "M_STG_P2_REV_DCMNTS_V_1"
    Map "M_STG_P2_REV_DSCN_HIST_V_1"
    Map "M_STG_P2_REV_EXCPTNS_V_1"
    Map "M_STG_P2_REV_KEPT_V_1"
    Map "M_STG_P2_REV_MLSTN_HIST_V_1"
    Map "M_STG_P2_REV_REQ_TYPES_V_1"
    Map "M_STG_P2_REV_SERV_V_1"
    Map "M_STG_P2_REV_STATUS_HIST_V_1"
    Map "M_STG_P2_REV_UW_V_1"
    Map "M_STG_PLCY_SERV_V_1"
    Map "M_STG_PLCY_STATUS_HIST_V_1"
    Map "M_STG_PROC_INDEX_V_1"
    Map "M_STG_PROPOSALS1_V_1"
    Map "M_STG_PROPOSALS_V_1"
    Map "M_STG_PRPSL_ALTS_V_1"
    Map "M_STG_PRPSL_ALT_CTGRYS_V_1"
    Map "M_STG_PRPSL_CLIENTS_KEPT_V_1"
    Map "M_STG_PRPSL_KEPT_V_1"
    Map "M_STG_PRPSL_STATUS_HIST_V_1"
    Map "M_STG_SALFLDGHSL_UPDATE_V_1"
    Map "M_STG_SALFLDGHSL_V_1"
    Map "M_STG_SSRFACC_V_1"
    Map "M_STG_SSRFADD_V_1"
    Map "M_STG_SSRFANV_V_1"
    Map "M_STG_SSRFBKA_V_1"
    Map "M_STG_SSRFCNV_V_1"
    Map "M_STG_SSRFCVD_V_1"
    Map "M_STG_SSRFMSC_V_1"
    Map "M_STG_UW_COMMENTS_V_1"
    Data Profile "DP1"
    Data Rule Folder "DERIVED_DATA_RULES"
    Process Flow Module "HDFC_ODS_PROCESS"
    Warning: MDL3002: Location <PUBLIC_PROJECT.HDFC_ODS_PROCESS_LOC> not found for LOCATIONUSAGE <HDFC_ODS_DEV.HDFC_ODS_PROCESS.HDFC_ODS_PROCESS_LOC>
    Warning: MDL3002: Location <PUBLIC_PROJECT.HDFC_ODS_PROCESS_LOC> not found for LOCATIONUSAGE <HDFC_ODS_DEV.HDFC_ODS_PROCESS.HDFC_ODS_PROCESS_LOC_M>
    Process Flow Package "LASIA"
    Process Flow "CLAIM_ACTYMEMO"
    Process Flow "POLICY_AMOUNT_DD_M1_TRAC"
    Process Flow "P_LIFE_ASIA_TEMP"
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P57_AGNTCONTBENECOMMDTL> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P57_AGNTCONTBENECOMMDTL>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P62_COVERAGE> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P62_COVERAGE>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P52_ACTIVITYRELATRIONSHIP> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P52_ACTIVITYRELATRIONSHIP>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P38_EXTERNALUNIT> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P38_EXTERNALUNIT>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P65_LIFE_DETAILS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P65_LIFE_DETAILS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P58_AMTDTLRTRN> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P58_AMTDTLRTRN>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P40_INDIVIDUAL> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P40_INDIVIDUAL>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P61_AGENT_DETAILS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P61_AGENT_DETAILS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P43_ENTENTCLASSASSOC> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P43_ENTENTCLASSASSOC>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P39_ORGANIZATHIST> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P39_ORGANIZATHIST>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P54_ENTITYADDHIST> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P54_ENTITYADDHIST>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P47_ACTVITYMISS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P47_ACTVITYMISS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P49_RECEPTBALDD> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P49_RECEPTBALDD>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P41_HELTHPROREQFEE> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P41_HELTHPROREQFEE>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P26_CONTRACTMISS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P26_CONTRACTMISS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P55_ADDCHANEL> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P55_ADDCHANEL>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P42_ENTITYCERTHIST> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P42_ENTITYCERTHIST>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P66_OTHERS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P66_OTHERS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P46_AGNTDMOGRPHIC> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P46_AGNTDMOGRPHIC>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P44_ENTITYBANKDETLS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P44_ENTITYBANKDETLS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P59_ENT_ENT_REL_HIST> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P59_ENT_ENT_REL_HIST>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P29_POLICYAMOUNTDD> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P29_POLICYAMOUNTDD>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P58_AMTDTLOT> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P58_AMTDTLOT>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P37_EXTERNALIDENTHIST> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P37_EXTERNALIDENTHIST>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P36_ENTITYMISS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P36_ENTITYMISS>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P56_BENEFIT> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P56_BENEFIT>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P60_CLIENT> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P60_CLIENT>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P58_AMTDTLLE> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P58_AMTDTLLE>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P45_ENTYBALDD> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P45_ENTYBALDD>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P48_ACTIVITYENTITY> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P48_ACTIVITYENTITY>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P51_CONTRACTACTIVITY> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P51_CONTRACTACTIVITY>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P58_AMTDTLLA> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P58_AMTDTLLA>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P50_FINANCIALACTIVITY> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P50_FINANCIALACTIVITY>
    Warning: MDL3002: CopyOf <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LIFE.P53_ADDCHNLMISS> not found for SUBPROCESS <HDFC_ODS_DEV.HDFC_ODS_PROCESS.LASIA.P_LIFE_ASIA_TEMP.P53_ADDCHNLMISS>
    Process Flow Package "LIFE"
    Process Flow "P10_CLAIM"
    Process Flow "P11_PROPOSAL"
    Process Flow "P12_TELPHADDRESS"
    Process Flow "P13_ELECTADDRESS"
    Process Flow "P14_DEMOGRAPHIC"
    Process Flow "P15_CHILD"
    Process Flow "P16_BENEFIT"
    Process Flow "P17_CONTRACTENTITY"
    Process Flow "P18_PROPOSALENTITY"
    Process Flow "P19_CONTINSURENTITY"
    Process Flow "P1_DESC"
    Process Flow "P20_PROPINSUREDENTITY"
    Process Flow "P21_CONTREINENTITY"
    Process Flow "P22_PROPCONTBENE"
    Process Flow "P23_ENTITYCLAIM"
    Process Flow "P24_CLAIMCOVERAGE"
    Process Flow "P25_CLAIMMISS"
    Process Flow "P26_CONTRACTMISS"
    Process Flow "P27_CONTRACTSTATHIST"
    Process Flow "P28_CONTRACTCURRENCY"
    Process Flow "P29_POLICYAMOUNTDD"
    Process Flow "P2_DESC"
    Process Flow "P30_INSURACECONTRACT"
    Process Flow "P31_INSURANCECONTHIST"
    Process Flow "P32_PRPOSALMISS"
    Process Flow "P33_PROPOSALSTSTHIST"
    Process Flow "P34_PROPOSALAMTDD"
    Error occurred importing from file "C:\Documents and Settings\sreelals\Desktop\186 HDFC ODS DATABASE DOC\owb_metadat-186\HDFC_ODS_DEV-20090115_1634.mdl".
    oracle.wh.util.Assert: Repository Connection Error: The connection to the repository was lost, because of the following database error: Closed Connection Exit OWB without committing.
         at oracle.wh.util.Assert.owbAssert(Assert.java:51)
         at oracle.wh.ui.common.UIExceptionHandler.handle(UIExceptionHandler.java:186)
         at oracle.wh.ui.common.UIExceptionHandler.handle(UIExceptionHandler.java:156)
         at oracle.wh.ui.common.UIExceptionHandler.handle(UIExceptionHandler.java:152)
         at oracle.wh.util.SQLExceptionHandler.handle(SQLExceptionHandler.java:65)
         at oracle.wh.repos.pdl.foundation.CacheMediator.abort(CacheMediator.java:2179)
         at oracle.wh.repos.pdl.transaction.TransactionManager.abortGlobalTransaction(TransactionManager.java:328)
         at oracle.wh.repos.pdl.transaction.TransactionManager.abort(TransactionManager.java:471)
         at oracle.wh.repos.pdl.metadataloader.Import.MDLImport.process(MDLImport.java:1916)
         at oracle.wh.repos.pdl.metadataloader.Import.MDLRunImport.internalRunImport(MDLRunImport.java:431)
         at oracle.wh.repos.pdl.metadataloader.Import.MDLRunImport.runImport(MDLRunImport.java:503)
         at oracle.wh.ui.metadataloader.Import.MDLUpgradeImportTransaction.internalRunImport(MDLUpgradeImportTransaction.java:218)
         at oracle.wh.ui.metadataloader.Import.MDLUpgradeImportTransaction.run(MDLUpgradeImportTransaction.java:319)
    -- Can any one help me out on this.
    why this error is coming and how to resolve it ?
    Dba also not able to understand.
    @waiting for best and helpful reply from all of you owb gurus...
    Regards
    Umesh

    Boss ,
    I tried 2-3 times still getting same error.
    what should check now and do now ?
    help me out .
    Please reply asap.
    --Umesh                                                                                                                                                                                                                                                                                       

  • Can somebody help me with drop down box in STRUTS?

    Hi GURUs:
    I am doing a drop down box with Struts, and I have seen previous post on the forum regarding how to do that.
    Basically I have 2 classes
    InquiryAction and InquiryResult.jsp
    here is the code snippet from InquriyAction
    public class InquiryAction
        extends Action {
      public ActionForward execute(ActionMapping mapping,
                                   ActionForm actionForm,
                                   HttpServletRequest request,
                                   HttpServletResponse response) {
        InquiryForm form = (InquiryForm) actionForm;
        if ( request.getParameter("submitting") == null ) {
          return mapping.findForward("inquiry");
        /** @todo get parameters and do a search **/
        /** @todo put returned serviceResult or whatever into session/request **/
        ArrayList inquiryResults = new ArrayList();
        inquiryResults.add(new InquiryResultDisplayBean("005001", "00656992",
            "04/01/02", "104.15", "AD", "Name1", "Name2", "5"));
        inquiryResults.add(new InquiryResultDisplayBean("005001", "00729912",
            "04/02/22", "55.20", "GB", "Name2", "Name2", "7"));
        request.setAttribute("inquiryResults", inquiryResults);
        request.setAttribute("hasMore", new Boolean(true));
        return mapping.findForward("results");
    }and here is where I do the population of the drop down box in my JSP code
    <td class ='resultd'>
      <html:select property="PRKey"><logic:iterate id='transaction' collection='<%= request.getAttribute("inquiryResults") %>'>   
    <html : option value="<bean:write name='transaction' property='PRKey'/>" >           
         <bean:write name='transaction' property='PRKey'/>     
    </html:option>   
    </logic:iterate>
    </html:select>
    </td>                                 However when i test the JSP page on my local app server, i got the following error:
    javax.servlet.jsp.JspException: Cannot find bean under name org.apache.struts.taglib.html.BEAN
    at org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:301)
    at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:244)
    at jsp_servlet.__inquiryresults._jspService(__inquiryresults.java:544)
    I did bind the "inquiryResults" with an arrayList, can somebody tell me what is wrong? thanks...

    First: You can't nest tag library tags within tag library tags, unfortunately. So this:
    <html:option value="<bean:write name='transaction' property='PRKey'/>" > ...for example, is a no-go. You'd have to write it like this:
    <html:option value="<%= transaction.getPRKey() %>" > ...Second: The easiest way to do this is if the value and label properties of the InquiryResultDisplayBean objects are proper Java bean fields, meaning PRKey field has getPRKey() method. In that case, you can do this:
    <jsp:useBean id="inquiryResults" class="full.package.InquiryResultDisplayBean" scope="request" />
    <html:select property="PRKey">
    <html:options collection="inquiryResults" property="PRKey" labelProperty="PRKey"/>
    </html:select>

  • %@ page import="..." % does not seem to be working correctly

    Hi,
              I am running Weblogic 6.1 sp1 and I am having a problem with import page
              directive. <%@ page import="my.package.*" %> does not appear to be working
              correctly when I try to reference classes in imported packages (my.package,
              etc.) from the useBean tag.
              The following code works with Resin, but not Weblogic:
              <%@ page import="my.package.*" %>
              <jsp:useBean id="errorBean" class="ErrorBean" scope="request"/>
              If, I take out the page directive, and change the useBean tag to:
              <jsp:useBean id="errorBean" class="my.package.ErrorBean"
              scope="request"/>
              then the page compiles and runs just fine.
              Michael
              

    Here's a snippet from Sun's j2ee tutorial
              (http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans4.html):
              <jsp:useBean id="beanName"
              class="fully_qualified_classname" scope="scope"/>
              But I agree with you, the excerpt you posted seems to include the
              useBean tag, which is misleading.
              Nils
              Michael Hill wrote:
              >
              > I don't think this is the way it is "supposed" to be. Here is an excerpt
              > from the JSP Syntax reference on http://developer.java.sun.com
              > on the page directive:
              >
              > import= "{ package.class | package.* }, ..."
              > A comma-separated list of one or more packages that the JSP file should
              > import. The packages (and their classes) are available to scriptlets,
              > expressions, declarations, and tags within the JSP file. You must place the
              > import attribute before the tag that calls the imported class. If you want
              > to import more than one package, you can specify a comma-separated list
              > after import or you can use import more than once in a JSP file.
              >
              > ---
              >
              > It says the packages are available to tags within the JSP file as long as
              > you place the import before the tag that calls the imported class. In my
              > case, I am placing the import before the <jsp:useBean> tag.
              >
              > Michael
              >
              > "Nils Winkler" <[email protected]> wrote in message
              > news:[email protected]...
              > > I'm pretty sure that you have to specify the fully qualified class name
              > > in the useBean tag. import won't help you here.
              > >
              > > Nils
              > >
              > > Michael Hill wrote:
              > > >
              > > > Hi,
              > > >
              > > > I am running Weblogic 6.1 sp1 and I am having a problem with import page
              > > > directive. <%@ page import="my.package.*" %> does not appear to be
              > working
              > > > correctly when I try to reference classes in imported packages
              > (my.package,
              > > > etc.) from the useBean tag.
              > > >
              > > > The following code works with Resin, but not Weblogic:
              > > >
              > > > <%@ page import="my.package.*" %>
              > > > <jsp:useBean id="errorBean" class="ErrorBean" scope="request"/>
              > > >
              > > > If, I take out the page directive, and change the useBean tag to:
              > > >
              > > > <jsp:useBean id="errorBean" class="my.package.ErrorBean"
              > > > scope="request"/>
              > > >
              > > > then the page compiles and runs just fine.
              > > >
              > > > Michael
              > >
              > > --
              > > ============================
              > > [email protected]
              ============================
              [email protected]
              

  • WSDL woes on Apache Tomcat

    Hello,
    Recently, I transitioned from Standalone Tomcat (5.5.2) to Apache Tomcat (5.5.7) using mod_jk. I had to reshuffle a lot of files during the process to get things working.
    Now, everything works except our WSDL API. Upon calling WSDL through a browser (http://www.[domain].com/axis/services/[item]?wsdl) it gives a 404 error.
    I'm on Fedora Core 2 and using Axis (ws.apache.org/axis) for WSDL Webservice.
    Config files - httpd.conf, server.xml and workers.properties, can be found at the following address:
    http://207.58.178.82/~adplore/junk/
    *sitename has been replaced with "domain" (withoute quotes).
    Any help greatly appreciated. Thanks heaps.

    I've found a workaround for the problem. It's easy to extend the help broker and add a method which cuts out the http://host:port/ part from the URL and returns only the path on the server:
    public class MyHelpBroker extends ServletHelpBroker {
         public String getCurrentPath() {
              return model.getCurrentURL().getPath();
    }and then in help.jsp:
    <jsp:useBean class="my.package.MyHelpBroker" scope="session" id="helpBroker" />
    <jsp:getProperty name="helpBroker" property="currentPath" />where currentPath is used instead of currentURL.
    Hope this helps.
    Ilya

  • JSP:useBean in Tomcat with external libraries

    Hi!
    I would like to use netbeans 4.1 for developing jsp-pages, but are facing a problem when trying to use the built-in jsp compiler.
    in my code I use something like:
    <jsp:useBean id="id" class="package.Classname" scope="application" />while package is an external package initially created from JAXB. To include it into netbeans, I have put the directory containing all the classes into the build libraries and also into the test libraries. In the 'Projects'-Explorer it shows all the classes contained.
    When I try to run the jsp-File, I get an error like this:
    Compiling 1 source file to C:\Develop\ApplicationDescriptionGenerator\build\generated\classes
    C:\Develop\ApplicationDescriptionGenerator\build\generated\src\org\apache\jsp\general_jsp.java:48: cannot find symbol
    symbol: class Classname
    location packageI do not understand this behaviour, especially, as the 'web' folder created by netbeans includes all necessary classes, and when I copy it to my tomcat installation, it works fine.
    Does anybody know, what I have to change, so that I can test it from inside netbeans?
    Thanks a lot!

    Here is the java program or bean class that I'm using, UserData.java compiled into UserData.class:
    public class UserData {
    String username;
    String email;
    int age;
    public void setUsername( String value )
    username = value;
    public void setEmail( String value )
    email = value;
    public void setAge( int value )
    age = value;
    public String getUsername() { return username; }
    public String getEmail() { return email; }
    public int getAge() { return age; }
    To put the data into the session, I used the following form:
    <HTML>
    <BODY>
    <FORM METHOD=POST ACTION="SaveName.jsp">
    What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
    What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
    What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
    <P><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    and SaveName.jsp is this:
    <jsp:useBean id="user" class="UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <HTML>
    <BODY>
    Continue
    </BODY>
    </HTML>

  • Including actionscript in a flex application

    If I include a an external actionscript file in a flex mxml
    file, I get different behaviours at compile time depending on the
    method used. Using an mx script tag with a xource attribute or an
    include statement, then compiling the file gives errors like:
    Error: Packages cannot be nested.
    If use import these errors go away and the file compiles but
    then I have problems when trying to instantiate the class.
    import lib.journal;
    public var testing:journal = new journal();
    testing.init();
    which gives:
    Error: Access of undefined property testing.
    Can anyone explain what is going on here? What effect does
    including the file as opposed to importing it have on packages and
    scope?
    thanks,

    thanks. i think that makes sense. I'm now getting another
    error though:
    journal/trunk/lib/MindJournal.as(42): col: 41 Error: Type was
    not found or was not a compile-time constant: SQLEvent.
    private function selectResult(event:SQLEvent):void {
    ^
    journal/trunk/lib/MindJournal.as(65): col: 40 Error: Type was
    not found or was not a compile-time constant: SQLErrorEvent.
    private function selectError(event:SQLErrorEvent):void {
    I'm trying to adapt what is here:
    http://www.adobe.com/devnet/air/flex/quickstart/simple_sql_database.html
    to use an external actionscript class which now looks like:
    [code]
    package lib {
    import flash.data.SQLResult;
    import flash.data.SQLConnection;
    import flash.filesystem.File;
    import flash.data.SQLStatement;
    import flash.data.SQLConnection;
    public class MindJournal {
    private var conn:SQLConnection;
    private var createStmt:SQLStatement;
    private var insertStmt:SQLStatement;
    private var insertStmt2:SQLStatement;
    private var selectStmt:SQLStatement;
    public function init() {
    conn = new SQLConnection();
    conn.addEventListener(SQLEvent.OPEN, openSuccess);
    conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
    var dbFile:File =
    File.applicationStorageDirectory.resolvePath("/db/journal.sqlite");
    conn.openAsync(dbFile);
    //getData();
    private function getData():void {
    status = "Loading data";
    selectStmt = new SQLStatement();
    selectStmt.sqlConnection = conn;
    var sql:String = "SELECT id, column_1, column_2 FROM
    entries";
    selectStmt.text = sql;
    selectStmt.addEventListener(SQLEvent.RESULT, selectResult);
    selectStmt.addEventListener(SQLErrorEvent.ERROR,
    selectError);
    selectStmt.execute();
    private function selectResult(event:SQLEvent):void {
    status = "Data loaded";
    selectStmt.removeEventListener(SQLEvent.RESULT,
    selectResult);
    selectStmt.removeEventListener(SQLErrorEvent.ERROR,
    selectError);
    var result:SQLResult = selectStmt.getResult();
    var numRows:int = result.data.length;
    for (var i:int = 0; i < numRows; i++)
    var output:String = "";
    for (var prop:String in result.data
    output += prop + ": " + result.data[prop] + "; ";
    trace("row[" + i.toString() + "]\t", output);
    resultsGrid.dataProvider = result.data;
    private function selectError(event:SQLErrorEvent):void {
    status = "Error loading data";
    selectStmt.removeEventListener(SQLEvent.RESULT,
    selectResult);
    selectStmt.removeEventListener(SQLErrorEvent.ERROR,
    selectError);
    trace("SELECT error:", event.error);
    trace("event.error.message:", event.error.message);
    trace("event.error.details:", event.error.details);
    } //end of class
    } //end of package
    [/code]

  • JSP/Servlets & XML - suggestion needed

    Hi everyone,
    I don't have any coding issues, I'm really just looking for some help on deciding how to go with a project I want to make. First off, I wrote a Java library that builds messages in a special format. I wanted to come up with a pretty frontend for it, so I decided I'd try my hand at a webapp since I've been interested in them for a while. So far my web app consists of jsps, servlets and my library.
    At this point I'd like to add the ability for the webapp to store created messages in an XML file (read / write). The XML library I want to use is JAXB. I have it setup to read/write my XML file fine in a test servlet, however I'd like to implement this in a kind of "best practice" approach. So I'm looking for suggestions on how I should do this.
    A few of my ideas:
    1) Use a jsp page to call a "MessagesBean" which retrieves my data from my xml file. I could then format this nicely in the jsp page. The problem with this however is that I can't find any way to open a file relative to the webapp from within a Bean. ie. when I try to open "messages.xml", I can see from tomcat errors that it attempts to open it in tomcats bin folder (or if i run from within eclipse, eclipses bin folder). I know I could get around this by using an absolute path but I want this to be portable. Any suggestions?
    2) To solve the above problem I found "getServletContext().getRealPath("")" in the Servlet API. Using this method I'm able to open my XML file relative to my webapp. The only issue I have here is that I'm now using a servlet to display the page, making it harder for me to format the output.
    I'm very new to JSP/Servlets/etc so I really don't know how I should be doing this. I'm just trying to make sure I don't start out on the wrong foot. Can someone please give some suggestions on what I could do?
    Cheers.

    I suggested not putting business logic in the servlet, but instead instansiating a business logic object in the servlet and calling one of its functions to do the work.
    There is nothing wrong with putting the business logic in the servlet on first try. Just later on, you might want to refactor the code to more conform to the above.
    In your code, you mentioned that the MessagesBean in the JSP page doesnt seem to call the constructor. The <useBean> tag first looks to
    see if the object is in request scope. If it is, it uses it (doesnt call constructor). If its not, it creates its own (calls constructor). You should always
    have it in request scope ready for useBean to use.
    I think this line:
    <jsp:useBean id="messages" class="my.package.MessagesBean" />
    should be changed to something like:
    <jsp:useBean id="messages" class="my.package.MessagesBean" scope="request" />
    The MessagesBean should only have get/set methods to get data out of its object (its a very simple object that holds data). None of its functions
    should perform business logic such as hitting the database.
    Therefore these items in your JSP page should be in the servlet or business logic:
    messages.setPath( getServletContext().getRealPath("") ); // Pass in relative PATH
    messages.processXML(); // Process XML file
    While this should be in your JSP:
    java.util.List<TEXT> TextFiles = messages.getTEXTFiles(); // Return a List of TEXT objects
    Question: The JSP calls my Bean "MessagesBean". It then passes in the current relative path. This seems fairly hackish to me, is there a better way to give the relative path to my bean?
    Answer: Hard code the relative path to the JSP page in the servlet or business logic. There is no need for the JSP page to pass its path back to the servlet or business logic. Your servlet
    'knows' the path to all the JSP pages it needs to dispatch to.
    The best way to learn MVC is to continually refactor your code until it looks more and more like MVC (separation of concerns).

  • How to create stored procedure for insert update and delete operations with input output paramters?

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)          
     - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.

    I  have the follwing table is called master table contain the follwing fields,
    So here i need to create  three Stored procedures 
    1.Insert operations(1 o/p paramter,and  14 input paramters)              - uspInsert
    2.Update operations(1 o/p paramter,and  14 input paramters)          - uspUpdate
    3.Delete Operations(1 o/p paramter,and  14 input paramters)            - uspdelte
    The following is the table ,so using this to make the three sp's ,Here we will use Exception machanism also.
    Location 
    Client Name
    Owner 
    ConfigItemID
    ConfigItemName
    DeploymentID
    IncidentID
    Package Name
    Scope 
    Stage
    Type 
    Start Date
    End Date
    Accountable 
    Comments
    So can u pls help me out for this ,bcz i knew to stored procedure's creation.
    Why you have to pass 14 parameters for DELETE and UPDATE? Do you have any Primary Key?  If you do NOT have primary key in your table then in case you have duplicate information, SQL will update both or delete them together. You need to provide DDL of
    you table. What are the data types of fields?
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • Invoking the scheduler's doScheduledTask method from the jsp

    Hi Folks,
    Could you please throw some ideas on my issue,
    I would like to invoke the scheduler's doScheduledTask method from the jsp.
    approach is like...
    I have JSP and a form. Form has a one text field and i will give some value and clicks on the submit button, it should invoke the scheduler method.
    or
    if you know any other approach to invoke the scheduler's doScheduledTask method from the jsp is invitable.
    Thanks much in advance

    Hi,
    1. Create the form in the jsp and a form handler to process this form, say InvokeSchedulerFormHandler.
    2. Create a variable to refer to the scheduler.
    MyScheduler myScheduler;
    // create getter and setter for this.
    3.. Create a handle method, handleInvokeScheduler(). Do any validations if required.
    4. After the validations, call getMyScheduler().doScheduledTask();
    5. In the jsp, map the submit button to this handle method.
    <dsp:input type="submit" bean="InvokeSchedulerFormHandler.invokeScheduler" value="Submit"/>
    6. Create the .properties file to the form handler and to your scheduler.
    MyScheduler.properties
    $class=com.package.MyScheduler
    $scope=global
    InvokeSchedulerFormHandler.properties
    $class=com.package.InvokeSchedulerFormHandler
    $scope=request
    myScheduler=/com/package/MyScheduler
    (Am wondering about this requirement :) . If you can specify the reason, it will be helpful).
    Hope this helps.
    Keep posting the questions / updates.
    Thanks,
    Gopinath Ramasamy

  • How to connect to a Java WSDL in Flash Builder 4 ?

    Hi everybody!
    I have a Java project made with Hibernate + JPA.
    There is the code of the Java Class:
    package com.scop.acesso;
    import java.io.Serializable;
    import java.util.List;
    import com.scop.dao.DisciplinaDAO;
    import com.scop.dao.ProfessorDAO;
    import com.scop.dao.ProvaDAO;
    import com.scop.dao.TurmaDAO;
    import com.scop.entity.Disciplina;
    import com.scop.entity.Professor;
    import com.scop.entity.Prova;
    import com.scop.entity.Questoes;
    import com.scop.entity.Turma;
    public class CadastrodeProva implements Serializable{
         private static final long serialVersionUID = 1L;
         public Turma[] ListTurma()
              try{
                   TurmaDAO turmadao = new TurmaDAO();
                   List<Turma> list = turmadao.listarTurma();
                   Turma[] turmas = new Turma[list.size()];
                   for(int i = 0; i< list.size(); i++)
                        turmas[i] = list.get(i);
                   return turmas;
              }catch(Exception e){
                   e.printStackTrace();
              return null;
         public Disciplina[] ListDisciplina()
              try{
                   DisciplinaDAO disciplinadao = new DisciplinaDAO();
                   List<Disciplina> list = disciplinadao.listarDisciplina();
                   Disciplina[] disciplinas = new Disciplina[list.size()];
                   for(int i = 0; i< list.size(); i++)
                        disciplinas[i] = list.get(i);
                   return disciplinas;
              }catch(Exception e){
                   System.out.println("Erro: " + e.getMessage());
              return null;
         public Professor[] ListProfessor()
              try{
                   ProfessorDAO disciplinadao = new ProfessorDAO();
                   List<Professor> list = disciplinadao.listarProfessor();
                   Professor[] professores = new Professor[list.size()];
                   for(int i = 0; i< list.size(); i++)
                        professores[i] = list.get(i);
                   return professores;
              }catch(Exception e){
                   e.printStackTrace();
              return null;
         public void cadastraProva(Turma codigoturma, Disciplina codigodisciplina, Professor codigoprofessor, String dataprova, int qtdquestoes, List<Questoes> questoesList, double valorprova)
              Prova prova = new Prova();
              ProvaDAO provadao = new ProvaDAO();
              prova.setCodigoturma(codigoturma);
              prova.setCodigodisciplina(codigodisciplina);
              prova.setCodigoprofessor(codigoprofessor);
              prova.setDataprova(dataprova);
              prova.setQtdquestoes(qtdquestoes);
              prova.setQuestoesList(questoesList);
              prova.setValorprova(valorprova);
              provadao.inserirProva(prova);
    When i generate WSDL automatically in Eclipse i receive this message:
    "IWAB0489E Error when deploying Web Service to Axis runtime"
    My questions are...
    The Java Class is wrong?
    I have to follow any model in Java for FB4 recognize the WSDL?
    I made some tests with simples Java Classes like this:
    package com.calculo.vo;
    public class CalculoVO {
         public int soma(int a, int b) {
               return a + b;
    and this
    package classes;
    public class NoticiaEsporteVO {
         public String noticia;
         public String data;
         public String getNoticia() {
              return noticia;
         public void setNoticia(String noticia) {
              this.noticia = noticia;
         public String getData() {
              return data;
         public void setData(String data) {
              this.data = data;
    With that classes i generate WSDL normally and FB4 revognize them.
    Someone can help me? PLEASE!!!
    obs: IM BAGGIN xD

    it may be the issue that i had
    add a reference nulling out w3.org
    otherwise it would be a real problem with your service
    can you provide a url link to your wsdl for a sanity check ?

Maybe you are looking for

  • Problem with motherboard and cpu cooler

    First of all , hello. Let me present my current pc. Mainboard - MSI 880GM-E41 CPu - Amd phenom x2 560 black - unlocked to quad Ram - 4 gb kingmax DDR 3 Video - Gainward GTS 450 512 DDR 5 Hdd - Western Digital 640 GB Power suply - Sirtech 400 W Now th

  • Tv wont recognize mini DVI to VGA cable

    Okay so I have a mid 2012 Macbook Pro with the Intel 4000 graphics card. I also had a Mini DVI to VGA cable from my previous macbook. I plugged it into my new macbook hooked a VGA cable to my Panisonic LED, but my TV wont recongize my computer. It wo

  • Message Driven bean not able to listen to IBM MQ

    Hello,           I am trying to implement a Mesage Driven Bean on Weblogic 7.0.This MDB           would listen on a particular queue of IBM MQ.           I have written a Weblogic startUp class which registers the factory           into Weblogic JNDI

  • NI9401 output signal

    Hi, I am currently uisng the CDAQ 9178 and the NI 9401 modules to generate the output signal. Currently I am testing out using the  Generate Finite Digital Pulse Train Retriggerable.vi from the NI example finder. The main problem i am facing is the I

  • Compressor in a Funk

    Hello, I'm exporting quick time self contained movie 24p from Canon HV20. Then I add file to compressor for pulldown removal and hit submit - nothing happens. No progress on the little grey progress bar what so ever. No matter how long I wait, nothin