EJB Converter App

I am trying to learn about EJB so I downloaded this tutorial (http://www.netbeans.org/kb/41/j2ee-tut/) and created the sample application ConverterApp which converts currencies to and from US dollars to Japanese Yen.
It uses NetBeans 5.0 and works fine but I have a question:
The main functionality of the program seems to be contained in an xml file called build-impl.xml.
This file creates the directories, compiles the code, creates the war files etc.
However there are a lot of other xml files in the project that NetBeans creates
and I am wondering what exactly do they all do.
Are they all required or could this i]build-impl.xml file be compiled with Ant and still work?

You need to specify the web client's enterprise bean reference, as described here:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/EJB5.html#wp80031
Redeploy the WAR after setting the reference and try again.
-Ian Evans

Similar Messages

  • Converter app in Nokia Asha 308

    Hey,
    Just checked my phone and realised that there is no converter app (Length, Temperature etc) that used to be on other old S40 models. So should we download it seperately? Any link?
    Solved!
    Go to Solution.

    Hello, Ahemdabad. Just to verify, you're unable to update the Converter app. Is that right? Is there any error message when trying to update it? Are you also using a Nokia Asha 308? If not, tell us the exact phone model you're using. BTW, make sure that you have an active and stable internet connection for you to update the app. Try accessing any website using the phone's browser to verify the stability of the connection. 
    We'll wait for your response. 

  • Remove Default EJB/JSP Apps.

    Hi,
    I am wondering rather there are steps to remove the Default EJB/JSP Apps deployed in default installation.
    I only need to run servelt and web caches.
    Thanks,
    Stephen

    Weblogic 5.1 uses an architecture that is very unique. Consider it the
    exception, not the rule. You can NOT support a single deployment binary
    with WL 5.1 and other servers.
    The Weblogic 6.0 architecture is much closer to the others, and
    significantly better than the reference implementation's architecture. In
    6.0 you should be able to make a single app (EAR) that deploys to other
    servers as well.
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "martin" <[email protected]> wrote in message
    news:3a6f070e$[email protected]..
    Hi,
    I have written an application that has EJBs, and JSPs that invoke the
    EJBs. It works on WebLogic 5.1.
    I want to package this application up in such a way that it can be
    deployed on any kind of J2EE application server.
    Using JBoss, I discovered that the JSPs by default do not have access to
    the interfaces supplied in the EJBs. i.e. I have to make copies of the
    EJB's home and remote interfaces, and put them where the JSP files can
    find them.
    This messing about was not neccessary with WebLogic. WebLogic knew to look
    in the EJB JAR files.
    So my question : For compatibility, should I create multiple copies of my
    EJB's interfaces, or is WebLogic's developer-friendly behaviour the
    correct one?
    Thanks, Martin.

  • Calling EJB from app client

    Hello, everybody,
    I'm very new at EJB and I'm trying to learn it.
    I have created Enterprise Application using Netbeans IDE, I have EJB and APP client. What I want is to connect to my MySql database and get some info from table.
    For e.g. Login and Password.
    How can I call EJB from my client app which connects to my database and gets information I need?

    What server you are using?
    if you use jboss AS ,here is a simple Main class how to connect EJB and access ejb methods:
    package com.david.ejb.client;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.rmi.PortableRemoteObject;
    import com.david.ejb.domain.Person;
    import com.david.ejb.domain.PersonRemote;
    public class Main {
         public static void main(String[] args) {
              try {
                   Context ctx = getInitialContext();
                   Object obj = ctx.lookup("PersonSessionRemote/remote");
                PersonRemote pr=(PersonRemote)PortableRemoteObject.narrow(obj, PersonRemote.class);
                Person p=new Person();
                p.setName("david");
                pr.addPerson(p);
                pr.findPerson(1);
                   // System.out.print(br.find(pk).getAuthor_name());
              } catch (Exception ex) {
                   ex.printStackTrace();
         private static Context getInitialContext() throws NamingException {
              Properties p = new Properties();
              p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
              p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
              p.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
              return new InitialContext(p);
    }Person is ant @Entity and PersonRemote is remote interfaces, to connect database you have to make datasource file at jboss-4.2.3.GA\server\default\deploy
    simle mysql-ds.xml looks like this:
    datasources>
       <local-tx-datasource>
          <jndi-name>some name</jndi-name>
          <connection-url>jdbc:mysql://localhost:3306/dbname</connection-url>
          <driver-class>com.mysql.jdbc.Driver</driver-class>
          <user-name>root</user-name>
          <password>root password</password>
          <min-pool-size>5</min-pool-size>
          <max-pool-size>100</max-pool-size>
          <idle-timeout-minutes>15</idle-timeout-minutes>
          <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
          <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
       </local-tx-datasource>
    </datasources>also at resources/META-INF directory you must have persistence.xml like this
    <persistence>
         <persistence-unit name="SimpleEjb">
              <jta-data-source>java:/some name</jta-data-source>
              <properties>
                   <property name="hibernate.hbm2ddl.auto" value="update" />
                   <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
                   <property name="hibernate.show_sql" value="true"/>
                   <property name="hibernate.format_sql" value="true"/>
              </properties>
         </persistence-unit>
    </persistence>

  • Where can I find thsi: j2eetutorial/examples/src/ejb/converter

    Hi all,
    First I want thank you for your time.
    Second I have downloaded J2EE but not found the following file.
    j2eetutorial/examples/src/ejb/converter
    Where is it? Sun says it will be generated when I unpack the software. No! it did not.
    Thank you again
    JamesL

    Have u also set up docs which comes with j2ee server? After docs re installed in same dir as J2EE_HOME u can find examples from directory:
    J2ee_HOME/docs/guide/ejb/examples/converter
    ok?

  • Video Converter app that can convert more than one video at a time?

    Hi everyone,
    I;m after an app that i can convert my videos with. I want a free app where i can add multiple videos and have them convert one after the other? does anyone know of a free app that i can get?
    I know theres smartconverter (free) but you cant add multiple videos and i dont want to pay $10 for pro!
    can someone please HELP Thanks

    The MPEG Streamclip app can batch process videos. It can even convert up to  4 videos at the same time.
    http://www.squared5.com/
    It's free...
    Just drop as many videos as you like into the batch window.

  • Need to convert App Store from Swiss to uk?

    I need to convert the App Store from Swiss to uk?

    Change iTunes Store Country on an iDevice
    1. Tap Settings;
    2. Tap iTunes & App Stores;
    3. Tap View Apple ID;
    4. Enter your user name and password;
    5. Tap Country/Region;
    6. Tap Change Country/Region;
    7. Select the region where you will be located;
    8. Tap Done.
    Also, see How to Change Your iTunes Store Account Location | eHow.com.

  • I have bought un-useful app which is an image converter app. It did not mention unsupported formats can I get my money back?

    Dear Apple support team
    I have just bought an application, it is an image converter, but it did not mention that it doesn't support a specified image formats. When I bought it I could not get any use of it because it does not dupport NTF format.
    Can I get my money back?!
    Thank you,
    Regards.

    Refunds -
    All sales are final. the App Store is not a try it and return it situation.
    Apple sometimes gives a one-time per account refund. If this is the app which you wish to use your possible one refund with use the Report a Problem link in the emailed receipt that you receive on the purchase in 24 to 48 hours to ask for the refund.
    If your purchase was in the last few weeks you may also use this link to report a problem;
    https://reportaproblem.apple.com

  • BPM Reporting Activity content extraction in ejb/enterprise app

    Hello BPM experts,
    I have a running BPM in our production system. And there are about 6000 users
    who use the process.
    The process has a reporting activity that collects all the possible failuers,
    and successful event traces.
    Now we want to build a  controller app that uses jsps performing:
    1.  show all the data collected by the reporting activity objects.
    2. show a list of all the process instances those have a status of suspended
    3. and can cancel the processes by selection.
    We plan to build the  app based on ejbs those are accessed by jsps to
    perform the 3 tasks mentioned above.
    The reason that we want to build these apps is because the administrators
    are system administrators and do not want to logon the NWAdmin gui.
    So, guys, my questions are where do I find BPM apis, and other support
    / sap nw bpm dependency libraries / jar files ??
    I highly appreciate your help and cooperations for this :-)
    Best Regards,
    Ajeet Phadnis

    There are many tutorials available:
    USING BPM JAVA API’s
    Customize Your SAP NetWeaver BPM through APIs
    How to generate a process report using BPM API, CE 7.3 in webdynpro?
    SAP Help Links:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606e0ec9-53c7-2f10-8aaf-e9e7354850f0?overridelayout=t…
    Building a Task Worklist with the BPM API - Modeling Processes with Process Composer - SAP Library
    Providing Value Help Using BPM API - Modeling Processes with Process Composer - SAP Library
    Using Substitution Rules with the BPM API - Modeling Processes with Process Composer - SAP Library
    Building an Administration UI with the BPM API - Modeling Processes with Process Composer - SAP Library
    Canceling a Process with the BPM API (New) - What's New in SAP NetWeaver 7.3 EHP1 (Release Notes) - SAP Library
    Analytics Public API for Business Users - Modeling Processes with Process Composer - SAP Library
    Custom WDJ Application to process Tasks using BPM JAVA API in NWDS 7.3
    All the best buddy

  • Updating my Adobe ID converted apps to trials...

    After going to the Adobe Conference this year and receiving a year subscription to the Creative Cloud under my Adobe ID, things seemed ok until I updated my ID (also updated my password in ref. to the security breach) to another email. Unfortunately it appears that was an older Adobe ID of mine and now Creative Cloud is converting my status to 'TRIAL' on my apps. What is my fix for this, as my year's access to non-trial apps is now being cut short. Do I have to return to my standard CS5 apps and leave the Creative Cloud?

    Small bump here. I tried changing my AdobeID back to the original at time of activation with no luck. Any help here would be great. Thanks.

  • Proper Converting Apps To Use For PC Users...

    Hello all, I decided to create this thread because of all the content on converting being all over the place. This thread should only be used to describe how people converted videos, how they got it onto the ipod, and the programs they used. Some advice: I use Videora's Ipod Converter (http://www.videora.com/en-us/Converter/iPod/). It works perfectly and flawlessly with fast speeds. Use the SP/320x240/768kbps Stereo/128kbps option. If you need help, just repost here and I'll get back to you.

    People all over the forums report QT Pro taking hours just for about 30mb and that is unacceptable.
    H.264 compression does take significantly longer than MPEG-4 compression. QT Pro can do both. I ran a quick test to compare export times. Here's what I got...
    Source video: foo.avi, 640x480, 82 sec play time
    "Movie to iPod": foo.m4v, 320x240, 318 sec encode time, 5712 KB file size, good quality but gets pixelated in some motion sequences.
    "Movie to MPEG-4": foo.mp4, 320x240, 67 sec, 3030 KB file size, very good quality and does not get pixelated in the same motion sequences.
    So, I guess it depends on what's more important to you. The MPEG-4 output was about 4.7x faster than the H.264 output for the same source video. But, the H.264 video was almost half the size with better quality. Which is best for you? That's up to you.
    Also, the h.264 format is said to not work properly on the ipod vid
    From my tests, I haven't been able to get H.264 to work inside of an MOV container. It encodes fine, but iTunes won't let it on the video iPod. This is contrary to the iPod spec, which does say that H.264 is supported in an MOV container. It may be that I haven't found the right combination of settings for MOV. However, we have been able to get H.264 video to work inside of an MP4 container using the "Movie to MPEG-4" option in QT Pro. Also, the "Movie to iPod" option in QT Pro creates an M4V (not MP4) file with H.264 video and this definitely works on the iPod. So, I'm guessing the reports you're hearing are from people who tried MOV with H.264. The iPod can definitely play H.264 video, it just comes down to choosing a format and compression settings which work with the iPod. If you stray from the "Movie to iPod" option, you probably will create a bunch of videos that won't work. So, if you go this route, use a short duration source movie, because it takes quite a bit of trial and error to find the settings that actually work.
    If you read the forums all over
    Yep. I've read 'em. Lots of views out there. I'm trying to contribute actual test results, instead of opinions and speculation. I'm sure there's going to be lots of ways to get video on the iPod, and by all means use whatever method works best for you.

  • EJB + ADF app

    Hi.
    I'm using JDeveloper 11.1.2.2.0 and I'm developing "normal" adf application. Inside this application there is also project named Interface which uses EJB3 tchnology to communicate with outer world and outer world can communicate with my app.
    If I call one method of my stateless session bean for first time (after deployment/restart of server) it works fine. Next time I want to execute that method I get error like:
    Exception [EclipseLink-7197] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.ValidationException Exception Description: Null or zero primary key encountered in unit of work clone [my.entity], primary key [null]. Set descriptors IdValidation or the "eclipselink.id-validation" property.This happens when I do particualar query (which is ok, for sure).
    If I just restart server and reexecute same method and works fine.
    For me it looks like there is caching enabled. Or something like that. I have also tried to disable caching with put property inside persistence.xml like:
    <property name="eclipselink.query-results-cache" value="false"/>Without luck.
    Does anyone experience similar problems?
    Any ideas?
    Regards

    Set the entity class as
    @Entity
    @Cacheable(false)
    public class entity{
    }

  • Can't enter a negative number in Q5 unit converter app (part of calculator app)

    I wanted to conver a temperature of -20F to celcius and was stymied by being unable to enter a minus sign. I tried every conceivable key combination without success. This bug wasn't fixed in the recent update of the calculator app.

    i was able to add in -40 on my Z10 and Q10 for F in temp conversion
    sorry i dont have a Q5 to test it on
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Trouble looking up ejb (sun app server 8.1)

    Hi,
    I am using the below code to lookup a stateless session ejb
    Hashtable env = new Hashtable();
    env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://127.0.0.1:3700");
    javax.naming.Context c = new javax.naming.InitialContext(env);
    Object remote = c.lookup("java:comp/env/ejb/TestBean");
    com.mycomp.testing.ejb.session.TestRemoteHome rv = (com.mycomp.testing.ejb.session.TestRemoteHome) javax.rmi.PortableRemoteObject.narrow(remote, com.mycomp.testing.ejb.session.TestRemoteHome.class);I debug through the lines (using sun java studio enterprise), and find that I get a null pointer exception on the 4th line (while getting the instance of initial context). Is it a problem with the iiop port i am using ?
    Thanks,
    Aju

    See: http://forum.java.sun.com/thread.jspa?threadID=765320&tstart=0

  • What video converter app for mac would you suggest to convert videos for ipad mini?

    Just recently got myself ipad mini and want to fill it up with movies. i have some but they have wrong format. And i don't know which format is the best for ipad mini(

    iPad Mini supports .m4v, .mov, .mp4, and some of .avi files with Motion JPEG (M-JPEG) codec.
    Generally, you can choose to convert files to MP4 format using utilities like Handbrake, Format Factory, etc. They are all free.
    I have get a PS3 and iPad 2 years ago, sometimes I need to convert files to AVI for my PS3, so I choose a professional converter called AppGeeker. (while handbrake only output mkv and mp4 format, and FF reduces amount of quality of video)
    it works marvelosly for me.

Maybe you are looking for

  • Issue in RTF Template

    Hi All, Could you please solve the following requirement: Requirement: In my RTF Template for the fisrst page we are displaying parameters of the report. In the second page we have 2 tables one is for statement and other one is for Receipt. My requir

  • 30 g ipod video has malfuntioned

    k i really need some help because i love my ipod but it has malfuntioned i cant do ANYTHING it says its on hold but it isnt and when i hook it up to my computer it says "one of the USB devices attached to this computer has malfuntioned and windows wi

  • Debug and ANT

    I just discovered the power of ANT and i'm quite enthusiast about it. I found a bit obscure a thing, though.. I managed to receive traces in the ANT output but i need a deeper debug environment, of course. Is there a way to use the breakpoints and th

  • Adobe Premiere Elements 11-number of chapters?

    How many chapters (chapter markers) can be created in Adobe Premiere Elements 11?

  • I live in Ukraine, I want to unlock my iPhone that I do with this link?

    Hi Andre, Thanks for contacting Apple. Your email reached the Find My iPhone Activation Lock team. We help customers verify their products that have an Activation Lock in place. To get help for the issue you're experiencing, you'll need to contact Ap