My view on EJBs

http://www.greengiraffesolutions.blogspot.com/

Elaborate reply: I agree that EJBs are unnecessarily condemned for various reasons which you have cited. They are, in fact, pretty good in a fair number of situations which require a robust and scalable architecture. However, your view on Spring equivalence -
I can't see a better alternative to J2EE/EJB. People say use Hibernate. The persistence machanism is simpler than EJBs. Fine, but what are you going to use for transactions, security, scalability and directory service (ie. JNDI)? You could cobble together something in Spring and then use "bits" of J2EE like JTA and JMS. But that sounds much messier and harder to maintain than using J2EE/EJB outright.
is very premature because you don't seem to have researched the other part. The statement is pretty biased. I do agree that I found EJBs simpler than Hibernate but that may be because my EJB book has a good explanation of all the concepts. shrug Well, I recently found a well-written book on Hibernate and the author is a regular on the forum. The book has some good reviews. Let's see if that gives me a better idea of Hibernate and how it could be an alternative to persistence (and also how simple / complex it is).
Spring as a framework has a neat (not cobbled up) and pretty flexible and it does not attempt to eliminate the place of EJBs. I use EJBs with Spring in my present project and all I could say is that Spring has a good architecture in itself. It saves me the time of writing the framework components and truly reuse other technologies (including EJBs, web services, ...).
And finally, was the intent of the article to target the millions of developers who could not handle complexity rather than the technology itself? ;)
I would partially agree that EJB has been mostly discarded because most developers like to get away from complexities and they find EJB complex. Some do find it simple. The future EJB specifications are aiming at reducing complexity and improving the efficiency [I can't comment much because I haven't been into EJB 3 specifications yet].

