Is there any tutorial for jms development with jdeveloper out there ?

Hi
Thank you for reading my post
is there any tutorial which show us how to use jdeveloper +oc4j for JMS stuff ?
I mean an end 2 end tutorial to build mdb+jms resources in oc4j + client
it will be far better if the tutorial shows how we can use jdeveloper features for this task (if it provide any wizard...)

This is an example of a client:
public String listeningJMS (Context context) throws Exception
String topicName = "jms/demoTopic";
String topicConnectionFactoryName = "jms/TopicConnectionFactory";
TopicConnectionFactory topicConnectionFactory = null;
TopicConnection topicConnection = null;
TopicSession topicSession = null;
Topic topic = null;
TopicSubscriber topicSubscriber = null;
TextMessage message = null;
String fileName = null;
* Look up connection factory and topic. If either does
* not exist, exit.
try
topicConnectionFactory = (TopicConnectionFactory)
context.lookup(topicConnectionFactoryName);
topic = (Topic) context.lookup(topicName);
* Create connection.
* Create session from connection; false means session is
* not transacted.
* Create subscriber.
* Register message listener (TextListener).
* Receive text messages from topic.
* When all messages have been received, enter Q to quit.
* Close connection.
topicConnection =
topicConnectionFactory.createTopicConnection();
topicSession =
topicConnection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
topicSubscriber =
topicSession.createSubscriber(topic);
topicConnection.start();
System.out.println("Receiving: ");
TextMessage msg = (TextMessage) topicSubscriber.receive();
String xmlString =msg.getText();
topicConnection.close();
System.err.println("Received: "+xmlString);
fileName = this.getFileName(msg.getText());
} catch (Exception e) {
throw e;
} finally {
if (topicConnection != null) {
try {
topicConnection.close();
} catch (JMSException e) {throw e;}
return fileName;
public static Context getInitialContext() throws NamingException {
Hashtable env = new Hashtable();
// Standalone OC4J connection details
env.put( Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory" );
env.put( Context.SECURITY_PRINCIPAL, "oc4jadmin" );
env.put( Context.SECURITY_CREDENTIALS, "welcome1" );
env.put(Context.PROVIDER_URL, "ormi://localhost:12401");
//env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
return new InitialContext( env );
}

Similar Messages

  • Is there any tutorial for integrating struts with hibernate using JDevelope

    Hi Everybody
    I am using Jdeveloper...and I want to know is there any tutorial available for usinfg struts and hibernate.
    If anybody knows abt them...plz tell me the links.
    Thanks and Regards
    K Sreenivas

    A tutorial about using hibernate in JDeveloper is here:
    http://www.oracle.com/technology/pub/articles/vohra_hibernate.html
    There are many papers and tutorials about Struts in JDeveloper - just go to the tutorials page and technical papers pages linked from the JDeveloper home-page.

  • Is there any tutorial for using ARM cortex-A processors of Zynq for digital signal processing ?

    Hello, everyone.
    Is there any tutorial for using ARM cortex-A processors(such as A9 and A53) of Zynq to deal with digital signal processing  problems?
    Please tell me , thanks.

    Hi
    Check below links
    http://www.xilinx.com/training/zynq/software-acceleration-for-dsp-functions-with-zynq.htm
    https://www.youtube.com/watch?v=ErEG7ZREcJQ
    http://www.xilinx.com/support/documentation/application_notes/xapp1170-zynq-hls.pdf
    http://www.xilinx.com/support/documentation/application_notes/xapp890-zynq-sobel-vivado-hls.pdf
    http://www.xilinx.com/support/documentation/application_notes/xapp1167.pdf

  • Are there any fixes for iPad 2 with OS 8.1.1.

    Are there any fixes for the iPad 2 IOS 8.1.1?  I've had problems with Safari and other Apps crashing or locking up, and with extremely slow touch response.  These problems have been occurring since the last update.  At times the iPad becomes unusable.  I have been keeping all programs closed and history and web site data cleared.  Thanks for any help you can give.

    Hi, dannilee,
    I have exactly the same problem. The device was my favorite computer until 8.1.1. Now it runs s-l-o-w-l-y, requires endless reboots.
    To improve the performamce, I have tried these:
    1.Go to Setting->General->Accessibility->Reduce Motion. Turn on.
    2.Reset iPad device settings using Setting->General->Reset->Reset All Settings. Its increase iPad performance little better.
    3.Hold the sleep/wake button and home button upto 8 seconds. This will turn off your iPad. Then turn on iPad. Wait few moments. Do the same thing twice to solve this issue.
    Solution 3 worked for me. And, I always recommend you to backup your iPad first before any action to avoid any data loss.
    Hope it is useful for you.

  • Any tutorial for using Hibernate in Jdeveloper?

    Hi
    thank you for reading my post
    is there any tutorial that helps with using Hibernate with Jdeveloper?
    specially the ant task stuff about schema generator and Hibernate annotation?
    Thanks

    Hi,
    The previous problem is solved but now getting another error
    500 Internal Server Error
    javax.faces.FacesException: #{Catalog.commandButton_action}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at javax.faces.component.UICommand.broadcast(UICommand.java:332)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 20 more
    Caused by: java.lang.NullPointerException
         at hibernate.HibernateDB.getData(HibernateDB.java:168)
         at hibernate.Catalog.commandButton_action(Catalog.java:112)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 21 more
    Where line 168 is
    result[0] = new String(""+catalog.getId());
    please help.
    Thanks

  • Is there any tutorial for an extension that just changes a variable in the about:config?

    Hi all,
    I am trying to create my first firefox extension, which will simply change the value of one of the about:config variables. I looked all over for tutorials that could help me, of course, but I found none that covers that specific matter (changing a variable of the about:config). Do you know any?
    Thanks in advance!

    Hi Maudluna,
    I understand you would like to sign out your Apple ID from an iPad. You can do this easily by following the steps in the article below. I have also linked to an article about Family Sharing which can help you create and manage multiple accounts:
    iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store - Apple Support
    Start or join a family group using Family Sharing - Apple Support
    Family Sharing makes it easy for up to six people in your family to share each other’s iTunes, iBooks, and App Store purchases without sharing accounts. Pay for family purchases with the same credit card and approve kids’ spending right from a parent’s device. And share photos, a family calendar, and more to help keep everyone connected.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • Are there Any Charting solutions that works with JDeveloper/ADF?

    Are there any Charting solutions ( e.g. barchart, piecharts, etc) that works with JDeveloper / ADF ?

    This question came up here once before. I think the conclusion is: No, not with vanilla ADF. However, if you're interested, the thread did mention some other library you might want to try.
    Good luck,
    Brian

  • Is there any tutorial for SAP Java Backend Development?

    Hi everyone,
    I am following the "How To - Part 1: Build an Agentry based app from scratch connecting to a SAP ERP back-end" to learn Agentry by myself.
    There are some Java code when creating the Steplet, StepHandler and Bapi that I dont understand. I would like to know if there is any document or tutorial to learn how to write  such Java code. I already know the Agentry stuffs like fetch, step, etc.
    For example, why do we need the processResult or setParameter method? Why do we need JCO.Table? Where is the table "ET_FLT_SCHEDULE"
    public class FlightScheduleBapi extends AbstractFetchBAPI{
    public User user = null;
    public FlightScheduleBapi(User u, GregorianCalendar lu) throws Exception {
    super(u, lu);
    user = (User) u;
    @Override
    public ArrayList<SAPObject> processResults() throws Exception {
    ArrayList<SAPObject> spfliTab = new ArrayList<SAPObject>();
    JCO.Table _sTab = _tables.getTable("ET_FLT_SCHEDULE");
    int rows = _sTab.getNumRows();
    for(int i = 0; i<rows; i++)
    _sTab.setRow(i);
    FlightSchedule spfliLine = new FlightSchedule(_sTab);
    spfliTab.add(spfliLine);
      return spfliTab;
    @Override
    public void setParameters(SAPObject obj) throws Exception {
      super.setParameters(obj);
    try {
      } catch (Exception e) {
    user.rethrowException(e, true);
    Thank you very much.
    Tags edited by: Michael Appleby

    Anyone can help me out of this?
    I am looking for AbstractFetchBAPI but there is no information about it.
    I found JCO Client Connection and JCO getTable to access SAP tables. Can I use this way in Agentry App?
    Thanks.

  • Is there any hope for Mac users with AMD D700 graphic cards trying to run Adobe Premiere 2014 CC?

    Who wants to watch a grown man cry?  I spent a small fortune on a shiny new mac with 64GB Ram and to quote Larry Jordan, "I could rocket to the moon with the power of this computer."  I am running OSX (10.9.5) and have a 12 gig per channel ethernet Maxx Digtial Raid with Areca cards to support 6K footage.  However, editing my first project in Premiere CC2014 (leaving FCP 7) has been nothing short of problematic.  At first, it plays great but after 20 minutes of editing, speed changes, adding secondary shots etc it starts to play choppy, freeze on certain frames playing just audio and eventually crashes or it takes a minute to render.
    I did every possible thing yesterday with Adobe and Apple support.  I reinstalled the OS, I trashed 3rd party preferences, trashed Premiere preferences, set project settings from OpenCL to software only and I tried changing location of the Premiere Cache folder but nothing seems to work.  Eventually the last Adobe support person said it was due to the AMD card and Adobe.  He was emphatic that it was Apple's fault.  Apple's support team said it Adobe's.  Well after that, Im still stuck.  Is anyone else experiencing this?  Any pieces of the puzzle?
    Is anyone else having the same experience?

    The default for CPU Voltage is By CPU VID default for Adjust CPU VID is Startup which should be 1.4 volt. Since Cool'n'Quiet requires a driver to run and I also show low CPU VID in cmos it should be 1.4v but I tried with Cool'n'Quiet disabled and also tried setting CPU VID to 1.4 but have never made it to 1.4 I also tried setting it to 1.425 which is the next step and still read under 1.4.

  • HT5093 is there any tutorial for beginners on ibook atthor??????

    how to use ibook author for creating new book including all features and opitonns in it?

    See: Publishing With iBooks Author
    http://shop.oreilly.com/product/0636920025597.do 

  • Is there any tutorial for annotations

    I downloaded the spec but it is a bit too technical for me. I need something for the dummies, like the generics tutorial..

    Sorry for taking a bit long. Yes that it the tutorial I am referring to.

  • Is there any hope for a printer with ink system failure...​I took my cartridge with me to the store

    I didn't realize I needed to leave the cartridge in...I have tried all your suggestions & nothing works!

    alanfromwickford wrote:
    just to add, i'd remove the back case to allow mor rapid drying, but expect the wosts - because it's less disapointing if you then lucky
    What a colossally bad idea!  To anyone reading this thread DO NOT DO THIS!!!  Once anyone other than an Apple Authorized Service Provider (and that doesn't automatically mean your carrier, just FYI) opens up the device, then ALL options from Apple are gone, permanently.

  • Is there any repair for my wifi being greyed out other than heating and cooling

    can Apple repair it ?
    My carrier dosent want to know !!!! and because the coverage isn't great my battery is only lasting a few hrs ???
    hhave updated and backed up and restored which worked for a few days

    Apple does not repair just parts of the iPhone 4s, if you are wiling to pay the service fee, Apple will replace your device with a refurbished one:
    Out-of-warranty repair service
    If your repair isn’t covered by Apple’s One Year Limited Warranty, AppleCare+, or AppleCare Protection Plan, your iPhone might be eligible for out-of-warranty service. For example, liquid damage isn’t covered by warranty but might be eligible for out-of-warranty service. Some damage isn’t eligible at all, for example if your device has been broken into multiple pieces. See Apple’s Repair Terms and Conditions for complete details.
    Read Apple’s Repair Terms and Conditions
    Model
    Out-of-warranty service fee
    Battery service*
    iPhone 6 Plus
    $329
    $79
    *available only if battery
    fails Apple’s diagnostic test
    iPhone 6
    $299
    iPhone 5s, iPhone 5c, iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS, iPhone 3G,
    Original iPhone
    $149
    Plus a $6.95 shipping fee, if required. Fees are in USD and exclude local tax. Pricing is for service through Apple. The final service fee we charge will be determined during testing and may be less than the service fee listed above. Pricing and terms vary for service through an Apple Authorized Service Provider.
    copied from Service Answer Center - iPhone

  • Are there any DVD copiers and Video- iPod converters out there?

    I want something other than DVD Decrpyter and Videora, because they aren't working for me. Anything else?

    http://www.alltomp4.com/
    http://www.imtoo.com/dvd-to-ipod-converter.html
    I'm using both alternately and are both good. No need for decrypter. By the way, these are not free as well but mine are.

  • Any tutorial for building adapters and routing services for JBI container ?

    Hi
    Thank you for reading my post
    is there any tutorial for Sun JBI container ?
    I want to know how i can build/deploy JBI components like adapters and routing service for Sun JBI container .
    another question is that , is it based on OpenESB ?
    thanks

    You can find a white paper on writing a JBI service engine here:
    http://java.sun.com/integration/reference/techart/DevelopingAServiceEngineComponent-1-2.pdf
    Also, there is a lot of information on JBI and Open ESB here:
    http://java.sun.com/integration/
    You ask if the Sun JBI container is based on Open ESB - it's actually the other way around: Open ESB is based on the Sun JBI container. The JBI container is a JSR208-compliant implementation, and Open ESB builds upon that implementation to add full ESB capabilities.
    hope this helps -
    mark

Maybe you are looking for

  • Can I use my iPod touch 4G as an external camera to my MacBook?

    I want to use my iPod 4G (or any other iDevice) as an external camera on my Mac. Is there any way I can do this?

  • Hover Text in Top Level Navigation

    Hi,    I need to add a Hover Text for Top Level Navigation.I need to display some information text regarding the Role on moving mouse over it. I did experimenting on download of com.sap.portal.navigation.toplevelnavigation but I am unaware where exac

  • Rules regarding Command Node

    Hello Experts, I know that a Command node can only be used in the Main window. Can anybody confirm that its not possible to use a Command node to provide a page throw when printing from a Table. I have included a line count and want to throw to next

  • ABAP Code Date Selection for InfoPackage Scheduler

    Hello Group I need to automate the selection of valid condition records for an extraction that have a From and To date range. I noticed there is an option (Routine for time interval) to write ABAP code along with a template that is available in the I

  • Streaming does not resume

    Has anyone else suffered the problem that streaming does not resume on an iphone 5 handset? and if you have is there a known solution for it.  It worked on the iphone 4 to my car stereo but now on the iphone 5 I have to manually press play again.  Pa