Retrieving ID of the JMS Message using Java

Hello

I built a sequence flow which is JMS Producer (BPEl)-> Consumer (Bpel) JMS-> composite A Bpel, inserting database. Now, I deliberately blamed the bpel instance. now, I want to enter the instance bpelcomposite faulted consumer id which I was able to do, but also to retrieve the message id jms I have been unsuccessful.
I imported the javax.jms.Message package and my code is as follows
/ public class FaultHandlingPOC implements IFaultRecoveryJavaClass {}

{} public void handleRetrySuccess (IFaultRecoveryContext ctx)

System.out.println ("this is for the success of the new attempt");

handleFault (ctx);

}
public String handleFault (IFaultRecoveryContext ctx) {}
BPELFaultRecoveryContextImpl bpelCtx = (BPELFaultRecoveryContextImpl) ctx;
Message m = ctx (Message);
System.out.println ("Instance Composite:" + bpelCtx.getCompositeInstanceId ());

try {}
System.out.println ("ID of Message JMS" + m.getJMSMessageID ());
} catch (JMSException e) {}
System.out.println ("insert failed");
}

return to "Rise again";
}

The error generated is class Cast Exception even if I am able to retrieve the Bpel composite instance id

Help, please.

You can not thrown another IFaultRecoveryContext thing, it's an Interface and it does not do anything:

public interface IFaultRecoveryContext
{

public abstract String getIndex (int i);

public abstract card getProperties();

public abstract String getActionId();

public abstract String getPolicyId();

public abstract String getActivityType();

public abstract String getActivityId();

public abstract String getActivityName();

public abstract String getWsdlLocation();

public abstract String getPartnerLinkName();

public abstract QName getPortType();

public abstract String getCorrelationId();

public abstract BPELFault getFault();

public abstract BPELProcessId getProcessId();

public abstract String getStatus();

public abstract void setStatus (String s);

public abstract String setTitle (String s);

public abstract String getTitle();

public abstract int getPriority();

public abstract setPriority (int i) Sub;

public abstract getInstanceId() long;

public abstract Locator getLocator();

public abstract void addAuditTrailEntry (String s, object obj);

public abstract void addAuditTrailEntry (String s);

public abstract void addAuditTrailEntry (Throwable throwable);

public abstract Object getVariableData (String s)
throw BPELFault;

public abstract Object getVariableData (String s, String s1)
throw BPELFault;

public abstract Object getVariableData (String s, String s1, String s2)
throw BPELFault;

public abstract void setVariableData (String s, Object obj)
throw BPELFault;

public abstract void setVariableData (String s, String s1, Object obj)
throw BPELFault;

public abstract void setVariableData (String s, String s1, String s2, object obj)
throw BPELFault;
}

Tags: Fusion Middleware

