JMS with ADF in Jdeveloper tutorial needed

Hi,
I am a newbie to ADF and JMS. Can anyone please provide me a sample tutorial on how to configure JMS in jdeveloper and integrate with ADF.
Thanks much.
Amy

Thanks Jim, i have posted the tutorial needed at
"http://forums.oracle.com/forums/thread.jspa?threadID=2140626'
now iam facing problem in message listener. My aim is to get a popup window opened in my reciever page once i send a msg from sender page.
i shouldnt do any opns on the receiver page except opening it.
how do i make it..
PFB the sample codes that i hav developed. I am able to get the msg on the reciever page only on click of a button which shodnt be the case.
package view;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;
import javax.jms.QueueReceiver;
import javax.jms.QueueSender;
import javax.jms.QueueSession;
import javax.jms.TextMessage;
import javax.naming.InitialContext;
import javax.faces.context.FacesContext;
public class SenderBean {
private String varHi;
public SenderBean() {
super();
* @return
* @throws Exception
public void send() throws Exception {
System.out.println("in sender bean");
QueueConnectionFactory qconFactory = null;
QueueConnection qcon = null;
QueueSession qsession = null;
Queue queue = null;
TextMessage msg = null;
InitialContext ctx = CustomInitialContext.getInitialContext();
qconFactory = (QueueConnectionFactory)ctx.lookup("jms/MyQueueFactory");
qcon = qconFactory.createQueueConnection();
qsession =
qcon.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
queue = (Queue)ctx.lookup("jms/MyQueue");
//Posting message to Queue
QueueSender qsender = qsession.createSender(queue);
msg = qsession.createTextMessage();
msg.setStringProperty("MSG_ID", "12345678947");
msg.setText("Hello at " + System.currentTimeMillis());
qsender.send(msg);
System.out.println("Sent");
qsender.close();
// QueueReceiver queueReceiver = qsession.createReceiver(queue);
// CustomAsyncReceiver listener = new CustomAsyncReceiver();
// queueReceiver.setMessageListener(listener);
* @return
public void actionListener() throws Exception{
FacesContext fm2;
fm2=FacesContext.getCurrentInstance();
System.out.println("fm-->"+fm2);
// return fm2;
public void recieve() throws Exception {
System.out.println("in receieve method of sender bean");
System.out.println("in reciever bean");
FacesContext fctx = FacesContext.getCurrentInstance();
System.out.println("fctx-->"+fctx);
QueueConnectionFactory qconFactory = null;
QueueConnection qcon = null;
QueueSession qsession = null;
Queue queue = null;
TextMessage msg = null;
InitialContext ctx = CustomInitialContext.getInitialContext();
qconFactory = (QueueConnectionFactory)ctx.lookup("jms/MyQueueFactory");
qcon = qconFactory.createQueueConnection();
qsession =
qcon.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
queue = (Queue)ctx.lookup("jms/MyQueue");
// QueueReceiver queueReceiver = qsession.createReceiver(queue);
// CustomAsyncReceiver listener = new CustomAsyncReceiver(fctx);
// queueReceiver.setMessageListener(listener);
//To receive message from Queue
qcon.start();
QueueReceiver qReceiver = qsession.createReceiver(queue);
while (true) {
TextMessage txt = (TextMessage)qReceiver.receiveNoWait();
System.out.println("txt-->"+txt);
if (txt == null){
System.out.println("txt is null");
break;
else{
// FacesContext ctx = FacesContext.getCurrentInstance();
if (fctx != null) {
System.out.println("iam not null");
FacesMessage fm =
new FacesMessage(FacesMessage.SEVERITY_INFO, txt.getText(),
"chat");
fctx.addMessage(null, fm);
System.out.println("iam in else");
System.out.println(txt.getText() + "with header MSG_ID=" +
txt.getStringProperty("MSG_ID"));
qReceiver.close();
qsession.close();
qcon.close();
public void setVarHi(String varHi) {
this.varHi = varHi;
public String getVarHi() {
return varHi;
public void actionListener(ActionEvent actionEvent) {
// Add event code here...
***********************************************Reciever.JSPX*******************************
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<!--<af:messages id="m1" binding="#{Sender.recieve}"/>-->
<af:form id="f1">
<af:outputLabel value="HI IAM RECIEVER" id="ol1"/>
<af:commandButton text="openreciever" id="cb1"
action="#{Sender.recieve}"
/>
<!-- <af:commandButton action="#{AsyncReciever.asynRecieve}" text="show"/>-->
<!--<af:popup id="prnDlg">
<af:dialog title="POPUP"
id="d2" type="none">
<af:outputLabel value="HI IAM RECIEVER" id="ol91"/>
</af:dialog>
</af:popup>-->
</af:form>
</af:document>
</f:view>
</jsp:root>
Please provide me help on the same

Similar Messages

  • JMS with weblogic and jdeveloper IDE

    HI,
    I am a newbie to jms..could anyone provide me a sample tutorial to test and deploy a sample jms application using weblogic and jdeveloper IDE.
    Thanks,
    Amy
    Edited by: 838667 on Feb 22, 2011 2:50 AM

    ...I have a strong feeling this is a TIBCO-related issue where you're not doing the lookup the way TIBCO likes.

  • Free online event covering Fusion development with ADF and JDeveloper.

    Details here:
    http://events.unisfair.com/index.jsp?eid=394&seid=28&code=pleon
    Regards
    Grant Ronald

    Thanks for the prompt reply,
    the session works like a charm, thanks.
    I am still not sure how I can feed back ActionErrors from the named event to the JSP page however. I think I have seen the paper you are talking about on the OTN and it has got me as far as I am now with the named events (onSubmitLogin) but I am still not able to find out how errors can be signalled back to the same page, if required. I can certainly do an actionContext.setForward("error"); and follow the error forward back to the same page, but I can't get my errors to show up in the html:error tag
    Also, I am not quite sure I follow what you say about the login information being stored in a ViewObject. Is this a particular view object, and if so, which one? How can I get from having a username and password field in a JSP page to putting the right credentials into the right View Object in order to allow ADF to use the tagish JAAS stuff? (I have already changed the jbo.security settings to what I think are the correct ones based on the JDeveloper help).
    Thanks again
    Dick

  • Problems with ADF in JDeveloper 10.1.2 - Focus Handling in a Table

    Hi there,
    we have a problem with the focus handling in a JClient-Table
    (embedded in a JScrollPane).
    When I insert a new row in a table (e.g. with 2 columns),
    and insert in the second column some text and
    (while the focus is still in the second column) then
    add again a new row to the table, the text from the
    "lost-focus-column" is moved to the new row.
    Example:
    Add row 1 (columns Name, FirstName) => Result:
    Row 1: Smith John
    Add row 2 => Result:
    Row 2: <empty> John
    Row 1: Smith <empty>
    Is that a bug of the framework or does anyone know a workaround for that
    behaviour ?
    Tanks a lot...
    Cheers, Claus

    Hi,
    problem solved. It's a Swing problem. The following line of code is neccessary:
    dataTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
    (dataTable is the jTable).
    Unfortunately other Swing-Components (e.g. JTextField) don't have that
    client property :-(.
    Cheers,
    Claus

  • 10.1.3.1 : Developing Business Services with ADF BC tuto issues

    Hi,
    I was doing a learning session at my office based on the 'Developing Business Services with ADF Business Components' tutorial : http://www.oracle.com/technology/obe/obe1013jdev/10131/bslayer/bslayer.htm. The topic Creating ADF Business Components > 9 shows how to create EOs, VOs, AM and the corresponding UML diagram.
    When using JDev 10.1.3.1 :
    * the diagram is not generated as expected,
    * the java domains are not created from DB domains.
    Under JDev 10.1.3.2 :
    * the java domains are created from DB domains,
    * the diagram has been generated on 1 out of 3 computers.
    Any clues on what's going on or any known bugs ?
    Thanks,
    Seb.

    Hi,
    Today in 10.1.3.1 the diagram generation just works. It seems the keepResident extension was causing troubles as the exception stack trace mentioned its name... I just removed it.
    But still, the domains are not generated as expected. I've made several tests even in a fresh installation of JDeveloper 10.1.3.1.
    Seb.

  • Need  one to many toplink+Jdeveloper tutorial with example

    Hi
    I need tutorial with example of one to many with Toplink+J developer
    Thanks
    Edited by: user11802935 on Aug 18, 2009 1:06 PM

    Hi,
    The following links should get you started.
    EclipseLink JPA + Eclipse
    http://wiki.eclipse.org/EclipseLink/Examples/JPA
    JDeveloper tutorials
    http://www.oracle.com/technology/products/jdev/index.html
    TopLink + JDeveloper tutorial
    http://www.oracle.com/technology/obe/obe11jdev/bulldog/ejb_jpa_jsf/ejb.html
    @OneToMany documentation
    http://wiki.eclipse.org/Introduction_to_EclipseLink_JPA_%28ELUG%29#.40OneToMany
    thank you
    /michael
    www.eclipselink.org

  • Need ADF basic guidance Tutorial

    i am newbie. As my current assignment i need to work on Jdevloper and ADF. Can somebody please give some guidance how to start with ADF.
    If somebody can give some basic reference guide/tutorial it will be of great help.
    sudip

    There is a book specificallly targeted at those questions of "how do a learn JDeveloper" and "how do a learn ADF" - especially if you are a newbie.
    The Quick Start Guide to Fusion Development Oracle JDeveloper and Oracle ADF aims to get you up and running with ADF applications in as short a time as possible.
    Further details can be found here:
    http://www.mhprofessional.com/product.php?isbn=0071744282
    Regards
    Grant
    p.s. as the author, you might expect slight bias in recommending this book ;o) , but the reviews (from some well known names on the forums) have been positive as well.
    http://www.amazon.com/Quick-Start-Oracle-Fusion-Development/dp/0071744282

  • JDeveloper tutorial fails with java.sql.SQLException: ORA-00600

    In following the steps to the JDeveloper tutorial, after I successfully created and tested my connections, I proceeded on to run ImageLoader.java (Under DatabaseSetup.jws), and it returns an exception. The debug output log is as follows:
    Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.properties");
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Stringmanager using default locale: 'null'
    [03] BC4JDeployPlatform: LOCAL
    [04] Propertymanager: searching for file and system based properties
    [05] {{ begin Loading BC4J properties
    [06] -----------------------------------------------------------
    [07] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
    [08] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
    [09] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
    [10] Skipping empty Property ConnectionMode from System Default
    [11] Skipping empty Property HostName from System Default
    [12] Skipping empty Property ConnectionPort from System Default
    [13] Skipping empty Property ApplicationPath from System Default
    [14] Skipping empty Property java.naming.security.principal from System Default
    [15] Skipping empty Property java.naming.security.credentials from System Default
    [16] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
    [17] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [18] BC4J Property jbo.pers.max.active.nodes='10' -->(SessionImpl) from System Default
    [19] BC4J Property jbo.pcoll.mgr='oracle.jbo.pcoll.OraclePersistManager' -->(SessionImpl) from System Default
    [20] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [21] Skipping empty Property JBODynamicObjectsPackage from System Default
    [22] BC4J Property MetaObjectContextFactory='oracle.jbo.server.xml.DefaultMomContextFactory' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [23] BC4J Property MetaObjectContext='oracle.jbo.server.xml.XMLContextImpl' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [24] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(SessionImpl) from Client Environment
    [25] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [26] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [27] Skipping empty Property HandleName from System Default
    [28] Skipping empty Property Factory-Substitution-List from System Default
    [29] Skipping empty Property jbo.project from System Default
    [30] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [31] BC4J Property jbo.dofailover='true' -->(MetaObjectManager) from System Default
    [32] BC4J Property jbo.doconnectionpooling='false' -->(MetaObjectManager) from System Default
    [33] BC4J Property jbo.recyclethreshold='10' -->(MetaObjectManager) from System Default
    [34] BC4J Property jbo.passivationstore='null' -->(MetaObjectManager) from System Default
    [35] BC4J Property RELEASE_MODE='Reserved' -->(MetaObjectManager) from System Default
    [36] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
    [37] Skipping empty Property PoolClassName from System Default
    [38] BC4J Property jbo.maxpoolsize='2147483647' -->(MetaObjectManager) from System Default
    [39] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [40] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [41] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [42] BC4J Property jbo.SQLBuilder='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [43] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(MetaObjectManager) from System Default
    [44] BC4J Property jbo.TypeMapEntries='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [45] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [46] BC4J Property oracle.jbo.defineColumnLength='true' -->(MetaObjectManager) from System Default
    [47] Skipping empty Property jbo.tmpdir from System Default
    [48] Skipping empty Property jbo.server.internal_connection from System Default
    [49] Skipping empty Property SessionClass from System Default
    [50] Skipping empty Property TransactionFactory from System Default
    [51] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [52] BC4J Property jbo.debug.prefix='DBG' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [53] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [54] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [55] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [56] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [57] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.properties resource
    [58] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [59] BC4J Property jbo.ejb.txntimeout='60' -->(SessionImpl) from System Default
    [60] BC4J Property jbo.ejb.txntype='global' -->(MetaObjectManager) from System Default
    [61] Skipping empty Property oracle.jbo.schema from System Default
    [62] WARNING: Unused property: LC='Calling Function' found in /oracle/jbo/common/Diagnostic.properties resource
    [63] }} finished loading BC4J properties
    [64] -----------------------------------------------------------
    Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    [65] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [66] JavaVMVersion: 1.2.351 odv
    [67] JavaVMVendor: Oracle Corp.
    [68] JavaVMName: OJVM VM
    [69] OperatingSystemName: Windows NT
    [70] OperatingSystemVersion: 5.0
    [71] OperatingSystemUsername: Administrator
    [72] Connected to Oracle JBO Server - Version: 3.2.9.76.3
    [73] {{+++ id=10000 type: 'BC4J_CREATE_ROOTAM' Create Root Application Module 'ImageLoader.ImageLoaderModule'
    [74] {{+++ id=10001 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.ImageLoaderModule
    [75] {{+++ id=10002 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.ImageLoader
    [76] Loading from /ImageLoader/ImageLoader.xml file
    [77] Loading from indvidual XML files
    [78] Loading the Containees for the Package 'ImageLoader.ImageLoader'.
    [79] }}+++ End Event10003 null
    [80] Loading from /ImageLoader/ImageLoaderModule.xml file
    [81] }}+++ End Event10002 null
    [82] {{+++ id=10003 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.InventoryItem1View
    [83] Loading from /ImageLoader/InventoryItem1View.xml file
    [84] ViewObjectImpl's default fetch mode = 0
    [85] {{+++ id=10004 type: 'METAOBJECT_LOAD' Loading meta-object: ImageLoader.InventoryItem
    [86] Loading from /ImageLoader/InventoryItem.xml file
    [87] Loading Typemap entries from oracle.jbo.server.OracleTypeMapEntries
    [88] CSMessageBundle (language base) being initialized
    [89] }}+++ End Event10005 null
    [90] OracleSQLBuilder reached getInterface
    [91] Oracle SQL Builder Version 3.2.0.0.0
    [92] }}+++ End Event10004 null
    [93] {{+++ id=10005 type: 'BC4J_CREATE_VIEWOBJECT' Create ViewObject 'InventoryItem1View'
    [94] }}+++ End Event10006 null
    [95] Created root application module: 'ImageLoader.ImageLoaderModule'
    [96] Locale is: 'en_US'
    [97] }}+++ End Event10001 null
    [98] Using DatabaseTransactionFactory implementation oracle.jbo.server.DatabaseTransactionFactory
    [99] DBTransactionImpl Max Cursors is 50
    [100] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [101] {{+++ id=10006 type: 'JDBC_CONNECT' null
    [102] Trying connection/1: url='jdbc:oracle:thin:bc4j/bc4j@localhost:1521:oracle9i'...
    [103] }}+++ End Event10007 null
    [104] Successfully logged in
    [105] JDBCDriverVersion: 8.1.7.0.0
    [106] DatabaseProductName: Oracle
    [107] DatabaseProductVersion: Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production With the Partitioning option JServer Release 9.0.1.1.1 - Production
    [108] Column count: 8
    [109] {{+++ id=10007 type: 'EXECUTE_QUERY' ViewObject executeQueryForCollection InventoryItem1View
    [110] {{+++ id=10008 type: 'VIEWOBJECT_GETSTATEMENT' Viewobject: InventoryItem1View getting prepared statement
    [111] ViewObject : Created new QUERY statement
    [112] SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
    [113] {{+++ id=10009 type: 'JDBC_CREATE_STATEMENT' createPreparedStatement - prefetch size: 1
    [114] }}+++ End Event10010 null
    [115] }}+++ End Event10009 ViewObject : Creating new QUERY statementSELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
    [116] QueryCollection.executeQuery failed...
    [117] java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
         java.lang.Class java.net.URLClassLoader.findClass(java.lang.String)
         java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
         java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
         java.lang.Class sun.misc.Launcher$AppClassLoader.loadClass(java.lang.String, boolean)
         java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
         java.util.Enumeration oracle.jbo.common.WeakHashtableImpl.elements()
         java.util.Enumeration oracle.jbo.common.WeakHashtable.elements()
         void oracle.jbo.server.ViewObjectImpl.freeStatement(java.sql.PreparedStatement, boolean)
         void oracle.jbo.server.QueryCollection.executeQuery(java.lang.Object[], int)
         void oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(java.lang.Object, java.lang.Object[], int)
         void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
         void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
         boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
         boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
         boolean oracle.jbo.server.ViewObjectImpl.hasNext()
         void ImageLoader.ImageLoader.main(java.lang.String[])
    [118] SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT InventoryItem.ID, InventoryItem.NAME, InventoryItem.DESCRIPTION, InventoryItem.IMAGE, InventoryItem.PRICE, InventoryItem.ONHAND, InventoryItem.SUPPLIER_ID, InventoryItem.CATEGORY_ID FROM INVENTORY_ITEM InventoryItem
         void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
         void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
         boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
         boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
         boolean oracle.jbo.server.ViewObjectImpl.hasNext()
         void ImageLoader.ImageLoader.main(java.lang.String[])
    ## Detail 0 ##
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
         void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
         void oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed()
         boolean oracle.jbo.server.ViewRowSetIteratorImpl.hasNext()
         boolean oracle.jbo.server.ViewRowSetImpl.hasNext()
         boolean oracle.jbo.server.ViewObjectImpl.hasNext()
         void ImageLoader.ImageLoader.main(java.lang.String[])
    Exception in thread main
    At first I thought maybe this is a configuration specific problem -- but I was able to replicate this on two separate machine with clean Win2K and Oracle9i installs.
    It seems like it is not finding a particular class, which leads me to believe that some particular jar is probably missing -- can anyone help me figure out which one? Or is there something else that may be going wrong?
    TIA

    You need to make sure you're using the Oracle9i JDBC driver, or using the Oracle 8.1.7.2 JDBC driver as I mentioned above.
    If you are using JDeveloper9i release 9.0.2 or 9.0.3, the driver you need is in <jdevhome>\jdbc\lib
    Otherwise, you can also download the drivers from OTN.

  • Jdeveloper 10g with Adf training

    Dear all,
    I need to know anybody is interested to provide me
    jdeveloper 10g with Adf training in chennai during feb 2006.
    Dont suggest oracle corpration it is too costly for me.
    please send me the list of computer education institutes/indiviguals in chenai
    thanks and regards
    selva

    Dear all,
    I need to know anybody is interested to provide me
    jdeveloper 10g with Adf training in chennai during feb 2006.
    Dont suggest oracle corpration it is too costly for me.
    please send me the list of computer education institutes/indiviguals in chenai
    thanks and regards
    selva

  • Validations in Jdeveloper with ADF

    Hello I would like to know where I can find examples with code of validations done for ADF in Jdeveloper or some tutorial.
    Thank you very much

    Well thats pretty difficult to answer since it is so extensive.
    You can validate data in the database, in your business services, in the bindings in the UI (on the server side) or client side validation. You can validate when you enter data, save data, query data...and you can do it before or after those actions!!!! So you can see, its pretty extensive.
    The developer guide tells you about this.
    Regards
    Grant

  • ADF from JDeveloper 10.1.2 not compatible with iAS 9.0.1

    Hi,
    We developed an ADF Application with JDeveloper 10.1.2 and we use the ADF interMedia domains (e.g. oracle.ord.im.OrdDocDomain). The application runs fine in JDeveloper, but doesn't run on our iAS 9.0.4.1. We get the following exception:
    java.lang.NoClassDefFoundError: oracle/sql/DatumWithConnection
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
    at oracle.jbo.common.JBOClass.forName(JBOClass.java:161)
    at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:203)
    at oracle.jbo.server.AttributeDefImpl.initFromXML(AttributeDefImpl.java:2061)
    at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:2013)
    at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2815)
    at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:2779)
    at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:2362)
    at oracle.jbo.server.EntityDefImpl.loadFromXML(EntityDefImpl.java:2106)
    at oracle.jbo.server.MetaObjectManager.loadFromXML(MetaObjectManager.java:514)
    [...rest of stacktrace omitted ...]
    The problem is that the JDBC version of the iAS 9.0.4.1 is missing the class DatumWithConnection that is indirectly referenced by the interMedia classes supplied with JDeveloper 10.1.2.
    In detail, oracle.ord.im.OrdDoc uses oracle.sql.STRUCT. The inheritance hierarchy of STRUCT is different in the JDBC versions on iAS 9.0.4.1 (oracle.sql.Datum <- oracle.sql.STRUCT) and JDeveloper 10.1.2 (oracle.sql.Datum <- oracle.sql.DatumWithConnection <- oracle.sql.STRUCT). The class file of oracle.ord.im.OrdDoc (from 10.1.2. JDeveloper) was apparently compiled the new JDBC driver version since it contains a reference to oracle.sql.DatumWithConnection. And that class cannot be found if run on iAS 9.0.4.1 with its old JDBC version.
    I think this is a very serious problem, since it means that ADF from JDeveloper 10.1.2 is not compatible with iAS 9.0.4.1, in contradiction to the support matrix (http://www.oracle.com/technology/products/jdev/collateral/papers/10g/as_supportmatrix.html).
    Upgrading the JDBC Driver on the iAS seems to be the only clean solution for this problem (we also tried using old versions of the ordim.jar etc. but that always leads to other problems). But simply exchanging the JDBC jar-files on the server breaks the Enterprise Manager on our iAS installation.
    I have two questions:
    1) Is there a recommended workaround for the compatibility issue described above?
    2) Is there a documented and supported way to upgrade the JDBC driver of iAS 9.0.4.1? I searched OTN and MetaLink and haven't found anything about this.
    Kind Regards,
    Kay
    P.S. It is surprising that this problem is rarely mentioned in the OTN forums at all. The only relevant thread is on the JHeadstart Forum:
    JHeadstart Deployment Issue
    P.S.2
    More info on what we tested:
    We have thoroughly checked that the 10.1.2. ADF runtime was correctly deployed on our iAS 9.0.4.1. We installed a OC4J 9.0.4.0.0 standalone on the same linux machine as our iAS 9.0.4.1 and deployed our application on it, getting the same error (java.lang.NoClassDefFoundError: oracle/sql/DatumWithConnection) as on the iAS. Replacing the JDBC drivers of the OC4J standalone with the version that came with JDeveloper 10.1.2 solved the problem.

    I don't think that mixing classes from different jar file is a good idea. Nevertheless, we tested this approach already. Adding the DatumWithConnection.class from the 10.1.0.3.0 JDBC version to the jar file of the original JDBC version (of the iAS 9.0.4.1.0) caused a java.lang.VerifyError to appear.
    The DatumWithConnection class is not simply added in the newer JDBC version. It is inserted into the inheritance hierarchy of oracle.sql.STRUCT and oracle.sql.Datum. Simply providing the new class next to the old JDBC driver will not work.
    To give more information about what's wrong with updating the complete JDBC driver, I justed tested it again. To update the JDBC driver I stopped the server, changed the contents of jdbc/lib, started the server. I tried it with JDBC Version 9.2.0.5 as well as 10.1.0.3.0.
    In both cases, our own application works, i.e. no more NoClassDefFoundError caused by oracle.sql.DatumWithConnection.
    The Enterprise Manager shows strange behaviour, however. Some features work as usual but, for example, when I click on the "Applications" tab for our OC4J instance, we just get the following error shown in the browser:
    An error was encountered while loading page. Failed to initialize configuration management user session.. See base exception for details.
    Root Cause: TDU
    Resolution: See base exception for details.. TDU
    In one of the server logs I found the following stacktrace:
    java.lang.NoSuchFieldError: TDU
         at oracle.net.resolver.NavDescription.navigate(Unknown Source)
         at oracle.net.resolver.NavServiceAlias.navigate(Unknown Source)
         at oracle.net.resolver.AddrResolution.resolveAddrTree(Unknown Source)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)
         at oracle.net.ns.NSProtocol.establishConnection(Unknown Source)
         at oracle.net.ns.NSProtocol.connect(Unknown Source)
         at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1777)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:215)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:365)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:547)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:347)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
         at oracle.context.isearch.admin.users.InstanceManager.getSchemaConnection(InstanceManager.java:688)
         at test.admin__status._jspService(_admin__status.java:112)
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Kind Regards,
    Kay

  • Jdeveloper 11.1.1.2.0 with ADF 11g.  add a adf button like ADD(+)

    Hi,
    I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
    I'm display'g view object i.e, i drag some xxxvo1 from datacontrol and drop on jsf with from - i selected ADF form. Now i add a adf button like ADD(+) on top of the panel form.
    here when i fire Add button , i want to add the same set of input text box with label of ADF form i mean the above i have created ADF form.
    like
    ADF FORM
    + --> ADD BUTON
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    when i fire "+" ADD BUTTON
    + -- > ADD BUTTON
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    EMPNO ________
    EMPNAME ______
    EMPDEPT ____
    i hope above example give some idea.
    thanks in advace

    See the example code as below. I use the countries table from HR schema.
    <af:table value="#{bindings.CountriesRO1.collectionModel}" var="row"
    rows="#{bindings.CountriesRO1.rangeSize}"
    emptyText="#{bindings.CountriesRO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CountriesRO1.rangeSize}"
    rowBandingInterval="0" id="t1" columnSelection="none"
    rowSelection="none" horizontalGridVisible="false"
    verticalGridVisible="false" contentDelivery="immediate"
    contextMenuSelect="false">
    <af:column sortProperty="CountryId" sortable="false"
    id="c2" >
    <af:panelFormLayout id="pfl1">
    <f:facet name="footer"/>
    <af:inputText value="#{row.bindings.CountryId.inputValue}"
    label="#{bindings.CountriesRO1.hints.CountryId.label}"
    required="#{bindings.CountriesRO1.hints.CountryId.mandatory}"
    columns="#{bindings.CountriesRO1.hints.CountryId.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.CountryId.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.CountryId.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.CountryId.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.CountryName.inputValue}"
    label="#{bindings.CountriesRO1.hints.CountryName.label}"
    required="#{bindings.CountriesRO1.hints.CountryName.mandatory}"
    columns="#{bindings.CountriesRO1.hints.CountryName.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.CountryName.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.CountryName.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.CountryName.validator}"/>
    </af:inputText>
    <af:inputText value="#{row.bindings.RegionId.inputValue}"
    label="#{bindings.CountriesRO1.hints.RegionId.label}"
    required="#{bindings.CountriesRO1.hints.RegionId.mandatory}"
    columns="#{bindings.CountriesRO1.hints.RegionId.displayWidth}"
    maximumLength="#{bindings.CountriesRO1.hints.RegionId.precision}"
    shortDesc="#{bindings.CountriesRO1.hints.RegionId.tooltip}"
    id="it3">
    <f:validator binding="#{row.bindings.RegionId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.CountriesRO1.hints.RegionId.format}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:column>
    </af:table>

  • Tutorial on using a non-database object with ADF?

    I'm just starting with ADF and could use some advice. I'm making my way through the first ADF 11g tutorial ("Developing Rich Web Applications with Oracle ADF") and just want to make sure I'm headed in the right direction.
    While the tutorial is an excellent step-by-step explanation of how to bind database information to forms, I'm trying to figure out how to create an ADF web page that gets its fields created from an object (e.g. Java POJO). Is there a tutorial on this (Java object vs database object form creation)?
    Thanks

    Hi,
    See if the below link helps:
    http://technology.amis.nl/blog/3802/adf-11g-model-driven-display-properties-in-pojo-based-data-controls
    Sireesha

  • Developing a User Interface with ADF Faces - Tutorial - Questions

    Hello everybody,
    I am a forms developer and I am totally new to ADF.
    I started from the tutorials : Developing Business Services with ADF BC and Developing a User Interface with ADF Faces...
    Everything was easy and very clear, as far as the material covered in the tutorial is concerened.
    But when I tried to modify a little bit the application, to perform a different task... disaster!!! :-)
    One of the "simple" things that I tried to do -for example- is :
    In the login.jspx, where we have created an ADF Parameter form (that accepts as a parameter the customer ID) and
    retrieves in the next page the Orders of the specific customer.... to Display a message, such as "+Customer Does Not Exist+"
    if the user types in the parameter form an not existent customer ID...
    I understand that I should use a validator.... But I cannot find the list validator (from query) in the bind variables not in the ADF Parameter Form Fields....
    Does anyone know?
    Regards,
    Maira Kotsovoulou

    Dear Grant,
    CustomerID is in the UI Project, and appears as a part of an ADF Parameter Form... and I can not find key exists in the UI Validators....
    CustomerID in the .entities is a bind variable in a query. select ... from customers where customer_id = :p_customer_id. Again KEYEXISTS validator is not available in the bind variables sections... Only in the attributes!!!
    I understand that the "normal" behavior in a query with bind variables where there is no match is to display nothing as it does!!!
    But I was just wondering, if I could even trap that before I display the empty form...? Or could I display a text in my ADF form, that says no rows... (as I can do in an ADF Table???)

  • Any date for jdeveloper 10.1.3 beta with adf features

    Hi Jdeveloper team,
    Is there any date we can expect the next jdeveloper 10.1.3 beta with more complete adf features ? I'm currently evaluating the technology stack+tool to use for our next project ( preferably jsf based ), the lack of an adf faces release with adf databinding and adf bc features means I can't do a complete evaluation of 10.1.3 now.
    Regards,
    Low

    Low,
    we don't have a date for a preview release of Oracle JDeveloper 10.1.3 with ADF. Our intention is to release a preview version on OTN as soon as possible and if possible.
    Frank

Maybe you are looking for