J2EE multimedia apps

Hi all.
Thought this forum part suits best for this :)
I have a somehow awkward assignment - write a thesis under the title "Programming multimedia applications in J2EE". The topic seems awkward at glance, but (or so I hope) all depens on attitude. I thought about focusing on some sort of media streaming technologies etc. (aka YouTube like sites' engines). However I am not 100% positive on this.
Could you please suggest what way can I look at this topic, what could I write about (mind me, I do not want to focus on presentation layer too much, though I will definitely mention JSP + some J2SE oriented APIs like JMF).
I am open to all suggestion and help. Also I need to write an example APP so could you pelase suggest something (simple-ish, don't want to spend 6 months or it - or don't have those 6 months to be honest)? :)
Best regards,
Adam

Hi,
Can i suggest you download the latest and greatest tutorial. there isonly the bookstore directory in the new bundles so I would work through it.
make sure in the old tutorial that you ran the package-bookstore target in the bookstore directory as this creates the bookstore.jar

Similar Messages

  • How to install j2ee sun app server 8.0 in debain linux

    hi guys
    i am new to linux and i have downloaded the j2ee sun app server 8.0(linuxversion) from sun.java
    in sun.java documentation says first we have to change the mode to excecutable
    then he is saying to do this
    1. To run the installation program that uses a graphical interface, at the command prompt type the name of the bundle file at the command prompt.
    2.To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option.
    after chmod + x <bundle name >
    the next step i am not able to do it
    what to do next
    any suggestions
    regards
    sandeep

    Hi rlubke
    Thanks for the suggestion
    1.Change the permission of the bundle file so that you have execute access:
    chmod +x <bundle-file-name>
    2. To run the installation program that uses a graphical interface, at the command prompt type the name of the bundle file at the command prompt.
    3.To run the installation program that uses the command-line interface, at the command prompt type the name of the bundle file followed by the -console option.
    Step 1. After chmod + x <bundle name >
    Step 2. sun/appserver/# <bundle name>
    bash: <bundle name>: command not found
    Step 3. sun/appserver# <bundle name>
    bash: <bundle name#>: command not found
    any suggestions
    i have done what u have said now
    Step 1. After chmod + x <bundle name >
    Step 2. sun/appserver/#./ <bundle name>
    Checking available disk space....
    Checking Java(TM) 2 Runtime Environment...
    Extracting Java(TM) 2 Runtime Environment files...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment....
    Error: There are no files requiring installation.
    Deleting Temporary files...
    Step 3. sun/appserver# <bundle name>
    Checking available disk space....
    Checking Java(TM) 2 Runtime Environment...
    Extracting Java(TM) 2 Runtime Environment files...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment....
    Error: There are no files requiring installation.
    Deleting Temporary files...
    this is what happening excatly

  • Cannot Install Multimedia Apps onto MacBook Pro from CS4 Master Collection

    I am trying to install the Master Collection to my MacBook Pro.
    It has an Intel Core 2 Duo processor 2.2GHz
    2GB RAM
    Mac OS 10.5.6
    20GB hard drive space free
    I am installing from a Master Collection license. The serial number is accepted, but when I go to select the components to install, all of the multimedia apps are grayed out. So no After Effects and no Premiere.
    I deselected all other options, and they still aren't available to install.
    Am I doing something wrong, or is this MacBook Pro underpowered?
    Help! Thanks...

    Thanks Rob. Let me break it down:
    * Multicore Intel® processor
    --Yes, it's a Intel Core 2 Duo processor 2.2GHz
    * Mac OS X v10.4.1110.5.4
    --Well, it's 10.5.6 but I don't know if that's causing a problem or if adobe just hasn't updated their spec page. I suspect the latter since it will allow me to install all non-AV applications.
    * Java Runtime Environment 1.5
    --Yes... up to 1.6.0
    * 2GB of RAM
    --Yes
    * 26.3GB of available hard-disk space for installation
    --Yes, although the spec page on the web site for Premiere has a lower value of only 10GB.
    * 1,280x900 display with OpenGL 2.0compatible graphics card
    --Yes. 1440 x 900
    --Graphics card is NVIDIA 8600M GT
    --NVIDIA's site says "Full OpenGL® support, including OpenGL 2.1"
    * Some GPU-accelerated features require graphics support for Shader
    Model 3.0
    --Really shouldn't stop the install, but would not know where to look for this.
    * Dedicated 7200 RPM hard drive for DV and HDV editing; striped
    disk array storage (RAID 0) for HD; SCSI disk subsystem preferred
    --This might be the sticking point. The drive is rated at 5400RPM. But it seems odd that this would stop the install of every AV component. Even if it did, I cannot be the first MacBook Pro user to have this problem. Would adding an external FireWire drive solve the issue? Don't know right now.
    * DVD-ROM drive (SuperDrive required for DVD creation)
    --Yes. SuperDrive
    * Blu-ray burner required for Blu-ray disc creation
    --Not applicable.
    * Core Audiocompatible sound card
    --Not sure how to check this. Wouldn't I need to have, say, "Logic" software to check this? I have listed "Intel High Definition Audio".
    * QuickTime 7.4.5 software
    --Yes. Version 7.5.5
    * Broadband Internet connection required for online services
    --I am not connected to the net during the install, but this shouldn't be the problem.
    So the only potential problem I see is the RPM of my hard drive. Would this prevent the install? Why doesn't the installer just tell me this? Can I hook up an external FireWire drive that's 7200RPM and get this to work?
    Also, could my 10.5.6 be the issue?
    All suggestions are appreciated.

  • GetAccess SSO and WebLogic J2EE Web app

    I have a J2EE web app (servlets/JSPs) running in WLS5.1sp8. I want to use standard
    J2EE declarative security to protect the application and a WLS custom security
    realm to provide authorisation.
    However, I need to use the Entrust getAccess single sign-on infrastructure to
    do the initial user authentication. I was hoping there might be some way to propogate
    the user's getAccess security credentials into the web application so that when
    the user hits a protected web page, they are not prompted to login in again.
    However, Weblogic should call into my custom realm with the getAccess provided
    user name to check that the user has the correct role.
    Anyone have any ideas how/if this is possible?
    Thanks,
    Martin

    That was a good article on how to maintain access levels based on different user roles and i will need it down the lane. Probably, i used a wrong word when i meant 'unauthorized user'.
    Actually, let me rephrase it,
    Here is my issue rephrased,
    1.) My problem is during authentication phase, I want a functionality where a person is redirected to login page by default if he tries to paste URL of some intermediate page of application directly without logging in.
    2.) This would also pop up another question, which would be what is the best practice to maintain a user's info i.e. his login credentials throughout the application (I am just storing his user id along with a flag which says its true.) .
    Right now, the way i do is, in each action after the user logs in, I check for a session attribute which tells if he has logged. Based on this check, I forward to the next page. But, i think its quite redundant and probably not a best practice. Hence, I need some other elegant way of achieving this.

  • [solved] no sound with multimedia apps using Pulseaudio Dummy drive

    It seems audio issues are kindof frequent atm, but I couldn't solve the strange issue using the informations provided in the threads nor the wiki
    Issue:
    One app plays audio just fine: Deadbeef Audio player, but no activity shows up in Pavucontrol while playing.
        Deadbeef uses default Alsa outpput (currently Pulse audio server)
    The other multimedia that I use or tried (mplayer, VLC and paplay test.wav) play files with no sound to be heard. Pavucontrol just shows 'dummy output' activity
    as for mplayer that is the case with default pulse and alsa audio drivers
    Context:
    1/ Recently switched from ALSA to PulseAudio
    Have no  ~/.asoundrc
    2/ First appeared when:
    Installed software updates last week. I lazily hoped it will resolve itself with the next update which it didn't so far. None of the packets I updated had linux|pulse|alsa|sound|audio in its name.
    Another issue appeared at the same time: no software is able to play any media from the DVD drive. The optical drive itself is well recognized whether by 'lsscsi' or /proc/sys/dev/cdrom/info
    3/ PulseAudio did not start today after booting the system
    $ pulseaudio --start
        E: [pulseaudio] main.c: daemon startup failed
    Started OK after commenting "/etc/pulse/default.pa" config line that remap microphone to mono for Skype (as per the Pulseaudio wiki)
    System Audio info:
    $ cat /proc/asound/cards
    0 [PCH ]: HDA-Intel - HDA Intel PCH
    HDA Intel PCH at 0xf7d00000 irq 46
    $ lspci|grep -i audio
    00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    $ aplay -l
    carte 0: PCH [HDA Intel PCH], périphérique 0: ALC892 Analog [ALC892 Analog]
    Sous-périphériques: 1/1
    Sous-périphérique #0: subdevice #0
    carte 0: PCH [HDA Intel PCH], périphérique 1: ALC892 Digital [ALC892 Digital]
    Sous-périphériques: 1/1
    Sous-périphérique #0: subdevice #0
    # fuser -v /dev/snd/*
    /dev/snd/controlC0: kozaki 20121 F.... pulseaudio
    $ cat /proc/asound/modules;
    0 snd_hda_intel
    $ lsmod | grep ^snd;
    snd_hda_codec_realtek 67127 1
    snd_hda_codec_generic 63126 1 snd_hda_codec_realtek
    snd_hda_intel 26327 3
    snd_hda_controller 26727 1 snd_hda_intel
    snd_hda_codec 108552 4 snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
    snd_hwdep 17244 1 snd_hda_codec
    snd_pcm 88487 3 snd_hda_codec,snd_hda_intel,snd_hda_controller
    snd_timer 26614 1 snd_pcm
    snd 69340 13 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
    $ systool -vm relevant_snd_module
    EDIT
    $ systool -vm snd_hda_intel
    Module = "snd_hda_intel"
    Attributes:
    coresize = "26327"
    initsize = "0"
    initstate = "live"
    refcnt = "5"
    taint = ""
    uevent = <store method only>
    Parameters:
    align_buffer_size = "-1"
    bdl_pos_adj = "1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    beep_mode = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    enable_msi = "1"
    enable = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    jackpoll_ms = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    model = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    patch = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    position_fix = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    power_save = "1"
    power_save_controller= "Y"
    probe_mask = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    probe_only = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    single_cmd = "N"
    snoop = "Y"
    Sections:
    .bss = "0xffffffffa0365a80"
    .data = "0xffffffffa0365000"
    .data.unlikely = "0xffffffffa03657d0"
    .exit.text = "0xffffffffa0362930"
    .gnu.linkonce.this_module= "0xffffffffa0365800"
    .init.text = "0xffffffffa0368000"
    .note.gnu.build-id = "0xffffffffa0363000"
    .rodata = "0xffffffffa0363040"
    .rodata.str1.1 = "0xffffffffa0363f02"
    .rodata.str1.8 = "0xffffffffa03642e0"
    .smp_locks = "0xffffffffa0364618"
    .strtab = "0xffffffffa036b508"
    .symtab = "0xffffffffa0369000"
    .text = "0xffffffffa0360000"
    __mcount_loc = "0xffffffffa0364848"
    __param = "0xffffffffa0364628"
    __verbose = "0xffffffffa0365640"
    I guess it might be a rather basic configuration step that I missed and am blind to see. If so, sorry for wasting your time :-/ Hint appreciated.
    Last edited by kozaki (2014-09-01 19:43:16)

    Read how to post correctly to get English output.
    kozaki wrote:$ systool -vm relevant_snd_module;
    Really? What do you think relevant_snd_module is? When you copy something from another thread, maybe it would be wise to read through it first. I tried to explain that there is no relevant_snd_module, it is a hint to the user, yes you, to use the module that is relevant in users case, which often is snd_hda_intel, which again is also mentioned in the other thread. Read it and correct your post accordingly please.
    As for the issue at hand, is module-suspend-on-idle loaded? If so, disable and unload it. Start PA with '-vvvv' switch and post the log here. You might want to try defaulting the configuration for PA, meaning delete your ~/.config/pulse. Does your GPU have a hdmi sound card?
    Check if you can get sound output with PA killed through speaker-test:
    speaker-test -c 8 -t wav -D plug:"dmix:{CARD PCH DEV 0}"
    speaker-test -c 2 -t wav -D plug:"dmix:{CARD PCH DEV 0}"
    Both should work launched in that order at the same time.

  • Proper way to exit with a j2ee java app running in the NW70 j2ee engine

    Hello,
    I am working on migrating an app and it's ear from j2ee 6.20 to 7.0. It deploys okay, but when invoked, the j2ee server restarts. Looking at the part that fails, its trying to create a jco connection, which fails and then it catches the failure and does a stack dump and a System.exit(1). It shuts down and restarts at that point. Is System.exit(1) the proper way to exit a java app that is running within the j2ee engine? If it is, is it possible I am picking up the wrong System.exit and need to use an SAP specific one? I inherited the code, but not the IDE it was written with.
    Thanks,
    Paul D. Chamberlain

    Hi,
    Answered my own question. System.exit(1) should not be used. Return works.
    Paul D. Chamberlain

  • Integrating Digital Signatures into J2EE Web App

    I have a requirement to add digital signature functionality to a J2EE web application. Our customers would like to press a �sign� button on a web page, be prompted to connect their hardware security token (e.g. USB device or smart card), and the signatures stored inside our system for later verification (e.g. in court).
    The main issue I can see is that when using hardware-based tokens the private key can never leave the device, so the device itself does the signing. Whereas our J2EE Web Application has all the code on the app server tier, and the data is located on the database (and in our architecture cannot be exported to client PCs for security reasons).
    Does anyone know of any solutions to this kind of requirement? Any vendor toolkits that allow this? From what I�ve read from researching this subject the pieces are all there but most web-based security solutions only implement application login authentication of one sort or another.

    Hi Tony,
    As of DIAdem 2012 there is no product feature that makes it easier to create a web front end to DIAdem.  You can host DIAdem with a terminal services approach such as Citrix, which will give you all of DIAdem's functionality in a web GUI.  You can also host DIAdem on a cloud server if that's where your data is.
    On final option is that LabVIEW offers a user programmable web server which can make calls to DIAdem via ActiveX.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • J2EE Enterprise App Directory Structure

    Can anyone point me to a resource that descibes the recomended development directory structure for a J2EE app with EJB? MyEclipse create three directories:
    J2EEAppName
    J2EEAppNameEJB
    J2EEAppNameWeb
    But I don't know where to put the shared classes, etc. I want to do it right.. Any help would be greatly appreciated.
    Paul

    For anyone else looking for an answer to the recommended directory structure...
    See this link:
    http://java.sun.com/blueprints/code/projectconventions.html

  • Forms and J2EE on App Server

    This is a very general question or rather request for advice.
    We currently have a system which was converted from rorms / reports 6i client server to forms / reports 10 App server. The system runs off a main forms menu, and obvioulsy the app server converts the menu and all forms into an applet when presenting it to the lient tier.
    Our next aim is to rewrite all the screens and menu in J2EE.
    My question is this: when doing the rewrite, is it possible to let the menu, forms and new J2EE application co-exists on the same system, thereby phasing out forms being replaced by the J2EE applications?

    Hi
    Thanks for the feedback.
    The following article on Oracle probably explains the advantages of Forms to J2EE in a broad overview better than I can: http://www.oracle.com/technology/products/forms/htdocs/10g/FormsJavaSOD.html
    (I only found the article after posting the question by the way.
    Our client is currently running Forms and Reports 10G on Oracle AS 10.1.2. Although Oracle clearly states their commitment to the future of Forms, our client feels that you can't ignore the benefits of J2EE client and middle tier applications with regards to their future business needs (especially with regards to SOA) and ease of integration with other web applications / services belonging to our client and their business partners.
    What is also disconcerting is the fact that only every 2nd version of App Server seems to be released with Forms and Reports services. At the moment our client cannot upgrade to 10.1.3.1 and leverage the EJB3 features due to that App Server version not having Forms and Report Services to my knowledge. Not sure of Oracle's reason for this.
    In the same article above, mention is made of 3rd party tools (like Exodus) from "Forms Migration Partners" which could ease this migration process. I'd be interested to hear from anyone who has used any of these tools and their experiences with them. If this is not the appropriate forum for this, please advise where I can post this question.

  • PAPI client in J2EE (Oracle app server, OC4J)

    Hello,
    We have a problem with using RMI-based PAPI in our J2EE application. Our client code runs fine as a standalone program, but doesn't work when it's used as a part of
    a J2EE application deployed to OC4J. There seems to some incompatibility between the XML parser implementation that Oracle supplies (xmlparserv2.jar) and Oracle's
    BPM Papi client.
    Here are the errors that we're getting:
    [Error] :3:69: <Line 3, Column 69>: XML-20129: (Error) Namespace prefix 'xsi' us
    ed but not declared.
    [Error] :8:33: <Line 8, Column 33>: XML-20129: (Error) Namespace prefix 'xsi' us
    ed but not declared.
    [Error] :10:34: <Line 10, Column 34>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :12:40: <Line 12, Column 40>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :42:43: <Line 42, Column 43>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :44:33: <Line 44, Column 33>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :46:38: <Line 46, Column 38>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :48:35: <Line 48, Column 35>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    Exception in thread "main" java.lang.IllegalArgumentException
    at oracle.xml.jaxp.JXTransformer.setOutputProperty(JXTransformer.java:762)
    at fuego.prefs.engine.storage.EnginePreferencesNode.export(EnginePreferencesNode.java:179)
    at fuego.prefs.engine.EnginePreferences.doExport(EnginePreferences.java:143)
    at fuego.prefs.engine.EnginePreferences.doExport(EnginePreferences.java:134)
    at fuego.directory.project.engine.ProjectEngineAccessor.getEnginePropertiesString(ProjectEngineAccessor.java:137)
    at fuego.directory.project.engine.ProjectEngineAccessor.fetchEngineConfiguration(ProjectEngineAccessor.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at fuego.directory.provider.DirectorySessionImpl$AccessorProxy.invoke(DirectorySessionImpl.java:756)
    at $Proxy5.fetchEngineConfiguration(Unknown Source)
    at fuego.directory.DirEngineConfiguration.fetch(DirEngineConfiguration.java:102)
    at fuego.prefs.engine.storage.EnginePreferencesNode.fetchEngineConfiguration(EnginePreferencesNode.java:112)
    at fuego.prefs.engine.EnginePreferences.initialize(EnginePreferences.java:438)
    at fuego.prefs.engine.EnginePreferences.loadBasePreferences(EnginePreferences.java:220)
    at fuego.papi.impl.ProcessServiceImpl.initializePollingHandledType(ProcessServiceImpl.java:1937)
    at fuego.papi.impl.ProcessServiceImpl.initializeInstanceCache(ProcessServiceImpl.java:1924)
    at fuego.papi.impl.ProcessServiceImpl.<init>(ProcessServiceImpl.java:178)
    at fuego.papi.impl.ProcessServiceFactoryImpl.getOrCreateProcessService(ProcessServiceFactoryImpl.java:127)
    at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:79)
    at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:63)
    at fuego.papi.ProcessService.create(ProcessService.java:335)
    at oasas.wpr.demo.bpm.PapiTest.createProcess(PapiTest.java:36)
    at oasas.wpr.demo.bpm.PapiTest.<init>(PapiTest.java:15)
    at oasas.wpr.demo.bpm.PapiTest.main(PapiTest.java:104)
    The errors above are generated by our standalone client when it runs with xmlparserv2.jar in the classpath. Exactly the same errors are generated by the J2EE app, but we can't remove xmlparserv.jar from OC4J's classpath because it seems to be required by the container itself.
    Please advise if there are any configuration changes that are necessary to have a PAPI client running in Oracle's J2EE environment.
    Thank you in advance,
    Igor

    Hi,
    I only was successful with running the PAPI WS client in OC4J environment, as described here: Re: Error in JAX-WS 2.0 & JDeveloper 10.1.3
    In my case, I copied all jar files from latest Sun's Metro distro and that fixed the problem!
    I also tested the RMI-based PAPI call, but that one still does not work.
    -Igor

  • J2EE Sample Apps -

    Hi Friends,
    I was trying to do sample application provided by J2EE
    "http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html"
    I was stuck at one point. I was doing Java Servlet Technology example, in that book store example example it was told to find the bookstore.jar file and add to deployment tool.
    In step 8.g(below), we are asked to find the bookstore.jar.
    But when i downloaded the examples there was no bookstore.jar. did anybody of you faced smilar think. Please let me know. How to procced.
    Thank You all,
    SriJ2EE.
    ---------------Steps given in J2EE example -----------
    Build and package the bookstore common files as described in Duke�s
    Bookstore Examples (page 103).
    2. In a terminal window, go to <INSTALL>/j2eetutorial14/examples/
    web/bookstore1/.
    3. Run asant build. This target will spawn any necessary compilations and
    copy files to the <INSTALL>/j2eetutorial14/examples/web/
    bookstore1/build/ directory.
    4. Start the Application Server.
    5. Perform all the operations described in Accessing Databases from Web
    Applications (page 104).
    6. Start deploytool.
    7. Create a Web application called bookstore1 by running the New Web
    Component wizard. Select File&#8594;New&#8594;Web Component.
    8. In the New Web Component wizard:
    a. Select the Create New Stand-Alone WAR Module radio button.
    b. In the WAR Location field, enter <INSTALL>/j2eetutorial14/
    examples/web/bookstore1/bookstore1.war.
    c. In the WAR Name field, enter bookstore1.
    d. In the Context Root field, enter /bookstore1.
    e. Click Edit Contents.
    f. In the Edit Archive Contents dialog box, navigate to <INSTALL>/
    j2eetutorial14/examples/web/bookstore1/build/. Select
    errorpage.html, duke.books.gif, and the servlets, database,
    filters, listeners, and util packages. Click Add.
    450 JAVA SERVLET TECHNOLOGY
    g. Add the shared bookstore library. Navigate to <INSTALL>/
    j2eetutorial14/examples/build/web/bookstore/dist/. Select
    bookstore.jar and click Add.
    h. Click OK.
    i. Click Next.
    j. Select the Servlet radio button.
    k. Click Next.
    l. Select BannerServlet from the Servlet Class combo box.
    m.Click Finish.
    ----------------------------------

    Hi,
    Can i suggest you download the latest and greatest tutorial. there isonly the bookstore directory in the new bundles so I would work through it.
    make sure in the old tutorial that you ran the package-bookstore target in the bookstore directory as this creates the bookstore.jar

  • Securing a J2EE web app

    Hi, probably the wrong place to put this but i couldn't find anywhere more suitable :-p
    I've got a web app that i've got secured using a JDBC realm, using web.xml configuration etc and all is well. However I want to limit it so that if a user logs in then no-one can log in again with the same credentials until said user has logged out. Is this possible out of the box with JEE5 or do i have to implement something myself to redirect output.
    Regards
    ARB

    Not sure how 'out the box' you want.
    Tomcat has this feature which can be configured by adding username/password paris to an xml file, I realise Tomcat is not part of the JEE5 bundle but it is 'out the box' and you need a server, right?

  • Data Access control in J2EE technologies/apps

    Hi Guys,
    I am working on a project that requires that i implement a mechanism for controlling data access to the content that is displayed on the pages of a Struts based web application.
    First off to clarify, i am not refering to the ability for different users to log on to a specific page and or view specific pages. That is a different type of access control. I am more interested in the "Data Access" i.e. where multiple users can view the same page but the data that is displayed depend on the data access control privileges they have.
    I am intersted to know of the different approaches/frameworks out there to implementing "data access" control. Is there a framework out there for this kind of thing?
    Im thinking to do this the controls/privileges need to be configured (i.e. data access categories, users etc) somewhere probably in the database. The rules can get quite complicated so im wondering whether there is already a framework that i can use to accomplish this rather than implementing it from scratch.
    Thinking about how it will work, the rules the govern the access are very specific to our business domain so i am not really sure whether it is possible if there is any third party framework that i can use that is very generic and will allow the rules to be configured.
    Thanks

    you are right, access control is very application dependent, and is therefore not a good target to turn into a generic framework.
    In my opinion the king of security frameworks is Spring Security, so you could take a look at that.
    [http://static.springsource.org/spring-security/site/|http://static.springsource.org/spring-security/site/]
    Other than that, I have used a simple setup using Javaserver Faces. I had a user bean with a set of boolean flags indicating the user's capabilities (directly mapped to a database table) and in the components I would have rendered="#{user.userRole}" attributes where necessary, to conditionally switch off elements when the user wasn't allowed to see it, in some cases rendering a readonly view in stead.
    Its a chore to test, but quite easy to maintain and to read IMO.

  • Project Conventions for J2EE Apps Early Access...

    Hi
    I am trying to set up a standardized directory structure for J2EE apps that is flexible enough from a simple webapp to a complex J2EE App with multiple EJB components, WARs...etc..etc...
    For this, I turned to Java Blueprints Guidelines, Project Conventions for Enterprise Applications Early Access 1 posted on the Sun's web site...
    This document states among follwoing that (quote)
    -----(quote)
    These conventions, which the Java BluePrints team has followed with its applications (which can be accessed from http://java.sun.com/blueprints/code/index.html), assume that developers use the Ant tool for building projects. Developers using other build tools may have to make slight modifications to the conventions.
    ----(end quote)
    I have downloaded the latest J2EE SDk which has samples directory containing the famous , Adventure BUilder, Petstore, etc, etc.....But they do not follow project directory structure as outlined in this document...Moreover, I found each app has different project directory structure even for the same functional part..
    1. Are the J2EE sample apps bundeled with J2EE SDK different than the ones available as separate download?
    2. If they are not, where can I download sample apps that demonstrate project conventions outlined in the guidelines document...
    Any comments are welcome...
    Thanks
    zambak

    Hi,
    The project conventions are new and early access version1. So it will be changing a little bit and as a result the apps may get a little out of sync. We are currently switching the apps over to match with the project conventions. For an app that dempnstrates project conventions, please see the adventure builder on java.net at https://adventurebuilder.dev.java.net/
    We are working on a revised version of the project conventions, so your feedback/comments would be highly appreciated.
    -Smitha
    Hi
    I am trying to set up a standardized directory
    structure for J2EE apps that is flexible enough from a
    simple webapp to a complex J2EE App with multiple EJB
    components, WARs...etc..etc...
    For this, I turned to Java Blueprints Guidelines,
    Project Conventions for Enterprise Applications Early
    Access 1 posted on the Sun's web site...
    This document states among follwoing that (quote)
    -----(quote)
    These conventions, which the Java BluePrints team has
    followed with its applications (which can be accessed
    from http://java.sun.com/blueprints/code/index.html),
    assume that developers use the Ant tool for building
    projects. Developers using other build tools may have
    to make slight modifications to the conventions.
    ----(end quote)
    I have downloaded the latest J2EE SDk which has
    samples directory containing the famous , Adventure
    BUilder, Petstore, etc, etc.....But they do not
    follow project directory structure as outlined in this
    document...Moreover, I found each app has
    different project directory structure even for the
    same functional part..
    1. Are the J2EE sample apps bundeled with J2EE SDK
    different than the ones available as separate
    download?
    2. If they are not, where can I download sample apps
    that demonstrate project conventions outlined in the
    guidelines document...
    Any comments are welcome...
    Thanks
    zambak

  • Porting a Workshop app to another J2EE server?

    Hello all. I'm new to WL Workshop and have been reading abou the required Workshop
    Runtime. Is this something that could be ported to another J2EE compliant server?
    I noticed the PageFlow Portability Kit for the page flows... but what about the
    Runtime engine itself?
    Also, does anyone know what is contained in it or how it is deployed. If its as
    simple as a jar that could be moved over that would be nice... but I doubt its
    as simple as that. thanks!

    Blake--
    The "Runtime Engine" that you mention is the Workshop controls
    runtime. Carl Sjogreen addresses portability in a post in this
    newsgroup from 9/24/2003. Instead of rephrasing his comments, I've
    pasted them below and suggest the "Application portability" thread as
    good reading.
    Controls fall into the class of artifacts that can be built using
    Workshop but which are not 100% portable today. This includes controls
    like the Database Control and EJB Control. Remember, though, that
    controls are often abstractions over standard J2EE technologies; in the
    case of these controls for example, the underlying technologies are just
    JDBC Prepared / Callable Statements and existing EJBs.
    The portable version of Page Flows does not support controls, but it
    does support all of the J2EE technologies such as JDBC, JNDI, EJB, and
    so on.
    Hope that helps...
    Eddie
    ::::: Application Portability from 9/24/2003 by Carl Sjogreen
    John --
    Good question. We're constantly pulled between delivering innovation
    and value to our customers and ensuring that the applications we build
    are standards based and portable. Here's what we are doing to address this:
    1) You can always build 100% standard based applications in Workshop
    that are as portable as any other J2EE application. Write Java files,
    use EJBgen to create EJBs, etc.
    2) Where we innovate, we innovate on top of existing standards. Witness
    what we are doing with Pageflows, which is built on top of Struts. As
    Web Services standards mature (JSR 109 in particular) we'll move JWS
    files to support 109 deployment artifacts.
    3) We are aggressively pursuing standardization, portability, and open
    source for innovations we introduce. A few proof points:
    * The key innovations behind JWS files are being standardized as part of
    the Java Community Process in JSR 181. When this standard goes final
    (early next year hopefully) you'll be able to take your JWS files to
    other platforms.
    * We will provide "portability kits". In SP2 (due later this year)
    we'll provide a portability kit so you can take any pageflow file and
    run it on other J2EE containers. This basically includes a set of stand
    alone build tools and the few runtime classes we've added on top of struts.
    * We've open sourced key technologies like XMLBeans. XMLBeans is now
    being incubated as part of the Apache Software Foundation
    (http://xml.apache.org/xmlbeans).
    So I think you'll find that while not everything you build in Workshop
    is 100% portable today, a lot is, and more will be down the road.
    Any questions, please let me know.
    Best,
    -Carl
    Carl Sjogreen
    Group Product Manager
    WebLogic Workshop
    "John Reynolds" <[email protected]> wrote in message
    news:[email protected]...
    Raj,
    Thanks for forwarding this on to your Product Managers.
    Application portability is one of the big selling points for Java, so
    it would be a shame if Bea did not have runtime licenses for deploying
    the workshop runtimes on any J2EE certified app-server. I don't think
    my company has any problems in paying for quality software, but they do
    have problems when the "Write once, run anywhere" Java pledge is broken
    (since that's what sold them on Java vs. .Net in the first place).
    Having said that, I really applaud what Bea has done so far. For
    example, Bea's donation of XmlBeans to Apache was a truly great thing.
    Blake wrote:
    Eddie,
    The "Weblogic Workshop Internals" document also talks about the "Runtime Engine".
    Here is a blurb from the top of the doc: "<contains> a runtime infrastructure
    that supports application features; the runtime consists of J2EE components deployed
    on WebLogic Server "
    Later in the doc they mention some EJB's such as the SynchBean and AsyncBean which
    utilize JMS. This is the info I need to provide my client if they decide to port
    to another app server. We now know that the webapp is portable... its the J2EE
    components that is the final piece of the puzzle. thanks!
    -Blake

Maybe you are looking for

  • How do I get rid of a virus on my MAC

    I downloaded this "movie player" it let me watch the movie, but right after I got a bunch of pop up ads and it opens new tabs up with different ads, help!

  • Multiple JVMs on Solaris 10 (x64)

    I just downloaded the new 1.6 JDK, but when I went to install it I became confused. /usr/java is a symbolic link to jdk/jdk1.5.0_11, which is itself a symbolic link to /usr/jdk/instances/jdk1.5.0. Then, to further muddy the waters, /usr/j2se is actua

  • Transferring Elements 8 to a new computer

    I'm wanting to move my Elements 8 program frrom my old PC (XL) to a new laptop (Vista).   But I bought the program online, so don't have the DVD, and the program doesn't seem to be available online a nymore.   What should I do?

  • Programmatically change GUI controls/ prevent event firing

    Hi, I often construct GUIs where user input in one control automatically changes other controls. A (simple) example: A GUI contains controls A and B. When the user changes control A the value of control B has to be adjusted, and the other way round.

  • BIB-9009 Oracle OLAP n'a pas pu créer le curseur.

    hi every body, i have this message error when i trying to visualised my cubes in AWM 11G R2 BIB-9009 Oracle OLAP n'a pas pu créer le curseur. Erreur sur le serveur Classe d'erreurs : Echec dExpress Descriptions des erreurs du serveur : DPR : impossib