Sample code of jms in jdeveloper

hi all,
I am new to JMS and want to develop JMS example with jdeveloper can any one tell me about any article or post some steps for basic examples with jdeveloper.
Thanks

Hi jenny,
if you wanted to eliminate the recodes with itemcateg has value ABC' You can put the code,
DELETE  data_package where ITEMCATEG = 'ABC'

Similar Messages

  • JMS sample code not working

    Hi,
    I am new to JMS and am trying to learn the technology. When I tried to run the JMS sample codes available at http://www.oracle.com/technology/sample_code/tech/java/jms/index.html, I got the following error:
    [java] javax.naming.NoInitialContextException: Cannot instantiate class: co
    m.evermind.server.rmi.RMIInitialContextFactory [Root exception is java.lang.Clas
    sNotFoundException: com.evermind.server.rmi.RMIInitialContextFactory]
    Please help me solve the problem. I find that, the downloaded code does not contain the class mentioned in the error message. Also, I do not see how the code is interacting with the OC4J server. It would be great if anyone could clarify.

    hi adith,
    the problem you are facing can be removed by adding oc4jclient.jar as libraray.
    But after that i am facing following error.
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/management/j2ee/statistics/JMSEndpointStats
         at com.evermind.server.jms.EvermindSession.createProducer(EvermindSession.java:311)
         at warid.com.jms.JMSProducerConsumer.performMessagingOperations(JMSProducerConsumer.java:80)
         at warid.com.jms.JMSProducerConsumer.main(JMSProducerConsumer.java:42)
    Regards

  • Look for JDeveloper Tutorial with samples code

    Hello All ,
    my name is Ron ,
    i'm new user of JDeveloper i'm looking for a place to start a tutorial "How to use
    the JDeveloper ? " with samples code .
    from very basic use ( Hello world program ) to addvanced programming ( Like GUI Forms and Database )
    please show me links where to start learning from
    thanks in advance

    The tutorials in the JDeveloper help system are a very good place to start. Choose Help | Help Topics from the JDeveloper menu then click the Tutorials book in the Help navigator. The tutorials are also available on OTN, see:
    http://otn.oracle.com:8877/jdeveloper/help/
    You may also find the 'how to' documents and samples on OTN helpful:
    Oracle9i JDeveloper How To Documents
    http://otn.oracle.com/products/jdev/howtos/content.html
    Oracle9i JDeveloper Sample Code
    http://otn.oracle.com/sample_code/products/jdev/content.html
    Hope this helps.
    - jon

  • JMS Sample code hangs.....

    Hi guys,
    i have tried a sample client code for JMS with Sun Appl Server.
    but that one is getting hang after i has sent the messages to destination.
    can anyone pls give me some of your examples and tell me how to deploy them before running the application
    thanx in advance.
    --Subbu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    maybe you have an infinite loop in there waiting for a response message from some other component that you've not (yet) installed?

  • JDeveloper Sample Codes

    Hi
    As I viewed the JDEveloper sample code, some of them were for JSP and some for the UIX.
    My question is whether can UIX samples help to develop JSP applications??

    Instead of UIX have a look at ADF Faces which is the updated set of UI components that use the JSF standard.
    The SRDemo application shows is one sample that will show you how to use them.
    And yes, using JSF and ADF Faces makes web development with JSP much easier.

  • Error in sample code

    How come we have so many errors in Jdeveloper sample code for creating db schema.

    You will really have to provide more information (what errors, what are you trying to do), because no one will be able to do anything with this kind of limited information.

  • Looking for sample code to create my own pub/sub!

    I am a new bee in JMS. So I would really appreciate if
    some one could give me some hint to start up with my school project. I am looking for a sample Java code that will:
    For the Publisher:
    1. Connect to a broker [create it, if it does not exist]
    2. Create a publisher/destination.
    3. Create a pub-sub queue
    4. Publish a message
    5. Ack or Nak depending on if the subscriber got or did not get the message.
    For the Subscriber:
    1. Connect to a broker [create it, if it does not exist]
    2. Subscribe to the broker
    3. Subscribe to the Queue
    4. Show an received messages on the console.
    Here are the command line params for both the Publisher and subscriber:
    runPub 127.0.0.1:7676 myTestBroker myQueue "this is my message"
    runSub 127.0.0.1:7676 myTestBroker myQueue
    Please tell me if there are similar java code that will do all this and work with ANY JMS compatible client. i.e. I should not have to use the Admin tool of any JMS Server (MQSeries, iPlanet, SonicMQ etc etc). The code should follow the JMS spec and do this programmatically.
    Thank you very very much in advance for doing this great favor.
    With regards,
    Amir.

    Thanks a lot for that hint. I think that's a great tutorial for a beginner. I could compile those sample codes from chapter 4 with out any problem, but could not run it. I also installed j2sdkee1.3.1 and updated my classpath according to the spec. But when I tried to run the "j2ee -verbose" command it was giving me the following error message:
    ERROR: Set J2EE_HOME before running this script.
    Any advise for me that I should follow next. Thanks again.

  • Where can I get the sample code of gantt chart?

    hi, all
    I want to use gantt chart component.I find this video http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html.
    where can I get the sample code in this video?
    I have got the demo <strong>dvt-faces-demo.ear</strong>.but in this demo, the code of events process is too simple.I want more detail code of date change, denpendency change and so on.
    this is my mail [email protected]
    Thanks
    Best Regards
    kenshin
    Edited by: Himura Kenshin on 2010-8-20 上午4:57
    Edited by: Himura Kenshin on 2010-8-20 上午9:03

    Hi Katia,
    Essentially the same sample app which was referenced above (http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html). There are many features implemented in this sample which I'll be "reinventing the wheel" with. Its been a bit since I worked with the gantt component as I had to abandon for other development but will be getting back into it here shortly.
    Namely as I remember, I had difficult time getting the gantt to load quickly with large amount of tasks, difficulty getting the selected item when using context menus or buttons defined within the control, and a few other minor issues which could be fixed as I was using the first release of 11g and cannot remember specifics. I'll let you know as I get back into it if I see similar problems.
    For example, if you go to the ADF Demo Site (http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx) and click on "Project Gantt Custom Menu and Toolbar - add menus and buttons on the Project Gantt Menu and Toolbar". The buttons work, however if you first select a row in the left and then click the button, you have to click twice for it to work (in my findings the action listener never "fires"). So in my case I want to select a row and then have a custom event for that selected row when I click the button. There were other similar findings I had when I tried to go off of the examples.
    Hope this helps.
    Thank you,
    Kris

  • UIX DataObjectList Sample Code

    Can anyone give me a complete, runnable UIX Example, which uses a DataObjectList
    and includes the Source for the DataProvider?
    I try to but the pieces in the Online Documentation together but have no success.
    Thanks,
    Juergen Maihoefner

    OK, to follow up on what Andy wrote, here's a complete (albeit simple) example showing both the "hard" way (implementing DataObjectList directly) and the easier way, which is to just use an array or java.util.List.
    One interesting thing to note about the UIX below is the use of .@dataprovider data binding form. The period as the select key means "select the object itself". Since in these cases the method data providers are returning the lists directly, to bind to the lists you use .@dataprovider.
    So, here's a complete sample. Just create a JDeveloper 9.0.3 project and add these two files to it (you can name the UIX file anything you like). Compile the Java file, and then you can right-click the UIX file and select "UIX Preview" to see it in action.
    Hope this helps,
    -brian
    Team UIX
    Sample UIX file using the data object list sample Java code
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:data="http://xmlns.oracle.com/uix/ui">
      <content>
        <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
          <provider>
            <data name="data:automaticList" >
              <method class="UsingDataObjectLists" method="getAutomaticList" />
            </data>
            <data name="data:manualList" >
              <method class="UsingDataObjectLists" method="getManualList" />
            </data>
          </provider>
          <contents>
            <header text="Manual DataObjectList implementation">
              <contents>
                You can simply implement the DataObjectList interface,
                as is demonstrated by class LessSimpleDataObjectList.
                <separator />
                The items in the list are:
                <flowLayout>
                  <separator>, </separator>
                  <contents data:childData=".@data:manualList"><text data:text="text" /></contents>
                </flowLayout>
              </contents>
            </header>
            <header text="Automatic DataObjectList implementation">
              <contents>
                However, it's much easier to simply use JavaBeans to
                represent the individual data objects and standard
                java.util.List implementations or arrays. These
                will be automatically turned into DataObjects and
                DataObjectLists respectively.
                <separator />
                The items in the list are:
                <flowLayout>
                  <separator>, </separator>
                  <contents data:childData=".@data:automaticList"><text data:text="text" /></contents>
                </flowLayout>
              </contents>
            </header>
          </contents>
        </dataScope>
      </content>
    </page>
    UsingDataObjectLists.java
    import oracle.cabo.ui.RenderingContext;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.data.DataObjectList;
    import oracle.cabo.ui.data.DictionaryData;
    public class UsingDataObjectLists
       * This method data provider shows that you can simply return an array of
       * JavaBeans to provide a list of data to a UIX page.
      public static Object getAutomaticList(
        RenderingContext context,
        String namespace,
        String name)
        return beans;
       * This method data provider shows how to return a DataObjectList
       * implementation you manually implement.
      public static Object getManualList(
        RenderingContext context,
        String namespace,
        String name)
        return new LessSimpleDataObjectList();
      public static class LessSimpleDataObjectList implements DataObjectList
        public int getLength()
          return beans.length;
        public DataObject getItem(int index)
          if ((index < 0) || (index >= beans.length))
            return null;
          String text = "LessSimple item #" + index;
          return new DictionaryData("text", text);
       * A simple JavaBean class to return data for.
      public static class SimpleBean
        public SimpleBean(String text)
          _text = text;
        public String getText()
          return _text;
        private String _text;
      private static SimpleBean[] beans = new SimpleBean[]
        new SimpleBean("first bean"),
        new SimpleBean("bean #2"),
        new SimpleBean("bean number three")
    }

  • BC4J + XSQL, XSQL+EJB Sample Code

    I'm new to the XML/Java thing. Does anyone have sample code which uses BC4J or EJB components with XSQL (or other XML template files)?

    Sharon,
    Take a look at the XML wireless sample on this site.
    - Select Products from the menu on the left of this page
    - Select the JDeveloper link
    - Select Sample Code (at the top of the page)
    - Select the XML Wireless Sample link
    Blaise
    null

  • How to Delete a Specific Cell in a Matrix + plz Give sample code for Lost F

    hello there !!!!
    i m in Great Trouble please help me out..
    i have to search for a specific Column n then i have to validate that portion, similarly after validating i have to add update delete all the fuction apply... so please help me i m very upset.
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim Count As Int32
                If FormUID.Equals("Allowance") Then
                    If (pVal.BeforeAction = True) And (pVal.ItemUID = "1") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                        If pVal.Row = 0 Then
                            'BubbleEvent = False
                        End If
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        Count = o_Matrix.RowCount()
                        SBO_Application1.MessageBox("Matrix Count is " & o_Matrix.RowCount)
                        Validate(pVal, EventEnum, FormUID, BubbleEvent)
                    End If
                End If
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim Row, ii As Integer
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            o_Matrix.FlushToDataSource()
            Try
                For Row = 2 To o_Matrix.RowCount
                    StrName = Convert.ToString(DBtable.GetValue("CardCode", Row - 1)).Trim()''' i got Error over there n rest of my code is also not working pls...
                    StrUId = Convert.ToString(DBtable.GetValue("U_AlwID", Row - 1)).Trim()
                    StrEnter = Convert.ToString(DBtable.GetValue("U_SupEnter", Row - 1)).Trim()
                    StrExist = Convert.ToString(DBtable.GetValue("U_SupExist", Row - 1)).Trim()
                    If Row - 1 < DBtable.Rows.Count - 1 Or (Not (StrName.Equals(String.Empty) And StrUId.Equals(String.Empty) And (StrEnter.Equals(String.Empty) Or StrExist.Equals(String.Empty))) And (Row - 1 = DBtable.Rows.Count - 1)) Then
                        If (Not StrName.Equals(String.Empty)) And ((StrUId.Equals(String.Empty) Or StrEnter.Equals(String.Empty)) Or StrExist.Trim.Equals(String.Empty)) Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                        For ii = Row To DBtable.Rows.Count - 1
                            If Convert.ToString(DBtable.GetValue("ColName", ii)).Trim().Equals(StrName.Trim()) Then
                                SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Duplication Not Allowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
                                BubbleEvent = False
                                Exit Sub
                            End If
                        Next
                        If CDbl(StrName) < 0 Then
                            SBO_Application1.StatusBar.SetText("Invalid values provided!Blank values not vllowed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                            BubbleEvent = False
                            Exit Sub
                        End If
                    End If
                Next Row
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

    Hello there
    sir i want to Add Update and delete these three basic operation onto the Matrix, Sir u game me a Sample code of Delete a specific Column...
    Sir can u do me a favour pls leave every thing n just told me how to update a matrix ,like i have to fill the matrix field through the DATABASE table now i want to update the DataBase table from the matrix..
    i just only know thta i have to fill back database table with the help of FLUSHTODATABASE()
    here is my Sample Code...n i have to update in the validate portion...
    Public Sub HandleEventts_Allowance(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByRef BubbleEvent As Boolean)
            Try
                Dim oCellValue As SAPbouiCOM.EditText
                If FormUID.Equals("Allowance") Then
                    If (pVal.ItemUID = "MatAllow") Then
                        If pVal.Row = 0 Then Exit Sub
                        o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                        If (pVal.Row > o_Matrix.RowCount) Then Exit Sub
                        oForm = SBO_Application1.Forms.Item(FormUID)
                        If (pVal.ItemUID = "1" Or EventEnum = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
                            If pVal.ColUID = "ColName" And pVal.BeforeAction = True Then
                                If pVal.Row = 0 Then Exit Sub
                                oCellValue = CType(o_Matrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific(), SAPbouiCOM.EditText)
                                If (oCellValue.Value.Trim().Equals(String.Empty) And o_Matrix.RowCount <> pVal.Row) Then
                                    SBO_Application1.StatusBar.SetText("Invalid Allowance ID: Blank Value Not Allowed", )
                                    oCellValue.Active = True
                                    BubbleEvent = False
                                    Exit Sub
                                End If
                            End If
                        End If
                    End If
                End If
                Validate(pVal, EventEnum, FormUID, BubbleEvent)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
    Public Sub Validate(ByRef pval As SAPbouiCOM.ItemEvent, ByRef EventEnum As SAPbouiCOM.BoEventTypes, ByVal FormUID As String, ByRef BubbleEvent As Boolean)
            Dim str, str1 As String
            Dim checkbox1, Checkbox2 As SAPbouiCOM.CheckBox
            Dim o_Matrix As SAPbouiCOM.Matrix
            Dim Sum As Integer
            Dim oRecordset As SAPbobsCOM.Recordset
            Dim Container As Integer
            Dim Count As Int32
            o_Matrix = SBO_Application1.Forms.Item(FormUID).Items.Item("MatAllow").Specific
            oRecordset = o_CompanyObj.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                For Count = 0 To DBtable.Rows.Count - 1
                    CodeFill = Convert.ToString(DBtable.GetValue("Name", Count).Trme())
                    NameID = Convert.ToString(DBtable.GetValue("ColUID", Count).Trim())
                    Price = Convert.ToString(DBtable.GetValue("ColPrice", Count).Trim())
                    Quantity = Convert.ToString(DBtable.GetValue("ColQuant", Count).Trim())
                    Total = Convert.ToString(DBtable.GetValue("ColTotal", Count).Trim())
                    checkbox1 = o_Matrix.Columns.Item("ColSEnter").Cells.Item(Count).Specific
                    Checkbox2 = o_Matrix.Columns.Item("ColSExist").Cells.Item(Count).Specific
                    If (checkbox1.Checked = True) And (Checkbox2.Checked = True) Then
                        Dim Sql As String
                        Sql = "Update [@Supplier] Set U_Price=' " & Price & " ',U_ID=" & NameID & "Where Name ='" & CodeFill & " '"
                        oRecordset.DoQuery(Sql)
                    End If
                Next Count
                SBO_Application1.MessageBox("Record was Updated")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • Error while running a sample code

    Hello,
    I 'm getting the following error while i'm trying to run a
    sample code which I have imported into Flex 3.
    ===================================================================
    Severity and Description Path Resource Location Creation Time
    Id
    unable to open 'C:\Documents and Settings\sn55179\My
    Documents\Flex Builder
    3\FlexForDummies_Chapter3_Code\libs'FlexForDummies_Chapter3_Code
    Unknown 1237909480511 215
    ===================================================================
    Can anyone help me in resolving this issue.
    Many thanks in advance.

    It's very frustrating that FB stops working when the libs
    folder is missing. If you are checking in project files to a source
    control app like Perforce, empty folders don't get added, so if you
    don't add an initial dummy file, the next time you do a clean sync,
    the libs folder may not be there, and even though there is nothing
    there, FB complains. :-(

  • Sample code for routine

    Hi all,
    This is what I want to achieve. I have an attribute for an IO, but the values for that has to be decided at the transfer structure level. I want to write a routine in the transfer rules to populate the field.
    I have another field that gets populated from R/3. I need to write a routine which would take this value and see if it falls in the range and have to decide the value and populate.
    I have gl_account coming in, and in the routine I need to take that value of the gl_account and see if it falls in the range of 1 – 5000 or 6700 - 8130 if so assign a + sign and if not assign a – sign to the new field.
    Any sample code would be appreciated and rewarded.
    Thanks,
    Sri

    Global code used by conversion rules
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
       Data:  temp1 TYPE RANGE OF TRAN_STRUCTURE-ZDEBITCREDIT,
       Data:  temp1_line LIKE LINE OF temp1.
       temp1_line-sign = 'I'.
       temp1_line-option = 'BT'.
       temp1_line-low = '001'.
       temp1_line-high = '5000'.
       APPEND temp1_line TO temp1
      Data:  temp2 TYPE RANGE OF TRAN_STRUCTURE-ZDEBITCREDIT,
       Data:  temp2_line LIKE LINE OF temp2.
       temp2_line-sign = 'I'.
       temp2_line-option = 'BT'.
       temp2_line-low = '5001'.
       temp2_line-high = '8000'.
       APPEND temp2_line TO temp2
    Data: temp(1) char.
    if TRAN_STRUCTURE-0glaccnt  IN temp1.
       temp3  = '+'.
    elseif TRAN_STRUCTURE-0glaccnt  IN temp2.
      temp 3= '-'.
    endif
      RESULT = temp3 .
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -

  • Routine sample code for reading 2 fields from existing DSO

    Hi Gurus,
                 I am a monkey when it comes to write ABAP code. I have one DSO-A where we store accounting info of purchading (from DS 2lis_02_acc) and one DSO-B getting data from 2lis_02_scl data source.
    We need to write a rountine to read DSO-A for G/L account and populate DSO-B G/L account field.
    Please provide me the sample code for this.
    Warm Regards,
    Anil

    Hi anil,
    Create a local table this is type of you source,
    Data : LV_table  TYPE  XXXX
    use the select statement to read the table of DSO .You have to use th active table for the dso that you want to read data from.
    Select xxxfieldxxx FROM  /BIC/A..........50
    into lv_table where
    filed name of of scheule line probably order no and item no .
    <soruce-fields>-IOBELN = IOBELN
    and <source-fields>-IOBELP = IOBELP.
    Checke the techinal name i am not sure about it. It will be something like that.
    Cheers mate

  • Sample Code for CRM enhancement in BADI

    hi,
      can anybody please give me sample code for BADI for CRM enhancement.
    i have added couple of z field in a extract structure. now i have to write code in BADI to populate those fields.
    please do not send code for user exit.
    Regards
    Subrata

    Hi Aviral,
    Please consider below thread :
    http://scn.sap.com/thread/2069370
    Best regards - Christophe

Maybe you are looking for

  • Files from iPhone to PC

    How do I transfer Voice Memos files from my iPhone 6 to a PC?

  • Error al ejecutar Crystal Report

    Hola a todos!! Estoy haciendo un reporte en Crystal para una BD que cuenta con Factura Electrónica con un addon (En una máquina que no tiene el addon instalado, la idea es sustituir la FE del addon, por el de SAP) Sin embargo al momento de querer abr

  • Help needed with the structure of my Imovie project

    Hi guys I am making quite a large and complex project for my son's soccer team. It will involve around 15 chapters/events. I am making each piece out of order, when the photos/video become available and this is giving me grief as each time I make a n

  • Disable Save Button in the Interactive PDF form

    Hi Experts,     I have created an interactive form using NWDS and I am able to show it as Collable Object. Now the requirement is that I have to disable the save button from the PDF. Can you please let me know how to disable the Save Button for the i

  • Cannot change the default program to open a specific file type.

    Whenever I attempt to change the default program to open a file, it automatically reverts to whatever was selected previously. I work with a lot of .ai files and my default Illustrator version is set to Creative Cloud. CC crashes constatnly on my mac