Confused about the role of ejbc in Weblogic 7

Howdy All
Here is my understanding of the role of ejbc in Weblogic 7:
* Let's assume I have a JAR containing an EJB (let's say a stateless session bean).
Let's call this the no-ejbc-JAR.
1. I run the no-ejbc-JAR through ejbc to create the container-ejbc-JAR which can
now be deployed in Weblogic.
2. I can run ejbc against the no-ejbc-JAR to create a client-ejbc-JAR for use
by clients wishing to access and use the EJB.
Questions...
MUST I run the no-ejbc-JAR through ejbc (to create the container-ejbc-JAR) before
it can be deployed in Weblogic 7?
If so, why?
I can sort of see why this may be necessary from the containers perspective, although
I would have thought the ejbc process could have been automatically applied by
Weblogic to no-ejbc-JARs being deployed.
But I am confused as to why ejbc would need to be used to create a client-ejbc-JAR.
From the client's perspective, isn't it simply enough to have the no-ejbc-JAR
(or a subset of the no-ejb-JAR) containing the EJB home and remote interfaces
(along with any non-ejbc generated support classes)? For use by the client, why
would it be necessary to run the no-ejbc-JAR through ejbc to create a client-ejbc-JAR?
Or do I have an incorrect understanding of the role of ejbc?
Thanks,
Rob

Hello Rob,
I will try to clarify a couple of your concerns. First of all, if your EJB jar
contains CMP 2.0 entity beans, the underlying JDBC implementations must be generated
for your respective abstract classes of the entity beans. EJBC will generate this
for you automatically. Also, the EJBC utility generates all of the other necessary
server classes that WebLogic requires for deploying your EJBs (such as custom
code for handling transactions, security, and other EJB services). When your EJB
utilizes remote home/component interfaces, the utility will also generate all
of the necessary client-side proxy and server-side byte code by running the RMI
compiler on your EJBs. In addition to the above code generation that takes place,
EJBC also checks all of your EJBs and makes sure that they are written according
to the EJB specification. This way you will always be sure that your EJBs will
be deployable on BEA WebLogic if EJBC returns with no error messages. You also
asked if EJBC must be run manually before deploying the EJBs. If you run your
application in exploded directory format, WebLogic will automatically invoke the
EJBC utility prior to deploying your EJBs. Please refer to the links below for
more information about the EJBC utility as well as deploying your application
in exploded directory format:
http://edocs.bea.com/wls/docs70/ejb/EJB_utilities.html#1075296
http://edocs.bea.com/wls/docs70/programming/deploying.html#1125152
Also, feel free to examine the code that EJBC generates to gain a better feel
for what's happening behind the scenes. Also, please be aware that ejbc has been
deprecated in WebLogic 8.1, in favor of the appc utility:
http://edocs.bea.com/wls/docs81/ejb/EJB_tools.html#1096936
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Rob Young" <[email protected]> wrote:
>
Howdy All
Here is my understanding of the role of ejbc in Weblogic 7:
* Let's assume I have a JAR containing an EJB (let's say a stateless
session bean).
Let's call this the no-ejbc-JAR.
1. I run the no-ejbc-JAR through ejbc to create the container-ejbc-JAR
which can
now be deployed in Weblogic.
2. I can run ejbc against the no-ejbc-JAR to create a client-ejbc-JAR
for use
by clients wishing to access and use the EJB.
Questions...
MUST I run the no-ejbc-JAR through ejbc (to create the container-ejbc-JAR)
before
it can be deployed in Weblogic 7?
If so, why?
I can sort of see why this may be necessary from the containers perspective,
although
I would have thought the ejbc process could have been automatically applied
by
Weblogic to no-ejbc-JARs being deployed.
But I am confused as to why ejbc would need to be used to create a client-ejbc-JAR.
From the client's perspective, isn't it simply enough to have the no-ejbc-JAR
(or a subset of the no-ejb-JAR) containing the EJB home and remote interfaces
(along with any non-ejbc generated support classes)? For use by the client,
why
would it be necessary to run the no-ejbc-JAR through ejbc to create a
client-ejbc-JAR?
Or do I have an incorrect understanding of the role of ejbc?
Thanks,
Rob

