Simple JMS Configuration on OC4J Developers Preview

What is the minumum required to configure the default OC4J JMS.
I have a client deployed with the server that tries to get a Topic Connection Factory ....
InitialContext ctx = new InitialContext();
tConFactory = (TopicConnectionFactory)ctx.lookup("java:comp/env/jms/TopicConnectionFactory");
tCon = tConFactory.createTopicConnection();
tSession = tCon.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
but the lookup fails with:
javax.naming.NameNotFoundException: jms/TopicConnectionFactory not found in DriveStartup
In jms.xml I have the following:
<jms-server port="9127">
<topic-connection-factory location="jms/TopicConnectionFactory" port="9127" password="2143768880" username="admin" />
     <!-- path to the log-file where JMS-events/errors are stored -->
     <log>
          <file path="../log/jms.log" />
     </log>
</jms-server>
What else do i have to do ?
Cheers paul

Hi Paul,
I had similiar problems like the one you describe.
I got the JMS example (CoffeeMaker) running, but had problems with my own application ( Object not bound).
In my case, I got it running now when I only use the absolute necessary (oc4j.jar, junit.jar in my case) in my classpath
(of course the application client xml's must contain your lookup names, but I did not !!! have to setup
my queue in jms.xml (wonder why).
You might try this (oc4j.jar references the required libs for jms,jndi,etc. internally)
[Comment to "absolute necessary": of course I have a CLASSPATH which contains only the necessary libs.
But since we are working on a framework which does not only want to connect to OC4J JMS (or EJB), I have
a CLASSPATH containing other libs. I have to find the correct order, I guess.]
But still my question to this forum: how is it possible that a queue is started "implicitly" (that means it is
not configured in jms.xml). Is this desired or mandatory (Sun J2EE reference implementation does the same).
Or am I missing something ?
Regards,
Armin

Similar Messages

  • OC4J developers preview edition

    hi!
    At the moment I'm in a starting J2EE project involved.
    I have to decide, which OC4J version to use. My choice would be the developers preview edition,
    but will the production release be shipped by november?
    Because this would be the deadline of the project, and I can't install a developers edition
    on a production system.
    thanx
    ed

    Hi Paul,
    I had similiar problems like the one you describe.
    I got the JMS example (CoffeeMaker) running, but had problems with my own application ( Object not bound).
    In my case, I got it running now when I only use the absolute necessary (oc4j.jar, junit.jar in my case) in my classpath
    (of course the application client xml's must contain your lookup names, but I did not !!! have to setup
    my queue in jms.xml (wonder why).
    You might try this (oc4j.jar references the required libs for jms,jndi,etc. internally)
    [Comment to "absolute necessary": of course I have a CLASSPATH which contains only the necessary libs.
    But since we are working on a framework which does not only want to connect to OC4J JMS (or EJB), I have
    a CLASSPATH containing other libs. I have to find the correct order, I guess.]
    But still my question to this forum: how is it possible that a queue is started "implicitly" (that means it is
    not configured in jms.xml). Is this desired or mandatory (Sun J2EE reference implementation does the same).
    Or am I missing something ?
    Regards,
    Armin

  • MDB from AQ in OC4J R2 developers preview.

    Does any one have an example of the configuration reqired to instantiate MDBs from an Oracle AQ.
    I can see no Oracle docs on this although it is listed as one of the features in OC4J R2.
    Cheers,
    Matt

    good afternoon all -
    The Oracle AQ integration for OC4J should function with the developer's release available on OTN. I do recall seeing a few issues that needed to be worked around, I will dig the email I have up and send that in a separate post.
    What follows is a text cut-n-paste of a few sections from the J2EE Services Guide documentation we are providing for Release 2. These books are not yet published on OTN - I'll try and find out when we will be making them available, they contain a lot of good information.
    Please take a read of this see if it helps you to configure Oracle AQ/OJMS as a JMS resource provider for OC4J.
    cheers!
    -steve-
    Resource Providers
    The ResourceProvider interface allows you to plug in third-party message providers (such as Oracle Advanced Queuing, MQSeries and SonicMQ) as JMS resource providers. This allows EJBs, servlets, and OC4J clients to access many different queue implementations. The third-party message providers are accessed through the ResourceProvider interface.
    Note:
    Except as noted here, you configure OC4J JMS as you would any other JMS implementation.
    Plugging In Resource Providers
    To add a custom resource provider to OC4J, you must add the <resource-provider> tag to orion-application.xml. This section describes how to add one such ResourceProvider.
    An example ResourceProvider, ContextScanningResourceProvider, is bundled with OC4J. To use this ResourceProvider, you would add the following tag to orion-application.xml:
    <resource-provider
    class="com.evermind.server.deloyment.ContextScanningResourceProvider"
    display-name="SwiftMQ">
    <description>
    SwiftMQ resource provider.
    </description>
    <property name="java.naming.factory.initial"
    value="com.swiftmq.jndi.InitialContextFactoryImpl">
    <property name="java.naming.provider.url"
    value="smqp://localhost:4001">
    </resource-provider>
    This example makes SwiftMQ the default ResourceProvider for JMS connections -- the first <resource-provider> tag in orion-application.xml becomes the default resource provider for the types it handles. Adding this tag makes the resource available in the Orion JNDI under java:comp/resource/, as well as making SwiftMQ the default JMS resource for such actions as deploying a message-driven bean.
    Configuring Message Providers
    Install and configure the message provider according to the instructions in its documentation, then verify the installation by running any examples or tools supplied by the vendor.
    Register the message provider in some JNDI-accessible store (a file system, an LDAP OiD, or the like.) Use JMS provider tools to configure and populate this JNDI store with, for instance, the provider's QueueConnectionFactory and the queues of interest.
    Make the JNDI store accessible to OC4J by adding a <resource-provider> entity to orion-application.xml pointing to the JNDI store. This example demonstrates using SonicMQ as the message provider and the file system as the JNDI store:
    <resource-provider
    class="com.evermind.server.deployment.ContextScanningResourceProvider"
    name="SonicJMS">
    <property name="java.naming.factory.initial"
    value="com.sun.jndi.fscontext.RefFSContextFactory" />
    <property name="java.naming.provider.url"
    value="file:/private/jndi-directory" />
    </resource-provider>
    Copy the required JNDI files (for a file-system JNDI, fscontext.jar and providerutils.jar) to $J2EE_HOME/lib.
    Restart OC4J. Whenever you add, delete, or reconfigure a resource provider, you must restart OC4J.
    JNDI Resource Provider Names
    OC4J resource provider extensions create resources under the java:comp/resource JNDI name tree. OJMS resource names take the form:
    java:comp/resource/ProviderName/ResourceType/ResourceName
    where:
    ProviderName
    is the user-chosen name of the resource provider.
    ResourceType
    (required for Oracle AQ/OJMS resource providers only) is a fixed string that can take one of four values: QueueConnectionFactories, TopicConnectionFactories, Queues, or Topics. The specified value identifies the JMS resource as being of the appropriate administered object type.
    ResourceName
    is a user-chosen name for a JMS connection factory or a valid AQ queue name for a JMS destination. Valid Oracle AQ names conform to the [schema.]queue_name scheme.
    Accessing Message Queues
    OC4J applications can now access the message queues. Message queues can be accessed in one of two ways:
    Through their names, as in
    java:comp/resource/<Provider_Name>/<Queue_Name>
    An application would access the queue like this:
    queueConnectionFactory=(QueueConnectionFactory)
    jndiContext.lookup("java:comp/resource/SonicJMS/QueueConnectionFactory");
    By binding message-driven beans to queues in orion-ejb-jar.xml
    To bind message-driven beans to queues in orion-ejb-jar, you would add a tag like:
    <message-driven-deployment
    connection-factory-location="java:comp/resource/SonicJMS/QueueConnectionFactory"
    destination-location="java:comp/resource/SonicJMS/SampleQ1"
    name="MessageBean">
    Using Oracle AQ as a Resource Provider
    To access Oracle AQ queues through JMS, you must do the following:
    Create an RDBMS user through which the JMS application will connect to the back-end database. The user should have the necessary privileges to perform AQ operations. AQ allows any database user to access queues in any schema, provided the user has and the schema exports the appropriate access privileges.
    Configure an OC4J resource provider with information about the back-end database. Create data sources or LDAP directory entries, if needed.
    Access the resource using Oracle AQ/OJMS resource names, which include the ResourceName name component.
    Configuration
    The OC4J resource provider for OJMS is implemented by the class oracle.jms.OjmsContext. Each OJMS resource provider instance is a <resource-provider ...> XML element (a child element of the orion-application element) in the $J2EE_HOME/config/application.xml file.
    There are 3 ways of configuring the OJMS resource provider.
    Inline configuration (all relevant information for accessing the back-end database is specified within the resource-provider element in application.xml).
    Data Source configuration (the resource-provider element in application.xml refers to a data-source element configured in data-sources.xml which contains information on accessing the back-end database).
    LDAP configuration (the resource provider contains information to access an OID/LDAP directory which contains information on accessing the back-end database).
    This section describes only the inline and data source configuration methods.
    Inline Configuration
    An inline resource provider configuration consists of a resource provider instance name (user-chosen, but unique among all resource providers configured in OC4J), a JDBC URL to connect to the back-end database, and the user/password to connect as. For example:
    <resource-provider class="oracle.jms.OjmsContext" name="MyContext1">
    <description>OJMS Context using thin JDBC</description>
    <property name="url"
    value="jdbc:oracle:thin:@myhost.foo.com:1521:mydb"></property>
    <property name="username" value="myuser"></property>
    <property name="password" value="mypass"></property>
    </resource-provider>
    <resource-provider class="oracle.jms.OjmsContext" name="MyContext2">
    <description>OJMS Context using OCI JDBC</description>
    <property name="url" value="jdbc:oracle:oci:@mydb.foo.com"></property>
    <property name="username" value="myuser"></property>
    <property name="password" value="mypass"></property>
    </resource-provider>
    This creates 2 resource providers, MyContext1 and MyContext2, that log in as myuser/mypass to the back-end database mydb using the thin and OCI JDBC drivers respectively.
    Data Source Configuration
    A data source resource provider configuration consists of a resource provider instance name (user-chosen, but unique among all resource providers configured in OC4J), a data source name, and the data source configuration (in data-sources.xml). For example:
    <resource-provider class="oracle.jms.OjmsContext" name="MyContext3">
    <description>OJMS Context using a datasource</description>
    <property name="datasource" value="jdbc/MyDS3"></property>
    </resource-provider>
    <resource-provider class="oracle.jms.OjmsContext" name="MyContext4">
    <description>OJMS Context using a datasource</description>
    <property name="datasource" value="jdbc/MyDS4"></property>
    </resource-provider>
    in application.xml and the following data sources in data-sources.xml:
    <data-source
    class="oracle.jdbc.pool.OracleDataSource"
    name="MyDS3"
    location="jdbc/MyDS3"
    xa-location="jdbc/xa/MyXADS3"
    ejb-location="jdbc/MyEjbDS3"
    url="jdbc:oracle:thin:@myhost.foo.com:1521:mydb"
    username="myuser"
    password="myuser"
    inactivity-timeout="30"
    />
    <data-source
    class="oracle.jdbc.pool.OracleDataSource"
    name="MyDS4"
    location="jdbc/MyDS4"
    xa-location="jdbc/xa/MyXADS4"
    ejb-location="jdbc/MyEjbDS4"
    url="jdbc:oracle:oci:@mydb.foo.com"
    username="myuser"
    password="myuser"
    inactivity-timeout="30"
    />
    This creates 2 resource providers, MyContext3 and MyContext4, that use the data sources jdbc/MyDS3 and jdbc/MyDS4 respectively to connect to the back-end database. The data sources themselves contain the appropriate JDBC driver/connect information.

  • JMS Topic/Queue [oc4j]

    Hi,
    Can someone point me to a doc which explains how to develope a sample JMS application using standalone oc4j.
    And also what are the properties that are used to create the InitialContext for the oc4j JMS Directory service.
    i. e
    Properties env = new Properties( );
    env.put(Context.SECURITY_PRINCIPAL, "");
    env.put(Context.SECURITY_CREDENTIALS, "");
    env.put(Context.INITIAL_CONTEXT_FACTORY,"");
    env.put(Context.PROVIDER_URL,"");
    InitialContext jndi = new InitialContext(env);
    It will be of great help if u can share a sample for the above.
    Thx,
    Siddhardha.

    Nestor,
    If you are using the 9.0.3 Developers Preview, you can check out the Petstore 1.3 application that uses Oracle AQ queues and topics. Instructions and a pre-build version are available at http://otn.oracle.com/tech/java/oc4j/htdocs/oracle-petstore-readme.html
    Briefly, you don't use jms.xml, as this is used to configure the light-weight (in-memory) JMS. You add an entry to your orion-application.xml detailing a new resource-provider. You can then look up your queues and topics using a standard JNDI lookup using the resource provider.
    Thanks,
    Rob Cole
    Oracle

  • Error running A Simple MDB example with oc4j

    Hi All,
    I am new to OC4J, I am trying the example for MDB from OTN's site, A Simple MDB example with OC4J. When I start my OC4J on the command line > java -jar oc4j.jar
    I get the following exception:
    Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar homes: No lo
    cation set for Topic resource MessageDrivenBean MDB
    Error in application mdb: Error loading package at file:/C:/unzipped/mdb_hello_w
    orld/build/mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:40 Error instantiating application 'mdb' at file:/C:/unzipped/mdb
    helloworld/build/mdb.ear: Error initializing ejb-module; Exception Error in ap
    plication mdb: Error loading package at file:/C:/unzipped/mdb_hello_world/build/
    mdb/mdb.jar, Error deploying file:/C:/unzipped/mdb_hello_world/build/mdb/mdb.jar
    homes: No location set for Topic resource MessageDrivenBean MDB
    04/07/09 15:21:41 Error starting HTTP-Server: Address already in use: JVM_Bind
    04/07/09 15:21:41 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I have just followed all the steps provided to run the example exactly as given.
    I did add my Topic and TopicConnectionFatory entries in my jms.xml -
    <topic name="The Topic" location="jms/theTopic">
    <description>A MDB topic</description>
    </topic>
    <topic-connection-factory location="jms/theTopicConnectionFactory" />
    Here is the ejb-jar.xml given in the example:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <description>My message driven bean</description>
    <ejb-name>MDB</ejb-name>
    <ejb-class>MDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Topic</destination-type>
    <subscription-durability>NonDurable</subscription-durability>
    </message-driven-destination>
    <resource-ref>
    <description>The log topic where log events are broadcasted...</description>
    <res-ref-name>jms/theTopic</res-ref-name>
    <res-type>javax.jms.Topic</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <description>The Factory used to produce connections to the log topic...</description>
    <res-ref-name>jms/theTopicConnectionFactory</res-ref-name>
    <res-type>javax.jms.TopicConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </message-driven>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MDB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    Here is my orion-ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar deployment-version="1.0.2.2" deployment-time="e7f5a3f42d">
    <enterprise-beans>
    <message-driven-deployment name="MDB" destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
    <resource-ref-mapping name="jms/theTopic" />
    <resource-ref-mapping name="jms/theTopicConnectionFactory" />
    </message-driven-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    I don't know what is wrong. Please help me.
    Rohini

    Hello,
    I guess that you didn't define the Topic and/or TopicConnectionFactory on your OC4J
    Inside $J2EE_HOME/config (see: subfolders .../j2ee/home/config e.g.)folder are several xml files appropriate for OC4J configuration. There's also jms.xml. Please, verify this one, it should have some entries for your settings.
    Just like in an example below:
    <topic-connection-factory name="TopicConnectionFactory" location="jms/TopicConnectionFactory"/>
    <topic name="theTopic" location="jms/theTopic"/>
    The names should be the same like in your MDB deployment descriptors. It works of course after next OC4J server restart.
    I hope helped you
    Krzysztof

  • Bugs in oc4j technology preview 2.0.0

    hello,
    I'm right now trying the technology preview of the new oc4j
    (which can be downloaded from the oracle site).
    I've encountered some bugs, should I post them to this forum, or
    is there a special place for them?
    Is this forum read by oc4j developers?
    for a warming up, here is the first bug :)
    the "exclusive-write-access" flag is ALWAYS set to "false",
    regardless of if you set it to true or ignore it in orion-ejb-
    jar.xml. the containers overwrites it after redeloyment
    to 'false'. I have a lot of DB-access right now, bad, bad;)
    Is there a workaround for this?
    is the production release for oc4j 2.x already scheduled ?
    Greetings from munich,
    .thomas
    hybris GmbH | Thomas Hertz
    Frankfurter Ring 162 | Software Engineering
    D-80807 M|nchen |
    |
    t +49(0)89 89065-0 | [email protected]
    f +49(0)89 89065-555 | www.hybris.com
    PGP: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E

    Hi,
    I can reproduce the problem and if there isn't a filed bug
    already I will file one. I'll get back with the bug number.
    Thanks,
    Andy
    hello,
    I'm right now trying the technology preview of the new oc4j
    (which can be downloaded from the oracle site).
    I've encountered some bugs, should I post them to this forum, or
    is there a special place for them?
    Is this forum read by oc4j developers?
    for a warming up, here is the first bug :)
    the "exclusive-write-access" flag is ALWAYS set to "false",
    regardless of if you set it to true or ignore it in orion-ejb-
    jar.xml. the containers overwrites it after redeloyment
    to 'false'. I have a lot of DB-access right now, bad, bad;)
    Is there a workaround for this?
    is the production release for oc4j 2.x already scheduled ?
    Greetings from munich,
    .thomas
    hybris GmbH | Thomas Hertz
    Frankfurter Ring 162 | Software Engineering
    D-80807 M|nchen |
    |
    t +49(0)89 89065-0 | [email protected]
    f +49(0)89 89065-555 | www.hybris.com
    PGP: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E

  • 1 "simple" JMS topic and 2 cluster elements with OSB

    Hi,
    I have 1 simple jms topic (not distributed, not on migratable target) and cluster with 2 members - OSB as main application. My OSB proxy service reads from this topic and saves data to file.
    The problem is that reading from topic appears twice - once by each cluster member. How to configure topic or proxy service for only one reading?

    FYI - At this year's Oracle OpenWorld, which is being held in conjunction with this year's JavaOne, Oracle will be announcing a set of enhancements that are designed to cover this exact use case.
    Tom Barnes
    Session ID: S317469
    Title: New Service-Oriented Architecture Patterns with Enterprise Grid Messaging
    Abstract: Messaging systems are essential in enabling the flexibility and loosely coupled nature of a service-oriented architecture (SOA). Oracle WebLogic Java Message Service (JMS) includes new pub-sub capabilities that make architectures more adaptable, allowing message producers to be ignorant of who is the consumer of a message or how many consumers there are. It also enables easy scale out and dynamic adaptability through clustering and message-driven bean (MDB) enhancements, all while still guaranteeing strict message ordering. This session will outline new JMS capabilities and show how they enable new designs with Oracle WebLogic Server and Oracle Service Bus.
    Speaker(s): Dongbo Xiao, Oracle, Principal Member of Technical Staff
    Biography not available.
    David Cabelus, Oracle USA, Senior Principal Product Manager
    Dave Cabelus is a Senior Principal Product Manager in the WebLogic Server group at Oracle. Dave's responsibilities include product strategy and direction for various pieces of WebLogic Server, including Java Messaging, Operations and Management, Diagnostics, and various other initiatives, and previously included database connectivity, transactions, and Web tier integration. In the industry since 1996 and involved in Java since 1999, Dave worked at various software companies including Logic Works, Platinum Software, Kana, and a few startups before coming to Oracle (BEA) in 2001.
    Event: JavaOne and Oracle Develop
    Stream(s): ORACLE DEVELOP, DEVELOP
    Track(s): Application Grid and Oracle WebLogic
    Tags: Add
    Session Type: Conference Session
    Session Category: Features
    Duration: 60 min.
    Schedule: Thursday, September 23, 11:00AM | Hotel Nikko, Nikko Ballroom II Available
    Edited by: TomB on Aug 12, 2010 1:21 PM

  • Transform Activity in BPEL 10.1.3 (Developers Preview)

    Hi
    Have you tried to use Transform Activity in BPEL 10.1.3 Developers Preview?
    Try this simple test:
    I create a new BPEL process, add a transform, edit the transformation map: connect the two variables (inputVariable and outputVariable), click save and get this error:
    "Failed to save XSL map. Make sure XSL map is valid".
    Thanks

    Can't say that I duplicated your scenario but I did test transforms out to see if there were any distinctive changes in 10.1.3.1. I was hoping there would be some relief from the hard coded partner link endpoint in the transform file.
    Anyway, I was able to generate and save the transform without difficulty.

  • MDB from AQ in OC4J Developers perview

    Hi,
    Can anyone help me solve the following error, when trying to instantiate MDB's from an Oracle
    AQ ?
    28/03/02 16:52 Error listening to 'AQ.QUEUE1'
    java.lang.InstantiationException: Error: JMS-137: Payload factory must be specified for destinations with ADT payloads
         at com.evermind.server.jms.OrionServerSessionPool.getServerSessionFull(OrionServerSessionPool.java:377)
         at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:769)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:66)
    I am unable to find anyway in the docs to specify the Payload factory. Does a tag exist, or has
    this been overlooked, and if so, are there any plans to introduce one?
    I raised a TAR ( ref: 2048127.995 ) when this failed with the previous developers preview, and was
    told it would be fixed in the next update ( 03/25/02 ), which I have now, and generated the above
    error.
    Thanks a lot,
    Paul

    Paul,
    could you send me a small sample case if you have one, including a script to generate your queues, and I'll have a look into it.
    Thanks,
    Rob Cole
    Oracle

  • JMS configuration for clustring

              Hi,
              I have a JMS.ear, having jms.war, jms-ejb.jar.
              I need to deploy it for clustered environment.
              So how to set the targets? what changes needs to be made in the config.xml to incorporate
              this.
              I am using PUB/SUB type of JMS model.
              Any pointers ??
              - tia
              Regards
              Sam
              

    As for the configuration by the Production Admins, our infrastructure guys use weblogic templates (and god know whatever custom scripts). Therefore they use the same weblogic template in Dev, QA and Production. Configure once and deploy multiple times.
              Don't know the exact nature of you applications..who is sending the msg to the topic and who is receiving (your own application or another application). But we have a simple JMS queue on a cluster of 4 servers and MDBs deployed on all 4. Therefore the MDBs listen to the Queue on their own server. It's pretty HA and never had an issue for it. Our prod monitoring group watch the logs and if there is a problem on a specific server, they just restart it and it picks off where it left off.
              Later...
              - Wayne

  • Simple JMS example.

    simple JMS example.
    i am trying to execute this simple example SimpleQueueSender.java from the tutorial provided at http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/client.html#1027210
    in this example it is creating empty initial context;
    jndiContext = new InitialContext();
    with empty InitialContext i got (javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial)
    so i have modified it to
    Properties prop = new Properties();
    prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    prop.setProperty(Context.PROVIDER_URL, "t3://192.168.3.91:7001");
    jndiContext = new InitialContext(prop);
    after making this changes and looking up for
    queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("QueueConnectionFactory"); // here it is returning weblogic.jms.common.DestinationImpl.classs
    i am still getting java.lang.ClassCastException
    i have configured weblogic 8.1 and created new JMS server and created JMSQueue named 'QueueConnectionFactory' and JNDI name 'jndi_QueueConnectionFactory'
    what else do i need to add or change to my code or environment
    also tell me is this
    Context.INITIAL_CONTEXT_FACTORY = "weblogic.jndi.WLInitialContextFactory" right value
    ******************************************************************************************

    hmnn...well if I remember correctly you need to create an instance of a ConnectionFactory or a QueueConnectionFactory in weblogic and then request that via jndi.
    To explain, what I believe is happening is that you've said you created a Queue in weblogic and named it xxxQueueConnectionFactory. You are then trying to cast this Queue to a QueueConnectionFactory. Based on what I thought I understood of jms this doesn't work. You need to lookup an instance of an actual ConnectionFactory and then use that to create a queue.
    good luck.

  • Deploy war file in oc4j 11110 preview

    hi
    i created a simple project in jdev11.
    with the help of the reply i got from the previous post i created a WAR file of the project.
    Now im trying to deploy it using oc4j 11110 preview stand alone server.
    the steps i followed are.
    1. using the command oc4j -start, i could start the server and i got the Welcome page.
    2. with the help of the link http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    i installed the adf runtime libraries as it is said in the link and also made necessary changes in the server.xml file
    3. Then created a website as said in the in the form <websitename>-web-site.xml (like default-web-site.xml)and said its path in server.xml file
    4. then i deployied the war file in command prompt according to the command said in Read me file in the oc4j 11110 preview.and the message was shown in the command prompt that the application was deployed successfully
    5. i started the application. and the message was shown in the command prompt that the application was started successfully
    6. then restarted the oc4j server
    now the problem is that im not getting the page.its showing 404 page not found error in the browser.
    but there is no error show in the log file or in the command prompt.
    Can anyone help me with this.
    i tried deploying a war created using eclipse in the same way which is uising jdev10 components.and i could it and run it successfully.
    plz help me

    I've one question about this. I do all above things without problems and my application runs in remote machine well. But some compilation errors apears in server log, and I think that perhaps is because I can't found the following libraries:
    copy %JDEVHOME%\bc4j\lib\bc4j-svc-client.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\bc4j\lib\bc4j-svc-share.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\bc4j\lib\bc4j-svc.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\bc4jwizard.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\mod-bc4jimdomains.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\adfrcutils.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\connmbean.jar %OC4JHOME%\BC4J\lib
    And I can't copy this libraries to server. Anyone know where I can found it?
    Thanks
    Westh

  • War deployment in oc4j 11110 preview

    hi
    I tried to deploy and run a simple application i created in jdev11.but i was not successful.
    i installed the oc4j 11110 preview and also i have jdev11 in my system. set the oracle home as said in the Readme.txt file in oc4j 11110 preview installation directory.
    the steps i followed are.
    1. using the command oc4j -start, i started the server and i got the Welcome page in my browser using http://localhost:8888
    2. with the help of the link
    http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    i installed the adf runtime libraries as it is said in the link and also made necessary changes in the server.xml file
    3. Then created a website as said in the in the form <websitename>-web-site.xml (like default-web-site.xml)and said its path in server.xml file.
    4. then i deployed the war file in command prompt according to the command said in Read me file in the oc4j 11110 preview.and the message was shown in the command prompt that the application was deployed successfully
    the last few lines are
    08/1/18 10:34:01 Notification ==>Application Deployer for testing COMPLETES.
    Operation time: 5422 msecs
    5. i started the application using the command . and the message was shown in the command prompt that the application was started successfully
    the last few lines are
    08/1/18 10:34:36 Notification ==>Start completed for state manageable object: o
    c4j:j2eeType=J2EEApplication,name=testing ,J2EEServer=standalone
    6. then restarted the oc4j server
    7.in browser then i typed http://localhost:8888/testing (since i gave the deployment name as testing)
    now the problem is that im not getting the page.its showing 404 page not found error in the browser.
    but there is no error show in the log file or in the command prompt.
    Can anyone help me with this.
    In the application directory in the oc4j 11110 preview a folder is created called testing and my pages are also there.
    plz help me .
    rgds

    I've one question about this. I do all above things without problems and my application runs in remote machine well. But some compilation errors apears in server log, and I think that perhaps is because I can't found the following libraries:
    copy %JDEVHOME%\bc4j\lib\bc4j-svc-client.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\bc4j\lib\bc4j-svc-share.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\bc4j\lib\bc4j-svc.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\bc4jwizard.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\mod-bc4jimdomains.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\adfrcutils.jar %OC4JHOME%\BC4J\lib
    copy %JDEVHOME%\BC4J\lib\connmbean.jar %OC4JHOME%\BC4J\lib
    And I can't copy this libraries to server. Anyone know where I can found it?
    Thanks
    Westh

  • How to configure header out put preview in Sales Order

    Hi ,
               i have couple of questions.....
    1,How to configure header out put preview?
    2.Step by step procedure to configure handling units
    Points for right answer
    Lekha

    Hi,
    You can use the FM ..RV_MESSAGE_UPDATE..
    Thanks
    Naren

  • Developers preview for Cyan update after 8.1 insta...

    Need answers for Developers preview 8.1 update 1 Cyan?
    Solved!
    Go to Solution.

    Wait till the Cyan update is made available for your phone ..If you are ready to go thru' the hassle of re-setting up the phone, you may try Nokia Software Recovery Tool

Maybe you are looking for

  • Printing in GREEN instead of B/W for OS 9 program

    This is absolutely baffling to me. I have an ibook G4 that runs OS 10.4. My printer is a HP PSC 1610 all-in-one. When I try to print a Black & White document (in B/W mode) from a screenwriting program that runs in OS 9, it comes out GREEN! I even tri

  • Interface not working with mavericks 10.9.3

    is there anything apple can do i have pro fire 610 on mavericks upgrade os x 10.9.3 but driver no good and no updates help!!

  • KM repository to WPC

    Hi, is there any easy way or any way at all to convert a KM-based site (KM repository and roles) into a WPC site. E.g. i have a portal role mainly relying on existing KM content. I then upgrade to my EP7 to include the WPC functionality. The question

  • FieldPoint devices and LabVIEW program for educational project

    I use LabVIEW 7.1 and NI FieldPoint devices (FP-1000) for educational purposes. I want to control a automation unit which has got 6 digital input(DI) and 5 digital output(DO). I used the sequence structure, but actually I am not sure the solution whe

  • Nikon d3 and 300

    anyone heard if aperture will have raw support yet for the new nikon models d3 and 300....so far those don't show up on the raw supported file page.