Flex 3.0 to ejb

Dear all,
I need to connect from the flex 3.0 to ejb 3.0 what to write the build.xml for creating the ear file.
Thanks & Regards,
Mala.

This traces out "Brian":
private function getData():void{  
var xdoc:XML = new XML("<xmltest><name>Brian</name></xmltest>");  
trace(xdoc.name);

Similar Messages

  • Successful command pattern architecture need critics

    i successfully created a framework using patterns for a generic system & it is currently running in alpha stage, need critics or some people who created same solution and encountered problems,
    architectural overview specifics:
    1.4 enterprise spec. created
    EIS
    ORM
    ===================================
    CMDSVR1 <-> CMDSVR2 <-> {RES_FOR_BIZ}
    ====== ====== ==========
    | | |
    Interface_BIZ_spec <<- (for architectural purposes)
    ++++++++++++++++++++
    pluggable_pool_of_BIZ_POJO
    implements command
    ====================
    Presentation / Consumer
    FLEX JSP JSF WS EJB Session Beans

    I created a pluggable pool of biz pojo that implements command ejb-object that reside on app serv. in which can be called by typical consumers/ delegates or a WS., the pluggable pool of biz pojo also implements biz framework or biz spec for which an architect can control such spec.
    i can't seem to find any resource as of now regarding this architectural structure, if someone do have implemented like this kind of architecture, kindly give me downfalls, positive traps and even worst the model is not a good construct...
    I tested and run this with the ff software spec.
    JBOSS 4.0.2
    Hibernate 3.0
    Macromedia Flex, and JSP

  • Objects of EJB in flex

    Hello.
    i want know if is possible that i can use Java Objects in my flex application using Blaze-Ds.
    I have all my business logic in Objects inside EJBs. Then, i need use it in a new flex application. I was read that i can do it, but i don't know how.
    Thanks
    Danilo
    Santa Marta - Colombia

    Hi there,
    Shortly put: Flex Builder is not Dreamweaver and nor are the Flex applications like HTML web pages. You can't creat any templates with wizzards or whatsoever, especially because Flex isn't really used to create web sites but rich internet applications ( although a web site might fall into this category, the two are still quite different Worlds ). So, the most you can do is either to develop a skeleton web site that you can fill with components later on ( which in my opinion is just a waste of time ) or create many little and standalone components that you can reuse in each project ( and also in projects that might not have anything to do with web sites ).
    If you are looking to create templates that you might have gotten used to in Dreamweaver ( or other softwares like DW ), then I think that nor Flash or Flex are the technologies for you ( especially not then if you are thinking of templates the same way when using these technologies as if you were using Dreamweaver/HTML templates ). Flex 4 did introduce "templates" but those templates do not really fall into this "website templates" category either ( if you want to read up on the what Flex 4 templates are then visit this page: http://livedocs.adobe.com/flex/gumbo/html/duplicate_1_WS52085436-ABD3-4d4d-B5E2-41C668CF68 47.html ).
    With best regards,
    Barna Biro

  • Flex and EJB with JBOSS

    Hi!
    I have a web application running on JBOSS 4.0.4 and using EJB/EJB3.
    The main goal is simple, i need to substitute some JSP pages with flex.
    I'm a total newbie with flex and i don't even know how to get started.
    What do i need? Only BlazeDS or something more? Is there some tutorial with a step by step explanation?
    I appreciate your help.

    You cant really replace Struts with Flex, maybe a view part
    , thats about is, you still need backend processioning
    logic,all that you are asking is difficult to answer is one reply,
    IMHO, best thing you can do is to dive into following URLs :
    http://www.adobe.com/devnet/flex/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
    and of course your best friend :
    http://livedocs.adobe.com/flex/3/langref/index.html

  • Flex EJB Session tracking

    Hello, I am fairly new to both Flex and J2EE development but
    I have developed a collection of EJBs running under an application
    server to service a multi-user Flex application. I believe I can
    connect to the EJBs through either a facade POJO, or using
    something like this:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1089970
    to invoke the bean methods directly.
    My problem is how do I authenticate and track user state
    throughout their use of the application (the issue is raised here:
    http://www.forta.com/blog/index.cfm/2006/9/24/Flex-And-Session-State-Management
    but it doesn't seem to provide an answer). If passing of some kind
    randomly generated session ID is required, I am wondering what is
    the best way to approach this from the J2EE point of view?
    Thanks for any help in advance
    Lee.

    Perhaps I am overcomplicating the situation. If I were to
    specify a Stateful Session Bean as a remote destination, would a
    new instance be automatically instantiated for each user instance,
    without the need for any kind of session ID tracking?

  • How to use portlet:namespace in flex files?

    Hi,
    Iam developing a portlet whose UI is flex. using MXML and action script.
    Portlets require that their UI elements be unique to each portlet, so we use <portlet:namespace> for each ID, vars, functions etc..
    My question is how should i use this tag in my UI?
    Is this the right place to ask this question, if NO, the please direct me to the right forum.
    Thank you,

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

  • EJB 3.0 integration in FDS, with Annotations

    We have been working with the EJB 3.0 implementations and see
    a lot of synergy between the new approach to enterprise Java with
    this new specification, and would love to see FDS add an adaptor to
    support it.
    Our new entity/session beans have annotated relationships,
    primary key information, and security regarding access to the
    object and it's methods are specified already in the Java source.
    Centralized management of this information where it is closest to
    the source is highly productive.
    With so much of the FDS configuration still sitting in static
    XML files, we are required to maintain a redundant copy of all of
    the annotation information separately. This adds pure overhead to
    the development process, and it is challenging to keep the two in
    sync when applications are enhanced.
    We would like to see the FDS framework more tightly
    integrated with the rest of the J2EE world, and through Java
    introspection and annotations learn about the applications
    available on the server side without custom config files.
    The fill, assembler, and synchronization methods could simply
    be a standard class interface to be implemented with methods to
    override, or even annotated with flex annotations. Destinations
    would no longer need to be hand-configured. The meta-data about row
    identity would be read from the entity beans themselves. If a fill
    method has parameters, read them from the function prototypes.
    (The existing Flash remoting product seems to have the above
    features. We enjoy the integration of Flash Remoting, and the
    development workflow associated. The Flash client only needs the
    JNDI name of the services, and once authenticated, access to any
    function is possible without further action. FDS goes above and
    beyond to provide several very interesting features, but is not
    quite as intuitive when it comes to J2EE services.)
    To tie this meta-information on the server back to the IDE
    for visual design, using real server-side object properties and
    methods, and session bean functions would close the loop on the
    development cycle. This could also be accomplished within Eclipse
    since the server side Java classes could easily be in the
    classpath. The IDE could give the developer a hand in choosing and
    referencing valid return object properties. An actionscript object
    could even be generated if necessary from the entity bean's
    properties...
    Are any of these ideas in the works, or are there any
    exisiting methods for accomplishing these efficiencies?

    caused by: com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injectionat com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:292)
    ... 52 more
    StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    com.sun.enterprise.InjectionException: Illegal use of static field private static car.session.CarSessionLocal jsfpack.BackingBean.carSession on class that only supports instance-based injectionInjected fields in server-side components should never be marked static. static is only used for
    the main class of Application Client components.

  • Anyone gotten Flex 2 to install in Plugin mode?

    I tried installing into my normal Eclipse 3.1.1 environment
    and it didn't work. So I downloaded the base Eclipse 3.1.1 and
    SVNPlugin only and then installed it into the base eclipse and it
    still didn't work.
    Has anyone gotten it to work? I've only gotten it to work in
    standalone installation where it installs it's own eclipse version.
    However I hate having two eclipse desktops open, one for EJB
    development and one for Flex 2 development, and then two eclipse
    configurations etc. It's a real pain in the arse.
    Here's the error messages i get:
    java.fullversion=J2RE 1.4.2 IBM Windows 32 build
    cn142ifx-20060209 (SR4-1) (JIT enabled: jitc)
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.ui 4 0 2006-07-20 06:04:35.156
    !MESSAGE Unable to create editor ID
    com.adobe.flexbuilder.editors.mxml.MXMLEditor: No editor descriptor
    for id com.adobe.flexbuilder.editors.mxml.MXMLEditor
    !STACK 1
    org.eclipse.ui.PartInitException: No editor descriptor for id
    com.adobe.flexbuilder.editors.mxml.MXMLEditor
    at
    org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:553)
    at
    org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at
    org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at
    org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
    at
    org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1221)
    at
    org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:949)
    at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at
    org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:944)
    at
    org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2576)
    at
    org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
    at
    org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
    at
    org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
    at
    org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
    at
    org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
    at
    org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    at
    org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at
    org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
    at
    org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
    at
    org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
    at
    org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
    at
    org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
    at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at
    org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
    at
    org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
    at
    org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
    at
    org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    !SUBENTRY 1 org.eclipse.ui 4 0 2006-07-20 06:04:35.156
    !MESSAGE No editor descriptor for id
    com.adobe.flexbuilder.editors.mxml.MXMLEditor
    !ENTRY org.eclipse.ui.workbench 4 2 2006-07-20 06:04:35.297
    !MESSAGE Problems occurred when invoking code from plug-in:
    "org.eclipse.ui.workbench".
    !STACK 0
    org.eclipse.ui.internal.misc.AssertionFailedException: null
    argument;
    at
    org.eclipse.ui.internal.misc.Assert.isNotNull(Assert.java:81)
    at
    org.eclipse.ui.internal.misc.Assert.isNotNull(Assert.java:68)
    at
    org.eclipse.ui.internal.EditorSite.<init>(EditorSite.java:47)
    at
    org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:418)
    at
    org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at
    org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
    at
    org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1221)
    at
    org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:949)
    at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at
    org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:944)
    at
    org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2576)
    at
    org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
    at
    org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
    at
    org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
    at
    org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
    at
    org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
    at
    org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    at
    org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at
    org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
    at
    org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
    at
    org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
    at
    org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
    at
    org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
    at
    org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at
    org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
    at
    org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
    at
    org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
    at
    org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at
    org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    I am also having a problem. I d-loaded the 30 day trial and
    tried to install as a plug-in. It got way into the install and gave
    an error instructing me to look at the ".log" file for more
    information. After clicking OK the install continued and ended
    stating it was successfully installed as a plug-in. After opening
    Eclipse I see nothing for Flex or Adobe which tells me it did not
    install successfully. I already had Exadel Studio installed and the
    log file (note that the log file only has an extension of log, but
    no prefixed name ".log"). It had many, many errors saying that a
    plug-in was already installed by Exadel. Below are the final few
    lines of the log file. I will reinstall as the full IDE and not the
    plug-in, but I really want it to be an eclipse plug-in. The eclipse
    version I am running is 3.2.0.
    Thanks,
    Dale
    !ENTRY org.eclipse.update.configurator 2007-04-05
    13:55:09.671
    !MESSAGE Could not install bundle
    plugins/org.eclipse.xsd_2.2.1.v200609210005.jar Bundle
    "org.eclipse.xsd" version "2.2.1.v200609210005" has already been
    installed from:
    update@../../ExadelStudio/eclipse/plugins/org.eclipse.xsd_2.2.1.v200609210005.jar
    !ENTRY org.eclipse.update.configurator 2007-04-05
    13:55:09.671
    !MESSAGE Could not install bundle
    plugins/org.uddi4j_2.0.5.v200608231542/ Bundle "org.uddi4j" version
    "2.0.5.v200608231542" has already been installed from:
    update@../../ExadelStudio/eclipse/plugins/org.uddi4j_2.0.5.v200608231542/
    !ENTRY org.eclipse.update.configurator 2007-04-05
    13:55:09.671
    !MESSAGE Could not install bundle
    plugins/org.wsdl4j_1.4.0.v200607181917/ Bundle "org.wsdl4j" version
    "1.4.0.v200607181917" has already been installed from:
    update@../../ExadelStudio/eclipse/plugins/org.wsdl4j_1.4.0.v200607181917/
    !SESSION 2007-04-05 14:01:02.640
    eclipse.buildId=M20060629-1905
    java.version=1.4.2_12
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -application
    org.eclipse.update.core.standaloneUpdate -command install -from
    file:\C:\Program Files\Adobe\Flex Builder 2
    Plug-in\com.adobe.flexbuilder.update.site/ -featureId
    com.adobe.flexbuilder.feature.core -version 2.0.155577
    Command-line arguments: -application
    org.eclipse.update.core.standaloneUpdate -command install -from
    file:\C:\Program Files\Adobe\Flex Builder 2
    Plug-in\com.adobe.flexbuilder.update.site/ -featureId
    com.adobe.flexbuilder.feature.core -version 2.0.155577
    !ENTRY org.eclipse.update.core 4 0 2007-04-05 14:03:44.484
    !MESSAGE Duplicate conflicts

  • Flex Developers Needed ASAP - Charlotte, NC

    Open  Systems Technologies has been involved in the recruitment of technologists for  various industries of North Carolina, South Carolina, Tampa, Virginia, DC and  other centers around the world for over 20 years. Our client is a large  financial firm located in Charlotte, NC. W2 Candidates Only!  Manager will interview fast!  Must work onsite in Charlotte, NC.  Will pay referral fee too!
    Description
    Flex Developer
    Charlotte, NC
    12+ Month Contract
    Financial
     ADVANCED FLEX  DEVELOPMENT:
    - Must have experience in front-end development skills in  Flash/Flex, HTML, DHTML, JavaScript, CSS, XML, XSLT
    - Create custom  components in MXML and Object Oriented Actionscript
    - Extensive experience in  dataset management consumed in AdvanceDataGrid
    - Develop Flex Layout,  Navigation, Drag/Drop Targets, and CSS
    - Extensive experience with  RemoteObject and HTTPService to retrieve and update data
    - Hands on  experience with Grouping Collections
    - Hands on experience with Formatters  and Validators
    - Be able to show hands on experience in writing Actionscript  functions for event, response, and fault handling.
    - Display experience in  developing Flex modules/libraries. Java Development (MUST BE STRONG FLEX  Developers, *Java is 2nd tier requirement)
    - Strong Java/J2EE background  using JSP, Servlets, Beans, EJBs, J2EE, XML, XML Schema
    - Experience of  designing and implementing object-oriented solutions utilizing recognized design  and architecture patterns
    - Experience using Hibernate and/or Spring
    -  Experience with Java Web Services. [JAX-RS preferred]
    - Hands on experience  in XML and XML Schema
    - Must have used Eclipse, JBuilder, or JDeveloper, SQL  Navigator/TOAD, Apache, Tomcat, Unix/Linux, Oracle 9i (or greater) for  production-level SQL Database Development
    - Advanced select  queries
    - Performance optimization Desired:
    - UI Development
    -  Apache/Tomcat
    - Financial Systems
    - Scorecards, Dashboards
    - Testing  methodologies  
    Rick  West | Regional  Recruiting Director
    P:  704-499-3318 | [email protected]
    121  W Trade Street, Suite 2650 | Charlotte, NC 28202
    www.opensystemstech.com

    Certainly not my intention drkstr_1 and I am sorry you feel this way.  Since this is not a job posting site I was reluctant to put down a lot of detail.  I am just hoping that a few talented Flex Developers that are interested in living in Charlotte, NC (or already live there) would email me so I could connect with them and share the details.  I can assure you that these openings with my clients are outstanding oportunities with great pay, the very best in benefits, some nice perks, and the projects themselves are very interesting and challenging.  Also these are full time opportunities, not contracts.  Again, I am sorry to upset you.  Best of luck to you. 

  • SAS9.1 Persistence and EJB lookups (not registered in JNDI?)

    I am trying to deploy a very basic EJB3 module to test my learning. The module deploys via the Admin Console without apparnet error. Unfortunately, when using the generated test page for the web-service, I am having total failure which seems to be around the persistence unit and EJBs not being created in the JNDI.
    I have an @Stateless/@WebService bean:
    package com.flexit.buslogic;
    import java.util.logging.Level;
    import javax.ejb.Stateless;
    import javax.ejb.EJB;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import com.flexit.persistence.eao.OwnerFacade;
    @WebService
    @Stateless
    public class CreateOwner {
         @EJB
         private OwnerFacade ownerFacade;
         public CreateOwner(){}
         @WebMethod
         public Integer addOwner (
                   @WebParam(name="Name") String name){
             LogUtil.log("Add owner request " +
                        "received for "+name,
                        Level.INFO, null);
            return ownerFacade.findAll().size();
    }The OwnerFacade EJB injection fails with avax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJBIf I instantiate a 'normal' reference to OwnerFacade (ie OwnerFacade ownerFacade = new OwnerFacade(); I get a similar error in the OwnerFacade EJB in relation to an attempt to inject an EntityManager:
    package com.flexit.persistence.eao;
    import java.util.List;
    import java.util.logging.Level;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.flexit.persistence.LogUtil;
    import com.flexit.persistence.Owner;
    @Stateless
    public class OwnerFacade implements OwnerFacadeLocal, OwnerFacadeRemote {
         // fields
         @PersistenceContext(unitName="FlexIBuildPU")
         private EntityManager entityManager;
         public OwnerFacade () {
              if (entityManager == null) {
                   LogUtil.log("unable to get an Entity Manager Instance", Level.SEVERE, null);
    ...The constructor logs that the entityManager is, indeed, null.
    I have tried the code on SAS9 and 9.1 and using the default JavaDB and a MySQL connection pool (successful ping) and datasource (named 'jdbc/FlexDBDS') created through the Admin Console. The persistence unit is defined in a persistence.xml file in the META-INF folder:
    <?xml version="1.0" encoding="UTF-8"?>
         <persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
             http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
              <persistence-unit name="FlexIBuildPU" transaction-type="JTA">
                   <jta-data-source>jdbc/FlexDBDS</jta-data-source>
              </persistence-unit>
    </persistence>Can anyone please save me from tearing my hair out (more)?

    Have managed to resolve. There were two problems
    First I was attempting to access a session bean directly rather than via an interface (eejit!) - ie:
    @EJB OwnerFacade ownerFacadewhen it should have been:
    @EJB OwnerFacadeLocal ownerFacadeSecond, the persistence unit wasn't created properly. In playing around with persistence.xml I moved from:
    <?xml version="1.0" encoding="UTF-8"?>
         <persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
             http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
              <persistence-unit name="FlexIBuildPU" transaction-type="JTA">
                   <description>This unit manages BMS units, owners, offers, and acceptance.</description>
                   <jta-data-source>jdbc/FlexDBDS</jta-data-source>
                   <properties>
                          <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
                          <property name="toplink.ddl-generation" value="create-tables"/>
                     </properties>
              </persistence-unit>
    </persistence>to:
    <?xml version="1.0" encoding="UTF-8"?>
         <persistence xmlns="http://java.sun.com/xml/ns/persistence"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
             http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
              <persistence-unit name="FlexIBuildPU" transaction-type="JTA">
                   <description>This unit manages BMS units, owners, offers, and acceptance.</description>
                   <jta-data-source>jdbc/FlexDBDS</jta-data-source>
                   <properties>
                          <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
                          <property name="toplink.application-location" value="C:\ddl\flexdb\"/>
                          <property name="toplink.create-ddl-jdbc-file-name" value="create.sql"/>
                          <property name="toplink.drop-ddl-jdbc-file-name" value="drop.sql"/>
                          <property name="toplink.ddl-generation.output-mode" value="both"/>
                          <property name="toplink.ddl-generation" value="create-tables"/>
                     </properties>
              </persistence-unit>
    </persistence>It seems the very action of writing the sql to file helps with the binding. It seems so extraordinary that I think I must of made another mistake which was corrected along the way. In any event, the properties specifying output files may prove useful to others. :)

  • Caching the web service data in Flex 3.0

    Hi,
    I want to do the following task
    I am loading about 10000 records from MS SQL database into
    Flex data grid using web service on CreatinComplete event of an
    application in Flex 3.0.Now if I have done this and I press Browser
    refresh button, this time it should not call web service againg but
    it shold display the same data from the cache.
    Is there any way to achive this.
    If not can any one tell me how to handle huge data in flex
    using MS SQL and .NET

    Question is what technology of J2EE u are using!
    If it is EJB, then the fastest way would be to generate one more webservice and connect this one to WD.
    This way you also can check if the webservice delivers any data with the testing environment.
    Regards,
    Benny

  • Flex and Seam

    Do you think it may be possible to integrate Flex Data
    Services with JBoss's Seam framework?
    Thanks,
    Pepe.

    > Seam?
    Yes.
    > It looks like you'd be shoe horning Flex into an MVC
    > that was designed to be page controller based
    JSF is a component based framework not an MVC framework a la
    Struts.
    > with all the page refreshes of the early 2000 web era.
    In fact, Seam's livecycle is much near to Flex's that what at
    first sight may seem.
    Seam Remote, which is an AJAX remoting framework, allows to
    call EJBs methods
    directly from Javascript => no page refreshes.
    What I was asking with this open question is if someone has
    tried to develop an
    EJB3Adapter or SeamAdapter that synchronizes the FDS
    framework with the workflow part of Seam.
    OTOH a JSF render kit for Flex, if something like that is
    possible, would be a cool path to explore.
    Regards,
    Pepe.

  • Using Flex 2 with/without FDS

    I am presently designing a web architecture for a client, and
    ideally I would like to employ a Flex2 UI on a Tomcat/Java web
    server/server component framework (possibly Spring). I am trying to
    get a good handle on the necessity of Flex Data Services (FDS) in
    this architecture.
    What am I really losing should I choose *not* to employ FDS,
    and is rolling the entire server side with standard Java technology
    fairly doable? Does anyone have any first-hand experience doing
    this which they could share?
    Given an expert-level server-side Java experience level, I
    need to determine whether employing FDS is a necessity or not.
    Thanks,
    Brad

    quote:
    Originally posted by:
    holmes_z06
    only if you want to pay the licensing costs.
    We don't use FDS on our project, we just export XML. Might
    start using some SOAP in the future. There's no way we could
    justify the cost of FDS.
    -Jason
    Jason,
    Thanks for the reply. How have you found the effort required
    to manage the XML transmitted by the Flex 2 app to the server-side?
    Has this effort been minimal, or have you found this minor? For the
    most part, unless I can identify something major that FDS provides
    to an org already versed in doing enterprise-class (J2EE) server
    development, I'm not quite seeing the need for FDS. I understand
    the description of FDS, and the synching / JMS capabilities, but
    I'm not sure that this can't be fairly easily managed with standard
    Java server objects (servlets, EJBs, or Spring POJOs). I don't want
    to get into discussing licensing, but there needs to be
    justification for such, especially at a per CPU rate, which is a
    common need for everyone.
    I'd love to hear from anyone who has employed FDS, or is
    familiar with an org who has, who can speak specifically to the
    value add experienced through use of this product.
    Brad

  • HTTP Responses with Flex, how to transform http 500 into http 200

    Hello
    We have deployed a Web Service application in our WAS 7.10 SP6.
    Our application is a standard java 5 app with annotations (ejbs exposed as web services).
    When a web service call operation returns a java exception (any kind of exception), WAS returns http 500 to the client.
    http 500 cannot be interpreted by a flex client (2.0, 3.0 no matter which version) because of an interaction between browser and flex runtime issue.   Flex code can only obtain an i/o error when http 500 is returned by the server.
    The usual way to solve this problem is to create a filter that transforms http 500 to http 200, but we don't know how to implement a filter for web services http responses in WAS 7.1 or 7.0
    Other solutions involve using Adobe proxy, but in our case we can't use it.
    Is there any other solution to this matter?

    Hello
    We have deployed a Web Service application in our WAS 7.10 SP6.
    Our application is a standard java 5 app with annotations (ejbs exposed as web services).
    When a web service call operation returns a java exception (any kind of exception), WAS returns http 500 to the client.
    http 500 cannot be interpreted by a flex client (2.0, 3.0 no matter which version) because of an interaction between browser and flex runtime issue.   Flex code can only obtain an i/o error when http 500 is returned by the server.
    The usual way to solve this problem is to create a filter that transforms http 500 to http 200, but we don't know how to implement a filter for web services http responses in WAS 7.1 or 7.0
    Other solutions involve using Adobe proxy, but in our case we can't use it.
    Is there any other solution to this matter?

  • Which is better frame works use along with flex

    Hi,
    I am developing an hospital application, mainly includes the
    management of outpatients and in front end i am using flex but in
    back end i did not get a clear idea about which frame work has to
    use or need of a new architecture. i just need some suggestion
    which of these spring,EJB 3.0 and Jboss Seam is better for back end
    implementation.
    Thanks and Regards
    kumar

    Hey kumar ,
    I don't have experience with a lot of frameworks but I am
    using Blaze-DS + Spring with deployed under glassfish.
    I think you biggest problem here is how to make the frontend
    pluggable, extensible and easy to maintain.
    I do make all single screens as single modules. and each
    module have it's own java class to do the work + some java classes
    for general perpose.
    Teh whole thing is build in ANTS and using jnit as a testing
    framework for java. I don't have anything yet to do automated UI
    testing.
    Ries

Maybe you are looking for