Similar Questions

  • Unable to display the error message using the controller extension

    Hello

    I am trying to extend standard iproc CheckoutDistsCO. I have to display the error message when the quantity entered is '0 '. So I wrote logical when you click on the apply"" button. I created an extension CheckoutDistsCOEx & written logic here... but I am able to see messages in the log file, but no error message on screen.

    After having many forums I place super.processFormRequest (pageContext, webBean); at the end. It start always error message.

    Standard CheckoutDistsCO has a logic in the button apply. I think it is the substitution of the extension code... How can I fix? Pointers appreciated please

    package xxtr.oracle.apps.icx.por.req.webui;

    Import oracle.apps.fnd.framework.OAApplicationModule;

    Import oracle.apps.fnd.framework.OAException;

    Import oracle.apps.fnd.framework.OAFwkConstants;

    Import oracle.apps.fnd.framework.OARow;

    Import oracle.apps.fnd.framework.OAViewObject;

    Import oracle.apps.fnd.framework.webui.OAPageContext;

    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;

    Import oracle.apps.icx.por.req.webui.CheckoutDistsCO;

    Import oracle.jbo.domain.Number;

    java.lang.String import;

    public class CheckoutDistsCOEx

    extends from {CheckoutDistsCO}

    {} public processRequest Sub (pageContext OAPageContext, OAWebBean webBean)

    super.processRequest (pageContext, webBean);

    }

    {public processFormRequest (pageContext OAPageContext, OAWebBean webBean) Sub

    super.processFormRequest (pageContext, webBean);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    pageContext.writeDiagnostics (this, 'seized in PFR method", OAFwkConstants.STATEMENT);

    If (pageContext.getParameter ("Return")! = null) {}

    String applyevent = pageContext.getParameter (EVENT_PARAM);

    If (applyevent.equalsIgnoreCase ("return")) {}

    pageContext.writeDiagnostics (this, "clicked the Apply-back button" + applyevent, OAFwkConstants.STATEMENT ");

    OAException message = new OAException ("clicked on Apply-back put the message in the dialog box" + applyevent, OAException.INFORMATION);

    pageContext.putDialogMessage (message);

    OAViewObject poreqdistvo = (OAViewObject) am.findViewObject ("PoReqDistributionsVO");

    pageContext.writeDiagnostics (this, "display object = >" + poreqdistvo, OAFwkConstants.STATEMENT);

    OAAdvancedTableBean xxProjectDistsAdvTable = (OAAdvancedTableBean) webBean.findChildRecursive("ProjectDistsAdvTable");

    Line OARow = (OARow) poreqdistvo.getCurrentRow ();

    If (line! = null) {}

    pageContext.writeDiagnostics (this, "line Found"+ row, OAFwkConstants.STATEMENT);

    Number of xxtrqty = (Number) row.getAttribute ("ReqLineQuantity");

    pageContext.writeDiagnostics (Thi, "get attribute reqlinequantity" + xxtrqty, OAFwkConstants.STATEMENT);

    If (xxtrqty.intValue () == 0) {}

    pageContext.writeDiagnostics (this, "in comparing to 0 xxtrqty" + xxtrqty.intValue (), OAFwkConstants.STATEMENT);

    throw new OAException ("Enter valid amount", OAException.ERROR);

    }

    }

    else {}

    throw new OAException ("no line Found Else", OAException.ERROR);

    }

    }

    else {}

    throw new OAException ("not in"apply button", OAException.ERROR);

    }

    super.processFormRequest (pageContext, webBean);

    }

    }

    Thank you

    TR

    For example, when you comment on the super. PFR, you receive the error message on the right of the screen?

    Can you try this code and paste the debug log.

    public class CheckoutDistsCOEx extends CheckoutDistsCO {
        public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
            super.processRequest(pageContext, webBean);
        }
    
       public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
      //super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            pageContext.writeDiagnostics(this, " ----> Entered into PFR Method", OAFwkConstants.STATEMENT);
            String applyevent = pageContext.getParameter(EVENT_PARAM);
      pageContext.writeDiagnostics(this, " ----> applyevent: " + applyevent, OAFwkConstants.STATEMENT);
            if (applyevent.equalsIgnoreCase("return")){
      pageContext.writeDiagnostics(this, " ----> Inside If", OAFwkConstants.STATEMENT);
                OAViewObject poreqdistvo = (OAViewObject)am.findViewObject("PoReqDistributionsVO");
                OARow row = (OARow)poreqdistvo.getCurrentRow();
      pageContext.writeDiagnostics(this, " ----> row : "+ row, OAFwkConstants.STATEMENT);
                if (row != null) {
      Number xxgesqty = (Number)row.getAttribute("ReqLineQuantity");
      pageContext.writeDiagnostics(this, " ----> xxgesqty : "+ xxgesqty, OAFwkConstants.STATEMENT);
                    if (xxgesqty.intValue() == 0) {
      pageContext.writeDiagnostics(this, " ----> throwing errro : ", OAFwkConstants.STATEMENT);
      throw new OAException("Enter Valid Quantity ",OAException.ERROR);
      }
      }
                else {
      pageContext.writeDiagnostics(this, " ----> No Row Error", OAFwkConstants.STATEMENT);
      throw new OAException("No Row Found Else ",OAException.ERROR);
      }
      }
      pageContext.writeDiagnostics(this, " ----> Calling Super", OAFwkConstants.STATEMENT);
            super.processFormRequest(pageContext, webBean);
        }
    }
    

    See you soon

    AJ

  • Run the Ant script using Java in webcenter Portal

    Hi all

    I have requirement where I have to run an ant script using java or by any means to the webcenter portal.

    Ant script must be run on a triggering action.

    Please help me in this direction.

    Thank you and best regards,

    Shakir

    Hey all,.

    Here is the solution, I had finally

    BuildFile file = new File ("myBuild.xml");

    Project p = new Project();

    p.setUserProperty ("ant.file", buildFile.getAbsolutePath ());

    ConsoleLogger DefaultLogger = new DefaultLogger();

    consoleLogger.setErrorPrintStream (System.err);

    consoleLogger.setOutputPrintStream (System.out);

    consoleLogger.setMessageOutputLevel (Project.MSG_INFO);

    p.addBuildListener (consoleLogger);

    p.init ();

    ProjectHelper helper = ProjectHelper.getProjectHelper ();

    p.addReference ("ant.projectHelper", assistance);

    Helper.Parse (p, buildFile);

    p.executeTarget (p.getDefaultTarget ());

    Kind regards

    Shakir

  • Problem to find the Position of the cursor by using Java Script for an input TextField

    Hello

    I have a problem to find the position of the cursor in a field inputText component.

    The following code of java script to achieve. The same functionality works fine if I run in a simple html page. But when it is used the same javascript inside the jsff does not the position of the cursor.
    var adfComponent = AdfPage.PAGE.findComponentByAbsoluteId("r1:1:it3");
    var adfComponentClientId = adfComponent.getClientId();
    var div = document.getElementById(adfComponentClientId + '::content');
    div.focus();
    var docSelectionRange = document.selection.createRange();
    
    docSelectionRange.moveStart ('character', -div.value.length);
    
    var iCaretPos = docSelectionRange.text.length;
    
    alert("iCaretPos --> "+iCaretPos);  ---> This statement always returning '0'. Instead, i want the cursor position inside the text box.
    Please let me know what I'm missing.

    For your reference, sending the sample page html that works fine with the same kind of code.
    <html>
     
     <body style="font-family: tahoma; font-size: 8pt;">
     
      <script language="JavaScript">
     
       /*
       **  Returns the caret (cursor) position of the specified text field.
       **  Return value range is 0-oField.length.
       */
       function doGetCaretPosition (oField) {
     
         var iCaretPos = 0;
              alert(oField);
         if (document.selection) { 
     
           // Set focus on the element
           oField.focus ();
     
           // To get cursor position, get empty selection range
           var oSel = document.selection.createRange ();
     
           // Move selection start to 0 position
           oSel.moveStart ('character', -oField.value.length);
     
           // The caret position is selection length
           iCaretPos = oSel.text.length;
         }
     
         // Firefox support
         else if (oField.selectionStart || oField.selectionStart == '0')
           iCaretPos = oField.selectionStart;
     
         // Return results
         return (iCaretPos);
       } 
      
     
     
      </script>
     
      <form name="blah">
     
       Text Field: <input type="text" name="nameEdit" value="">
       <input type="button" value="Get Caret" onClick="document.getElementById('where').value=doGetCaretPosition (document.forms[0].elements[0]);">
    <input id="where">
      
     
      </form>
     
     </body>
     
    </html>
    Thank you and best regards,
    Kiran kristelle

    Published by: Kiran kristelle on February 6, 2012 12:00

    ... had the chance to look at the source code of the sample. ADF Faces renders text as HTMLTextArea fields when the value of the rows property. The JavaScript code used in the example of client works differently for FF and IE if the input is a text box. This could be a problem in IE or just used JavaScript code. The rows back to a single line (remove) property makes the text as HTML input feldworking with the JavaScript for IE and FF.

    Frank

  • Change the shared user using Java API Service

    Hi Experts,

    I have successfully run the example of classes Java from here: http://docs.oracle.com/cd/E17236_01/epm.1112/epm_security_api/frameset.htm?ch01s03.html
    And I need to change the code of UserFunctions.Java.

    UserFunctions.Java, I can create, edit, and delete a user.
    But in this sample program, when I want to edit a user, I should create a new user first.

    My requirement is I want to change the existing user passing the parameter when you run the program.
    So, when I want to launch the program, it should be like this:
    Java UserFunctions 'method' 'username', 'password', 'email', 'first name', 'last name '.

    FYI, I can create a user in passing the parameter as I mentioned above.
    But to edit a user, I still can't do it.

    Please find my codes below:

    public CSSNativeUserIF createUser (String username, String desc, String firstname, String lastname, String email, String pass) throws CSSException
    {
    The user CSSNativeUserIF = null;
    HashMap context = new HashMap();
    user = cssDMAPI.getNativeUserInstance (context, main);
    user.setLoginName (username);
    user.setDescription (desc);
    user.setFirstName (firstname);
    user.setLastName (lastname);
    user.setEmailAddress (email);
    user.setPassword (pass);
    cssDMAPI.addNativeUser (main user, context);

    return the user;
    }

    ' public void modifyUser (String username, String desc, String firstname, String lastname, String email, String pass) throws CSSException
    {
    The user CSSNativeUserIF = null;
    HashMap context = new HashMap();

    System.out.println ("Edit description user...");
    user = cssDMAPI.getNativeUserInstance (context, main);
    user.setLoginName (username);
    user.setDescription (desc);
    user.setFirstName (firstname);
    user.setLastName (lastname);
    user.setEmailAddress (email);
    user.setPassword (pass);
    cssDMAPI.updateNativeUser (main user, context);

    }

    -------

    in the Sub main():

    If (method.equals ("create"))
    {
    / * Create a native user * /.
    cu.printMsg (System.out, "- creating a user-" "");
    user = cu.createUser (username, desc, firstname, lastname, email, pass);
    cu.dumpUsers (System.out, "the user is created successfully," new CSSNativeUserIF [] {user});
    }
    ElseIf (method.equals ("update"))
    {
    / * Change native user * /.
    cu.printMsg (System.out, "- update a user-");
    cu.modifyUser (user name, desc, firstname, lastname, email, pass);
    cu.dumpUsers (System.out, "the user is updated", new CSSNativeUserIF [] {user});
    }

    Could you please help me with this?

    Thank you and best regards,

    Christophe

    Try this

    CSSUserIF [] usrs to = cssAPI.getUsers (context, principal, sLoginName);

    If (usrs.length > 0) {}
    CSSNativeUserIF natUser1 = (CSSNativeUserIF) usrs to [0];
    natUser1.setLoginName (sLoginName);
    natUser1.setFirstName (sFirstName);
    natUser1.setLastName (sLastName);
    natUser1.setEmailAddress (sEmail);
    natUser1.setDescription (sDescription);
    natUser1.setPassword (sPassword);

    cssDMAPI.updateNativeUser (context, principal, natUser1);
    }

  • About JMS transfers the JMS Messages

    Hello

    In my organization, we have implemented weblogic 10.2.5, suddenly our JMS topics stopped before messages to subscribers, no idea?

    your help is very appreciated.

    Mansoor

    Kind regards.

    The problem might be a network, application, client or server problem. Your primary investigative tool includes your server log (look for the errors & warnings), thread dumps client & server (glance for blocked threads) and all the exceptions that can be thrown to your customers.

    A few questions that might help to refine the question:

    Several areas are involved?

    Do you use distributed topics?

    What is the maximum size of your messages?

    HTH,

    Tom

  • Equium A60: I get the error message using explorer.exe

    Whenever I try to open an image file using paint or Fax/Image viewer, or I try to drag a file to a folder, I get the following error message:

    "Windows Explorer has encountered a problem and needs to close. We are sorry for the inconvenience ".

    The error report says:

    "AppName: explorer.exe AppVer: 6.0.2900.2180 ModName: rpcrt4.dll.
    "ModVer: 5.1.2600.2180 Offset: 000847a 6.

    Also I can't open Web pages that open in a new window, IE. Norton Internet Security 2005 also does not open, but has claimed to be active in the background.

    Does anyone have advice for me?

    I tried all the help for explorer.exe on helpwithwindows.com problems but nothing suggested worked - as spyware, malaware removal. I ran a few controls on-line virus - given that Norton does not work I have tried the scans online.

    The laptop was bought last year, and we have lost the recovery CD - so if we need them, then where we can get replacements?

    Thank you very much

    Jonathan

    HI Jonathan,.

    It seems to me that if your OS has been corrupted, and I would recommend that you re-install. You can get the replacement of any Toshiba authorized Service partner recovery CD. You can get a list of the asp from the Toshiba web site.

    Kind regards

  • Navigation in the catalog by using Java App Manager

    With the help of OBIEE 11.1.1.7 with client tools installed.

    I am trying to create a java application that allows a user to select an object in Catalog Manager.

    I don't know which library to use to access folders and objects in Catalog Manager.

    Any help would be appreciated.

    Raymond

    Hello

    I would say that the use of the web service is the only way to do it: http://docs.oracle.com/cd/E28280_01/bi.1111/e16364/soa_overview.htm#BIEIT3170

    http://docs.Oracle.com/CD/E28280_01/bi.1111/e16364/methods.htm#BIEIT286

  • Set the member formula using java api

    Hello

    I'm trying to define the formula by member using the java code and here is the code snippet I use. But some how, the formula is somewhere in cache, but not updated in the server of the ESS. I have appropriate privileges to update the data in Essbase. Any thoughts would be helpful. Thank you.

    try {}

    IEssCube = formulaCube

    olapSvr.getApplication (appName) .getCube (cube);

    IEssCubeOutline outline = formulaCube.openOutline (false, false, true);

    If (contour! = null) {}

    IEssMember requiredMember = outline.findMember (member);

    If (requiredMember! = null) {}

    System.out.println ("formula:" + requiredMember.getFormula ());

    requiredMember.setFormula ("[RL. LTV. CSE] + [RL. LTV. OPEX.0071]");

    System.out.println ("value according to formula:" + requiredMember.getFormula ());

    requiredMember.refreshPropertyValues ();

    requiredMember.updatePropertyValues ();

    System.out.println ("after updatevalues:" + requiredMember.getFormula ());

    }

    Outline.Save ();

    Outline.Verify ();

    outline.updatePropertyValues ();

    }

    It works if you restructure prior to closing.

    Outline.Save ();

    outline.restructureCube (IEssCube.EEssRestructureOption.KEEP_ALL_DATA);

    Outline.Close ();

    In theory, it should only do a restructuring outline only.

    See you soon

    John

  • News headlines for RSS feeds on the Web site using Java

    Good evening
    I'm interested in showing the post titles of blog titles on our Web site. (RSS feeds would be converted, etc..) I found generators free plug-and-play javascript that will do it, but they give me validation errors and were not ideal. I found a file, .jsp, who says he'll do the job , but he didn't.

    Anyone have experience with this or know something that works? I would like to welcome myself to the script if possible. PHP is not an option for me.

    Thank you
    Nick

    FYI: Java is not a shortcut for JavaScript. Here are two completely different programming languages.

    To answer your question on the extraction of feedingstuffs in JavaScripts,
    I use it on my site. It works very well.
    AJAX Google feedfetcher - requires you to have a Google API key #.
    http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

    or this one:
    Power roller - generating javascript for news feeds, including Web sites:
    http://www.FeedRoll.com/RSSViewer/

    Nancy O.
    ALT-Web Design & Publishing
    www.Alt-Web.com/

  • Failed to open the jnlp file using Java web start on Windows 8

    Original title: java webstart does not work with windows 8. file opens with Notepad instead; cannot associate the jnlp file Ext. with webstart - what I do

    Windows 8 home; Java webstart program is part of the installation of appinventor; try to look for an "app" to associate the jnlp file crashes windows Explorer and requires the computer to restart.

    Goto, the Java configuration screen (control Panal |) Java (32-bit |.)

    Goto, the Advanced tab, set association JNLP/MIME to "always allow".

  • Change the value of the radio button using Java Script

    Hi I have a radio button "Process_mode" with two 'ONLINE' and 'Offline' values.
    based on the selection criteria, I will call the process_mode() function and if the user presses the ok button I want to change the proces_mode offline.
    Here's my java script.
    but it does not change the value of the variable.
    Please suggest how to proceed.

    function process_mode()
    {
    confirm_msg = confirm ("your search criteria is complex.") It is proposed to submit the application in offline mode. do you want offline? ») ;
    If (confirm_msg is true)
    {
    $x('p2_process_mode').value = "out of the CONNECTION";
    $x('P2_HIDDEN_PROCESS_MODE').value = "offline";
    }
    }
    doSubmit ('BTN_FINAL_COUNT');
    Alert ("your application has been submitted. Please wait until the system processes your request.') ;

    Thanks and greetings

    Ashok Salimath

    Published by: user644340 on July 19, 2009 23:11

    Hey Ashok,

    A Radio element generates actually individual boxes within a radiogroup (this is done by giving the same "name" attribute to each key). Each button has its own attribute 'ID', which will be the name of the option page more "_n" - where n is a number from 0 (zero) - so the first button will be, say, "P1_RADIO_0", then the second will be "P1_RADIO_1" and so on.

    To set the value of the radiogroup and, therefore, article, you need to 'check' one of the buttons - this is done by setting its 'checked' true value. For example, if "Offline" is the second radio button to the P2_PROCESS_MODE element:

    $x('P2_PROCESS_MODE_1').checked = true;
    

    Andy

  • Problem of DH handshake with the web service using ColdFusion 7 and 8 after java update 8

    ColdFusion 7 and 8 are provided with a variant of JRE1.6.

    I have a script that has consumed a web service for years with success.  Last week, the web service provider updated their version of Apache and Java on the server java 1.8 (or java-8).

    I could no longer consume the web service once the web service provider updated to Apache and Java and would be the following error DH keypair every time that I try to consume the service:

    -----------------

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException

    faultSubcode:

    faultString: javax.net.ssl.SSLException: java.lang.RuntimeException: could not generate keypairs DH

    faultActor:

    faultNode:

    faultDetail:

    {}http://xml.apache.org/axis/} stackTrace:javax .net .ssl .SSLException: java.lang.RuntimeException: could not generate keypairs DH

    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1554)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1537)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1130)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)

    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)

    to org.apache.axis.transport.http.HTTPSender.getSocket (HTT... ''

    -----------------

    I asked the service provider web, why it would stop working and how we can solve this problem.  They suggested that upgrade to the latest version of Java on my server running ColdFusion.  I did some research and found the problem to be with the amount of memory allocated to the variable containing the encryption key.

    The big problem is when I tried to update java on this particular server (Windows Server 2003), the installation has returned a messaged stating that he could not run on the older operating system and I need to update my OS to install java.

    Does anyone have a workaround in ColdFusion 7 or 8 that you can establish the DH handshake using Java 1.6 on your local server while consuming a web service on a server using Java 1.8?

    Hi, frank000000,

    I know that we had a serious problem with any Java 7 after update 25.  They are off a lot of network permissions and other things, for safety, that used to be available in versions prior to the update 25.  But it's while we were in CF Server 9.

    Since we switched to CF Server 10 (making sure that we got the CF Installer provided with Java 8), we had very few issues related to Java.

    It seems strange to me that the upgrade to 1.8 host while your server is 1.6 would cause problems.  It could very well be something else.  I would like to ask the host for documentation describing exactly how/why their 1.8 may cause interference with your 1.6.

    HTH,

    ^_^

  • How to use java to store the MultiPolygon

    I fell victim of the problem of ORA-00939 of too many arguments when you insert a geometry object in the database and find details on the forum to use java to insert it instead. The code was:

    Double [] coords = new double [10000];
    for (int i = 0; i < coords.length; i ++)
    Coords [i] =...;

    JGeometry mypoly = JGeometry.createLinearPolygon (coords, 2 / * dimensions * /, 8256);

    PreparedStatement ps = connection.prepareStatement ("insert into States values (?)");
    convert JGeometry instance DB STRUCT
    STRUCT obj = JGeometry.store (mypoly, connection);
    ps.setObject (1, obj);
    PS. Execute();


    The SDO_GEOMETRY I want to insert SDO_GTYPE 2007 East (collection of polygons) [in the example below, 2]
    I can see in the code example where to put the SRID (8307), but nowhere in the code, and nowhere in the geometry of the class where I can create a MultiPolygon.
    Anyone help with this?

    As a secondary issue: some sites I put to date have a boundary defined by a polygon, some by more than one - SDO_GTYPE 2007 can be used for all, no matter how they are?




    UPDATE SET SITE_BOUNDARY = MDSYS LOC. SDO_GEOMETRY)
    2007,
    8307,
    SDO_POINT (60.49772542,-1.452049075, NULL)
    MDSYS. SDO_ELEM_INFO_ARRAY (1,1003,1, 105,1003,1),
    MDSYS. SDO_ORDINATE_ARRAY (50.49678550013553,-7.217321117344117,... < trimmed, you don't want to see all >...)
    )
    WHERE SITECODE = "970A 3";

    Hello

    Have you checked this:

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14373/Oracle/Spatial/geometry/JGeometry.html#JGeometry_int__int__int___double _

    the first parameter in the constructor is the gtype (in your case, 2007).

    Luke

  • (XML-based) SMS sending to the JMS queue

    Hi gurus,

    How we can publish a text message in the JMS queue using message text option by writing to Java or PL/SQL according to the following XML schema definition:

    <? XML version = "1.0" encoding = "windows-1252"? >

    " < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "

                xmlns=" http://www.example.org "

    " targetNamespace = ' http://www.example.org "

    elementFormDefault = "qualified" >

    < xsd: element name = "Employee" >

    < xsd: annotation >

    < xsd: documentation >

    An element of the sample

    < / xsd: documentation >

    < / xsd: annotation >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "EmpNo" type = "xsd: Decimal" / >

    < xsd: element name = "EmpName" type = "xsd: String" / >

    < xsd: element name = "Salary" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    My Composite SOA will contain a JMS as a Service exposed adapter.

    Hello

    Please find enclosed the attachment for an example implementation of the Java client code to post the message to a weblogic JMS queue.

    It will be useful.

Maybe you are looking for