MDB in JDeveloper

Having problems walking through an MDB in JDeveloper.
As I go through the onMessage method JDeveloper displays the message below and it freezes.
There is a message on the queue. The code works since I have deployed it to my local OAS and am using it and its
ouput is correct. Any help is appreciated.
Thanks.
Debugger connected to local process.
Mar 2, 2009 4:09:17 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
Mar 2, 2009 4:09:25 PM com.evermind.server.jms.JMSMessages log
INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
Mar 2, 2009 4:09:25 PM com.evermind.server.jms.JMSMessages log
INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
Mar 2, 2009 4:09:36 PM oracle.wireless.its.ra.TelnetResourceAdapter run
INFO: Industrial Telnet Server version: Version 10.1.3.0.0 started-up successfully.
09/03/02 16:09:48 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized

well, slowly making some progress.
I have now downloaded and installed the standalone oc4j and am able to sucessfully run it through the command prompt.
I am able to see the splash screen "Welcome to Oracle Application Server Containers for J2EE" on the web.
In JDeveloper, went to Tools --> Embedded OC4J Server Preferences, Click on Startup, and under
OC4J Installation to Use for Running and Debugging, I entered C:\oc4j\j2ee\home
However, when I debug my mdb through JDeveloper, JDev displays the message below.
Please help out. What am I missing? Looks like somehow I am not referencing the standalone oc4J.
C:\jdeveloper_10g\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Debugger connected to local process.
Error initializing server: Unknown deployment root-tag attribute: xmlns:xsi

