EJB 3.0 vs old version EJB

Hi all,
EJB 3.0 is getting popular because of the Dependency Injection which greatly reduce the usage of XML.
Therefore, I have a question here.
In Ejb 3.0, how many XML will we apply?
1. Session Bean - ?
2. Entity Bean - ?
3. Message Driven Bean - ?
As my practice now,
Session Bean i don't use any XML and it works.
For entity Bean, I failed to do so ( that's why i suspect persistence XML might needed here, but where to place it?)
- Problem is at below screen.
09:24:53,843 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:jar=EjbCalculator.jar,name=daoCalculatorBean,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=resource/conJava
ObjectName: jboss.j2ee:ear=Calculator.ear,jar=EjbCalculator.jar,name=daoCalculatorBean,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:unitName=resource/conJava
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:unitName=resource/conJava
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.j2ee:jar=EjbCalculator.jar,name=daoCalculatorBean,service=EJB3
    jboss.j2ee:ear=Calculator.ear,jar=EjbCalculator.jar,name=daoCalculatorBean,service=EJB3Haven't try for Message Driven Bean (Hope to get info from your all =P )
Please kindly share your experience here. =)

Can anyone kindly advice??

Similar Messages

  • How do I use the J2EE EJB container with the FULL version of Tomcat

    The version of Tomcat integrated in J2EE is really cut-down. I want to be able to run the standard Tomcat 4.0.1 to give the full JSP facilities, but I also want to be able to use EJBs from the J2EE.
    If I copy the j2ee.jar, j2ee-ri-svc.jar and home interface to the "lib" directory they do not appear to be loaded, as I cannot resolve the javax.ejb.EJBHome.class.
    If I copy the same library into the application's WEB-INF/lib directory then the naming jaxax.naming.InitialContext gives a context without the java:/comp/env entries.
    I do not want to use another EJB contrainer after having got used to deploying apps with J2EE.
    If anyone can help I would be greatful, and post a thanks message with duke dollars!
    Chris
    10 Duke Dollars available

    I have done it before and basically it is not that difficult, but in practice not that easy ;-)
    All you need to do is see Tomcat as a client to the EJBs. This means deploying the application in two parts: the webapp as a WAR to Tomcat 4.0.1, and the EJBs to J2EE. Both running and started independantly.
    This ofcourse means that the WAR file must have the stubs of the EJBs to be able to communicate and access to j2ee.jar to get the InitialContext.
    So:
    - compile the EJBs
    - create the EAR (containing only EJBs)
    - deploy the EAR
    - copy the stubs to the libs directory of the webapp
    - compile the webapp
    - create the WAR
    - deploy the WAR
    Off you go.
    Tom

  • Sample weblogic-ejb-jar.xml for Resource-ref EJB 3.0

    I am trying to create an MDB that can be re-used under different names.
    @MessageDriven(description = "An MDB that transfers messages from one Queue to another", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") })
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    public class TransferMdb implements MessageListener {
    private static final Logger LOG = Logger.getLogger(TransferMdb.class);
    @Resource(name = "jms/connfactory")
    private ConnectionFactory connectionFactory;
    @Resource(name = "jms/targetDestination")
    private Queue targetDestination;
    <ejb-jar version="3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <message-driven>
    <ejb-name>TransferMdb</ejb-name>
    <ejb-class>TransferMdb</ejb-class>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>TransferMdb</ejb-name>
    <message-driven-descriptor>
    <pool>
    <max-beans-in-free-pool>200</max-beans-in-free-pool>
    <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>test_queue</destination-jndi-name>
    <transaction-descriptor>
    <trans-timeout-seconds>20</trans-timeout-seconds>
    </transaction-descriptor>
    </message-driven-descriptor>
    <reference-descriptor>
    <resource-description>
    <res-ref-name>jms/connectionfactory</res-ref-name>
    <jndi-name>connectionfactory</jndi-name>
    </resource-description>
    <resource-description>
    <res-ref-name>jms/targetDestination</res-ref-name>
    <jndi-name>reply_queue</jndi-name>
    </resource-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    However when I deploy the above, I get exceptions such as:
    problem: cvc-complex-type.2.4a: Expected elements 'initial-context-factory@http://www.bea.com/ns/weblogic/weblogic-ejb-jar provider-url@http://www.bea.com/ns/weblogic/weblogic-ejb-jar connection-factory-jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jms-polling-interval-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jms-client-id@http://www.bea.com/ns/weblogic/weblogic-ejb-jar generate-unique-jms-client-id@http://www.bea.com/ns/weblogic/weblogic-ejb-jar durable-subscription-deletion@http://www.bea.com/ns/weblogic/weblogic-ejb-jar max-messages-in-transaction@http://www.bea.com/ns/weblogic/weblogic-ejb-jar distributed-destination-connection@http://www.bea.com/ns/weblogic/weblogic-ejb-jar use81-style-polling@http://www.bea.com/ns/weblogic/weblogic-ejb-jar init-suspend-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar max-suspend-seconds@http://www.bea.com/ns/weblogic/weblogic-ejb-jar security-plugin@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' instead of 'transaction-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' here in element message-driven-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar:<null>
    problem: cvc-complex-type.2.4a: Expected elements 'transaction-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar iiop-security-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar resource-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar resource-env-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar ejb-reference-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar service-reference-description@http://www.bea.com/ns/weblogic/weblogic-ejb-jar enable-call-by-reference@http://www.bea.com/ns/weblogic/weblogic-ejb-jar network-access-point@http://www.bea.com/ns/weblogic/weblogic-ejb-jar clients-on-same-server@http://www.bea.com/ns/weblogic/weblogic-ejb-jar run-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar create-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar remove-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar passivate-as-principal-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar local-jndi-name@http://www.bea.com/ns/weblogic/weblogic-ejb-jar dispatch-policy@http://www.bea.com/ns/weblogic/weblogic-ejb-jar remote-client-timeout@http://www.bea.com/ns/weblogic/weblogic-ejb-jar stick-to-first-server@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' instead of 'reference-descriptor@http://www.bea.com/ns/weblogic/weblogic-ejb-jar' here in element weblogic-enterprise-bean@http://www.bea.com/ns/weblogic/weblogic-ejb-jar:<null>
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:234)
    at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:221)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:146)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    Truncated. see log file for complete stacktrace
    I am clearly missing items in the weblogic-ejb-jar.xml. If anyone has a sample or tips, that would be awesome as a starting point.

    Those tags just declare that you are using our CMP provider and that
    your descriptor is in META-INF/weblogic-cmp-rdbms-jar.xml.
    FWIW, you might also want to check out EJBGen. It tends to keep more up
    to date with WLS than xdoclet.
    -- Rob
    Gen wrote:
    I am using xdoclets to generate descriptor file weblogic-ejb-jar.xml
    for a BMP entity bean. Xdoclet is generating the descriptor file
    alright, but is putting the following extra tags. This happens even
    for samples which come with the download, so my tags in java file are
    not wrong.
    My question is, are the extra tags below harmless, or should I
    manually go to each desciptor file and remove them?
    Thanks.
    ----------- EXTRA TAGS GENERATED START ---------
    persistence> <persistence-type>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-type>
    <persistence-use>
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version>
    </persistence-use>
    </persistence>
    ----------- EXTRA TAGS GENERATED END ---------
    ----------- TAGS I PUT IN JAVA CLASS START --------
    * @ejb:bean name="com.ejb.entity.Customer"
    * jndi-name="com.ejb.entity.CustomerHome"
    * view-type="remote"
    * type="BMP"
    * primkey-field="com.ejb.entity.CustomerPK"
    * reentrant="false"
    * @weblogic:cache
    * max-beans-in-cache="1000"
    * read-timeout-seconds="900"
    * concurrency-strategy="ReadOnly"
    ----------- TAGS I PUT IN JAVA CLASS END --------

  • HT4970 does any one else miss the month at a glance that the old version of reminders had? I wish Apple would bring that feature back.

    Does anyone else miss the month-at-a-glance feature from the old version of Reminders app? I wish Apple would bring that feature back. It made it very convenient to schedule for the future.

    You  can send feedback and let Apple know
    http://www.apple.com/feedback/

  • How do i remove the songs from my iphone used to be easy with old version of itunes just unticked them but cant seem to find it any where on new version

    how do i remove the songs from my iphone used to be easy with old version of itunes just unticked them but cant seem to find it any where on new version

    how do i remove the songs from my iphone used to be easy with old version of itunes just unticked them but cant seem to find it any where on new version

  • Updated .oam file appears as old version when placed in Muse

    I changed the background color of my Animate composition from black to white. I republished it and deleted the old version, but when I place the .oam file in my Muse site, it's the old version with a black background.
    I tried renaming the Animate project and saving both it and the Publish folder in a new place. Same result. I tried saving the Muse site with a new name and in a new place in case it was a cache problem. Same result.
    This is with the newest 2014 versions of both applications.

    Hi,
    I had the same problem. I reported it to Adobe but the problem (among many others) has still to be resolved. I wonder when the next release will be 'cos this one has been a disaster
    David

  • Hi! I'm just having a little trouble when it comes to battery charging of my iPhone 5 with its new iOS 7! It doesn't indicates that the battery is fully charge unlike the old version of iOS! They said it should be pulsating but it's not

    Hi! I'm just having a little trouble when it comes to battery charging of my iPhone 5 with its new iOS 7! It doesn't indicates that the battery is fully charge unlike the old version of iOS! I already read some reviews and discussion about this. They said that the lightning bolt should pulsate when charging but it's not!

    Thanks for the replies. It took a while not hearing anything so thought I was alone. I have done many of the suggestions already. The key here is that it occurs on both phones with apps, and phones still packaged in a box.
    A Genius Bar supervisor also checked his Verizon data usage log and found the same 6 hour incremental use. Suprisingly, he did not express much intrigue over that. Maybe he did, but did not show it.
    I think the 6 hour incremental usage is the main issue here. I spoke with Verizon (again) and they confirmed that all they do is log exactly when the phone connected to the tower and used data. The time it records is when the usage started. I also found out that the time recorded is GMT.
    What is using data, unsolicited, every 6 hours?
    Why does it change?
    Why does it only happen on the iPhone 5 series and not the 4?
    Since no one from Apple seems to be chiming in on this, and I have not received the promised calls from Apple tech support that the Genius Bar staff said I was suppose to receive, it is starting to feel like something is being swept under the rug.
    I woke up the other day with another thought ... What application would use such large amounts of data? Well ... music, video, sound and pictures of course. Well ... what would someone set automatically that is of any use to them? hmmm ... video, pictures, sound. Is the iPhone 5 succeptible to snooping? Can an app be buried in the IOS that automatically turns on video and sound recording, and send it somewhere ... every 6 hours? Chilling. I noted that the smallest data usage is during the night when nothing is going on, then it peaks during the day. The Genius Bar tech and I looked at each other when I drew this sine wave graph on the log print outs during an appointment ...

  • How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activ

    How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP?  I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.

    The new serial number is to the right of your chosen download.

  • I like Firefox browser when I use my Yahoo mail reverts to "oreiginal/old " version from latest version and this does not bhappen with Exploer or Chrome

    Using Firefox browser I can convert to the newest version of Yahoo mail and for this conversion it works satisfactorily. If I close Yahoo mail , either going to another site or closing the Browser, next time I open Yahoo mail it has reverted to old version (occasionally this does not happen but 80% of time it reverts). This does not happen with Explorer or Chrome. I have ensured updated Firefox. Tried Yahoo Ask for answer but no luck.I like Firefox Browser.

    hi ghrobert39, it is an issue with the new yahoo layout,see :
    http://answers.yahoo.com/question/index;_ylt=Ah_K4HUp4sat2HACnDjjfLniDn1G;_ylv=3?qid=20121213000810AAUYfSE
    http://answers.yahoo.com/question/index;_ylt=AkaQjlpKRxhYzrk5rgeMkvviDn1G;_ylv=3?qid=20121212164112AASaQcC
    [http://help.yahoo.com/kb/index?locale=en_US&y=PROD_ACCT&page=content&id=SLN8821 Overview of the new Yahoo! Mail design]
    i hope this is the answer : http://answers.yahoo.com/question/index;_ylt=AjpJXHmHQWc_qTtD86_2imfiDn1G;_ylv=3?qid=20121213051550AAsOJ6g
    thank you

  • Can anyone tell me why I can't update my itunes on my p.c?  I get a message saying: the feature you are trying to use is on a net work resource that is unavailable.   Tried uploading from websit, get msg can't delete old version.

    I need some serious help!
    I have been trying to update my itunes to version 10.7 and my Quicktime to version 7.7.3!
    Having no luck!
    So I tried selecting repair software on all of the Apple applications and they seem to have worked.
    Then I selected look for upgrades on my itunes (Help) main screen
    It said their were two updates -   Itunes  10.7   and  Quicktime 7.7.3
    I selected the option to update and the .exe files were loaded to my  Windows 7 p.c.
    However after part of the Itune update completed a message came up on the screen
    saying   "The feature you are trying to use is on a net work resource that is unavailable.
    O.k.
    I then went to the itunes website and tried again.  This time it checked my system the process seemed to be working and all of a sudden I got a message saying my old itunes programs could not be removed and or deleted.  So I tried to delete my old version myself without success it won't let me.
    I've run out of options and am not completely fustrated.
    I have itunes on my desktop, my iphone4, my ipod and in my car. 
    Anyone have any clue how I can resolve this problem?
    Chris Lane
    <Email Edited by Host>

    However after part of the Itune update completed a message came up on the screen
    saying   "The feature you are trying to use is on a net work resource that is unavailable.
    Which particular .msi file does the message go on to say cannot be found? (Several different .msi files might be mentioned in this context: itunes.msi, bonjour.msi, AppleSoftwareUpdate.msi, etc.)

  • I did an upgrade from 4.0 to the new 6.0 about 5 months ago. After the upgrade installed it said reboot system to apply upgrade. Now it wont open and keeps telling me that the older version needs to shut down the computer and upgrade the old version.

    Look at original question. When I did the download to the new 6.0 it said everything was fine. Then when I tried to use the firefox again it said an older version needed to shut down my computer so that it could upgrade the old version. It wont let me do anything and all it says is shut down computer so old version can upgrade. It wont let me open the program or remove it or anything. PLease help me with this. I really like Firefox but this has been going on for 5 months now and I still dont get answers from you. How do I fix this???

    Look at original question. When I did the download to the new 6.0 it said everything was fine. Then when I tried to use the firefox again it said an older version needed to shut down my computer so that it could upgrade the old version. It wont let me do anything and all it says is shut down computer so old version can upgrade. It wont let me open the program or remove it or anything. PLease help me with this. I really like Firefox but this has been going on for 5 months now and I still dont get answers from you. How do I fix this???

  • I need to uninstall my old version on itunes and install a new version, i cant uninstall from Programs and Features, a message keeps coming up saying 'The feature you are trying to use is on a network resource that is unavailable.' Can anyone help please

    I have tried to just install the new version of itunes from the apple website, it looks like it downloads but after 5 minutes at the end of the install it says 'old version of itunes cannot be uninstalled, please contact support.'?  
    Is there anyway I can remove the version of itunes from my computer? i dont mind if i lose the music/content I already have on my itunes. I need to do this as i have just received the iphone 4 and need to install the newest version of itunes.
    Many thanks

    I need to uninstall my old version on itunes and install a new version, i cant uninstall from Programs and Features, a message keeps coming up saying 'The feature you are trying to use is on a network resource that is unavailable.'
    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • I am getting a default message when trying to open up itunes after downloading old version. why?

    I have downloaded an old version of itunes (9.2.1) because i cannot stand the new version 11. At the end of downloading it, i tried to open it up and a yellow triangle fault popped up and told me it could not be opened because a new version created it. I have tried to download 3 old versions this afternoon. I have an old version on my computer still and I love it. I am trying to put an old, very user friendly version on my girlfriend's computer, but am having severe issues in doing so. Please advise!

    See this post. To roll back to iTunes 9.2.1 you'll need a version of your database that was active back then. Alternatively you could delete the library file and let iTunes build a new one.
    tt2

  • How do i uninstall CS2  -  the old version doesn't open on my macbook pro i am reinstalling an updated version

    how do i uninstall CS2  -  the old version doesn't open on my macbook pro i am reinstalling an updated version

    You simply trash it.
    Mylenium

  • I downloaded the new Firefox for my Mac and it won't open. I deleted the old version. What am I doing wrong?

    I can't get firefox to open now that I erased the old version and tried to install the new version (6.0.2) on my Mac. I was hoping I could update it and have my bookmarks and everything intact, but when I drag the firefox symbol into my dock it won't do anything after downloading. I have put it in the trash to delete it and re-downloaded it, but nothing seems to help. On top of it, the fan on my computer goes on when I am trying to get firefox to work ????
    Thanks!
    Ty

    Hi,
    as I’m using a Mac so I have download the file with .dmg extension, which is the one that currently doesn’t work.
    I also tried to download the .exe one, but as expected when I double click on it, I have an error message that confirmed Windows is not supported.
    Ale

Maybe you are looking for

  • Adobe Media Encoder (AME) Freezes Machine in Windows 8.1

    I'm running adobe CC on win 8.1 and every time I render a video from After Effects to AME the whole machine freezes and I would have to restart at that time...Any one running through the same issue?? Any solutions?? Thanks TK

  • How to keep the connection alive?

    Hello! Happy new year! I have to write an HTTP server that comunicates with many clients in the same time,but keeps the connection with a client open if there the corresponding header is Keep-Alive. I have used threads,and I've tested my program in t

  • Dual core or Quad Core

    I know elements will run on a "Dual core or Quad Core" system, but will it use the "Dual core or Quad Core" feature

  • Javadoc and inner classes

    So, I have an inner class that has some simple setter methods. The class is declared: private class ClassName...and the setter, like this:          * sets the comment string          * @param comment, the comment to assign         public void setComm

  • DV7 HD upgrade to Seagate SS Hybrid - Will it work?

    I have a failed HD on my DV7t-6100 quad-core. I was looking at purchasing this Seagate Momentus XT 750GB 7200RPM 2.5 inch solid state hybrid drive to replace the factory 750gb HD. I have a few questions about this drive: 1 - Will it be a direct plug-