Similar Messages

  • Confused about the default schema

    Hi,
    I am a little bit confused about the schema concept.
    I want to create a new schema called APP and then create several users and roles based on the schema APP. The default schema for the users should be APP achema.
    How can I make the schema APP the default schema for the new users that I am creating?
    I feel that there are some schema design concepts that I have to learn. Is there any resource on the internet that I can read and learn more about oracle schema design best practices?
    Any help would be appreciated,
    Ali

    A schema holds object definitions, and in the case of table & index objects the schema also holds the data.
    A user owns the schema.
    Therefore the user 'owns the definitions (including any functions, procedures, sequences, tabels, etc.)
    Other users may be granted access to some, or all, of the objects in a schema. This is done through the 'GRANT ...' command. For example, consider the following steps:
    1) create user app_owner
    2) create table object test owned by the app_owwner
    3) create user app_user
    4) grant select, update, insert and delete on app_owner's test table to app_user
    5) add synonyms to avoid needing to qualify the table's schema name.
    done as follows:
    oracle@fuzzy:~> sqlplus system
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 3 20:07:32 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Create the app owner userid. Note there is no need to ever log in to that user, even to create tables.
    SQL> create user app_owner
      2  identified by xyz
      3  account lock
      4  quota unlimited on users
      5  default tablespace users
      6  temporary tablespace temp;
    User created.
    Creating objects in a schema can be done by providing the schema name, or by switching schema in newer versions of Oracle
    SQL> create table app_owner.test ( t number );
    Table created.
    Create a userid that will access the table. Set that userid up to access the database and (for future) give it the capability to create it's own synonyms
    SQL> create user app_user
      2  identified by xyz
      3  temporary tablespace temp;
    User created.
    SQL> grant create session to app_user;
    Grant succeeded.
    SQL> grant create synonym to app_user;
    Grant succeeded.
    Now give the user access to the objects
    SQL> grant select, update, insert, delete on app_owner.test to app_user;
    Grant succeeded.
    Let's test it out. Insert by qualifying the schema name on the object, then create a synonym to avoid using schema, and try it all using the synonym
    SQL> connect app_user/xyz
    Connected.
    SQL> insert into app_owner.test values (4);
    1 row created.
    SQL> create synonym test for app_owner.test;
    Synonym created.
    SQL> insert into test values (3);
    1 row created.
    SQL> select * from test;
             T
             4
             3
    SQL>  Note that some people want to use PUBLIC grants and PUBLIC synonyms. This is a real bad idea if you want to ensure long term security of the data and want to host several different applications in the same Oracle instance.
    This, and a whole lot more, is in the 'Concepts' manual for your version of the database at http://docs.oracle.com

  • I'm confused about the apple ID transition from my aol screen name. Does it continue to use my aol email as my apple ID, converting it somehow or do I need to provide a new email address or just create a new username for the apple ID?

    I'm confused about the transition to an apple ID that doesn't use my aol email to sign in. The instructions are vague and ambiguous. Any help would be appreciated.

    OK, so if your current Apple ID using your AOL Username (like johndoe), then you need to log onto Manage your Apple ID and EDIT that AOL Username to a valid email address: Apple - My Apple ID
    If you have an AOL email address (like [email protected]), and you are not using that as another Apple ID, you can change the AOL Username Apple ID to that. Otherwise, you can change it to any valid email address (which you will have to verify when you change to it).
    Hope that clears it up. Post back if it doesn't!
    Cheers,
    GB

  • Confuse about the document

    Hi,all . From the document ,i had confused about the following .
    Automatic Undo Management in Oracle RAC
    url >> http://docs.oracle.com/cd/B19306_01/rac.102/b28759/adminrac.htm#CHDGAIFJ
    Oracle automatically manages undo segments within a specific undo tablespace that is assigned to an instance. Only the instance assigned to the undo tablespace can modify the contents of that tablespace. However, each instance can read the undo data blocks created by any instance. Also, when performing transaction recovery, any instance can update any undo tablespace, as long as that undo tablespace is not currently being used by another instance for undo generation or transaction recovery
    what's the meaning of above that is bold ?

    Say you're running a 2-node RAC and node 2 dies. The services which were running on node 2 now get re-located to node 1. It is then possible that node 1 will perform transaction rollback/recovery and, when it does so, it will need to be able to read from node 2's undo tablespace (and maybe update the undo segment headers in node 2's undo tablespace, too).

  • Require information about the Role of Data Analyst

    Hi All,
    I know this might be irrelevent question in this forum, but after a long search, I could not find any suitable place where I can get the information about the role of Data Analyst ( DA ). What all activities the DA needs to perform? Can anyone suggest me anything related to this?
    Thanks in advance
    Himanshu

    As with just about any role, it really depends on the organization. There are dozens if not hundreds of jobs that different organizations might label "Data Analyst." A lot of what a statistician, an economist, or an actuary does would count as data analysis. So would a lot of what a business analyst does. So would a lot of what an software architect does.
    Justin

  • Confused about the battery...

    Hello everyone,
    I'm from Pakistan and I just switched to Mac almost 2-3 weeks ago. Since, they have proper apple authorized dealers here so I finally decided to get one for myself. I had some confusion about the battery and my system and now I'm getting very much concerned and worried as a matter of fact.
    I installed coconut battery (as few people suggested me) to check my battery status. First of all, it shows the age of my Mac as 5 months, which is pretty surprising since I got a brand new one and even the condition is of a brand new one so I have no clue why did it say that.
    Secondly, I would like to tell the condition of my battery:
    Current Battery Charge: 3591 mAh (I'm using on battery power right now)
    Maximum Battery charge: 4068 mAh
    88%
    Current Battery Capacity: 4068 mAh
    Original Battery Capacity: 4100 mAh
    99%
    Additional info:
    Battery-Loadcycles : 12
    Age of your Mac: 5 months
    Charger connected: No
    Battery is charging: No
    I am just concerned that my battery current capacity decreased to 99% after just 12 load cycles. Why is that? Some people tell that they have a 100% even after using it for a long time and other than that does anyone have any idea why is the age being shown as 5 months when I have only used it for 2 weeks.
    I'm really confused.
    Another suggestion that I want is that in Pakistan, we are having major electricity load shedding so I can't keep it on AC power most of the time so if my computer is shut-down and being charged. If the electricity goes and when it comes back and it starts charging to the point from where it left, will that waste the load-cycle or will it continue to charge it from there without wasting cycle? Does that affect the battery life? (Assuming that the computer is shut-down while being charged)
    Last thing, should I use it mostly on AC power or is it better to charge it and then drain the battery and then charge it and then use. Till how much percent should I keep using on the battery power and then connect the Magsafe connector?
    Please help people
    I'd highly appreciate if you could answer my questions.
    Thank you.

    I was told that it is best to keep it plugged in and connected to the charger when you can, but if you are not able to do that then just use battery power. I just know you don't want too many cycles, which means you don't want to drain the battery completely then fully recharge it. You should calibrate the battery, which is pretty much just draining battery then recharging it, every couple of months if you keep it plugged into the charger and don't use just the battery often.

  • Confused about the meaning of  Time Quota Types

    I am learning SAP-HCM on IDES 6.0. I am confused about the meaning of Time Quota Type. I have gone thru the SAP documentation, but still not clear about it. Please help me with a few examples. How is it different from Absence Type?

    Hi Gopal ,
    Absences are very generic ones that we create which needs to be reflected in IT2001 and dedcution can happen.
    Absence Quotas are the limited entitlement that is fixed say ur eligible for 10 days sick leave so here this is a Quota for each year  and so becomes a Quota say Sick leave Quota =10 and will be seen in IT2006.
    Now an absence needs to be linked to this Quota for dedcution.
    An absence can be or may not be linked to a Quota.This depends on business Requirement.
    Let me know if u have further Questions.
    Thanks
    Swati

  • Confused about the 'cpu fsb clock frequency' setting, etc., in cell in bios

    just got a new k8n neo2-f nforce3 board with an a64 3500+ venice chip.  It is properly recognized in the bios and windows as an a64 3500+ at 2.2ghz, but I'm confused about the cell menu settings in the bios. I see a 'cpu fsb clock frequency' which was automatically set at 200mhz, but the fsb runs at 1Ghz (1000mhz), so what is the 'fsb clock frequency' if not equal to the cpu fsb?  Is 200 the correct setting for that?  Should I need to change any of the other settings in here?  I wonder, because my 3dmark03 score only went up 200 points from the same system with a AthlonXP 2500+ chip and kt4avl mobo, which seems like a low increase to me.....

    I would set that to Manual in BIOS, so that you can incremently increase the CPU speed without causing a sudden crash. Each system is different and operates within the specs of not only the CPU, but system memory and PCI-E add-ins as well. Your video card is the primary driver behgind your 3DMark scores...but you haven't listed that?!

  • About the role of process configuration files

    I have done some customizations in process template XMLs. I have done my major changes only in the work item type definition XMLs. I am wondering about the role of process configuration files or category definition files. When do I really need to update
    it?
    Thanks
    Divya

    Hi Divya, 
    Thanks for your post.
    If you only did the changes on fields/controls in work item type, usually you needn’t update the process configuration and category files.
    If you want add your work item type display in team project Web Access 
    Backlog board or Task board, you need to update the process configuration and category files, please refer to the detailed information in this document:
    https://msdn.microsoft.com/en-us/library/jj920163.aspx.
    Or you want add a backlog to portfolio management, you need to update the process configuration and category files, please refer to:
    https://msdn.microsoft.com/en-us/library/dn217880.aspx.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Confuse about the injecting entity in EJB 3.0?

    Hi all,
    I have an customersBean which is inherit from customersRemote and my problem is i' am little confuse about injecting the entity(customer).
    Where can you apply the EntityManagerFactory is it outside on EJB or Inside the EJB? means outside EJB is use the web application or java application. i have and example.
    this is inside on EJB...............
    public class CustomersBean implements com.savingsaccount.session.CustomersRemote {
    @PersistenceContext(unitName="SavingAccounts")
    EntityManagerFactory emf;
    EntityManager em;
    /** Creates a new instance of CustomersBean */
    public CustomersBean() {
    public void create(int id, String name, String address, String telno, String mobileno)
    try{
    //This is the entity.
    Customer _customer = new Customer();
    _customer.setId(id);
    _customer.setName(name.toString());
    _customer.setAddress(address.toString());
    _customer.setTelno(telno.toString());
    _customer.setMobileno(mobileno.toString());
    em = emf.createEntityManager();
    em.persist(_customer);
    emf.close();
    }catch(Exception ex){
    throw new EJBException(ex.toString());
    in web application, i'm using the @EJB in customer servlets.
    public class CustomerProcessServlet extends HttpServlet {
    @EJB
    private CustomersRemote customerBean;
    blah blah inject directly coming request field from jsp.
    }

    Hi all,
    I have an customersBean which is inherit from customersRemote and my problem is i' am little confuse about injecting the entity(customer).
    Where can you apply the EntityManagerFactory is it outside on EJB or Inside the EJB? means outside EJB is use the web application or java application. i have and example.
    this is inside on EJB...............
    public class CustomersBean implements com.savingsaccount.session.CustomersRemote {
    @PersistenceContext(unitName="SavingAccounts")
    EntityManagerFactory emf;
    EntityManager em;
    /** Creates a new instance of CustomersBean */
    public CustomersBean() {
    public void create(int id, String name, String address, String telno, String mobileno)
    try{
    //This is the entity.
    Customer _customer = new Customer();
    _customer.setId(id);
    _customer.setName(name.toString());
    _customer.setAddress(address.toString());
    _customer.setTelno(telno.toString());
    _customer.setMobileno(mobileno.toString());
    em = emf.createEntityManager();
    em.persist(_customer);
    emf.close();
    }catch(Exception ex){
    throw new EJBException(ex.toString());
    in web application, i'm using the @EJB in customer servlets.
    public class CustomerProcessServlet extends HttpServlet {
    @EJB
    private CustomersRemote customerBean;
    blah blah inject directly coming request field from jsp.
    }

  • Confused about the Business Component Developer Certification

    Excuse me, I´m confused...
    How many certifications are about the Business Component Certification? Three??
    I thought there was just one, the Business Component Developer, which is the 1Z0-860 code...
    but I also have seen these:
    Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam - 1Z0-895
    Java EE 6 Java Persistence API Developer Certified Expert Exam - 1Z0-898
    and now I don´t know which one to study for...
    Are these better? Or just different? Or are the last ones just the new ones and the 1Z0-860 is obsolete?
    Thanks in advance!

    938334 wrote:
    Excuse me, I´m confused...
    How many certifications are about the Business Component Certification? Three??
    I thought there was just one, the Business Component Developer, which is the 1Z0-860 code...
    but I also have seen these:
    Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam - 1Z0-895
    Java EE 6 Java Persistence API Developer Certified Expert Exam - 1Z0-898
    and now I don´t know which one to study for...
    Are these better? Or just different? Or are the last ones just the new ones and the 1Z0-860 is obsolete?
    Thanks in advance!The basic answer to look at the question topics for each exam and and see what fits you. The question topcis should yield insight.
    Additionally the following exam is an OCP
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=&lang=&p_exam_id=1Z0_860
    The other two are OCE, as far as I can tell. Typically more of an area in depth, but OCE's can vary.
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=&lang=&p_exam_id=1Z0_895
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=&lang=&p_exam_id=1Z0_898
    I also notice the earlier exam is J2EE5; the later exams are J2EE6
    Hope this helps a little, but this java stuff is too hard for me and i must stackdump.

  • So confused about the size.... how exactly should i set them?

    i've written codes like:
    JFrame fr = new JFrame ("FR");
    JTabbedPane tp = new JTabbedPane();
    JPanel pa = new JPanel();
    JTextArea ta = new JTextArea;
    fr.add(tp.add(pa.add(ta)));
    Questions:
    1. How do I set the SIZE (dimension) of the GUI (the whole thing)
    2. How do I set the size of the TextArea
    I was thinking:
    setSize = set the default size of a panel/compent
    setMaximumSize = set the maxium area of that panel/compent (that'll allow you to drag to )
    setMinimumSzie = set the smallest window/pan/comp that you can drag to
    i tried fr.setSize or whatever... nothing just work.....!!
    Sorry... im really a beginner and i don't know where can I have a good read about all these Java.awt objects... JPanel/Frame/tabbedPanel/TextArea/button/watever.... sooo many and so easy to be confused....
    sorry i about the poor english... hope someone can help me out....
    thanks!

    Some helpful resources in the tutorial:
    Trail: Creating a GUI with JFC/Swing
    1 - Lesson: Using Swing Components
    a) - A Visual Index to the Swing Components
    b) - Using Top-Level Containers
    2 - Lesson: Laying Out Components Within a Container
    For the JFrame or other top-level container we use the "setSize" method.
    For JTextArea the api recommends we set the rows and columns to provide size information for the parent layout manager. For example - "new JTextArea(6, 18)"
    Some layout managers, such as FlowLayout and GridBagLayout will use the preferredSize for sizing components so you can use the "setPreferredSize" method (in Swing and in j2se 1.5+ AWT).

  • Confused about the "To" box in email ap

    I keep seeing this little gray square that has the letters "To" inside it every time I scroll through my e-mails. What exactly does this mean? I'm rather confused. I also noticed that sometimes when I tap on e-mails, I get a list of two messages for some reason. What is going on?

    Thank you, but what about the multiple e-mails I'm pulling up upon tapping on one e-mail? The mail app seems to thing that I want to see related e-mail; is this what it's doing?

  • Common misconceptions about the role of IT?

    Snufykat wrote:
    If it plugs in to the wall it is IT's responsibility, common misconception.
    You mean the coffee pot isn't IT's responsibility. :)

    With the breath of responsibilities rolled into the job description of an IT pro, it's common for non-IT colleagues to lack a true understanding of what IT is there for.I'm trying to find out about some of the common misconceptions regarding the role of IT within organizations. Can you help shed some light on the following?What odd requests clearly outside your scope of work have you received?Are there any recurring themes in helpdesk tickets that are out of your scope of work/responsibility?Is there anything you must consistently remind your non-IT colleagues about regarding the scope of your role?What isa part of your role that most people have no idea about?Any other fun tidbits on this topic you'd like to share?Thank you in advance for your insight!
    This topic first appeared in the Spiceworks Community

  • Confused about the new Creative Cloud

    Dear all,
    Since I read adout the new Creative Cloud I am confused about what is going to happen to my license for Adobe Lightroom. Are they going to still maintain the desktop applications as well or will I have to pay for a yearly license if I want to use the new versions of Lightroom?
    I am a casual photographer and I love using Lighroom for my pictures but I don't think that paying for a yearly license because I am not spending a lot of time editing pictures.
    Can someone clarify this for me?
    Many thanks,
    Lucian

    DrLucian wrote:
    I am a casual photographer and I love using Lighroom for my pictures but I don't think that paying for a yearly license because I am not spending a lot of time editing pictures.
    The CC is geared towards Pro users, schools etc. LR spans both Pro and casual users. So from what I can garner Lightroom will stay as it is for the next iteration at least. I quoted that bit as my opinion is that that is the very reason why Lightroom will be available outside the cloud with a cloud version available with intergration features with the rest of the CC suite.

Maybe you are looking for

  • Missing IN or OUT parameter at index

    Hi, I have the following usecase. I have a lookup view object and defined a view criteria on that VO such that there is no bind variables only literal variables are specified. On another VO I defined view accessors and on one of the attributes I defi

  • Why do i have my wife's contacts in my phone?, why do i have my wife's contacts in my phone?

    i activated my iphone 5 and all of my wife's contacts and apps are in my phone. we share an account and im listed as a 2nd line but this wasnt happening with my previous iphone

  • How to define size of targeted window, need help...

    It's been a while and I'm a dummy, I can't remember how to define the size of a targeted window. <a href=" http://web.ocp.org/products/<?php echo $node['pmid']; ?>.jpg" target="_blank"> Want it to pop up at like 200 height by 150 width.

  • Mysterious photo in Account ID

    How can I find the path to the photo assigned to my account id? I can't seem to find it in any of my photo files. I'm not sure how it got assigned to the account, I was playing around with photobooth the other day and when one of the photos mysteriou

  • N73: Using music for ring-tones

    I can set a music track to be my default ring-tone. How can I select a music track to be the ring-tone for particular contacts? How do I include my stored music in the list of available ring-tones? Echo