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.

Similar Messages

  • A problem with annotation @EJB

    Hi,
    My application uses servlet+JSP+EJB+JBOSS. I want to use a pure java object that is a singleton and within this singleton call an EJB.
    I have a servlet that call a singleton:
    My servlet
    public class FindAdministratorForumServlet extends HttpServlet {
         private static final long serialVersionUID = 1L;
         // ======================================
         // = Entry point method =
         // ======================================
         @Override
         protected void service(final HttpServletRequest request,
                   final HttpServletResponse response) throws ServletException,
                   IOException {
              final int rows=3;
              int page = Integer.parseInt(request.getParameter("page"));
              List<Topic> discussionList = ListHandlerService.getForumTopics(page); My singleton :
    package service;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    import javax.ejb.EJB;
    import sessionbean.TopicService;
    import entitybean.Topic;
    public class ListHandlerService {
         private final static int rows=3;
        /** L'instance statique */
        private static ListHandlerService instance;
        /** objet pour la synchronisation.
         * j'ajoute deux "soulignés" (__) au nom de l'attribut car il n'a
         * qu'un intérêt purement technique.
        private static Object objetSynchrone__;
        private static List<Topic> listTopic;
         @EJB
         private static TopicService discussionService;
        /** Récupère l'instance unique de la class Singleton.
        * Remarque : le constructeur est rendu inaccessible
        public static ListHandlerService getInstance() {
            if (null == instance) { // Premier appel
                synchronized(objetSynchrone__) {
                    if (null == instance) {
                        instance = new ListHandlerService();
            return instance;
        /** Constructeur redéfini comme étant privé pour interdire
        * son appel et forcer à passer par la méthode
        private ListHandlerService() {
        public static List<Topic> getForumTopics(int page) {
             int i = 0;
              Topic topic;
              LinkedList<Topic> result = new LinkedList<Topic>();
             if (page==1) {
                  listTopic = discussionService.getForumTopics();
                  ListIterator<Topic> listIterator = listTopic.listIterator();
                  while (listIterator.hasNext() && (i< rows)) {
                       topic = listIterator.next();
                       result.add(topic);
                       i++;
             } else {
                  ListIterator<Topic> listIterator = listTopic.listIterator();
                  while (listIterator.hasNext() && (i< rows*(page-1))) {
                       listIterator.hasNext();
                       i++;
                  while (listIterator.hasNext() && (i< rows*page)) {
                       topic = listIterator.next();
                       result.add(topic);
                       i++;
             return result;
        public static int getSize() {
             return listTopic.size();
    } In my singleton that is a pure JAVA object, the injection of my EJB with annotation @EJB doesn't seem to work. Indeed when executing, "discussionService" that should be injected and initialized, is null. Isn't it possible to inject an EJB in a pure java object which is a singleton ?
    Thank you for your answers.

    Is it deployed in the same application?
    In they are not in the same application you need to use some other techniques. See the following thread for info:
    http://forums.sun.com/thread.jspa?threadID=5332558

  • Getting Error while integrating Crystal reports with Java

    Hi All,
    I am getting below error while integrating crystal report with java
    [java] os.arch = x86
    [java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
    (Ljava/awt/Image;I)V
    [java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
    [java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
    [java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
    Source)
    [java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
    Source)
    [java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
    [java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
    [java] at JRCViewReport$1.run(JRCViewReport.java:50)
    [java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
    178)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
    spatchThread.java:190)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
    atchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:138)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
    ava:130)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Any help can be appreciated
    Kalyan

    Hi All,
    For got to mention i am using crystal reports XI release 2 with JDK1.4.
    Kalyan

  • Problem in Integration of Apex with R12

    Hello,
    I followed the paper apex-ebs-extension-white-paper-345780.pdf to do Integration of Apex with R12. but stuck on one step.
    I am done with all the steps in R12. Now if i click the menu in R12, its going to my existing Apex aplication but still asking username and password.
    Can anyone help me out in what exactly I need to change in Apex Authentication scheme in Apex. Right now I am using Authentication scheme as Application Express.
    Please help me out
    Thanks in advance
    Ananya
    Edited by: Ananya on 26 Dec, 2011 8:51 PM

    Hi Mini,
    Thanks a lot for ur replies. But it is not working for me. I am not able to figure out whats going wrong.
    My Requirement is to redirect to the first page of my application without asking for the APEX login page from the EBS menu.
    So summarizing whatever I steps i have followed:-
    (1) Created Profile and function in APPS as given in "apex-ebs-extension-white-paper-345780.pdf"
    (2) I created the following package in APPS schema
         CREATE OR REPLACE PACKAGE APPS.XXAPX_SECURITY_PKG AUTHID DEFINER AS
         FUNCTION generate_hash (
         p_string IN VARCHAR2
         , p_offset IN NUMBER DEFAULT 0) RETURN VARCHAR2;
         FUNCTION validate_hash (
         p_string IN VARCHAR2
         , p_hash IN VARCHAR2
         , p_delay IN NUMBER DEFAULT 5) RETURN BOOLEAN;
         END XXAPX_SECURITY_PKG;
         CREATE OR REPLACE PACKAGE BODY APPS.XXAPX_SECURITY_PKG AS
         g_key VARCHAR2(100);
         FUNCTION generate_hash (
         p_string IN VARCHAR2
         , p_offset IN NUMBER DEFAULT 0) RETURN VARCHAR2
         IS
         BEGIN
         IF p_string IS NULL THEN RETURN NULL; END IF;
         RETURN RAWTOHEX(UTL_RAW.cast_to_raw(
         DBMS_OBFUSCATION_TOOLKIT.MD5(
              input_string=>p_string||':'||
              TO_CHAR(SYSDATE-(p_offset/24*60*60), 'YYYYMMDD HH24MISS')||g_key)));
         END generate_hash;
         FUNCTION validate_hash (
         p_string IN VARCHAR2
         , p_hash IN VARCHAR2
         , p_delay IN NUMBER DEFAULT 5) RETURN BOOLEAN
         IS
         BEGIN
         FOR i IN 0..p_delay LOOP
         IF p_hash = generate_hash (p_string, i) THEN RETURN TRUE; END IF;
         END LOOP;
         RETURN FALSE;
         END validate_hash;
         BEGIN
         SELECT encrypted_user_password INTO g_key
         FROM FND_USER WHERE user_name = 'SYSADMIN';
         END XXAPX_SECURITY_PKG;
    (3) Created a function in the APPS schema:-
         create or replace FUNCTION ebs_authenticate (
         p_username IN VARCHAR2
         , p_password IN VARCHAR2) RETURN BOOLEAN
         AS
         BEGIN
         IF apps.XXAPX_SECURITY_PKG.validate_hash (p_username, p_password) THEN RETURN TRUE; END IF;
         RETURN (apps.FND_WEB_SEC.validate_login (p_username, p_password) = 'Y');
         END ebs_authenticate;
    (4) In my authentication scheme of my apex application i have changed it to use custom authentication to use the below function
         return apps.ebs_authenticate
    (5) Created a procedure in the APPS schema:-
         create or replace PROCEDURE apps_logon
         IS
         v_username VARCHAR2(100);
         v_password VARCHAR2(32);
         BEGIN
         wfa_sec.getsession(v_username);
         v_password := xxapx_security_pkg.generate_hash(FND_GLOBAL.user_name);
         IF v_password IS NOT NULL THEN
         APEX_CUSTOM_AUTH.login(
              P_UNAME => v_username,
              P_PASSWORD => v_password,
              P_SESSION_ID => v('APP_SESSION'),
              P_APP_PAGE => apex_application.g_flow_id||':38'
         ELSE
         RAISE_APPLICATION_ERROR(-20001, 'Password is null, session id = '||icx_sec.g_session_id);
         END IF;
         END apps_logon;
    (6) In my login page, i have created a process Get Username Cookie and with the process point: onload(Before Header)
         BEGIN
         apps.apps_logon;
         EXCEPTION WHEN OTHERS THEN NULL;
         END;
    Now I am getting this error with the login page :-
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small Content-type: text/html; charset=UTF-8 Set-Cookie: WWV_CUSTOM-F_1120314105059329_811=B4134623EB436033; path=/; Location: f?CallFromForm='Y'&p=811:38
    Please help me figure out the problem as I am struggling a lot with this from last few days :(
    Thanks in advance.

  • "Save as..." hang on long PDF with annots.api plugin enabled

    Hi,
    I am not a regular Acrobat user but I have been attempting to use it recently to process some fairly long PDF files with up to 20K pages which weigh in at 50MB.  I thought I'd share something interesting I have discovered with the community.
    What I found is that the larger the file (not sure whether it is the number of pages, number of bytes or something else) the longer it takes for the "Save as..." dialog box to appear.  Then, when the filename has been chosen (just saving as a normal PDF) the amount of time before the progress bar appears also seems to get longer for longer files.
    In fact while the save as box is getting ready and while the progress bar is not yet showing, Adobe Acrobat seems to hang and stop responding.  We found that disabling plugins entirely (by shift clicking to open the document) eliminated entirely even for large documents.  We then narrowed it down to a specific plugin called annots.api.
    My questions for the community are: 
    Is this a known issue with annots.api?
    What does annots.api actually do?
    This seems to be the same for Adobe Reader X (Windows 2012), Adobe Acrobat X (Windows XP), Adobe Reader 11 (Windows 7), Adobe Acrobat XI (Windows 8) and Adobe Acrobat (Windows XI).
    Thanks,
    James
    P.S. If somebody from Adobe want help to recreate the issue, I can provide some sample PDF files that clearly illustrate the issue and snow a possible polynomial performance curve.

    i do not have a .mac account. i checked my preferences on that point and confirmed there is no effort to sync with iDisk.
    i am only user (account) on this eMac. So i do not have a basis for compaing other users. i may set up a dummy account (other dummy?) to test this theory.
    i checked my energy saver prefs. i had computer and display set to Never sleep. i had the box checked to put disk to sleep when possible. i have now unchecked that box.
    i also have just downloaded update to 10.4.4. so, i will try that.
    any other ideas, most appreciated. i am especially interested to know if there is software to look for possible virus infection that might cause this. since it happens randomly, i suspect it might be some bug (not sure if that is logical analysis on my part)
    steve

  • How can I resize a pdf page content with annotations and highlights in Acrobat Pro?

    How can I resize a pdf page content with annotations and highlights in Acrobat Pro while maintaining page size and annotation/highlight interactivity? I've tried to use the crop tool in Acrobat Pro (9) and the page does resize, but the highlights and annotations go all over the place. I specifically need to scale the page content smaller (83%) but maintain page size and annotation/highlight to content connection and interactivity.

    An old trick (not recommended) would be to print to a new PDF with the page size selected but a scaling of the content. Only print the document, not the markup, to a new PDF. Close that PDF when done and reopen the old one (or maybe a copy of the old one for safety) and use Document Replace pages and select the new document to replace your current pages. You will then have to go back through the markup to locate it all correctly. There may be a more elegant way, but this may be the fastest.

  • Best practice for integrating oracle atg with external web service

    Hi All
    What is the best practice for integrating oracle atg with external web service? Is it using integration repository or calling the web service directly from the java class using a WS client?
    With Thanks & Regards
    Abhishek

    Using Integration Repository might cause performance overhead based on the operation you are doing, I have never used Integration Repository for 3rd Party integration therefore I am not able to make any comment on this.
    Calling directly as a Java Client is an easy approach and you can use ATG component framework to support that by making the endpoint, security credentials etc as configurable properties.
    Cheers
    R
    Edited by: Rajeev_R on Apr 29, 2013 3:49 AM

  • Integrating Portal Server with MS Exchange Server

    I am trying to outline a solution for integrating MS Exchange with Portal
    Server. I realize that this can be done through the Exchange Netlet in iPS
    3.0, but this will enable Outlook client access on the users machine through
    the portal, and is not what we are looking for. What we would like to
    provide is calendar (appointments, tasks, etc.) and mail information within
    a channel on the portal. We would then provide a link to the web-based
    interface for Exchange within the channel. The interface is simple, since
    web-Exchange provides a URL, although any insight on providing SSO to the
    application would be helpful.
    Is there a way we can interface with Exchange using Java-based wrappers to
    retrieve the calendar and mail information for a specific user? It seems
    like the NetMail and iPlanet Calendar Server implementations would be
    overkill for what we are looking for.
    Any help with this would be greatly appreciated. Here are some of my
    thoughts:
    1. Since Outlook has a web-interface(provides a URL), we can obviously serve
    the web application up through the portal.
    2. iPlanet Portal Server 3.0 NetMail. This will provide us with an IMAP
    interface to the contents of the mail server, allow a user to send emails,
    read emails, create folders, change folders, etc. This seems to provide a
    full-fledge email application, which may be more than we actually need. Is
    there any way to use the Java NetMail Servlet or the NetMail Lite version to
    get what we are looking for?
    3. Using iPlanet Calendar Server for the appointments and schedule, although
    I believe that Exchange does not conform to the iCalendar protocol
    specification? Again, this is a full-fledge calendar application, and seems
    to be overkill for what we may need.
    4. Using a netlet to connect to Microsoft Exchange server, which can be done
    with Portal Server 3.0 because it implements the Microsoft Exchange/DCE
    protocol. Again, this provides Outlook client access, and I am not sure if
    this is what we want. Can we use the NetLet to capture the information
    being retrieved from exchange and display it using JSP rather than s
    5. Writing a Java wrapper to the contents of the mail server using the Java
    Mail API, although this does not solve the calendar problem. We can then
    display whatever info we want on our JSP pages using the wrapper classes.
    Sean.
    [email protected]

    4. Using a netlet to connect to Microsoft Exchange server, which can bedone
    with Portal Server 3.0 because it implements the Microsoft Exchange/DCE
    protocol. Again, this provides Outlook client access, and I am not sure if
    this is what we want. Can we use the NetLet to capture the information
    being retrieved from exchange and display it using JSP rather than sHave you actually gotten this to work? Would you mind sharing this part of
    your configuration with us?
    /Steve

  • Test inside  the table is truncated when integrating Adobe forms with WD4A

    Hi All,
    I am facing issue in table when integrating adobe forms with web dynpro for ABAP.
    Whenever the pagination happens the text in the table row cells is truncated and it starts from next row in next page. Is there any properrty of table in Form builder which I can use to allow the test to go to the next page?
    Best Regards,
    Arti.

    Hi. You should place your question in "SAP Interactive Forms by Adobe" forum. You will get advice quicker there.

  • Integrating WebLogic Server with CA SiteMinder Web Agent R6

    Hi I have searched on the topic of integrating WebLogic Server with the CA SiteMinder Web Agent R6 to provide single sign on services, and have been unable to find anything. Does anyone have any experience with this that could provide some tips, or could direct me to some documentation?

    It definitely can work. We have done the same thing in several installations. The question is "How secure does it need to be?" You will be using SM to do authentication. You will configure SSO to trust the SM header variable. If you really want to be secure you need to configure your boxes so that the http server on you SUSE box (for Portal) can only be accessed from the Reverse Proxy. If another machine can access it someone could spoof the header variable and log in as anyone they want.
    Hope this is helpful.
    Anton

  • List of GL required in the integration of FI With SD & MM

    Hi,
    I need a list of all the GL required for integration of FI with SD & MM.
    Please help me with the same.
    Regards,
    SAHU.

    Hi,
    As per client requirment we maintain GL account. I can give you few example.
    For SD: Sales revenue,Discount allowed
    For MM: Inventory a/c, raw material consumption a/c, GR/IR account
    Regards,
    Sreekanth

  • Integrating mod_plsql reports with Oracle Apps. A maddening dilemma.

    I'm hoping there is some guru out there that has the perfect solution to this maddening dilemma I'm facing.
    The crux of the issue is this.
    I've created mod_plsql reports that can accept a session_id with which they can set a user context based on global application contexts set in Oracle applications by users as they log in.
    At this juncture, I have not figured out a way to call those mod_plsql reports from Oracle apps using a variable session_id as defined for the user when they logged into apps.
    My client want to be able to log into Oracle apps and then go to the mod_plsql reports from the Oracle Apps menu and maintain the user session, so that the mod_plsql reports are run using VPD to constrain access to the data they are displaying to that specific user.
    The client does not have Single Sign On installed nor OID.
    I had hoped to pass a variable parameter session_id from the defined menu function that would call the mod_plsql url, but I don't see any way to pass a variable there and am becoming convinced that doing so is not an option. Can anyone confirm this?
    An alternate option I'm considering that seems like it would work is to create a JSP page that gets called from a menu function. In that JSP page, I would retrieve the session_id set in apps based on the context for the user_id that I could retrieve from fnd_global.user_id and assemble a URL with the session_id that the page would then re-route to the mod_plsql page.
    Unfortunately, I'm not versed in JSP.
    How hard would it be to create the sort of page that I'm talking about?
    Would the JSP need to part of OAF?
    Can anyone think of any other options that would take care of the issue I'm dealing with?
    Thanks.
    Kurt

    See answer on other forum: Integrating mod_plsql reports with Oracle apps. Maddening dilemma.

  • Integration of BI with Oracle EBS R12

    Hi friends,
    Im in the process of integrating oracle BI 11g with the EBS R12, by following the saurabh gautam document.
    I followed all the steps indeed in the document but it didnt worked as i can redirect to the BI 11g page soon after clicking the menu in the EBS R12, but the BI login page is appearing soon after that. Since i dont want that login page to ask and im looking for SSO with BI.
    So, soon after clicking the menu it has to go the BI home page directly. I have followed all the steps in the document but none seemed to work.
    I have followed the below steps in the EBS R12 application side.
    <li>Function
    <li>Menu
    <li>Responsibility
    <li>User
    <li>Profile
    And also setted up the change described in that document in the BI side too.
    <li>the Connection Pool for Oracle e-Business Suite database
    <li>Setting up Authentication
    <li>OBIEE Configuration Changes
    -----------Updating authenticationschemas.xml
    -----------Updating instanceconfig.xml.
    Finally i have restarted the BI server too. But while clicking the menu in EBS now it is redirecting to the BI login page instead of navigating to the BI home page.
    What might be the issue friends, is im missing something in the document that i followed.
    Brgds,
    Mini

    Hi,
    See below my thread this might be of some help to you. We could successfully integrate EBS and OBIEE.
    Logout link missing upon integrating OBIEE 11g with EBS (Not through SSO)
    Thanks,
    Sri

  • Integrating Active directory  with oracle EBS 12.1.3 with 11g R2 database

    Hi,
    can any one let me know Integrating Active directory windows 2009 R2 with oracle EBS 12.1.3 with 11g R2 database software requirements and document ids for integrating.
    Is windows 2008 active directory is cerfied with 10g OID??
    regards,
    chandrasekhar.

    Hi
    I found exact note
    Is OID 10g/11g DIP Compatible / Certified With Microsoft Active Directory 2008 / Windows 2008 R1/R2? [ID 944298.1]
    From note:
    DIP 10g latest version (10.1.4.3) and DIP 11g up to PS4 / 11.1.1.5 Patchset releases integrations are certified with MS AD 2008 R1 only.
    DIP 11g certification with AD 2008 R2 is supported only with DIP 11g PS5 / 11.1.1.6 Patchset or higher.
    Note: Although DIP below 11.1.1.6 integration (synchronization, external authentication, etc.) with MS Windows / AD 2008 R2 may work, it is not officially compatible / certified. See also Note 1076018.1.
    Regard
    Helios

  • Integration Webdynpro ABAP with Webdynpro Java in Portal

    Hi All,
    I am facing problem while integrating WDA application with WDJ. I can integrate successfuly one application and trying to invoke other one with different parameters, i am facing the problem
    There is no iView available for system "XXXX_SAP_XXX": object "xxx.xxxx.xxx.xxxx". For more information, contact your administrator.
    I am passing the parameters
    system                      
    object_type                
    object_value_name          
    operation
    Thanks in advance

    Hi Samir,
    Pls look into these threads -
    IE8 problem (WebDynpro ABAP iView call)
    WebDynpro for ABAP and IE 8.0
    Regards,
    Sen

Maybe you are looking for