Similar Messages

  • Setting up and MDB in JDeveloper

    Hi,
    I tried creating an MDB in JDeveloper 10.1.3.3.0. But I am not sure of the set-up values that i have to use. I am pretty new at this. When i try running the MDB, i am getting an exception which states :
    An error occured deploying EJB module: java.lang.InstantiationException: No destination location set for message-driven bean JMSListenerEJB
    java.lang.InstantiationException: No destination location set for message-driven bean JMSListenerEJB
    I tried changing the values, but always this exception pops up. It would help a lot if I could get some inputs on how to set up a simple MDB to listen to the jms/demoQueue using JDeveloper or any documentation on the same.
    Thanks in advance
    Pravin

    Ya i think 2nd steps that you have done is Wrong .
    You should copy icx folder in %JDEV_USER_HOME%/myclasses/oracle/apps/..
    Not at copied the entire icx directory under the 'Company Name'/oracle/apps
    Have you set %JDEV_USER_HOME%/ Env Variable.
    Thanks
    .

  • JMS message not getting delivered

    I'm trying to create a simple MDB with JDeveloper 10.1.3.2.
    I've tried to configure the sender and receiver to use the embedded OC4J message service.
    The code compiles and runs without any errors but the message doesn't seem to get delivered to the MDB.
    How could I debug message delivery in this case?
    What could be causing the message delivery to fail?
    Here's the code from a session bean that sends the message:
    @Resource(mappedName="jms/Topic/testTCF") private ConnectionFactory connectionFactory;
    @Resource(mappedName="jms/Topic/testTopic") private Topic topic;
    public void sendMessage() {
    try {
    Connection con = connectionFactory.createConnection();
    Session session = con.createSession(true, 0);
    MessageProducer producer = session.createProducer(topic);
    TextMessage msg = session.createTextMessage();
    msg.setText("hello");
    producer.send(msg);
    con.close();
    } catch (JMSException e) { }
    MDB:
    @MessageDriven(activationConfig = {
    @ActivationConfigProperty(propertyName="connectionFactoryJndiName", propertyValue="jms/Topic/testTCF"),
    @ActivationConfigProperty(propertyName="destinationName", propertyValue="jms/Topic/testTopic"),
    @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic")
    public class MessageReceiver1Bean implements MessageListener {
    public void onMessage(Message message) {
    System.out.println("hello");
    Message service configuration:
    <jms-server port="9227">
    <queue location="jms/Queue/testQueue" name="queue"/>
    <queue-connection-factory location="jms/Queue/testQCF"/>
    <topic location="jms/Topic/testTopic" name="topic"/>
    <topic-connection-factory location="jms/Topic/testTCF"/>
    <log><file path="../log/jms.log"/></log>
    </jms-server>

              A few questions to better understand your case,
              1) are you using pub/sub (topics) or ptp (queues) ?
              2) are you producing inside a transaction (either use JTA or jms transacted session)
              3) do you use/set TimeToDeliver parameter ?
              4) when you monitor, do you see your messages under pending count ?
              "Rajiv Kadayam" <[email protected]> wrote:
              >
              >I'm having trouble with the 6.1sp5 version of weblogic specifically with
              >the JMS
              >server not quite notifying my message listeners whenever a new message
              >is received
              >in the queue. I can see the messages via the console by way of clicking
              >"monitor
              >all desitinations". I don't see any exceptions at all. This piece of
              >code does
              >work in Weblogic 7 and it did work on weblogic 6.1sp4. I'm not quite
              >using MDBs
              >and my publishers are CORBA services and there are no EJB components
              >involved.
              >
              >The trouble is there are no exceptions and my message listeners are just
              >waiting.
              >any tips or ideas would be greatly appreciated.
              >
              >thanks
              >rajiv
              

  • Jdeveloper Crashing When Opening MDB Database Connection

    Hello,
    I created a database connection to one of the local access mdb file using jdbc-odbc connection type.
    When I tried to view the tables or when I try to create a toplink connection using the same connection I created to access mdb file, my Jdeveloper is crashing.
    Any what could be the reason.
    My Jdeveloper version:
    10.1.3.4.0
    Regards
    Edited by: user20090209 on Oct 13, 2009 7:43 AM

    Time marches forward and I have no disagreement with any of the Weblogic decisions. The reality is though that we still do not have a clear answer from Oracle (although our clients sales folks are working on it) as to whether the client will have to pay to "upgrade" their Oracle Application Server (Enterprise) licenses to get the WebLogic server necessary to run the applications created by the final Production JDeveloper11g. If it costs money then it requires budgeting and that all takes a lot of time.
    We have a fairly rich application already developed and we cannot port it to Weblogic until the licensing issues are resolved. Until that happens it will have to continue to run on the OC4J container.
    BUT ... I consider this "not a problem" with respect to TP4 not running on Vista 64-bit as long as the final release JDeveloper 11g does. I'll just have to work in my VPC hosted XP Client until our clients get their licensing issues sorted out with Oracle.
    Mark

  • How can I change the default  driver to OracleXADataSource in JDeveloper

    Hello,
    How can I change the default oracle driver: oracle.jdbc.OracleDriver to oracle.jdbc.xa.client.OracleXADataSource in JDeveloper Studio Edition Version 11.1.1.0.2, Build JDEVADF_MAIN.BOXER_GENERIC_090328.0229.5205.
    If I modify the file connections.xml from jdeveloper\system\system11.1.1.0.31.52.05\o.jdevimpl.rescat2\connections in the sense that I change the driver class, then in JDeveloper when I test my connection I have this problem: Test failed: oracle.jdbc.xa.client.OracleXADataSource cannot be cast to java.sql.Driver
    Why do I need this XA version of the oracle driver? Well I tried, from a book to reproduce the model of an application: entities, stateless and stateful session beans, mdb, web services and a client to test one part of the model.
    And because of the JMS server I need an XA driver.
    I deployed to the integrated wls 10.3 and when I test my client, if I use the default driver for the connection the an error message appears tell me either to emulate two-phase commit or to use XA driver.
    My application works very well, if I configured in the console of the integrated wls 10.3 a datasource with the same name as my ide/application connection that has for the Driver Class Name: oracle.jdbc.xa.client.OracleXADataSource in the Connection Pool tab.
    Thank you.

    Open DIsk Utility and in the toolbar select Disk Image. The file selector will open and you'll have to do three things: 1) just as with any file, name it and point the file selector to where you want it to be saved, 2) near the bottom you'll see name - type iWork 2013 and 3) below that select the image size. Click on size, choose custom and type 1500 MB then click on the Create button.
    Some time will pass and then you'll see an external disk pop up on your desktop and/or the Finder window sidebar. Drag the three programs into it and eject it like any other external disk. Now delete the programs from your applications window.
    Where ever it was you pointed the file selector to you'll see the file you created. Double click on it and the disk image will mount again.

  • Very simple EJB 3.0 MDB but I get NullPointerException

    I tried to create a very simple EJB 3.0 Message Driven Bean in JDeveloper 10.1.3.2 as follows:
    Message Driven Bean Class:
    import javax.ejb.MessageDriven;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    @MessageDriven(mappedName="MDBQueue")
    public class MDB implements MessageListener {
    public void onMessage(Message message) {
    System.out.println("Got message!");
    Application Client:
    import javax.annotation.Resource;
    import javax.jms.*;
    public class MDBAppClient {
    @Resource(mappedName="MDBQueueConnectionFactory")
    private static QueueConnectionFactory queueCF;
    @Resource(mappedName="MDBQueue")
    private static Queue mdbQueue;
    public static void main(String args[]) {
    try {
    QueueConnection queueCon = queueCF.createQueueConnection();
    QueueSession queueSession = queueCon.createQueueSession
    (false, Session.AUTO_ACKNOWLEDGE);
    QueueSender queueSender = queueSession.createSender(null);
    TextMessage msg = queueSession.createTextMessage("hello");
    queueSender.send(mdbQueue, msg);
    System.out.println("Sent message to MDB");
    queueCon.close();
    } catch(Exception e) {
    e.printStackTrace();
    But I get the following error:
    java.lang.NullPointerException
         at model.MDBAppClient.main(MDBAppClient.java:17)
    I read similar problem in the this thread:
    Re: message driven bean on ejb 3.0 does not work
    some one said that the version in ejb-jar.xml must be changed from 2.1 to 3.0
    but in this case there is no ejb-jar.xml.
    ( I have other cases with ejb-jar.xml file but I can't change the version in ejb-jar.xml)
    the version in web.xml is 2.4 but it not accept any value except 2.4 and an error occur when I tried to change it to 3.0
    please can you tell me why I get NullPointerException and how can I allow EJB 3.0 MDB and JMS to work in JDeveloper

    Note that you can't run MDBs in the embedded OC4J in JDeveloper - try deploying to a stand-alone install of OC4J and see if it works there.

  • Error while reading data from MapMessage using MDB

    Hi,
    I have written a small client program to send a message to a queue and an MDB receives the message in the onMessage() method. The message is of type MapMessage. I set key value pairs and send the message in a queue. When I try to read data from MapMessage inside onMessage() method of MDB, I get an exception:-
    javax.jms.MessageNotReadableException: In write mode
    When I send the message, by default the readonlymode is false. How do I set the mode to readonly exclusively in case of MapMessage ?
    Sirisha

    Hi,
    I do not have any problem with TextMessages...I works fine..It is only with MapMessage that I am not able to read the values..Before sending the message, the message has the flag "readMode" set to false by default by the server...R there any configurations to be made to any files like web.xml or server.xml or jms.xml ?
    I am running my JMS application on JDeveloper IDE that has an in-built OC4J server which supports JMS.

  • How to configure JMS queue on OC4J server. Development in JDeveloper 10G

    Hi there,
    I have to configure a JMS for an Asynchronous process in my Application which will be running in Oracle 10G Application Server. Development Environment is Oracle JDeveloper 10G.
    I am facing a problem on how to configure JMS queue.
    Steps Followed are:
    in the <JDevloperHome>/j2ee/home/config
    1. Made the new queue and connection factory's JMS entry in jms.xml.
    2. Specifed the queue in oc4j-connectors.xml.
    3. played around with application.xml
    and tried all combinations, but the message producer always failed to lookup the queue.
    Need help on the steps to follow so that the producer can post the message in the queue.
    Also please help how to configure the MDB to listen to the queue.
    Thanx and Regards
    Subham

    If you were dealing with Oracle 10g app server as opposed to standalone, I might be better able to help you.
    One thing though, when you are configuring your MDB in the orion-ejb-jar.xml file, do not forget to specify attribute listener-threads, otherwise no matter how many beans you have in your MDB pool, only one bean will be listening to the queue. Many listener-threads equal to max number of beans in pool.

  • 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 );
    }

  • URGENT : Error Deploying MDB in 9ias 9.0.3

    Hi
    I am using OJMS and am trying to deploy SLSB and MDB with durable subscriptions to a topic. I have configured the queue table and topic properly. While trying auto deploy of OC4J i am getting the following error...
    Auto-deploying MCAppBEAN.jar (No complete previous deployment found)... Error compiling C:\Oracle9iAS\AppSvr\j2ee\home\appli
    ations\MCApplication/MCAppBEAN.jar: Syntax error in source
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    It says there is error in the source but which source? It does not log any error message into any file ( or is there any file which I dont know about? ).
    When i tried to deploy the application manually ( admin.jar ) it gave me the following exception...
    com.evermind.compiler.CompilationException: Syntax error in source
    at com.evermind.compiler.FileLinkedCompilation.loadObjects(FileLinkedCompilation.java:196)
    at com.evermind.compiler.FileLinkedCompilation.run(FileLinkedCompilation.java:145)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.evermind.compiler.FileLinkedCompiler.compile(FileLinkedCompiler.java:53)
    at com.evermind.server.ejb.compilation.Compilation.compileClasses(Compilation.java:463)
    at com.evermind.server.ejb.compilation.Compilation.compile(Compilation.java:323)
    at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:556)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Unknown Source)
    Could any body help me with this... Is there some place where I can configure to see the error messages? Has anybody faced this error earlier?
    Thanks in Advance...

    I have discovered a strange thing. I created a new OC4J instance which I called it: Intelap
    When I deploy to the recently created instance Intelap, jdeveloper success. But when I set OC4J_home in the optional instance field, I got the previous error.
    Sergio

  • Using Session EJB from MDB in Weblogic 11G

    I am having trouble with what should be a very simple operation. I have created an MDB and deployed it successfully on the Weblogic managed server. Then in a separate application, I created a Stateless session bean that I would also like to call from the MDB. My SSB deploys and works fine. I added an @EJB annotation to the MDB so I could instantiate and access the SSB from the MDB. In order to resolve the interface class in jDeveloper, I went to my MDB project properties under libraries and classpath and added the jar file for my ejb.
    When I try to redeploy the MDB, I get a java.lang.ClassNotFoundException on the SSB interface class.
    Is there an example somewhere of how to properly create and configure all of the deployment packages and refereneces I need on the weblogic server? The SSB is a common service that going to be called by a lot of other MDBs in my system. Optimally, what I would like to do is to deploy the ejb-client.jar as a shared library so all of my MDBs can use it.
    Thanks for any pointers!

    I am using jDeveloper 11g, so both my MDB and SLSB were built and deployed using the wizzards in the IDE.
    The MDB is inside of an ejb-jar and deployed to a managed server. I am doing my development on a box that is resource challenged so I setup my WLS on a different box. There is an admin server (AdminServer) and a separate soa server (soa_server1) on which I have installed all of the SOA Suite packages.
    The SLSB represents a primary service for the system I am building. Service1SessionBean is deployed targeted to soa_server1. The MDB is also deployed to soa_server1. At least it was until I tried to add the EJB reference. Now it won't deploy at all.
    I would like to avoid packaging the Service1SessionBean client jar in with the MDB because there are several other EJBs that will also need to call the service. I would like to deploy the client jar as a shared library on soa_server1 so that any EJB artifacts that need to call it may do so, I have tried to deploy the client jar as a shared library using jDeveloper but when it deploys, it seems to be under the name "j2ee-app" rather than Service1SessionBean.

  • Message-driven bean "loses" MDB icon and status

    Using JDev v11.1.1.5.0, when I create a MDB in my project using the wizard, it initially is displayed with the MDB icon next to it (a little envelope with a paperclip). However, about a second later, the icon changes to a normal 'Java' icon (coffee cup). I've also noticed that the MDB class does NOT appear in the Project Properties | EJB Module | Annotated EJB 3.0 Classes list box. The net result is that when the application is deployed, the MDB doesn't get registered to listen, so it never receives JMS messages.
    I tried creating a new application from scratch, and created the exact same MDB. In this application, the icon 'sticks', and the class DOES show up in the "Annotated EJB 3.0 Classes" list box in the Project Properties dialog. (And, it will correctly register to receive JMS message on deployment.)
    So, obviously something is different/wrong with my actual application that is preventing it from recognizing that the MDB class is an MDB. But, I don't know what. I've looked at all the settings in the Project Properties, looked at the actual project's .jpr file, etc., and can't see anything that would cause one application to not recognize MDBs.
    Does anyone have any suggestions on how to figure out why my MDB classes aren't recognized as such in the one Application?
    Here's the class I'm trying to use:
    package com.acme;
    import javax.ejb.MessageDriven;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    @MessageDriven(mappedName = "acme.DefaultQueue")
    public class MessageEJB implements MessageListener {
        public void onMessage(Message message) {
             // ... code here ...
    Thanks,
    Karl

    For those that might have this problem down the road, here's what I found... It seems that there was a corrupt "cache" file or something in the project. Specifically, I had to delete the files in the <app_name>\<project_name>\classes\.data\00000000 folder. Once I deleted those files (mostly .jdb files), and restarted JDeveloper, the correct icon displayed next to my MDB classes, AND they also showed up correctly in the Project Properties | EJB Console pane.
    I'm not sure what these files are, but I assume they are cache files and get re-created automatically by JDeveloper when needed. I hope this helps someone else that has the same problem!

  • Using mdb  in OAF

    Hi
    all i want to use mdb in an Application that i wil buit in oAF .
    so database connection is required .
    can anyone help me out in establishing this connection.
    what kinda driver shud i choose.i believe it shud be third party jdbc.
    pls correct me if i m wrong !!
    naveen

    alright
    even in that case (standalone jdeveloper) i will have to make the connection.
    while making connection in standalone jdeveloper and taking third party driver ..
    it asks for driver class and URl . i gave driver class as sun.oracle.jdbc.jdbcodbc driver. what is this URl meant for??
    or i need to do something else???
    naveen

  • OJMS in Jdeveloper 10.1.3 OC4J

    Is it possible to use ojms in the embedded oc4j instance?
    Thanks

    Can we not run JMS applications within JDeveloper ? I'd like to test out a MDB linked to a JMS Topic/Queue.
    I noticed the embedded OC4J server has jms.xml file however i cannot connect to it when i run my web application i get a NameNotFoundException on Topic connection factory.
    Why is this not supported ? Is there an up to date article on how to create an MDB application linked to a JMS destination within JDev 10.1.3 ?
    Gurinder

  • How to send message to MessageDrivenBean from Session bean in JDeveloper

    HI I am trying to write a sample program using JDeveloper.
    I am trying to do these steps
    1) client class which gets Session bean and calls its method.
    2) write Stateless Session bean with a method which gets MDB and sends message.
    3) write Message Driven Bean ( which prints message recieved from Session bean )
    Set up
    =======
    jms.xml
    {JDevHome}\jdev\system9.0.5.2.1618\oc4j-config\jms.xml : changed jms.xml file and included
         <topic name="Demo Topic" location="jms/theTopic">
              <description>A dummy topic</description>
         </topic>
         <topic-connection-factory name="Demo Topic Connection Factory" location="jms/theTopicConnectionFactory">
              <description>A dummy topic connection factory</description>
         </topic-connection-factory>
    orion-ejb-jar.xml:
    edited MDB entry to
    <message-driven-deployment name="MessageLogger"
    destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
    </message-driven-deployment>
    Implementation
    ===============
    In client class:
    I am getting session bean like
    Properties props = System.getProperties();
    props.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY , "com.evermind.server.rmi.RMIInitialContextFactory");
    props.put( javax.naming.Context.SECURITY_PRINCIPAL , "admin" );
    props.put( javax.naming.Context.SECURITY_CREDENTIALS,"welcome");
    props.put( javax.naming.Context.PROVIDER_URL ,"ormi://localhost:23891/current-workspace-app");
    Context ctx = new InitialContext(props);
    MySessionHome home = (MySessionHome)
              javax.rmi.PortableRemoteObject.narrow(obj, MySessionHome.class);
    This part works fine, and I am calling method on session bean created out of home.
    In Session bean:
    I want to get TopicConnectionFactory and tried these two ways:
    a)
    getting the context by setting new environemnt values like
    Properties props = System.getProperties();
    props.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY , "com.evermind.server.jms.EvermindConnectionFactory");
    props.put( javax.naming.Context.SECURITY_PRINCIPAL , "admin" );
    props.put( javax.naming.Context.SECURITY_CREDENTIALS,"welcome");
    props.put( javax.naming.Context.PROVIDER_URL ,"ormi://localhost:9227/current-workspace-app");
    Context ctx = new InitialContext( props);
    When I try this,it is complaining that it cannot instantiate EvermindConnectionFactory.
    I am not sure which factory class we have to use here.i tried all the Factory class in that package.but didn't worked.
    next I used,
    b)
    tried to use default context in session bean to get MDB factory
    String TOPIC_NAME="jms/theTopic";
    String TOPIC_CONNECTION_FACTORY="jms/theTopicConnectionFactory";
    TopicConnectionFactory connectionFactory = (TopicConnectionFactory)new InitialContext().lookup("java:comp/env/" + TOPIC_CONNECTION_FACTORY);
    this gives
    04/06/13 23:46:09 javax.naming.NameNotFoundException: jms/theTopicConnectionFactory not found in MySession
    04/06/13 23:46:09      at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:93)
    this may be because JMS server runs on different port than other EJBs and have different namespaces.
    Can any body give info,how we can make use of Message Driven bean from a Session Bean or from a JSP page or from a simple class inside JDeveloper.
    Thanks in advance.
    gopal

    Hi,
    There are some hints in this forum for how to do this.
    I put together and make it working.
    This example creates an MD Bean and have a simple message and a client class send messages to that bean.
    Steps
    =====
    1)
    a)in {JDev Home}\jdev\system9.0.5.2.1618\oc4j-config\jms.xml
         <topic name="Demo Topic" location="jms/demoTopic">
              <description>A dummy topic</description>
         </topic>
         <topic-connection-factory name="Demo Topic Connection Factory" location="jms/theTopicConnectionFactory">
              <description>A dummy topic connection factory</description>
         </topic-connection-factory>
    b) in current project in orion-ejb-jar.xml
    go to orion-ejb-jar properties and add these values there to MDB node
    destination-location=jms/demoTopic
    connection-factory-location=jms/theTopicConnectionFactory
    2) create a dummy session bean and a dummy client for that session bean
    This sets default configuration for the client application we write
    doing so we do not need to set properties to get Initial context.It makes use of
    {JDev Home}\jdev\system9.0.5.2.1618\oc4j-config\.client\jndi.properties
    We can directly get Contexxt ctx = new InitialContext();
    3) Create MDB and put this sample code in method
    onMessage()
    TextMessage tm = (TextMessage) msg;
    try {
    String text = tm.getText();
    System.err.println("Received new message : " + text);
    catch(JMSException e) {
    e.printStackTrace();
    4) go to properties for the MDB and set Destination to Topic
    5) write Client code
    Context ctx =new InitialContext();
    // 1: Lookup ConnectionFactory via JNDI
    TopicConnectionFactory factory =     
    (TopicConnectionFactory) ctx.lookup("jms/theTopicConnectionFactory");
    // 2: Use ConnectionFactory to create JMS connection
    TopicConnection connection = factory.createTopicConnection();
    // 3: Use Connection to create session
    TopicSession session = connection.createTopicSession( false, Session.AUTO_ACKNOWLEDGE);
    // 4: Lookup Desintation (topic) via JNDI
    Topic topic = (Topic) ctx.lookup("jms/demoTopic");
    // 5: Create a Message Producer
    TopicPublisher publisher = session.createPublisher(topic);
    // 6: Create a text message, and publish it
    TextMessage msg = session.createTextMessage();
    msg.setText("This is a test message from My Test Client!!! .");
    publisher.publish(msg);
    6) Run the server and run the client

Maybe you are looking for

  • Sales BOM Wise Stock report

    Dear Gurus, Good Afternoon!! My user' requirement is, he wants a BOM wise stock report. He will just enter the Header Item, Plant and the storage location, and system should list all its sub-items with the stock available in that plant & the storage

  • Font-weight attribute only works for bold?

    Hello, this has been bothering me for a while. When I set a font weight attribute on my css stylesheet it only makes a difference when I go bold; lighter font weights 100, 200 and medium numbers do nothing. I use safari and firefox, not sure if that

  • Support for RAW Format: Sony SLT A57 - available ?

    Hello ! does anybody know when the Sony SLT A57 camera will be supported by Aperture ? (my current Aperture version 3.2.3; Digital Camera RAW 3.12.0). Peter

  • Buying Photoshop CS5 for mac and being able to use it?

    I'm a Photography student and I need to get Photoshop, though I can only just about afford around £300. I don't want to rent it through Creative Cloud because not only will it cost me far too much after the amount of time I need it for is up, but I w

  • VIA Hyperion 4 in 1 Drivers 4.45

    how is VIA Hyperion 4 in 1 Drivershttp://www.viaarena.com/?PageID=211 can use At KT333+VT8235 or no