Resource Injection Question -to do with where main is...

Hi, I've just been doing some jms stuff, and I've found that if I have a class which is just for main, and I send messages in a different class called from main, my resource injection doesn't occur.
However if the main method is in the class which I send the messages from, resource injection does occur.
Why is this?? is it something to do with the type of class or something???

I read that thread and in the SAP library which is quoted, it says, "you can split up the whole dataset for an InfoCube into several, smaller, physically independent and redundancy-free units."
So what is meant by physically independent in this definition? The way I've described it seems compatible, since data of similar partitions are physically seperate on the disk, though again I'm not sure if its true.
More inputs would be appreciated... points have and will continue to be awarded.
Edited by: Benson Wong on Mar 4, 2010 10:38 PM

Similar Messages

  • Resource Injection in Web Tier (JSP and Servlets)

    Hi All
    I was wondering whether someone will be kind enough enough to clear this up for me as it causing me some confusion. I am using OC4J 10.1.3.4 and Java 5. I have been reading the documentation on OC4J and at one point it says that OC4J does not support resource injection(i.e. annotations) in the web tier and you'll have to use JNDI to access resources such as EJBs from the Web tier(see Sub heading Servlet or JSP Client on http://download.oracle.com/docs/cd/B25221_04/web.1013/b14428/usclient.htm) but at other points in the documentation, it seems to suggest that that resource injection is supported see(http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b28221/undejbs001.htm#CIHFEJAC).
    I am just wondering what the definitive answer is. Does OC4J support resource injection in the web client(in particular, JSP) or not. BTW I am trying to inject an EJB into a JSP client. It doesn't seem to work with resource injection but works OK with JNDI.
    Thanks

    Does any one have any sort of explanation on this?

  • HT201363 I don't remember my two security questions and I saw where you could send it to your email but the email it shows I could send it to is not the email I set up with it is there a way I can change the email on there to send to the email I have

    I don't remember my two security questions and I saw where you could send it to your email but the email it shows I could send it to is not the email I set up with it is there a way I can change the email on there to send to the email I have?

    The Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • How to set text resources avoiding automatic page update with c:set tag

    Hello everyone,
    I'm developing my web application with JDeveloper 11.1.2.3.0 in order to support two language locales (en and de). Following this guide I've performed the following steps:
    Creation of two property files (Resources.properties and Resources_de.properties) with the key-value entries;
    Modify of faces-config.xml file adding these lines:
    <locale-config>
            <default-locale>en</default-locale>
            <supported-locale>de</supported-locale>
      </locale-config>
      <resource-bundle>
          <base-name>view.Resources</base-name>
          <var>res</var>
       </resource-bundle>
    In the project properties > Resources Bundle I've checked:
    Automatically Synchronize Bundle;
    Warn about Hard-coed Translatable Strings;
    Always Prompt for Description.
    In the same place I've set the default project bundle name to view.Resources.
    In a test JSP page I've a outputText with the value #{res['HELLOWORLD']} where HELLOWORLD is the key in the property files. All works fine, and the correct string is shown based on locale browser settings.
    Anyway, when I use the "Select Text Resources..." menu in any text value choosing a value from the default property file, JDev automatically adds the following tag:
    <c:set var="customuiBundle" value="#{adfBundle['view.ViewControllerBundle']}"/>
    setting the value of the text in #{ViewControllerBundle.HELLOWORLD}.
    There is a way to avoid this behavior? Can I manage the resources in a different way? I would to choose a value from the list in order to get the res.KEY value instead of ViewControllerBundle.KEY value.
    Thanks in advance for your help.
    Manuel

    don't select from menu - go to source and write it . The problem with the tools is they have a certain way of doing things and don't think we should spend time customizing jdeveloper rather concentrate on the work in hand.

  • Can I set up a WDS network with two main base stations?

    I have an AEBS in the main part of the house and a time capsule in the office in the back of the house, currently with one internet connection (it's cable modem) into to the AEBS. I have tried to use relays (two airport expresses) in a WDS to have the internet connection reach the time capsule, but unfortunately the distance is too great and it won't make it.
    I can move the internet connection and AEBS into the middle of the house and everything would be fine (one internet connection into the house, no need for relays to reach the time capsule), but this requires rewiring the cable connection and adding a power outlet, which seems like a lot of work.
    My other option is to simply have another internet connection hardwired into the office. This would be using the same cable that comes into the house and is split outside. If I go this route--my question is--can I get the time capsule and the AEBS be on the same WDS network (same name, same passwords?), or will I have two separate networks in the house? If it is the former--how do I set it up? Can I have a WDS with two main base stations? Or is there an easier route?
    Thanks the help and advice...

    My other option is to simply have another internet connection hardwired into the office. This would be using the same cable that comes into the house and is split outside. If I go this route--my question is--can I get the time capsule and the AEBS be on the same WDS network (same name, same passwords?), or will I have two separate networks in the house? If it is the former--how do I set it up? Can I have a WDS with two main base stations? Or is there an easier route?
    Just run the Ethernet cable from one of the LAN ports on the AEBS to the WAN port on the Time Capsule. Configure the Time Capsule to operate as a bridge.
    You do not use WDS when they are wired together.
    Then configure the AEBS and Time Capsule to use the same SSID, wireless encryption type/level/password. Have them operate on different channels as far apart as possible.

  • Export (expdp) with where clause

    Hello Gurus,
    I am trying to export with where clause. I am getting below error.
    Here is my export command.
    expdp "'/ as sysdba'" tables = USER1.TABLE1 directory=DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= “USER1.TABLE1:where auditdate>'01-JAN-10'” Here is error
    [keeth]DB1 /oracle/data_15/db1> DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= USER1.TABLE1:where auditdate>'01-JAN-10'                    <
    Export: Release 11.2.0.3.0 - Production on Tue Mar 26 03:03:26 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_TABLE_03":  "/******** AS SYSDBA" tables=USER1.TABLE1 directory=DATA_PUMP dumpfile=TABLE1.dmp logfile=TABLE1.log query= USER1.TABLE1:where auditdate
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 386 MB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-31693: Table data object "USER1"."TABLE1" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    Master table "SYS"."SYS_EXPORT_TABLE_03" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_TABLE_03 is:
      /oracle/data_15/db1/TABLE1.dmp
    Job "SYS"."SYS_EXPORT_TABLE_03" completed with 1 error(s) at 03:03:58Version
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    Hello,
    You should use parameter file.Another question i can see you are using 11g.Why don't you use data pump?.
    Data Pump is faster and have more features and enhancement than regular imp and exp.
    You can do the following:
    sqlplus / as sysdba
    Create directory DPUMP_DIR3  for 'Type here your os path that you want to export to';then touch a file:
    touch par.txt
    In this file type the following the following :
    tables=schema.table_name
    dumpfile=yourdump.dmp
    DIRECTORY=DPUMP_DIR3
    logfile=Your_logfile.log
    QUERY =abs.texp:"where hiredate>'01-JAN-13' "then do the following
    expdp username/password parfile='par.txt'
    If you will import from Oracle 11g to version 10g then you have to addthe parameter "version=10" to the parameter file above
    BR
    Mohamed ELAzab
    http://mohamedelazab.blogspot.com/

  • I'm having problems with CS2 (mainly illustrator and photoshop

    I'm having problems with CS2 (mainly illustrator and photoshop ) randomly shutting down while trying to save a file. Reformatted my laptop for fear of a virus and reloaded... I have gotten nowhere.
    Please Help!

    CS3 still had issues with the preferences becoming corrupt, so a possible workaround would be to reset the preferences.
    The file is called AIPrefs and is located under 'Documents and Settings/User/Application Data/Adobe/Adobe Illustrator CS3 Settings'. It is a hidden file. Delete it with Illustrator closed and when you launch the program again the file will be rebuilt.
    May be it is also sounds like you need more memory for your computer. If you can navigate to your computer's memory controls, and allow your operating system to use a portion of your hard disk drive (HDD) as RAM (maybe 2Gb or so) it may solve your issue.
    How is about: http://www.filerepairforum.com/forum/adobe/adobe-aa/illustrator/383-%E2%80%8Bcorrupted-fon ts-in-illustrator-file-urgent-help-need – resource has non-commercial specialty
    Third party software Illustrator Repair Kit also must be good solution
    It has free demo version at:- http://www.illustrator.repair/
    Hope this will be helpful.

  • Question about function with in parameters

    Hello,
    I have a question about functions with in-parameters. In the HR schema, I need to get the minimum salary of the job_id that is mentioned as an in-parameter.
    this is what I am thinking but I dont know if it's correct or not or what should I do next!
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    begin
    SELECT min_salary INTO min_sal
    FROM jobs
    where job_id = get_minimum_salary(xy);
    RETURN i_job_id;
    end get_minimum_salary;
    thanks in advance
    EDIT
    Thanks for your help all.
    Is it possible to add that if the i_job_id which is the in type parameter does not have a minimum salary then use the following function to register an error:
    create or replace procedure insert_error (i_error_code in number,
                                                      i_error_message in varchar2)
    as
    begin
    insert into error_table (error_user, error_date, error_code, error_message)
    values (user,sysdate,i_error_code,i_error_message);
    end insert_error;
    This function is basically to say that an error has occured and to register that error, at the same time I need to print out the error using the dbms_out.put_line.
    Any ideas of how to do that?
    Thanks again
    Edited by: Latvian83 on Jun 1, 2011 5:14 AM

    HI
    I have made little bit changes in ur code. try this
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    v_Min_sal jobs.salary%type=0;---- Variable declaration
    begin
    SELECT min_salary INTO v_ min_sal
    FROM jobs
    where job_id = i_job_id;
    RETURN v_Min_sal;
    end get_minimum_salary;
    Regards
    Srikkanth.M

  • Export/Import with where condition

    DearAll,
    I am facing a problem in the delete of a huge table that take 3 hours
    DELETE FROM HST HST
    WHERE JV_TYPE <> 999
    and ( HST.VALUE_DATE <= TO_DATE ('31/12/2010','DD/MM/YYYY')
    AND HST.TRANS_DATE <= TO_DATE ('31/12/2010','DD/MM/YYYY'))
    what i am trying to do is to export the HST table and import it into another table
    but what i need to do is to have a dump with where condition including only the needed records in the table not deleted in the DML above as well as the indexes, triggers.
    Thanks

    If I try the following:
    CONN / AS SYSDBA
    CREATE OR REPLACE DIRECTORY dpump_dir1 AS '/folder/';
    GRANT READ, WRITE ON DIRECTORY dpump_dir1 TO bokprod;
    expdp bokprod/bokprod@uat TABLES=HST PARFILE=hst_query.par
    In the parfile:
    QUERY=hst:"WHERE JV_TYPE <>999 and ( HST.VALUE_DATE > TO_DATE ('31/12/2010','DD/MM/YYYY') AND HST.TRANS_DATE > TO_DATE ('31/12/2010','DD/MM/YYYY'))"
    DUMPFILE=exp.dmp
    DIRECTORY=dpump_dir1
    LOGFILE=exp.log
    impdp bokprod/bokprod@uat DIRECTORY=dpump_dir1 DUMPFILE=exp.dmp
    TABLES=bokprod.hst REMAP_TABLE=bokprod.hst:hst_imported
    My question is:
    1- the parameter file, if i put it in the dpump_dir1 directory, is it read by the expdp command?
    2- the hst_imported table created by the remap_table command , is it created with the indexes and triggers already existant on hst table?
    Appreciate yoyr help Dears

  • Resource Injection Annotation

    Hey All,
    I am experiencing an issue with the @Resource Injection annotation.
    Following is attached my code from my class. QueueConnectionFactory is null.
    Wierdly enough when I copy over this code and @Resource Injection in an MDB it works fine!
    Any ideas of why this might be.
    I am using WLS 10.3.5
    @Stateless
    public class dummysFriend implements dummysFriendRemote, dummysFriendLocal{
         @Resource(name = "ConnectionFactory-0",
         mappedName = "jms/connectionFactory",
         description = "Connection Factory for WLS")
         private QueueConnectionFactory connectionFactory;
         @Resource(name = "DistributedQueue-3",
         mappedName = "jms/provisionASDLQueue",
         description = "Queue which holds tokenized ASDL(s) for provision")
    private Queue provisionASDLQueue;
    private QueueConnection queueConnection = null;
    private QueueSession queueSession = null;
    private QueueSender queueSender = null;
    public dummysFriend() {
    // TODO Auto-generated constructor stub
    @PostConstruct
    public void initialize(){
    try {
              queueConnection = connectionFactory.createQueueConnection();
              queueSession = queueConnection.createQueueSession(true,
                             Session.AUTO_ACKNOWLEDGE);
              queueSender = queueSession.createSender(provisionASDLQueue);
              MapMessage message = queueSession.createMapMessage();
         message.setString("ASDL", "123");
         message.setString("Token", "456");
         // Sending message to queue
         System.out.println("Sending Message");
         queueSender.send(message);
         // Closing connections
         queueSender.close();
         queueSession.close();
         queueConnection.close();
    } catch (JMSException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    }

    I am experiencing an issue with the @Resource Injection annotation. Can you post what the issue is that you are seeing?
    -steve-

  • JSFWARNING: JSF1033: Resource injection is DISABLED.

    Anyone else have this problem using the JSF 1.2 implementation bundled with Weblogic 10?
    JSFWARNING: JSF1033: Resource injection is DISABLED.
    At start-up I get the warning and dependency injection doesn't work in backing-beans, etc.
    I've checked the various config files for compliance and everything seems to look good.
    Thanks.

    Well according to:
    http://e-docs.bea.com/wls/docs100/webapp/annotateservlet.html
    JSF backing-beans aren't one of the supported types.
    However according to the JEE5 spec they are.
    I guess Weblogic 10 isn't fully JEE5 compliant, even though it's passed certification. :_|

  • Populate list by executing query with where clause

    Hi,
    I m populating my list from database table using following command.
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("learning", new HashMap());
    EntityManager em = emf.createEntityManager();
    String query = "select d from Dept d";
    List list = em.createQuery(query).getResultList();
    My list is getting populated with all of rows in my database table(dept). The problem is, I cant use where clause in my query string.
    String query = "select d from Dept d where d.dept_name='ANYNAME'";
    Moreover I cant select even indivisual columns by using following line
    String query = "select d.dept_code,d.dept_name from Dept d";
    It looks like that my query is getting all rows from table as Object.
    What to do to
    1. put some where clause
    2. get some particular colums instead of all columns
    3. apply some table joins in query
    plz help.

    Hi Alex,
    I misunderstood your question. You had mentioned "My list is getting populated with all of rows in my database table(dept). The problem is, I cant use where clause in my query string. "
    I thought you might not have permissions to modify the code in the class, and that's why I suggested that you could write new classes.
    1) write new classes,? means if I need just two columns from a table >(instead of all columns), do I need to write new class with just two >columns (getters and setters)?You can write a SQL statement anyway you want , there are no restrictions in JDBC , so if you need just 2 columns you can write a custom query for that.
    "select column1 as a, column2 as be from table_name where column3 = xyz" etc.
    2) Is not anyway to write SQL statement like
    select dept_code,dept_name from dept where dept_name='anything'The above SQL is correct, it should work.
    3) Stored procedures? can I get some example(code) to get an idea >how to implement complex queries with where clause and joinings >using stored procedures?Stored procedures are specific to the database you are using, Oracle has a particular syntax for store procdures.
    You can call stored procedures from JDBC also, search on Google for
    "Calling stored procedures from JDBC"
    4) I m using hibernate. can I get any example of using hibernate own >query?Tutorial on Hibernate Query Language:
    http://www.hibernate.org/hib_docs/v3/reference/en/html/queryhql.html

  • A question about variables and where I should put them!

    Hi, I'm fairly new to java. I'm a first year computer scientist and I'm struggling with where I should put my variables.
    So far on the course I've been able to wing it as we have not been doing object orientated programming, it was more like programming in fortran!
    Anyway if you look at the code below, I need the variables 'speed', 'distance', 'time' and 'tottime', to be calculated in my seperate methods, but then called in my main part to be printed out; however I have no idea where I put them to get this to work!
    The program is by no means complete, it's still a work-in-progress, but I need to get this sorted before I continue.
    Thanks in advance
    /////  LogName: gxm07u
    /////  FullName:
    /////  CreationDate: 2007-11-07 09:30:07
    import java.io.*;
    public class travel {
        public static void printMenu()
             System.out.println("Travel Program\n\nn: Enter a journey\ns: Get complete journey stats\nd: Get Distance travelled stats\nq: quit");
        public static void RoadMenu()
             System.out.println("Type the road type:\nType m: Motorway\nType a: A road\nType b: B road\nType u: Urban road");
        public static void enterRoadType()
             char choice;
             choice = UserInput.readChar();
             switch(choice)
                  case 'm': //motorway
                  case 'M':
                       speed = 85;
                  break;
                  case 'a': // a road
                  case 'A':
                       speed = 70;
                  break;
                  case 'b': //b road
                  case 'B':
                       speed = 55;
                  break;
                  case 'u': // Urban road
                  case 'U':                                     
                       speed = 40;
                  break;     
        public static void enterDistance()
             System.out.println("Type the travel distance: ");
             distance = UserInput.readDouble();
        public static void calcTime()
             time = speed/distance; // time in hours
             tottime = tottime + time; //total time in hours         
        public static void main(String[] argv) {
              int speed = 0;
              double distance = 0;
              double time=0, tottime=0;
         } // end of main
    } // end class

    Your calcTime() can't see variables local to other methods you either need to make them global or pass them in as parameters. To make them global:
    public class travel {
         int speed = 0;
         double distance = 0;
         double time=0, tottime=0;
        public static void printMenu()also you're main method should create a instance of the class
        public static void main(String[] argv) {
    new travel();
    }BTW it's convention to make class names begin with a uppercase letter. Also, look at using the equalsIgnoreCase() for your switch statement as it could save you 4 cases.
    Hope this helps

  • Initial startup with question marked folder with a disk already inside

    Initial startup with question marked folder with a disk already inside

    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Can I use my laptop display with my main monitior

    Hi.. rookie question. How/Can I use my macbook pro display as an second display with my main MacPro monitor? I have hooked up the laptop to the second DVI output on my MacPro hit the F7 button on each... no joy. What am I missing? Thanks.
    S

    Download and install this software, and create an Ethernet or wireless connection between the two computers.
    (22743)

Maybe you are looking for

  • Need to Programmatically Set IRR Filter on Date Field Due to APEX 4.1 Bug

    There may be another work around but, here is the problem that we are encountering... We have a huge table that is partitioned on a DATE field and an IRR that reports on this table. By default, we want to show the most recent 3 days of data. There is

  • ITunes application could not be opened.  An unknown error occurred (0x666D7

    Been using iTunes 6 and 6.5 for months and months on my computer. Upgraded to 7.0. Installs just fine. No errors, no issues. At the end, it asks if it can launch iTunes 7.0 and I click okay. I get this: The iTunes application could not be opened. An

  • Help needed in printing a JPanel in Swing..

    Hi, I'm working on a Printing task using Swing. I'm trying to print a JPanel. All i'm doing is by creating a "java.awt.print.Book" object and adding (append) some content to it. And these pages are in the form of JPanel. I've created a separate class

  • Significant reduction in file size from Camera Raw to DNG

    Hi, I am currently testing the conversion of Leaf camera raw files into DNGs for a photographer's archive. I am hoping to convert all of the mos files to DNGs because Leaf Capture and the Leaf Raw Converter are not being updated and because the photo

  • Restriction SAP_ALL_DISPLAY

    Hi All, yes, I know there were many threads, but no one could answer my question in deatail. As I read, the Role SAP_ALL_DISPLAY is not availabel in version higher than 4.7. I am working on a higher system, and so the role is not given to me. The for