Does AQ 9.0.1 actually work with OC4J 9.0.2?

Hello,
I have been trying to get my MDB running on OC4J 9.0.2 to write to the database upon the receipt of a message, but has been unsuccessful in doing so. Here is the source of my sample MDB to demonstrate the point:
import java.sql.*;
import javax.sql.*;
import javax.ejb.*;
import javax.naming.*;
import javax.jms.*;
import javax.transaction.*;
public class ReceiverBean
     implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener {
public void ejbCreate() {
public void ejbRemove() {
messageContext = null;
public void setMessageDrivenContext(MessageDrivenContext context) {
     messageContext = context;
public void onMessage(javax.jms.Message message) {
try {
System.out.println("Beginning");
System.out.println("Getting connection");
java.sql.Connection conn=null;
InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.
lookup("java:comp/env/jdbc/DefaultDB");
conn=ds.getConnection();
System.out.println("Got connection");
PreparedStatement stmt=null;
System.out.println("Preparing insert stmt");
stmt=conn.
prepareStatement("insert into test values(?)");
stmt.setString(1,"blah");
System.out.println("Executing");
stmt.execute();
System.out.println("Wrote something");
conn.close();
} catch (Exception e ){
System.out.println("Exc on close:"+e);
private MessageDrivenContext messageContext;
As you can see all it does is insert a row in table on the database. There is no exception thrown, whatsoever, and I can ever get the correct resultset back if I do a query in the onMessage method immediately after the insert to the database. However, when I can check on the database, this row is not committed. Can anyone tell me how I can get the transaction to the database committed (given that it is container managed), or get the same JDBC connection that the MDB is listening on (since the JMS session is actually a JDBC in AQ)? I cannot change the MDB to bean managed because of the limited of OC4J 9.0.2 and AQ.
Thanks in advance,
Keith

I am using Database 9i 9.0.1 with patch set 2 and oc4j 9.0.2 standalone J2EE container. I received the message, but I cannot insert a row to a table in the database whose connection is obtained through the EJB container's datasource connectin pool. The container would return the call successfully but it does not perform a commit, as such I don't see it the insert from the database side.
Thanks
keith

Similar Messages

  • What does HTML have over PDFs when working with data?

    I'm doing some research for a client whose company is moving from PDFs to HTML for their in-house user interfaces.
    What does HTML have over PDFs when working with data?
    Thanks!
    Luke

    PDFs can indeed work with data and can be programmed with javascript. You can do some pretty interesting things with it. It is even possible to create interactive forms on the web using PDF, however it requires server-side support. As a general rule, though, PDFs are terrible as a web interface and it's far easier to work with HTML and PHP.
    HTML is lightweight and PDF isn't (in case that seems like a small thing, it's actually a big negative for PDFs). The success of your PDFs will depend on the versions of acrobat your users use, and getting data in and out of the PDFs will require learning far more about Acrobat's FDF format and XML implementation than you may want to know.

  • Does airport extreme 802.11a/c work with airport express 802.11n

    does airport extreme 802.11a/c work with airport express 802.11n

    "You can use the AirPort Express to extend the signal provided by the new AirPort, but the Express will not extend "ac" wireless since it does not have that capability. The Express will extend an "n" wireless signal if that helps."
    This is what I am trying to understand.
    So AXTRM w/ sep SSID for 2.4 (b/g/n) - call it SSID1 - and 5GHz (ac) call it SSID2 - WiFi Explorer confirms AC mode on 5G.
    Using an AXPRESS to extend - I have the option of SSID1 b/g/n *and* the 5GHz ac SSID2 in the pulldown (it sees both?) --> if I select SSID1, it also extends this same SSID in 5GHz (both showing b/g/n) >> so I now have 3 signals on SSID1 (XTRM 2.4G, XPRS 2.4G and XPRS 5G) b/g/n and one signal on SSID2 (XTRM 5G AC) ac
    If I select the 5Ghz ac SSID2 to extend - it prompts me "do you also want to extend (the 2.4GHz SSID1)?" --> select yes and I now have 2 signals for SSID (XTRM 2.4G & XPRS 2.4G) b/g/n and 2 signals on SSID2 (XTRM 5G 802.11ac & XPRS 5G 802.11 a//n)
    Is the 5G SSID2 actually being extended from the Airport Extreme to the Express?
    The reason I bring this up is I am having a lot of issues since iOS8 came out (especially on iPhone 6). Everything I am reading is pointing to when people have 2 AP's set to use the same SSID. When you walk to a part of the house where 5G 802.11 ac signal marginalizes, the phone does not immediately hand over to the 5G 802.11 a/n Airport Express.
    My thought was separate the SSID's but to me, if the Express can't extend 5Ghz from the Extreme, it's taking a step backwards. I am better off getting a more powerful router like an ASUS and going with one AP, drop the WiFi roaming altogether
    Any thoughts?

  • Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    If the Belkin supports the A2DP (Stereo Bluetooth) profile then it will work.

  • Does Microsoft Entourage 2008 for mac work with the new Mac OS X v 10.7 Lion

    Does Microsoft Entourage 2008 for mac work with the new Mac OS X v 10.7 Lion?
    I am just about to install Lion just need to check to see if if my work e-mail will work

    Sarah,
    Check this link:
    http://roaringapps.com/app:2533
    It contains some issues that people have encountered with Lion and Office 2008. It appears it can work, but you may have to go through some of the steps a few of the posters there have listed.
    That website also contains a pretty large list of applications and if they will work with Lion.
    Hope this helps! (I am not affiliated in any way with the site linked).

  • Why Does Live View In DW Not Work With BC Template?

    The live view using a BC template in DW CS6 shows "PAGE NOT FOUND" in the body section but the header and footer look fine. I should also point out that the index.htm page works fine, it's just the other pages that have this problem. What makes it weirder is that the site works fine in all other modes including when viewing in a normal browser, it's ONLY when in live view! I also noticed that if I delete the .htm extension in the url in the DW browser when in Live View it fixes the problem, but this requires me to do this everytime I want to switch to live view and surely is either a problem with how the BC template files are named or DW CS6 is buggy? Hopefully this is an easy one to answer??

    Hi Alex,
    Thanks for your reply, I have done a video demo at http://screencast.com/t/RsutrvoFn0xZ
    Date: Thu, 14 Feb 2013 05:49:55 -0800
    From: [email protected]
    To: [email protected]
    Subject: Why Does Live View In DW Not Work With BC Template?
        Re: Why Does Live View In DW Not Work With BC Template?
        created by Alex Pavelescu in Dreamweaver & Business Catalyst - View the full discussion
    Hi, Please provide the site url, and if you can, a video demo of the issue you're facing, using http://www.techsmith.com/jing.html, where you could also display the way you have your side setup ( Dreamweaver menu > Site > Site manager > http://screencast.com/t/GqqBk9MY4ck ) Kind Regards,Alex
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5072585#5072585
         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/5072585#5072585
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5072585#5072585. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver & Business Catalyst by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How well does the wireless "Wild Charge" pad work with the iPhone?

    how well does the wireless "Wild Charge" pad work with the iPhone?

    I have tried similar things, and no, it has not become corrupted. So it should be fine

  • Does the Pocket Projector by Brookstone work with the iphone 5?

    Does the Pocket Projector by Brookstone work with the iphone 5 ?

    I have the Brookstone DLP Pico projector. I purchased it from EBay not too long ago. It worked before with the previous version of Apples iOS. I would view netflix, youtube, and videos.. I have an iphone4.
    Now with the latest update to ios7, tried it last evening with netflix and youtube, it does not work at all! This is rediculous, restricting access to something we had access to before

  • Why does my printer HP 3080 not work with Mac OS X VERSION 10.7.5

    Why does my printer HP 3080 not work with Mac OS X VERSION 10.7.5. Am I missing a driver? If so where do I go to download it? thanks

    What's the full model number and name of the printer?  I can't seem to find any HP printer with the numbers 3080 in the model number.
    How are you connecting the printer to the Mac?
    I am a printer tech for HP.

  • Why does my camera connection kit not work with my ipad 1 after updating on ios 5?

    Why does my camera connection kit not work with my ipad 1 after updating on ios 5? What can I do to make it work again?

    It should. It will only respond if there's something on the card for it to respond to, so do you have pics on the card?
    And if it's messing up; try giving the iPad a restart. Hold down the sleep and home keys, past when you see hte red power down slider and until you see the silver apple. Let it reboot and try again. That can clear up any glitches on the device itself.

  • Why does my digital AV adapter not work with my iPad

    Why does my digital AV adapter not work with my iPad

    i was going to try it on a flat screen hdmi input, but just as i plug the apple digital av adapter in to my ipad it says "this accessory is not supported by ipad"... my itouch says the same thing... any ideas?

  • Does the hp mini wireless mouse work with a mac?

    Does the hp mini wireless mouse work with a mac?

    The only one that will work with OSX is the one you order with the Mac Pro from Apple. The others don't have the correct firmware for OSX.
    I've also noticed that the online store lets have an option for the QuadroFX 5800 to purchase with a Mac Pro
    No, it's the NVIDIA Quadro FX 5600. That is the only way to get it. NVIDIA does not sell it directly.

  • Does Logic Studio v.2.1 work with "any" intel processor?

    Does Logic Studio v.2.1 work with "any" intel processor?

    Any Intel CPU that Apple ships or has shipped. What do you expect? 80286?
    If you asked for a recommendation: i7 with 8 cores works great.

  • HT4101 Does the Ipad camera connection  kit work with the Ipad 4 and if not is there an adapter?

    Does the IPad camera connection kit work with the Ipad 4 and /or is the an adapter ?

    You want the newer Lightning to USB Camera Adaptor.
    http://store.apple.com/us/product/MD821ZM/A/lightning-to-usb-camera-adapter
    The old Camera Connection Kit also works and I use it on my iPad 4, however, to use this your will need the Lightning to 30 pin adaptor.
    http://store.apple.com/us/product/MD824ZM/A/lightning-to-30-pin-adapter-02-m

  • Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    That's probably a broken display profile. The conversion from Library's Adobe RGB is different than the conversion from Develop's linear ProPhoto, so if there's a problem with the display profile it can show up this way.
    Recalibrate, or if you don't have a calibrator use sRGB. If your monitor is a wide gamut model use Adobe RGB.
    Assuming Windows, change it in Control Panel > Color Management > Devices, and relaunch Lightroom so that it can pick up the new profile at startup:

Maybe you are looking for