How are JNDI and JDBC related or implemented using EJB's

For instance if I create an Entity bean, how do I get access to the database?
Do I create some sort of connection method?
Is JNDI used to lookup the beans and JDBC separate from that only to connect to the database?
I am a little confused.
Thanks.

Hello,
With respect to entity bean you need a Datasource for obtaining a sql connection to database. After obtaining a connection to database you can persist your entity bean's state to database.
Once you create a datasource, you have to bind it to a JNDI name. This JNDI name can then be used to lookup datasource, just like you use telephone directory to obtain a person's telephone no if you have his address.
You also bind your enity bean to a unique JNDI name so that clients can lookup the bean and use services offered by it.
JNDI is used to lookup EJBs, datasources, JMS Connection factories, etc and JDBC is used so that you can persist your enterprise java bean's state to database.
HTH
VJ

Similar Messages

  • How are contract and service order related....urgent

    Hi all
    I am ABAP consultant...
    I am working on Service contract Cost Management threshold alert report...
    I want clear idea as to how are contract and service order related....
    BAsed on contract type and contract start and ,end date,sold to party....
    i need to get contract ,item , service order no: , and i have to calculate <b>INTERNAL ,EXTERNAL LABOUR, INTERNAL,EXTERNAL material COST</b>
    plz help me out...
    Thanks in advance,
    Madhavi.

    Dear Madhavi,
    http://www.erpgenie.com/abap/tables_sd.htm
    VBFA Sales Document Flow
    KONV Conditions for Transaction Data
    KONP Conditions for Items
    LIKP Delivery Header Data
    LIPS Delivery: Item data
    VBAK Sales Document: Header Data
    VBAP Sales Document: Item Data
    VBBE Sales Requirements: Individual Records
    VBEH Schedule line history
    VBEP Sales Document: Schedule Line Data
    VBLB Sales document: Release order data
    VBLK SD Document: Delivery Note Header
    VBPA Sales Document: Partner
    VBRK Billing: Header Data
    VBRP Billing: Item Data
    VBUK Sales Document: Header Status and Administrative Data
    VBUP Sales Document: Item Status
    VEKP Handling Unit - Header Table
    VEPO Packing: Handling Unit Item (Contents)
    VEPVG Delivery Due Index
    Also, go through:
    http://www.erpgenie.com/abap/tables.htm
    Regards,
    Naveen.

  • "How are local and state taxes setup/updated when employee's address change

    Hi All
    I wanted to know "How are local and state taxes setup/updated when employee's address changes . - How is it done in SAP? -
    Thanks in Advance

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • How are objects and values passed in rmi?

    how are objects and values passed in rmi?

    In java there are two mwthods of passing aruguments and returning results.
    1) by value
    2) by reference.
    While invoking local methods, java passes primitive types by value and objects by reference.
    However while invoking remote methods both these data types are passed by value. Except for the objects being exported. Reason being two different JVM's are involved and thus memory addresses references of one are meaningles for the other. However "pass by value" for values of type object are implemented as deep copy.

  • How are attribute and text master data tables linked in SAP R/3?

    Hello,
    how are attribute and text master data tables linked in SAP R/3?
    Most tables with attribute master data like T001 for company codes,
    have a text master data table T001T (add "T" to table name).
    When looking at the content of table T001 via transaction se11,
    the text are automatically joined.
    But for some tables there is no "T"-table (e.g. table TVBUR for sales offices
    has no text table TVBURT), but in se11 you get texts. There is an address
    link in TVBUR, but the Name1, etc. are empty.
    a) Where are the text stored?
    b) How does the system know of the link?
    Hope someone can help!
    Best regards
    Thomas

    Hi Thomas
    The master and text table are not linked by name, of course, if you see the text table, it has the same key fields of master table, only it has the field key spras and the field for description.
    The link beetween the tables is done by foreign key: if you check the text table TVKBT u need to see how the foreign key for field VKBUR is done:
    -> Foreing key with table TVBUR
    -> Foreing key field type -> KEY FIELD FOR A TEXT TABLE
    ->Cardinality-> 1-:CN
    It's very important the attribute sets for Foreing key field type, if it's KEY FIELD FOR A TEXT TABLE, it'll mean the table is a text table: i.e. that mean the master table is a check table for the text table, where the foreign key type is for text table.
    U can find out the text table of master table by SE11: GoTo->Text Table
    U can fined some information in table DD08L.
    Max

  • How are Aperture and Yosemite getting along so far?

    How are Aperture and Yosemite getting along so far?
    Hi guys,
    Is it OK for Aperture users to take the plunge and update to Yosemite, or is it wiser to wait for kinks to be worked out first? I didn't find any reference to this matter so far on this forum or on the web. I may have mort worded it correctly.
    Thanks for responding,
    Raphael
    Also,
    Why do I constantly run into the statement: "You are not allowed to create or update this content" when I click on "Post"? So annoying ....

    Aperture 3.6 and Yosemite have been a nightmare for me unfortunately.  Every time I try to open it since updating to Yosemite it quits unexpectedly within 5 seconds or less.  I've tried repairing and rebuilding the library but that did not help.  Just get the below message.
    Process:               Aperture [11391]
    Path:                  /Applications/Aperture.app/Contents/MacOS/Aperture
    Identifier:            com.apple.Aperture
    Version:               3.6 (3.6)
    Build Info:            Aperture-500021000000000~3
    App Item ID:           408981426
    App External ID:       731142774
    Code Type:             X86-64 (Native)
    Parent Process:        ??? [1]
    Responsible:           Aperture [11391]
    User ID:               501
    Date/Time:             2014-10-20 22:06:19.726 -0400
    OS Version:            Mac OS X 10.10 (14A388b)
    Report Version:        11
    Anonymous UUID:        554987CC-A5F5-9C57-2520-D55ECD699D4A
    Time Awake Since Boot: 350000 seconds
    Crashed Thread:        8
    Exception Type:        EXC_ARITHMETIC (SIGFPE)
    Exception Codes:       EXC_I386_DIV (divide by zero)

  • How long should and Iphone 4S battery last using wifi continuously and having all notofocations and locations services ON and Off???

    1. Hi, How long should and Iphone 4S battery last using wifi continuously and having all notofocations and locations services ON and Off???
    2. What battery percentage should use if I do not make calls all day and wifi is on?
    3. What battery percentage should use if I do not make calls all day and wifi is off?
    4. If I do not have a Sim Card inside my Iphone 4S will the phone use more battery life?
    5. In what time should the iphone normally discharge?
    6. Basically how would i know if my battery is not defective as some people say?

    all your questions are relative to individual use, therefore nobody could give you any definitive answer to any of them.

  • Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    It appears OP solved the problem: [/questions/874744]

  • How to update and insert the records without using Table_comparison and Map_operation?

    How to update and insert the records without using Table_comparison and Map_operation?

    Use either join or MERGE see this Inserting, Updating, and Deleting Data by Using MERGE

  • How are JNDI lookups load balanced through software?

    Presumably they are not generally speaking.
              I can see how HTTP Requests are via HttpClusterServlet but how are the
              JNDI lookups handled if the client isn't specify a specific node in their
              intialcontext?
              

    Is there any way of doing that with one nic only?
              Rajesh Mirchandani <[email protected]> wrote in message news:<[email protected]>...
              > You machine could be multi-homed.
              >
              > Robert Nicholson wrote:
              >
              > > Specifically how can I run multiple clusternodes on the same machine and
              > > still load balance my JNDI lookups across them if obviously they are not all
              > > running on the same port and I cannot use
              > >
              > > ht.put(Context.PROVIDER_URL, "t3://acme1,acme2,acme3:7001");
              > >
              > > like syntax.
              > >
              > > "Robert Nicholson" <[email protected]> wrote in message
              > > news:[email protected]..
              > > > Presumably they are not generally speaking.
              > > >
              > > > I can see how HTTP Requests are via HttpClusterServlet but how are the
              > > > JNDI lookups handled if the client isn't specify a specific node in their
              > > > intialcontext?
              > > >
              > > >
              

  • How are attributes and texts for a master data linked and targeted to ...?

    Our previous consultants used to load data to master data 0MATL_GROUP. 
    1. RSA1 -> InfoProvider -> Select 0MATL_GROUP or 0MATL_GROUP___T
    Check these above two and find the records loaded are both 1,216 for Language EN.
    We check the data flow of this master data (0MATL_GROUP or 0MATL_GROUP___T) and find there are four branches which target 0MATL_GROUP:
    branch 1: 0MATL_GROUP is itself an InfoSource and the datasource is 0PROD_CATEG_R3_MAP_ATTR.  However under this datasource, there is no any InfoPackage, i.e., the system doesn't load data to 0MATL_GROUP through this branch.
    branch 2: Through InfoSource 0MATERIAL_ATTR.  However the InfoPackage under this InfoSource target data load to 0MATERIAL but not 0MATL_GROUP, i.e., the system doesn't load data to 0MATL_GROUP through this branch.
    branch 3: Through InfoSource ZMATL_GROUP_ATTR and it's corresponding datasource Z_MAT_GROUP_ATTR.  InfoPackage monitor shows the data load record for this datasource is 490 (Run RSA3 on R3 for this datasource also gives the same record count).
    branch 4: Through InfoSource 0MATL_GROUP_TEXT and it's corresponding datasource has the same name. InfoPackage monitor shows the data load record for this datasource is 1190 for Language EN (RSA3 on R3 for this datasource gives the same count for language EN).
    2. InfoObj. 0MATL_GROUP
    1). Master data tab (/BI0/PMATL_GROUP): 526
    2). Text table (/BI0/TMATL_GROUP):
    1657 (includes both EN and other lan-guages), for EN: 1190.
    3. Check R3 Table T023T (Material Group Descrip-tions) for EN: 1190.
    Our questions are:
    1. The InfoProvider 0MATL_GROUP and 0MATL_GROUP___T
    both have counts of 1,216 for Language EN.  And for the four branches in the data flow, only 3rd and 4th branches feed data to it.  3rd branch (datasource Z_MAT_GROUP_ATTR) feed count is 490 and 4th branch (datasource 0MATL_GROUP_TEXT) feed count is 1190 for Language EN. We wonder how attribute and text data are corelated to each other and with it's master data.  Obviously 1,216 is not equal to the sum of 1190 and 490, the how 1190 (text) and 490 (attribute) constitute the master data count 1,216?
    2. Do we have to use 1st and 2nd branches to feed data to 0MATL_GROUP?
    3. How InfoObj. 0MATL_GROUP Master data tab (/BI0/PMATL_GROUP) shows the count is 526?  it should be 490 from the custom datasource Z_MAT_GROUP_ATTR, right? But why the count is different?
    We would be appreciated any expert input!

    Kevin,
    can you check the data in Material Group charecterstic againest R/3. One moe thing check how these 4 branches Mapped to material Group?
    Take the for Attributes it should be 490. it is 525. try to analyse what are the extra records comparing with Source. take the you found so and so meterial group extra then analyze from where is it getting extracted to BW i mean which DS.. (either branch 1 or brach 2 or branch 3 or 4). then check in R/3 side DS for the 4 branches. then you will know what exactly happening.
    Analyze the data from step by step from r/3 to BW for each level. You will get clue.
    Nagesh.
    Message was edited by: Nagesh Ganisetti

  • How are passwords and certificates encoded in .mobileconfig?

    The Enterprise Configuration Utility generates a human-readable XML file from which the iPhone can read and apply settings. However, the password and certificate portions of the file are encoded in such a way as to obfuscate them.
    Does anyone know the encoding algorithm? I need to know so that I can generate my own XML file with my own custom-built tool. The following statement in the Enterprise Deployment Guide suggests that Apple supports custom tools: “This appendix specifies the format of mobileconfig files for those who want to create their own tools.” But it doesn’t mention the encoding algorithm.

    Hi,
    I'm trying to find out how user passwords are stored in Discovererthey are not. the discoverer do not maintain the users or the password.
    the discoverer has 2 ways of connecting to the DB, none of them are users created by "discoverer" :
    1. using database users, so that the users and passwords are stored in the db (fnd_users)
    2. using apps mode, the discoverer users uses their oracle application connection string (user, responsibility).
    and here the oracle application maintain the users and responsibilities.
    Tamir

  • How is KDW and KDZ configuration in OBA1 used for payments

    Hey,
    I would like to understand how KDW and KDZ configurations are used in the system. We have payment documents that post automatically to certain acounts. We found out that these accounts are set in KDW or KDZ. We don't know why this is even there. We normally use KDF only. The accounts cleared with the payment are also entered in KDF. But it seems the KDF entry is bypassed and instead KDW or KDZ was pulled. So why is this and can we not just use KDF only? What makes the difference?
    Hope anyone can give an answer.
    Thanks
    Korinna

    Hi Mike,
    I'm sorry, it is not clear to me. What do you mean with alternate/parallel currency? The example is invoice in EUR, payment in RUB. Company Code Currency is RUB as well. Speaking in posting currencies. e.g. for the  invoice TC=DC=EUR, LC=Company COde Currency=RUB, GC=USD. GC is always USD as we are in US Company. So what is the trigger to read KDW and KDZ instead KDF and what happends when KDW and KDZ are not configured?
    Thanks
    Korinna

  • How to save and download json to make use of a app in offline mode

    how to download and save a json file from url to make use of a app in offline mode and if internet is available it should take data from url only and display it in tableview..but  for the second time it should make use of the saved json data to display the table view data in app.

    Hi,
    Using F calls a routine and not BAdI.
    If record will directly be created then there is no need to write Z program and calling it using F indicator. However, in case there is some logic which can not be written directly in the Dynamic Action then you need to write that logic in a routine and call it using F indicator.
    VK

  • How to create and edit a .ini file using java

    Hi All...
    Pls help me in creating and editing an .ini file using java...
    thanks in advance
    Regards,
    sathya

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

Maybe you are looking for

  • Initial-Transaction-Open Blance data GL,AP,AR

    Hi we will be in Production soon.we need to Upload 2009 MOnthly Balance along with 2008 Year end Open Blance, so we have Files for All B/S and P&L accounts (on a GL level) summing up to Zero the total Dr=Cr,We made individual files for each Month loo

  • SAP Technical roles and IDM Business roles mapping

    Hi Guys Just wondering if there is an easy way to export SAP Positions and create them automatically as Business Roles in IDM and the SAP technical roles that are related to that corresponding position into privledges assigned to that Business Role.

  • String check problem

    I have a doozy of a problem on my hands. My company has introduced a password policy that every user must me now. Some of my criteria is that a password must contain at least one symbol and at least one number. In 10g I can use REGEXP_LIKE function,

  • Safari/E-mail problem. Can't log out!

    We've just purchased our first Mac and so far everything has been great. A problem we've encountered is with our email accounts. We both go to the same school, so we both use the same email that the school provides. However, even when one of us click

  • N95 Transfering music but plays 10x faster

    I have tried to transfer music from my laptop but it converts the music from MP3 to ACC? Not sure why but when the music gets to my phone and you play it back it sounds really speeded up. Can any one help???