Can jsp talk to ejb directly?

can java code in JSP talk to entity beans directly without using any intermediate java beans or java wrapper over ejb or java servlets. Please confirm if there are any technical issues.
thanks,
sandeep

It can be done.... however it would mean that a lot of code will have to be written inline.

Similar Messages

  • Can jsp files and  EJBs they use be seperated on different mahcines?

    Hi,
    I have a EJB on a Solaris machine, my question is:
    Can I put my jsp files that use this EJB on another machine (both machine
    have Weblogic Server installed) and have it look up the EJB on the first
    machine and create an instance of it?
    The difficulty is that in order for the jsp files to compile, you have to
    include the EJB classes first, which seems to be impossible because the EJB
    classes reside on a remote machine.
    Thank you in advance for any suggestions!
    --Tiejun

    It would also help to configure your JNDI on the web container host to see
    the EJBs that are on the ejb container host.
    Cameron Purdy
    "Wei Guan" <[email protected]> wrote in message
    news:[email protected]..
    Put Remote Interface, Home Interface, Application Exception & Primary Key
    classes in the weblogic.class.path of your jsp machine.
    Cheers - Wei
    tyang <[email protected]> wrote in message
    news:39887ae8$[email protected]..
    Hi,
    I have a EJB on a Solaris machine, my question is:
    Can I put my jsp files that use this EJB on another machine (bothmachine
    have Weblogic Server installed) and have it look up the EJB on the first
    machine and create an instance of it?
    The difficulty is that in order for the jsp files to compile, you haveto
    include the EJB classes first, which seems to be impossible because theEJB
    classes reside on a remote machine.
    Thank you in advance for any suggestions!
    --Tiejun

  • Is there a way to use EJBs directly inside WDJ without Model generation?

    Hello,
    Is there a way to use EJBs directly inside WDJ without Model generation, to avoid producing tonnes of code and reuse the JPA Entities?
    Thanks
    Sebastian
    Edited by: Sebastian Lenk on Nov 3, 2010 7:01 PM

    of course, you can.
    it's pure java programming.
    Context ctx = new InitialContext();
       Object o = ctx.lookup(
    "sap.com/HelloWorldEAR/REMOTE/HelloWorldBean/com.sap.sdn.ejb.HelloWorldRemote");
       HelloWorldRemote helloRef = (HelloWorldRemote) 
        PortableRemoteObject.narrow(o, HelloWorldRemote.class);

  • Can you talk to WebLogic Message Queues with C/C++

              Just curious, can you talk to message queues in WebLogic with C/C++, or do you jave
              to use the JMS API to get to it?
              We have some existing C/C++ code we need to communicate with and we are considering
              using message queues to do it. We have tried it with MQSeries and it works fine,
              but could we do the same thing with WebLogic. We already have WebLogic in production
              and would like to avoid having to also buy MQSeries just to integrate to the C/C++
              code and messaging is a lot easier than dealing with JNI.
              Any advise would be greatly appreciated!!!
              

    Hi Chuck,
              Here are some options:
              www.codemesh.com provides a C++ JMS wrapper (via JNI), one customer has instead
              recommended "Jace" http://sourceforge.net/projects/jace/
              Alternatively use RMI over IIOP to invoke an EJB that in turn calls JMS (WebLogic
              understands IIOP).
              Alternatively use HTTP/WebServices/SOAP.
              Personally, I think RMI/IIOP is an interesting option, post to the rmi-iiop newsgroup.
              Tom
              Chuck wrote:
              > Just curious, can you talk to message queues in WebLogic with C/C++, or do you jave
              > to use the JMS API to get to it?
              >
              > We have some existing C/C++ code we need to communicate with and we are considering
              > using message queues to do it. We have tried it with MQSeries and it works fine,
              > but could we do the same thing with WebLogic. We already have WebLogic in production
              > and would like to avoid having to also buy MQSeries just to integrate to the C/C++
              > code and messaging is a lot easier than dealing with JNI.
              >
              > Any advise would be greatly appreciated!!!
              

  • Who can one talk to at corporate on Adobe Story?

    I need the phone number of Adobe corporate  in the U.S. to discuss matters.  Please provide. Thank you.
    DRGM

    Mr. Kopriva I was told weeks before you had contacted me.  Thankfully I have recorded everything, have the complete history of things.  Helen at corporate has told me you told her you tried contacting me before this time so your email is extremely late.  Helen also told me you tried to correct things.  You also have earlier emails and my comments on the forum about the problems so you did not look at all my responses.  This heavy handed response and prevention of me to access to my stories is just another issue.  I get emails from everyone having similar problems.  I cannot log on to online and Adobe team has known this for months. Not everyone understands what the tech's are saying and after trying to do as instructed it did not work for some reason.  I am about to contact all local writers, the screen writers guild, software review companies, your corp offices by showing up in my wheelchair outside your offices, with a sign about what has happened and which can happen to anyone, competitor software companies of "Story" live, etc., your treatment and then prevention of people getting to their work, stories is monstrous and everyone needs to know.  So just keep ignoring a 5 minute solution to show you don't care about people.  I've asked for months for some help, by phone to direct me through a problem you have with your software. You (Adobe team) with your inability to accept criticism for a beta product and contempt for americans is tiresome.  Again my number is 480-782-8079 so I can get my stories off your software, saved and accessible for me, to me immediately, you can't take constructive criticism and no one dare have hardware problems because you software geeks don't give a damn about us.
    Date: Thu, 22 Sep 2011 09:49:17 -0600
    From: [email protected]
    To: [email protected]
    Subject: Who can one talk to at corporate on Adobe Story?
        Re: Who can one talk to at corporate on Adobe Story?
        created by Todd_Kopriva in Adobe Story - View the full discussion
    What exactly is the issue that you need help with? If you ask here, perhaps we can help you.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3932135#3932135
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3932135#3932135. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Story by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Orarrp can't print pdf file directly to printer

    oracle remote print utility (orarrp) can't print pdf file directly to printer.
    we expect orarrp utility can handle ".rrpa" file (i.e. pdf file generated on the application server) by directly print the file to the client's printer, i.e. invoke the acrobat reader on the client side, display the the printer selection dialogue, after confirmation print the pdf file, then the acrobat reader close automatically nicely.
    However we are disappointed as the acrobat reader startup and display the pdf file content but does not print and does not close.
    After testing the problem several times, there are some findings:-
    Finding (A):-
    (a) for the success of direct printing of pdf file, a physical path must be provided; we have tried 2 methods:
    1) using drag & drop to copy the pdf file directly to the browser
    2) open pdf file in the browser directly using browser menu-->File-->Open.
    (b) for the failure of direct printing, a virtual path is involved and we have also tried 2 methods:
    1) when web.show_document() is used
    2) enter the url to the URL bar of the browser,
    eg. http://appsvr.com:7777/report/test_printout/APPSVR1094707.rrpa (this is a virtual path/url)
    Finding (B):-
    (a)when the physical path is used, a temporary pdf file is generated in the same directory where the rrpa file exists in the application server,
    e.g. in application server: d:/printout/yyy.pdf is generated for d:/printout/xxx.rrpa when direct print occurs
    (b) however when the virtual path is used, there is no such temp "pdf" file generated and direct print failed.
    May be when virtual path is used, orarrp utility don't know where to generate the temp "pdf" so direct print doesn't occur.
    So, anyone has similar experience or further queries or has solutions, please join.
    Thanks for your attention.

    Hi,
    It is really late to give response this post. But still who ever refering to this post for the same issue this solution is useful for achieving same in background:
    Even same can be used in smartforms, for getting spool request in PDF format as well which will decrease the size of file when printing in SAP printer.
    ct_tline is PDF output:
    DATA: lv_pdfsource TYPE xstring.
    FIELD-SYMBOLS:<p> TYPE x. " <p> type any.
    LOOP AT ct_tline INTO cs_tline.
      ASSIGN cs_tline TO <p> CASTING TYPE x.
      CONCATENATE lv_pdfsource <p> INTO lv_pdfsource IN BYTE MODE.
    ENDLOOP.
    * ->Create spool request in PDF format
    CALL FUNCTION 'ADS_CREATE_PDF_SPOOLJOB'
      EXPORTING
        printer  = 'LOCL'            "Printer name supporting PDF device type
    *   DEST     =
        pages    = 1
        pdf_data = lv_pdfsource        "XSTRING internal table
    *   NAME     =
    *   SUFFIX1  =
    *   SUFFIX2  =
    *   COPIES   =
    *   PRIO     =
        IMMEDIATE_PRINT         = 'X'
    *   AUTO_DELETE             =
    *   TITLELINE               =
    *   RECEIVER =
    *   DIVISION =
    *   AUTHORITY               =
    *   LIFETIME = '0'
    * IMPORTING
    *   SPOOLID  =
    * EXCEPTIONS
    *   NO_DATA  = 1
    *   NOT_PDF  = 2
    *   WRONG_DEVTYPE           = 3
    *   OPERATION_FAILED        = 4
    *   CANNOT_WRITE_FILE       = 5
    *   DEVICE_MISSING          = 6
    *   NO_SUCH_DEVICE          = 7
    *   OTHERS   = 8
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.

  • Can I cut and paste directions obtained via maps into a word doc or something so I can see them if I can't connect to the internet

    Can I cut and paste directions form maps into a word doc - or save it somewhere on my iPad so I can access it when I can't access the Internet?

    Take a screen short.
    Simultaneously press the Sleep and Home button. You will notice an on-screen flash. If you have sound enabled, you will hear a camera click.
    The screen shot is stored in Camera Roll.

  • (261936172) Q general How can I access an EJB hosted on a remote server?

    Q<general> How can I access an EJB hosted on a remote server?
    A<general> The ability to add EJB control files enables you to access an EJB that
    is deployed to the server on which your web service is running. When you select
    "add EJB control" you need to supply the home and remote interfaces for the EJB
    as well as the JNDI name. This does not provide you with the capability for creating
    a control for a remotely hosted EJB. To use a EJB hosted on another server you
    will have to provide the appropriate code within your web service itself. You
    will have to programmatically gain to access the JNDI for the remote server, lookup
    up the home stub and use it to create the remote stub for the EJB. Of course,
    to make this work you must have the necessary client interfaces in you classpath
    (home and remote interfaces) which can easliy be achieved by adding the EJB client.jar
    file to the lib directory in the webservice WEB-INF folder.

    just define the different server path in the description xml file
    <jndi-name>jnp://serverA(B)/....</jndi-name>

  • How can I transfer photos from my comp to my ipad2.I have the connection kit and can transfer photos that are direct from camera BUT if I transfer photos from comp to card it will not recognize them ????

    how can I transfer photos from my comp to my ipad2.I have the connection kit and can transfer photos that are direct from camera BUT if I transfer photos from comp to card it will not recognize them ????

    To sync photos from a Mac or Windows PC to your device using photo applications
    Make sure you have the latest version of iTunes installed.
    In iTunes, select your device's icon in the Devices list on the left.
    Click the Photos tab.
    Choose "Sync photos from."
    On a Mac, choose iPhoto or Aperture from the pop-up menu.
    On a Windows PC, choose Photoshop Album or Photoshop Elements from the pop-up menu.
    Note: Some versions of Photoshop Album and Photoshop Elements don't support collections. You can still use them to sync all your photos.
    If you want to sync all your photos, enable the option for "All photos, albums, events, and faces." If you want to sync photos from only some albums, events, or faces, enable the option for "Selected albums, events, and faces" and then select the albums you want. If syncing on a Mac with iPhoto version 6.0.6 or later, you may enable the option to "Include videos" to sync videos directly from iPhoto to your device. (Requires iOS 3.0 or later).
    Click Apply.
    To sync photos from a folder on your hard disk to your device
    Drag the images you want into a folder on your computer. If you want images to appear in separate photo albums on your device, create folders inside the main folder and drag images into the new folders.
    In iTunes, select the device icon in the Devices list on the left.
    Choose "Sync photos from."
    Select Choose Folder from the pop-up menu and choose your main image folder.
    Click Apply.

  • How can i access the EJB from a Webdynpro

    Dear all,
    How can i access the ejb , from a webdynpro?.
    Is there any way to do that?.
    I want to write the entire code (business functions) within the EJB and i wan to access the entire methods from a WebDynpro Application.This is the situation.
    Please help me to , resolve this problem.(Here im using JDBC Connection .. etc.).
    I want to do the basic connection setting's and data retrieval part within the EJB and use that within the WebDynpro..
    how can i seperate this two(i mean, i want to seperate the JDBC connections and WebDynpro,i dont want to hard code any connection parameters within the webdynpro code)
    So that i want use that saet of particular function's in many webdynpro applications..
    (i dont need any help regarding webservice way.)
    If anyone can , please help me..
    I tried that javabean class , manifest file , that way (importing javabean model).
    but im getting errors.
    I cant properly utilize that..
    So please help me with steps regarding that,,
    for javabean
    and if any , for EJB also..
    with regards
    Kishor.G

    HI,
    Since webdynpros follows Model View Controller Architecture You can access EJBs in webdynpro(views/frontend) infact to connec to database uding JDBC you have to utilise EJB ( opening connection to database closing, and other Business functionality).See this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq#q-7
    <b>How to access the Car Rental Web Service?</b>
    Regards,
    RK

  • Hi, My face time is not working properly in my computer and mi iPhone, some of the people that i used to contact a can't talk to anymore, and some i can. Its not working in my mac nor in my iPhone, it just shows legend that says face time error

    Hi, My face time is not working properly in my computer and mi iPhone, some of the people that i used to contact a can't talk to anymore, and some i can. Its not working in my mac nor in my iPhone, it just shows legend that says face time error, what can i do???

    Assign an email address (gmail.com?)
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I can no longer purchase music directly from the Apple TV. I can still buy TV shows and movies but no music.....

    I can no longer purchase music directly from the Apple TV. I can still buy TV shows and movies but no music.....my iTunes match is there.

    Welcome to the Apple Community.
    Have you tried restarting the router, the Apple TV and iTunes.

  • 5th generation ipod not detected by my windows xp.  works fine on other pc.  performed necessary steps to remove and reinstall itunes but having same issue. is there a driver i can download to pc then direct to that specific location when installing?

    5th generation ipod not detected by my windows xp.  works fine on other pc.  performed necessary steps to remove and reinstall itunes but having same issue. is there a driver i can download to pc then direct to that specific location when installing?

    I have a similar issue - my iPod nano connects and is visible in Device Manager yet invisible in My Computer and iTunes. I've tried everything I can possibly think of to try and solve this myself, all in vain.
    Mine is a nano 4G. I've been using it for quite some time without the slightest problem. I have been using WINAMP instead of iTunes to manage my darling nano.
    Then, one fine day I bought a new computer and the nano would not show up in My Computer, though the nano display shows "Do not disconnect". On my old computer it worked (and still works) absolutely fine with win XP as well as with win7 (the later I currently use on my new/problematic computer, which I bought last summer and that's how long I've had this problem).
    Of course, after several first attempts I gave up and installed iTunes. I've tried using the Apple support article "iPod not recognized in 'My Computer' and in iTunes for Windows":
    - reset
    - fully charged,
    - cable works fine on two other computers
    - in normal or disk mode makes no difference
    - tried to find anything useful in the diagnostics mode
    - reinstalled iTunes several different times since then to the latest version
    - I've unplugged every other USB device except for my mouse and keyboard and tried several different USB ports on my motherboard (USB 3.0 and conventional), as well as trying different USB- related options in my BIOS.
    - I've never used any Mac with this ipod
    - I've tried fiddling with the win7 Services by stopping and restarting them and of course
    - uninstalling the iPod drivers in Device Manager. After such an uninstall the ipod would automatically be recognised and "ready for use", i.e. being invisible in My Computer.
    - Attempted to find any possible third-party conflict with msconfig or the possibility that my ipod is being confused for a network drive (for which I've disconnected my HDD, leaving only my SSD with the OS).
    Sometimes, iTunes would note that iPod service (or something, can't remember exactly) failed to install properly and asked to try and repair it. I would click YES! and voila - no change! The ipod would rarely show up in iTunes on my problematic computer like this:
    iTunes would warn me that the nano would need restoring so I would try and do it on my haunted machine upon which iTunes would freeze like you seen in the picture.
    Despite this, I've updated and restored the nano on my father's computer to the latest version without any problems. This though, did not solve my problem in any way.
    I can load music to my nano through my old computer (which for me is a real pain and hassle) and the gadget works normally in terms of its disconnected functionality.
    I've taken my nano to the local service for repair and they said it was fine. Mercifully, they didn't charge for the diagnostics service (gee, thanks for not ripping me off!).
    Here are two screengrabs from my Device Manager
    and Devices and Printers screens on my comp:
    That is my sad story as far as I can remember. It's most likely something with the drivers or something along those lines though I'm out of ideas at this point.
    If you think you have any idea PLEASR HELP, I'M DESPERATE!

  • How can I talk with more then one person at a time?

    How can I talk with more then one person at a time? With Faxe time? Is thier software needed to do this or can it be done with the basic package?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Can I backup my Ipad directly to Time Capsule

    Is there a way to backup an Ipad without connecting directly to a Mac or PC?

    can I backup my iPad directly to Time Capsule?
    In a word, no.
    The iPad backs up to iTunes on your Mac or PC. Then, the Mac backs up in turn using Time Machine to the Time Capsule.
    Your other option is to backup the iPad using iCloud.
    See this Apple support document for complete info on iOS backups:
    http://support.apple.com/kb/ht1766

Maybe you are looking for

  • Problem when re-entering variables in report

    hi all, I have a very strange problem... I'm using a webtemplate with 3 different queries in it. One of these queries is a report that shows exchange rates for a certain period... This period is entered in the variable screen upon starting the report

  • Auto increment rows in Oracle

    Hi..How does one define an autoincrement row in oracle.In SQL Server they use IDENTITY .. Thanks for the help.

  • My Airport Extreme will no longer let new user connect

    The Airport Extreme will not allow new users to connect to via wifi. The users that are currently on the wifi are able to continue using the wifi, but new users cannot connect. I have tried resetting to the factory settings. But the problem has retur

  • Using UFL's in RCP application

    <p>We are trying to use UFL functions in a RCP client that we downloaded from this site (BaileyRCPDemo).  </p><p> We built the UFL based on 'Crystal Reports for Exclipse - Using User Function Libraries to Internationalize Reports'. This part went fin

  • How can i recover my reading list in safari back ??

    How can i recover my reading list in safari, once deleted??