Similar Messages

  • EJB Finder View Links and CMR

    Hi,
    Can someone please give me some input on the following warning in the JDeveloper online help!
    "Warning: You cannot create an EJB finder view link that expresses the same relationship as a CMR."
    I'm new to EJB, BC4J and JDeveloper. I created container managed entity beans with local interfaces only to represent my data and relationships. No problems with the mapping so far.
    To test the beans I used Session Facades with remote interfaces and build a sample test client.
    Now I thought I could create EJB Entity Facades, EJB Finder View Objects, EJB Finder View Links and EJB Application Modules to make use of the BC4J framework in order to speed up programming clients (JSP and JClient).
    So I've started studying the JDeveloper online help (which seems to be very useful) and found the above mentioned warning.
    Well, better a warning than nothing at all, but some more explanations would have been even better.
    Is there no need to use view links with CMR?
    How to achieve the same functionality (synchronizing two view objects in a master-detail-relationship) with CMR?
    Do you know any examples? I couldn't find any examples using EJB entity facades in the "sample code" area on OTN.
    Any comments about other (better) architectures are also welcome. Would it be better to use BMP entity beans in conjunction with BC4J?
    Many thanks for your help!
    Regards,
    Eric

    Steven,
    thank you for your reply and suggestions - I'll count on that. If I find time I'll read this book. It seems to be very interesting.
    For educational purposes I'd like to look at both persistence implementation strategies. I agree that it looks definitly easier to use entity objects. Certainly it's also performancewise a better choice.
    Anyhow, could you give me some useful tips for cmp entity beans and finder view objects?
    Is there something which works completely different if I use BC4J on top of it?
    How to implement a master-detail relationship in JClient (Swing) for example?
    What about writing an ejbfinder which doesn't return all, but all data where the foreign key is equal to a parameter passed to the finder method and use this as the source for a detail view object. This could be the primary key of the selected master. Well, I don't know whether this is doable. But that's what comes to my mind spontaneously.
    Would this be a solution? I'm still thinking about the aforementioned warning in the online help regarding view links.
    I guess the problem is that the foreign key is not part of the entity bean as it's not a cmp-field. Instead you have accessor methods to retrieve a related object or a collection of objects.
    I'm sure my questions are not too complicated to answer. It's only hard for a beginner to get an overview.
    I'm quite confident that I'll manage this if I give my best and get some help from knowledgeable people like you Steven.
    Regards,
    Eric

  • Creating Entitybeans from Database-Views with Sun Applicationserver 8.1

    Hello,
    I�m implementing a databaseapplication with J2EE and Sun AppServer 8.1. Now I actually don�t want to use the database-tables directly. Instead I want to use views, because then the structure of the underlying table doesn�t matter. Only the view needs to be modified.
    Is it possible to use Entitybeans with views? Or is it only possible to use EJBs with tables?
    If it is possible please be so kind to give an example or explain how. I tried the capture-schema - Approach but there are no views in the capturefile. Please help!
    Thank you!
    Gregor

    You should be able to use views with EJBs, but as you correctly realized, you need to get them into your dbschema file first. Try specifying the view names as parameters to the table arguments in the capture schema tool, or try the UI for schema capture in NetBeans or Studio.

  • Why all the conspiracy against EJBs?

    Hi,
    I see a lot of people (within our organization) claiming EJBs are heavy weight, while Spring is lightweight. And they hate EJBs as if it was the worst sin committed in enterprise Java. I have pretty much been a Spring and Hibernate developer for the past 1.5 years.
    But on various blogs I saw positive views of EJB 3.0. So I tried building simple crud stuff using it. I found it surprisingly simpler to develop in than Spring. So, what exactly is the overhead caused by EJB 3.0 which Spring+Hibernate do not suffer from?
    To put it more precisely, how do the following two cases differ to make EJB heavier than Spring?
    EJB 3.0
    1. Stateless EJBs managed by Java EE container.
    2. EntityManager injected by container (Glassfish creates another instance of the bean with new EM instance to handle concurrent requests to same bean).
    3. Container managed transactions.
    4. Accessed using Local interface.
    5. Injected using EJB 3.0 annotations.
    Spring
    1. Singleton beans managed by Spring.
    2. A thread-safe proxy of EntityManager injected by Spring.
    3. Spring managed transactions.
    4. Accessed using Local interface.
    5. Injected using Spring XML.

    Completely agree (though I'm admittedly biased). Much of the negative perception comes from pre - EJB 3.0. Also want to point out that we're building on the success of EJB 3.0 to further simplify the programming model and add a number of long-requested features in EJB 3.1 (http://jcp.org/en/jsr/detail?id=318) To name a few :
    -- Optional Local interfaces so a session bean can be developed using only a bean class
    -- Packaging and deployment directly in a .war without the need of a separate ejb-jar
    -- Singleton session beans
    -- Application Startup/Shutdown callbacks
    -- Asynchronous session bean invocations
    -- Automatic timer creation and calendar-based timers
    and more...
    See my blog for more details. http://blogs.sun.com/kensaks/
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Noob JSP + Servlet + EJB information for building J2EE simple web project.

    I am new to Java. Covered basics and now jumping into making a simple web project. Project with functionality as below
    1- CSS and Javascript use.
    2- Managing user information (Add, Update, Delete, List)
    3- Login form (Pass username, password and authenticate to create cookie)
    4- Success/failure page.
    That's what I want to make. I have lots of ASP.NET experience so its better to learn from making a project.
    I need help like
    1- Anyone know any open source web project from which I can learn to complete above tasks.
    2- Any good latest J2EE 6 books to cover JSP, Servlts and EJB to make website.
    3- Any video tutorials.
    I am also looking around for the above information.
    Thanks

    pirzada wrote:
    Is it better approach to keep business logic in Beans instead of Servlet/JSP. Looked more robust and clean?Usually you should keep the business logic (i.e. code) away from JSPs. That's how things were done 10 years ago, now we know better. Servlets and JSP can be used together so that a servlet has the business logic and JSPs are just "dumb views".
    EJBs will/can help you when you need to worry about transaction isolation.
    Then there's the dozens of other Java frameworks used for web design (and other purposes).
    And the learning curve is high because it's a huge chunk of different technologies. It'll take you months to get proficient, years to become good.
    But if you just want to whip up some web pages quickly, look at JSP/JSTL and Servlets. That'll give you a clean, but basic approach.

  • Can I deploy the entity bean in different jar files?

    I have an application EAR, which contains several JARs. I have an entity bean A that has relationships with 2 other different entity beans B and C in the same DB. Now, I have to deploy this entity A together with B in AB.jar, and A with C in AC.jar. Both AB.jar and AC.jar are modules of the same application EAR file. They all use the same data sources to the same database, and named by different <ejb-name>.
    I have no problem with deploying the app to WebLogic 8.1. But the JSP page accessing entity A got errors. Sometime, it got error complaining that the container-generated ejbFindAccount mehtod is abstract.
    My questions are,
    Can an entity bean be defined twice in 2 different jars?
    When container load AB.jar and AC.jar, does it generate the finder methods twice?
    I guess there are some name conflicts going on here. What should I do to avoid it?
    Any comments are very much appreciated.

    Thanks for your answer, but how can I use it in connection with relationships?
    <!-- ********************************************************************** -->
    <!-- Relationship: View to FrameworkUser                                             -->
    <!-- ********************************************************************** -->
    <ejb-relation id="View-FrameworkUser">
         <description></description>
         <ejb-relation-name>View-FrameworkUser</ejb-relation-name>
         <ejb-relationship-role>
              <ejb-relationship-role-name>Views-have-FrameworkUser</ejb-relationship-role-name>
              <multiplicity>Many</multiplicity>
              <relationship-role-source>
                   <ejb-name>View</ejb-name>
              </relationship-role-source>
              <cmr-field>
                   <cmr-field-name>frameworkUser</cmr-field-name><!-#- getter/setter -#->
                   <cmr-field-type>java.util.Collection</cmr-field-type>
              </cmr-field>
         </ejb-relationship-role>
         <!-#- *************** -#->
         <ejb-relationship-role>
              <ejb-relationship-role-name>FrameworkUser-has-Views</ejb-relationship-role-name>
              <multiplicity>One</multiplicity>
              <relationship-role-source>
                   <!-#- *******REFERENCE******** -#->
                   <ejb-name>ejb_foo_jar2_ejb.jar#FrameworkUser</ejb-name>
                   <!-#- *******REFERENCE******** -#->
              </relationship-role-source>
         </ejb-relationship-role>
    </ejb-relation>
    ...this obviously doesn't work...
    Do I have to write a new <entity> where I define the referenced entity?

  • Problem with Database diagram

    Not exactly a newbie but not a pro,
    Started getting this error when dragging tables from the connections folder to a database diagram. Instead of the "Specify Location" dialog I am getting a "Create as " dialog with
    Business Components Entity Objects
    Business Components Read Only View Objects
    EJB 3.0 Entities
    Java Classes (TopLink persistence)
    as choices with a message that "Some of the objects you have selected can be used to create related objects. Choose the precise set of objects you want to appear on your diagram.
    All selections end in the error.
    Any help appreciated.
    Performing action Visual Properties...[ from oracle.modeler.addin.ModelerEditor ]
    java.lang.NullPointerException
    o.jbo.dt.bcmodeler.bridge.Utils.findOrCreatePackage(Utils.java:187)
    o.jbo.dt.bcmodeler.dragdrop.DBTableSubDropHandler.createJboObjects(DBTableSubDropHandler.java:57)
    o.jbo.dt.bcmodeler.dragdrop.BaseSubDropHandler.dropObjects(BaseSubDropHandler.java:88)
    o.diagram.framework.dragdrop.handler.DelegateChooserDropHandler.dropSelected(DelegateChooserDropHandler.java:386)
    o.modeler.dnd.ModelerTCDropHandler.access$001(ModelerTCDropHandler.java:69)
    o.modeler.dnd.ModelerTCDropHandler$3.run(ModelerTCDropHandler.java:288)
    o.modeler.dif.GraphicAdder.addImpl(GraphicAdder.java:387)
    o.modeler.dif.GraphicAdder.addAndLayoutImpl(GraphicAdder.java:372)
    o.modeler.dif.GraphicAdder.addSelectAndLayout(GraphicAdder.java:348)
    o.modeler.dnd.ModelerTCDropHandler.dropSelected(ModelerTCDropHandler.java:284)
    o.diagram.framework.dragdrop.handler.DelegateChooserDropHandler.drop(DelegateChooserDropHandler.java:150)
    o.diagram.framework.dragdrop.DefaultDropPlugin.drop(DefaultDropPlugin.java:115)
    o.modeler.dnd.ModelerDropPlugin.drop(ModelerDropPlugin.java:100)
    o.diagram.framework.dragdrop.DropTargetHelper.drop(DropTargetHelper.java:188)
    o.diagram.framework.dragdrop.ManagerViewDragAndDropController$MyDropTargetListener.drop(ManagerViewDragAndDropController.java:802)
    j.a.dnd.DropTarget.drop(DropTarget.java:434)
    sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
    sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)
    sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)
    sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
    j.a.Component.dispatchEventImpl(Component.java:4487)
    j.a.Container.dispatchEventImpl(Container.java:2099)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    j.a.LightweightDispatcher.processDropTargetEvent(Container.java:4312)
    j.a.LightweightDispatcher.dispatchEvent(Container.java:4163)
    j.a.Container.dispatchEventImpl(Container.java:2085)
    j.a.Window.dispatchEventImpl(Window.java:2478)
    j.a.Component.dispatchEvent(Component.java:4460)
    j.a.EventQueue.dispatchEvent(EventQueue.java:599)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)

    I saw this problem and I know the solution.
    Delete your Database Connection.
    Then recreate your database connection via Application Navigator...
    Application Resources | Connections | Right Click | New Connection | Database.
    Related thread...
    Re: Oracle JDeveloper 11g Handbook: A Guide to Fusion Web Development

  • Using content mgmt in app built by domain configurator

    I'm trying to get the content management piece to work using the portal app that
    is built when the domain configurator is used. I have a portal application that
    is working, but if I try to use the <pz:contentQuery id="docs" contentHome="<=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
    query="<%=sQuery%>" /> tag it does not work (there is an "Exception raised while
    creating Advisor".
    I looked at the console and I get the following error when viewing the EJB Descriptor
    for document: Error getting attribute on MBean

    Worked like a charm - thank you!
    "Peter Laird" <[email protected]> wrote:
    >
    Heidi,
    Look at http://edocs/wlp/docs70/relnotes/relnotes.htm#292355 and look
    at the info
    for CR079828. I think this will explain your problem and the workaround.
    PJL
    "Heidi Wagner" <[email protected]> wrote:
    I'm trying to get the content management piece to work using the portal
    app that
    is built when the domain configurator is used. I have a portal application
    that
    is working, but if I try to use the <pz:contentQuery id="docs" contentHome="<=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
    query="<%=sQuery%>" /> tag it does not work (there is an "Exceptionraised
    while
    creating Advisor".
    I looked at the console and I get the following error when viewing the
    EJB Descriptor
    for document: Error getting attribute on MBean

  • MVC (I'm gonna get it right this time)

    When I started my project, I didn't even know what Model-View-Controller was. Now it's all to clear that my app is totally convoluted because I didn't use it. So I want to get it ABSOLUTELY right this time. I'm hoping to get a better idea of the responsibilities of each part
    the closest thing to my project would be a midi sequencer.
    What I know,
    the model objects should contain all the data of where notes appear, velocities, tracks etc.
    The view contains the code to draw to the screen and interpret user input.
    What I want to know
    � How to split responsibilities between the view and the controller?
    � Should a list of the currently selected notes be stored in the view or controller?
    � When the user clicks and drags some selected notes, What should the message from view to controller be?
    ie "clicked and draged" or "change pitch of selected notes" or "change pitch of these specific notes????
    � Should the view remember all the notes on a track or just the ones currently in view?
    � Which part should do the reading/sending of notes the controller or the model?
    Obviously the view objects shouldn't be as "stupid" as my computer monitor, but I'm still a bit confused... can anyone shed some light on the subject or provide some good reading? all the examples I see use simple 3 button apps which aren't very educational in terms of concepts
    thanks all,
    -matt
    ps(I wont be using the included midi sequencer objects)
    Edited by: Mat on Nov 7, 2007 2:55 PM

    Your question requires a whole session on MVC pattern but to summarize the explanation to understand it practically, here are the components and where they fit in MVC.
    Database - Model
    JSP - View
    Java/EJB/etc - Controller
    Lets take an example for the above 3:
    You have a user registration page, once the user enters his details, they will be validated and stored into a database table.
    So the user registration page will be our JSP page and will be the view, this JSP page will invoke the controller which is nothing but a java class that handles or validates the data inserted by the user on the JSP page. This controller will then insert this data into the database table. Once it is successfully inserted, the controller java class will send a message to another JSP which will again display that message to the end user.
    So this is how MVC works.
    I hope this helps you a bit.
    Choicest Regards
    Amit Singh Rathore
    www.proamit.com

  • BusinessDelate & ServiceLocator

    Hi,
    I just started reading a bit about BusinessDelegate pattern and I am wondering whether it is still being used with ejb3.0. Besides providing abstraction layer to the session facade some of the benefits of using a delegate was to cache EJBHome, or to provide client with the byteCode for the serialized ejb Handles and to abstract ejb/rmi exception from the client code.
    Is this pattern still applicable to ejb3.0 since now we don't use ejbHome, ejb/rmi exceptions are not visible and you have dependency injection. In ejb3.0 is the approach of serializing ebj handle still viable?
    Thanks for your help, I am new to both ejb2/ejb3.0.
    Thanks,

    There is less need for the BusinessDelegate and EJB 2.x Home view within EJB 3.0. The easiest
    approach is to simply inject or lookup a reference to the session bean remote business interface
    within the client.
    Handle functionality is one case where you would need to fall back on the 2.x Home view. If
    you need to persist the remote ejb reference itself there's no way to do that with the EJB 3.0
    remote business view.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • HELP!  How to Add JNDI name in Entity Bean

    I am a student who doing a simple J2EE project . I met a problem
    according to the books,In J2EE RI (Appserver 8) when I click the " Sun-specific-Settings" button it will show a windows which i can give the JNDI name, it does work in the session Bean, but in entity bean, I just can change the Bean name. there is no row that i can set up the JNDI name. ( I use local home and component interfaces)
    another question is when i do verify, I find a error, that something wrong in my sun-ejb-jar.xml file. I think that file in the ****.ear file. i try to change or overwrite it in the deployment toolkit, but it is warned that i can not do that. What can i do to fix that problem
    Hope somebody can help me. sorry about the english, i am a chinese studying in UK

    hi
    i am also new to ejb but will try to answer ur question
    JNDI name....
    I dont know how u are doing but try this
    select the bean on the left pane and thengo to "Sun Specific Settings" There are 2 views here "EJB settings" and "CMP database". Likewise how ever u go to the Sun Specific Settings Check if it has more than one view
    I am also having a verify error
    For [ EntityCMP#ejb-jar-ic.jar#EmployeeBean ]
    Error: Exception [ JDO74033: Cannot deploy application 'EntityCMP' module 'ejb-jar-ic' with CMP beans: cmp-resource is not defined for this module. The minimum requirement for a cmp-resource is to specify the jndi-name of a jdbc-resource or a persistence-manager-factory-resource to be used with the beans. ] while initializing JDOCodeGenerator. Please check your descriptors and mapping files for consistency
    I am not able to come over this. this is a CMP bean i am doing. But it gets deployed and works just fine.
    Cheers

  • RMI in a mission critical app?

    hi, we are evaluating the best way to implement some distributed apps in java (using swing), one of which is an health care system (the administrative part), as it could be deployed in various branches of the same hospital, we would like to know if rmi is the best approach to this kind of app, or if ejbs could be a better one considering the performance issues associated tipically with it.
    we are considering to get a maximum user load of about 200 simultaneous people, so maybe ejb couldn't offer a big advantage in this point.
    thanks in advance for your time, any help would be greatly appreciated.

    This is rather like asking whether it is pefereable to have baked potatoes or glass dinner plates at a dinner function.
    RMI and EJB are technologies that address different parts of the problem. RMI is about communicating between the client and the server, and EJB is about how the server is implemented. When communicating with EJBs one is more or less required to use a variant of RMI, RMI-IIOP, thought the differences between the two are minor from the perspective of the application developer.
    As an aside, I continue to be of the view that EJB is a solution looking fo a problem.
    Sylvia.

  • Limiting In-app content by country

    Can you select/restrict a product available for in-app purchase by country? So for example, I would like to sell licensed content inside my app. That licensed content may not be available for sale in a particular country due to local regulations, copyrights or other restrictions. Is this possible without withdrawing the whole app from a specific country?
    The only way I could think might work was to create a unique version of the app for the spcific country and load different products into the in-app store. But that would be highly complicated to maintain.

    Worked like a charm - thank you!
    "Peter Laird" <[email protected]> wrote:
    >
    Heidi,
    Look at http://edocs/wlp/docs70/relnotes/relnotes.htm#292355 and look
    at the info
    for CR079828. I think this will explain your problem and the workaround.
    PJL
    "Heidi Wagner" <[email protected]> wrote:
    I'm trying to get the content management piece to work using the portal
    app that
    is built when the domain configurator is used. I have a portal application
    that
    is working, but if I try to use the <pz:contentQuery id="docs" contentHome="<=ContentHelper.DEF_DOCUMENT_MANAGER_HOME%>"
    query="<%=sQuery%>" /> tag it does not work (there is an "Exceptionraised
    while
    creating Advisor".
    I looked at the console and I get the following error when viewing the
    EJB Descriptor
    for document: Error getting attribute on MBean

  • MDB vs Simple class

    hi
    what is the difference between a message consumer that is implemented using simple java class and one implemented using message driven bean?
    thanks
    jj

    sujana28,
    I am able to successfully test my JMS configuration, but when I tried to use an MDB to receive Topic messages, it never receives the message. My MDBModule.ejbgrpx is below. Any idea what I may be missing?
    Thanks,
    -David
    <?xml version="1.0" encoding="UTF-8"?>
    <descriptors>
    <ejb-jar.xml extralocation="" timestamp="1049917410294"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
        <display-name>MDBTestEJB</display-name>
        <enterprise-beans>
            <message-driven>
                <display-name>Enterprise1</display-name>
                <ejb-name>AssayCountMessageBean</ejb-name>
                <ejb-class>com.abbott.cls.cpr.ejb.mdb.AssayCountMessageBean</ejb-class>
                <transaction-type>Container</transaction-type>
                <message-driven-destination>
                    <destination-type>javax.jms.Topic</destination-type>
                    <subscription-durability>NonDurable</subscription-durability>
                </message-driven-destination>
            </message-driven>
        </enterprise-beans>
        <assembly-descriptor>
            <container-transaction>
                <method>
                    <ejb-name>AssayCountMessageBean</ejb-name>
                    <method-name>*</method-name>
                </method>
                <trans-attribute>Required</trans-attribute>
            </container-transaction>
        </assembly-descriptor>
        <ejb-client-jar>MDBTestEJBClient</ejb-client-jar>
    </ejb-jar>]]></ejb-jar.xml>
    <ejb-borland.xml extralocation="" timestamp="1049917410294"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Borland Software Corporation//DTD Enterprise JavaBeans 2.0//EN" "http://www.borland.com/devsupport/appserver/dtds/ejb-jar_2_0-borland.dtd">
    <ejb-jar>
        <enterprise-beans>
            <message-driven>
                <ejb-name>AssayCountMessageBean</ejb-name>
                <message-driven-destination-name>com.abbott.cls.AssayTopic</message-driven-destination-name>
                <connection-factory-name>com.abbott.cls.JMSConnectionFactory</connection-factory-name>
                <pool>
                    <max-size>1000</max-size>
                    <init-size>20</init-size>
                    <wait-timeout>0</wait-timeout>
                </pool>
                <property>
                    <prop-name>ejb-designer-id</prop-name>
                    <prop-type>String</prop-type>
                    <prop-value>AssayCountMessageBean</prop-value>
                </property>
                <property>
                    <prop-name>jms-polling-interval-seconds</prop-name>
                    <prop-type>String</prop-type>
                    <prop-value>5</prop-value>
                </property>
            </message-driven>
        </enterprise-beans>
        <authorization-domain />
        <assembly-descriptor />
    </ejb-jar>]]></ejb-borland.xml>
    <ejb-modeler-layout.xml extralocation="" timestamp="1049909466953"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <layout>
      <view>
        <name>Default</name>
        <ejb>
          <name>AssayCountMessageBean</name>
          <x>26</x>
          <y>75</y>
          <width>189</width>
          <height>114</height>
        </ejb>
      </view>
    </layout>]]></ejb-modeler-layout.xml>
    <weblogic-cmp-extras.xml extralocation="" timestamp="1049909466953"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <weblogic-rdbms-jar />]]></weblogic-cmp-extras.xml>
    <weblogic-ejb-jar.xml extralocation="" timestamp="1049921285871"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN' 'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
        <weblogic-enterprise-bean>
            <ejb-name>AssayCountMessageBean</ejb-name>
            <message-driven-descriptor>
                <pool>
                    <max-beans-in-free-pool>1000</max-beans-in-free-pool>
                    <initial-beans-in-free-pool>20</initial-beans-in-free-pool>
                </pool>
                <destination-jndi-name>com.abbott.cls.AssayTopic</destination-jndi-name>
                <connection-factory-jndi-name>com.abbott.cls.JMSConnectionFactory</connection-factory-jndi-name>
                <jms-polling-interval-seconds>5</jms-polling-interval-seconds>
            </message-driven-descriptor>
        </weblogic-enterprise-bean>
    </weblogic-ejb-jar>]]></weblogic-ejb-jar.xml>
    </descriptors>

  • Database Views with Entity EJBs

    Is it possible to use Weblogic Workshop to create a CMP entity EJB on an Oracle database view for a Weblogic 8.1 server?
    Is there special configuration I need to do for either the Oracle or Weblogic side to accomplish this?
    Thanks.
    Tania

    I can manually create the EJB, an it builds just
    fine, but when I go to deploy it, I get the following
    error:
    [EJB:011076]Unable to deploy the EJB
    'AssortmentMerchandise' because the databas
    e table 'K_BA01.BAV_ASRT_CLUSTR_DAT' is not
    accessible. Please ensure that this
    table exists and is accessible.
    The view is on the same datasource that I have
    successfully created all of my other entity EJBs
    (from tables).
    I can select data from the view using JDBC and the
    same datasource that I am trying to associate the EJB
    to.
    Any ideas what might be wrong with my view?Are you using synonyms or aliases? I would double check those...
    Log in using same username and password as weblogic and try a simple query:
    select * from K_BA01.BAV_ASRT_CLUSTR_DAT

Maybe you are looking for

  • Imac g5 will not boot past apple logo

    Two weeks ago it started up perfect with no problems , last night i turn it on , it's pixelated and will not go past the apple logo , i reset the pram, i made sure it was running on the OS , i tried to boot of of disk warrior ,nothing worked. I start

  • I can't install Flash Builder.How should I do?

    Here is error message: Exit Code: 6 Please see specific errors below for troubleshooting.For example,  ERROR: DW030 ...   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 1 error(s)   --------

  • [ODBC Driver Manager] Data source name not found and no default driver spec

    Hi, I am working with the following program. The same program is working with JBOSS but not with Tomcat-5. I am using MS-Access. now. Please Help me. import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; public cla

  • Softproof: some icc profiles not available

    I downloaded icc profiles from a fine art print website and installed them. In LR4 only 2 show up. I can't find the other ones even after multiple installs. What am I doing wrong? Or are the profiles corrupt? I'm on W7 64. Here is the link to the icc

  • Events have me stumped

    I'm a flex noob and have been stuck on this one problem for hours and still haven't found a solution - any suggestions? My application includes a custom component (canvas container with 10 comboboxes). I populate each of the comboboxes with data I co