Applications and beans

O.K, I've been reading on bean architecture, and am very confused.
I have a small application, and have a Crystal Reports JavaBean.
Can I incorporate this Report Viewer into my app?
In other words, can I use a JavaBean in my Swing Application?
Thanx
sfav

I am trying to use the Reportviewerbean in java. I cant get it to show up. I dont know java that well so i am learning on the fly. I figured all i would have to do to show the viewer is do this:
private void initComponents() {
reportViewerBean1 = new com.crystaldecisions.ReportViewer.ReportViewerBean();
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
pack();
is there more i need to add to be able to see the viewer?

Similar Messages

  • Can anyone help me know the difference b/w application and web server?

    i tried reading about application and web servers. it appears to me to be the same. please do help me to differentiate. Thanks :-)

    An application server hosts business logic components for an application. A web server is an application which accepts HTTP requests.
    An application server may come packaged with a web server.
    A web server is a very simple process. It's HTTP daemon process that listens for incoming requests over HTTP protocol on a specified port usually, 80. For simple, static web pages the web server has the built in logic to serve them but for a complex operation(say read from database and display some records), it routes the URL to a component like the servlet engine....
    An application server is a much broader term. For example the servlet may need to invoke certain business logic components like beans or activex dlls. The server that hosts these components is the application server.
    Hope you are clear now.

  • Closing an application and web browser at same time at runtime

    Does anyone have any ideas of code that addresses that problem of closes the web browser at runtime when the application closes?
    I've been converted about 140+ forms and 300+ reports to 10g from 6i client/server and I've got all the forms converted but now that I've got it up on a website at runtime, I'm documenting all these application issues that I just haven't had time to research.
    It sounded like I do write some Java Beans, based on some threads I've read. But I didn't fully understand.
    Any help is appreciated.
    Regards,
    Chris

    Ok, I was able to do it when I hard-coded to the http://servername:port in the web.show_document. My question is: I have a windows and Linux (Development and Test server). All 3 are different servers. How can I make it to where I don't have to hard-code the server name. I've put the html page in the ORACLE_HOME/forms/java folder. The application and web browser closes just fine when I hard-code the server name in the web.show_document command. Is there a way I can get around this where I don't have to hard-code the name, but still access it from the same path on all 3 servers?
    web.show_document(http://servername:port/forms/java/closewebbrowser.htm, -self)

  • Error message on restart: Failed to register application management beans

    We are receiving an error when deploying custom task flows to the spaces instance in our Development environment and are experiencing the following problems:
    Custom taskflow instances are all being "overwritten" by a single parameter (we have a webcam 'widget' each space points do a different location, but when we deploy they all suddenly point to the same place - this is not reflected in the parameters for the instance of the task flow).
    Errors we are finding when we deploy:
    Message Level     1
    Relationship ID     0
    Component     xx_xx_Spaces
    Module     oracle.webcenter.webcenterapp.internal.view.webapp
    Host     xx.xx.com
    Host IP Address     xx.xx.xx.xx
    Thread ID     [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'
    ECID     014fc7558b241cc9:-13d743d3:1367e1ed952:-8000-000000000001096f
    Supplemental Detail     javax.management.InstanceAlreadyExistsException: oracle.webcenter.community:name=LoadTranslationsMXBeanImpl,type=LoadTranslationsMXBeanImpl,Application=webcenter,ApplicationName=webcenter,ApplicationVersion=11.1.1.4.0
    at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:714)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
    at weblogic.management.mbeanservers.internal.JMXContextInterceptor.registerMBean(JMXContextInterceptor.java:445)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:712)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.registerMBean(WLSMBeanServer.java:462)
    at oracle.as.jmx.framework.wls.spi.security.PrivilegedMBeanServerInterceptor$1.run(PrivilegedMBeanServerInterceptor.java:55)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at oracle.as.jmx.framework.wls.spi.security.PrivilegedMBeanServerInterceptor.registerMBean(PrivilegedMBeanServerInterceptor.java:60)
    at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterAppContextListener.createAndRegisterMBeans(WebCenterAppContextListener.java:389)
    at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterAppContextListener.contextInitialized(WebCenterAppContextListener.java:233)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:485)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:637)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:164)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:69)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)..
    Message Level     1
    Relationship ID     0
    Component     xx_xx_Spaces
    Module     oracle.webcenter.webcenterapp.internal.view.webapp
    Host     xx.xx.com
    Host IP Address     xx.xx.xx.xx
    Thread ID     [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'
    ECID     014fc7558b241cc9:-13d743d3:1367e1ed952:-8000-000000000001096f
    Message     Failed to register application management beans
    I have searched please help.
    Edited by: jrickoi on Apr 6, 2012 2:38 PM
    Edited by: jrickoi on Apr 6, 2012 3:02 PM

    I have no idea except to suggest you contact them.

  • Looking for best practice on application scope beans

    Hey – a portal newbie here. I’ve got some application scope beans that need to be initialized on startup. First thought was to create a servlet that would set the bean. Then I saw the GlobalApp setting, but I think that looks like it is more session scope than application… Looking to be corrected here if I am wrong.
    Is there a place where these type of things traditionally happen? Read only, so no cluster worries (I think) Using WLP 8.1 SP4 and looking for best practices. Thanks for the help!

    To support "code sharing" you need an integrated source code control system. Several options are out there but CVS (https://www.cvshome.org/) is a nice choice, and it's completely free and it runs on Windows, Linux, and most UNIX variants.
    Your next decision is on IDE and application server. These are usually from a single "source". For instance, you can choose Oracle's JDeveloper and Deploy to Oracle Application Server; or go with free NetBeans IDE and Jakarta Tomcat; or IBM's WebSphere and their application server. Selection of IDE and AppServer will likely result in heated debates.

  • How-to remove application scope bean

    I've found the following snippets to get rid of a session bean (to have it removed / recreated):
    snippet 1:
    FacesContext
         .getCurrentInstance()
         .getApplication()
         .createValueBinding( "#{yourBeanName}").setValue(FacesContext.getCurrentInstance(), null );snippet 2:
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("userBean");Would that work for application scoped beans as well? Is there a way of getting a list of all jsf beans? I need to re-initialize the web-application without deployment :S
    thanks,
    david

    Yeah, I've tried it and it's looking good.
    Is there any way I can get a list of (application scoped) jsf beans?

  • Application scope bean Vs. EJB

    I want to cash some application data - and was thinking of using a singleton bean with application scope in my controller and JSP page.
    <jsp:useBean id="myBean" scope="application" class="bean.datacash" />
    I am not very familiar with EJBs - and wanted to know if it would be a mistake not to use an EJB to perform that task.
    Is there a downside to my approach?
    Thanks for any insight
    Mike

    Entity EJB'S are used as a kind of data persistence, mostly to Databases. In a way it's like a kind of cache but any changes you make to an EJB are usually persisted to the underlying data storage on a regular basis.
    Session EJB's are more for business logic and depending on the type of Session Bean you use can either remain persisted in a session state or used and thrown away.
    EJB's also require alot of code so depending on your application requirements it is kind of a big decision.
    Is the data your wanting to cache to be shared by all users using the application? Are there any race conditions that may be met by concurrent access to the data? What do you plan to do with the cached data store it in a database or just make it available to share?
    If you want to look into using EJB's then your going to require an EJB Container to run them in (this can be standalone like OpenEJB or as part of an J2EE Application server like JBoss or Oracle Application Server to name just a couple).
    Using the Singleton Javabean can keeps things simple but once you start to synchronize methods with multiple users you can find some slowing down of the logic as the singleton tries to complete a request before getting onto the next.
    The [url http://jakarta.apache.org]Jakarta team offer a package called commons pooling which is designed as a pooling framework (also a way of caching) that can come in handy, I've used it to create a custom JDBC Connection pooler and it works quite well when you get the hang of it.
    Another thing to consider is the load the application may be under at it's busiest time. How many concurrent users do you expect to access the application?
    Sorry I can't give you a real answer as that is entirely up to you and your requirements. If you have a small app that has around 20-50 users then EJBs are bit of an overkill. If you find you'll have 100+ users with lots of data to manage then EJB's are probably a good option.
    If you have a look at [url http://www.theserverside.com]the serverside web site you may find a couple of articles on data persistence or check out some of the online magazines which also have articles on this same topic.
    Anthony

  • Application-scope bean finalizer ?

    Hi,
    Using JSF on GlassFish. Have an application-scope bean that creates a javax.persistence.EntityManager and holds it for the duration of the application.
    When I redeploy, however, I get strange exceptions from TopLink which suggest that the state of the persistence provider is not correctly/fully cleared when undeploying. I suspect this because if I redeploy again, it (usually) works (unusually, I have to repeat the process 3 or 4 times).
    So I'm thinking of adding calls to EntityManager.close or something, when the application bean is terminated. Is there such a thing as a bean finalizer, or some method that's called by the app server when the application is undeployed ?
    BTW, the exception happens in this line of code:
    List<Quantity> qList = em.createQuery("SELECT q FROM Quantity q").getResultList();
    and the exception is:
    java.lang.ClassCastException: cannot cast class com.xxxxxx.Quantity to com.xxxxxx.Quantity ! (needless to say that I have not changed the class inbetween)
    Cheers,
    K

    Hi,
    Using JSF on GlassFish. Have an application-scope bean that creates a javax.persistence.EntityManager and holds it for the duration of the application.
    When I redeploy, however, I get strange exceptions from TopLink which suggest that the state of the persistence provider is not correctly/fully cleared when undeploying. I suspect this because if I redeploy again, it (usually) works (unusually, I have to repeat the process 3 or 4 times).
    So I'm thinking of adding calls to EntityManager.close or something, when the application bean is terminated. Is there such a thing as a bean finalizer, or some method that's called by the app server when the application is undeployed ?
    BTW, the exception happens in this line of code:
    List<Quantity> qList = em.createQuery("SELECT q FROM Quantity q").getResultList();
    and the exception is:
    java.lang.ClassCastException: cannot cast class com.xxxxxx.Quantity to com.xxxxxx.Quantity ! (needless to say that I have not changed the class inbetween)
    Cheers,
    K

  • Where do I place JSP and Beans?

    Hello,
    I have just installed JDeveloper and have no idea where to place JSP pages and Bean class files so thet JDeveloper can access them when I run or debug a page.
    Any help would be appreciated.

    In JDeveloper, applications are grouped by one or more projects and a workspace containing projects. In your case, if you already have beans and JSPs built, here's what you need to do:
    1. Create a new workspace.
    2. Create a project using the 'create a project from existing source code' option.
    3. Optionally check the 'copy to project's source directory' to include your files in the project.
    Hope this helps,
    Lynn
    Java Tools Team

  • Please recommend IDE for JSP and Beans

    Hi guys,
    I am looking for a decent IDE to work with JSP and Beans. I have tried JBuilder which has too much going on at the same time and I find it to be an overkill for what I am doing; I find NetBeans kind of irritating. I develop web applications, hence I dont need any GUI stuff for beans.
    Just looking for something that will enable me to rapidly develop beans as a support system for JSP pages and at the same time, it should provide good support for coding JSP pages. Little bit of management functions wont hurt either, but are not required. I dont mind if I have to pay for the IDE. Any recommendations?

    I like Eclipse for Java Development, and I use the MyEclipse plug-in for J2EE development.
    There is a free J2EE plug-in (Lomboz) but I'd much rather pay the $29.99/year for MyEclipse. It's been perfect for me.

  • How do I install Snow Leopard while keeping files, applications, and settings

    I need to update my system, I realized that I need Snow Leopard (quiet late) before Maverick. My question is, how can I install it keeping files and all the data. I found this on Internet, does it work?
    Install Snow Leopard while keeping files, applications, and settings
    If you follow these steps, the installer will replace your operating system if one is already present, but will preserve your account information and personal files.  You may have to reinstall some applications, however.
    Insert the install disc (or the first install disc if you have more than one) into your disc drive. Restart your computer while holding down the c key. This causes your computer to start up from the install disc rather than your hard drive. When you see the gray Apple insignia, release c . 
    The Mac OS X installer should open automatically. Follow the on-screen prompts to read and accept the license agreement and begin the installation. When prompted to choose a destination disk, select your preferred location and click Install. 
    When the Mac OS X installation finishes with the disc, restart your computer. After the installation completes, a configuration program may begin automatically if you are installing for the first time. You will need to supply basic setup information for your computer. 
    Update your system software to ensure that you have the most recent operating system components.  From the Apple menu, select Software Update... , and then follow the instructions on the screen. Often, you will have to restart your computer, and you may have to run Software Update multiple times before it can completely update your system.

    That's why you need to back it up. You won't need to restore the backup immediately afterwards unless something goes wrong during the upgrade, but you'll need it later; the drive will eventually fail.
    (105428)

  • In Pages 5.5.1 when I go to the Open menu I cannot get a preview of any of the files in the list using the spacebar, which I can do in every other application and finder. Is there a workaround?

    In all other applications and in the finder, if I select a document and press the spacebar I get a quickview preview of that file. It does not work in Pages when I choose Open and am given a list of files to select from. This was not the case in older versions of Pages. Is there a workaround, other than doing quickview in the Finder before going to Pages.

    On Yosemite, Pages documents that are in a package (folder) format are viewable with Quick Look in the Pages v5.5.1 file chooser. Pages documents that are in the Single File (compressed, renamed folder) format are viewable in diminished size with Quick Look. Other documents that can be opened in the version(s) of Pages on your Mac will also open properly in Quick Look from the file chooser.

  • SSO between Portal Application and Portal Admin Tool

    Hi All,
    We have a requirement for implementing SSO between a Portal application and
    Portal admin tool.
    We are using WL Portal 8.1 SP4.
    Here is the reason for this requirement -
    A user logged-into Portal Application needs to login to Portal Admin tool to
    do some admin activity. We want to provide a link in the portal application
    using which the user can directly login to the Portal Admin tool without
    having to enter the credentials again.
    If someone has any info on how to implement this, can you please point me in
    the right direction.
    Thanks,
    ~Deepak

    Hi,
    When creating PP you have 2 options
    PP used for compiling and PP used for Building
    You create PP with all the libraries into Developing/Compiling Other DCs
    And another PP with all the libraries into can be packaged into other build results (SDAs).
    Once you have these 2 PP in place you add the DC as used DC.
    And this should resolve the issue.
    Hope this helps.
    Cheers-
    Pramod

  • Choosing between external and partner application and problem with login

    We have an application on Oracle App Server 10.1.3.3 and we have an OID server.
    I had taken this for granted that I should define the application as 'Partner Application' and not external application for single sign on.
    Now that we need the 'PASSWORD' retrieved by application, we are considering defining it as an external application.
    There are at least two problems I have encountered defining the application as external:
    1. 'pageConfig:serverDate' is among the login form's inputs in the login page, but I can't set it in orasso 'Edit External Applications' page
    2. After login using SSO as external application and when I click on the application's new link, the login page is shown with the username and password field filled, but I have to click on login button anyway (no automatic and invisible login).
    I will be very grateful if someone gives a general view on the differences between external and partner, whether in this case external has to be used or partner and finally give some comment on my specific problem with login button and manual login.
    Thank you

    Just some information :
    - The problem with LOGIN page exists. I don't have that problem with for example GMAIL when defined as external application, but with my applications in Oracle Application Server.
    - There is also another thing I don't understand. The link to external application is something like:
    javascript:open_jwindow('../ealogin?ID=76D4766','76');
    and couldn't be executed outside pls/orasso
    in other words we can't give that to our users, can we? They should login to orassso and see that?
    We don't want to involve them in Identity Management...
    Any help is appreciated....
    Regards

  • ADF Application and Oracle Portal Login Page

    We have developed ADF application and deployed it in Oracle AS 10.1.2 along with the custom JAAS module, which is working fine with the application custom login page. As a next page, I want to use Oracle Portal login page for the authentication and authorization.
    How can I accomplished it? Any idea?
    Thanks,
    AP

    Shay,
    1. I created blank ADF project
    2. I copied myreport.jsp file (this one was generated by Oracle Report Builder) under ..ViewController/public_html directory
    3. Created directory 'lib' under ViewController/public_html/WEB-INF/lib
    4. Copied reports_tld.jar file under the directory created in 3.
    5. Created simple jspx page with the af:link (btw af:goLink does not exists in JDev 12c), set 'destination' to myreport.jsp
    After the steps above I could not even compile the application, many problems too many to list here, Basically JDev is trying to build the project with .jsp file generated in Report Builder and is unable to.
    So to be sure we are on the same page: I am trying to embed JSP report files generated by Report Builder into ADF project, then create EAR file and deploy on standalone WLS. Finally execute JSP web only report.

Maybe you are looking for

  • ASA 5505 Site to Site VPN rekey

    I have a5505 configured to support a number of site to site links. One of these has a problem with rekeying. Running debug I see the entres: Dec 04 10:37:58 [IKEv1 DEBUG]: IP = AAA.AAA.AAA.AAA, Starting phase 1 rekey Dec 04 10:37:58 [IKEv1]: IP = AAA

  • Urgent : how to display a "landscape" report ?

    Hi all I am developing a report application and my boss wants that the report will have a width of 29.7 cm and a height of 21 cm , so it will have the reverse of the normal report display. How to do this ? Thank you very much indeed.

  • Availability check problem - with item category(TAN and TANN)

    Hi All, We have a problem with the availability check in the standard order. Suppose if I give the item category as TAN, the availabilty check is green for that line item. If I change the item category from TAN to TANN, then the availabilty check is

  • Genaric Include in event of the table maintainance genatrator

    hi, i want to create a include that should be genaric ( it should work for all tables )  to  update the fileds like creator name, create date, change name and change date which are in the include structure . this include can be used in the event of t

  • Have the Crysis demo, and played it on my 24" 2.8....

    Well.. I received my Crysis beta key today! The demo downloaded and installed without a hitch. However, the drivers for the ATI 2600 are not optimized for this game and produce tons of artifacts that makes the game unplayable in certain areas. This i