Custom class to load a webservice in flex

class allows user to load any wsdl file and user can listen all necessary events in any mxml file by heaving an object of this class.

If this post answers your question or helps, please mark it as such.
This should answer your question.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  <mx:Script>
    <![CDATA[
      import mx.events.MenuEvent;
      private function createPanels(evt:MenuEvent):void {
        if(evt.item.@label == "Red Panel"){
          red.visible = true;
          blue.visible = false;
        }else{
          red.visible = false;
          blue.visible = true;         
    ]]>
  </mx:Script>
  <mx:MenuBar id="myMenuBar" labelField="@label" itemClick="createPanels(event)">
    <mx:XMLList id="myMenuData">
      <menuitem label="Create Panels...">
        <menuitem label="Red Panel"/>
        <menuitem label="Blue Panel"/>
      </menuitem>
    </mx:XMLList>
  </mx:MenuBar>
  <mx:Panel id="red" width="100%" height="100%"
    backgroundColor="0xFF0000" visible="false" x="100" y="30"/>
  <mx:Panel id="blue" width="100%" height="100%"
    backgroundColor="0x0000FF" visible="false" x="100" y="30"/>
</mx:Application>

Similar Messages

  • Putting Loader in a custom class: events, returning to main ... asynch challenges

    I'm creating a custom class to retrieve some data using URLoader.
    My code is below, doing this from memory, plz ignore any minor typos.
    The challenge I'm encountering: when my custom class calls the loader, the event handler takes over.  At which point the context of my code leaves the function and it's not clear to me how I then return the data retrieved by the loader.  I sense that I'm breaking the rules of how ActionScript really runs by putting a loader in a separate class; at least, that's my primitive understanding based upon the reading I've done on this.
    So can I do this?  I am trying to create a clean separation of concerns in my program so that my main program doesn't get clogged up with code concerned with retrieving remote data.
    Thanks!
    Main program;
    import bethesda.myLoader;
    var ldr:myLoader = new myLoader;
    var data:String = myLoader.getData("someurl");
    My custom class:
    package bethesda {
         public class myLoader {
              function myLoader(url:String):String {
                   var loader:URLLoader = new URLLoader();
                   var request:URLRequest = new URLRequest(url);
                   loader.addEventListener(Event.COMPLETE, completeHandler);
         function completeHandler(event:Event):void {
              var ld:URLLoader = new URLLoader(event.target);
              data = loader.load(); // here's where I don't know what to do to get the data back to my main program

    I think you are on the right track in abstracting loading from other code.
    Your class may be like that:
    package 
         import flash.events.Event;
         import flash.events.EventDispatcher;
         import flash.net.URLLoader;
         import flash.net.URLRequest;
         public class myLoader extends EventDispatcher
              // declare varaibles in the header
              private var loader:URLLoader;
              private var url:String;
              public function myLoader(url:String)
                  this.url = url;
              public function load():void {
                  var loader:URLLoader = new URLLoader();
                  var request:URLRequest = new URLRequest(url);
                  loader.addEventListener(Event.COMPLETE, completeHandler);
                  loader.load(request);
              private function completeHandler(e:Event):void
                  dispatchEvent(new Event(Event.COMPLETE));
              public function get data():*{
                  return loader.data;
    Although, perhaps the best thing to do would be to make this class extend URLLoader. With the example above you can use the class as following:
    import bethesda.myLoader;
    import flash.events.Event;
    var ldr:myLoader = new myLoader("someurl");
    ldr.addEventListener(Event.COMPLETE, onLoadComplete);
    ldr.load();
    function onLoadComplete(e:Event):void {
         var data:String = ldr.data;

  • Custom class loader and local class accessing local variable

    I have written my own class loader to solve a specific problem. It
    seemed to work very well, but then I started noticing strange errors in
    the log output. Here is an example. Some of the names are in Norwegian,
    but they are not important to this discussion. JavaNotis.Oppstart is the
    name of my class loader class.
    java.lang.ClassFormatError: JavaNotis/SendMeldingDialog$1 (Illegal
    variable name " val$indeks")
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:431)
    at JavaNotis.Oppstart.findClass(Oppstart.java:193)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at JavaNotis.SendMeldingDialog.init(SendMeldingDialog.java:78)
    at JavaNotis.SendMeldingDialog.<init>(SendMeldingDialog.java:54)
    at JavaNotis.Notistavle.sendMelding(Notistavle.java:542)
    at JavaNotis.Notistavle.access$900(Notistavle.java:59)
    at JavaNotis.Notistavle$27.actionPerformed(Notistavle.java:427)
    JavaNotis/SendMeldingDialog$1 is a local class in the method
    JavaNotis.SendMeldingDialog.init, and it's accessing a final local
    variable named indeks. The compiler automatically turns this into a
    variable in the inner class called val$indeks. But look at the error
    message, there is an extra space in front of the variable name.
    This error doesn't occur when I don't use my custom class loader and
    instead load the classes through the default class loader in the JVM.
    Here is my class loading code. Is there something wrong with it?
    Again some Norwegian words, but it should still be understandable I hope.
         protected Class findClass(String name) throws ClassNotFoundException
             byte[] b = loadClassData(name);
             return defineClass(name, b, 0, b.length);
         private byte[] loadClassData(String name) throws ClassNotFoundException
             ByteArrayOutputStream ut = null;
             InputStream inn = null;
             try
                 JarEntry klasse = arkiv.getJarEntry(name.replace('.', '/')
    + ".class");
                 if (klasse == null)
                    throw new ClassNotFoundException("Finner ikke klassen "
    + NOTISKLASSE);
                 inn = arkiv.getInputStream(klasse);
                 ut = new ByteArrayOutputStream(inn.available());
                 byte[] kode = new byte[4096];
                 int antall = inn.read(kode);
                 while (antall > 0)
                     ut.write(kode, 0, antall);
                     antall = inn.read(kode);
                 return ut.toByteArray();
             catch (IOException ioe)
                 throw new RuntimeException(ioe.getMessage());
             finally
                 try
                    if (inn != null)
                       inn.close();
                    if (ut != null)
                       ut.close();
                 catch (IOException ioe)
         }I hope somebody can help. :-)
    Regards,
    Knut St�re

    I'm not quite sure how Java handles local classes defined within a method, but from this example it seems as if the local class isn't loaded until it is actually needed, that is when the method is called, which seems like a good thing to me.
    The parent class is already loaded as you can see. It is the loading of the inner class that fails.
    But maybe there is something I've forgotten in my loading code? I know in the "early days" you had to do a lot more to load a class, but I think all that is taken care of by the superclass of my classloader now. All I have to do is provide the raw data of the class. Isn't it so?

  • Detecting when exception was thrown using custom class loader

    Hello all,
    I would like to implement the solution described here - http://stackoverflow.com/questions/75218/how-can-i-detect-when-an-exceptions-been-thrown-globally-in-java - that uses custom class loader in order to detect when an Exeption thrown somewhere in the JVM hosting my app, please note that exceptions might be thrown from 3rd party jars the app is using. So, thanks to help I got from another post, I've managed to code the custom class loader. My question is how can the class loader wrap the original exception, as the methods in ClassLoader deals with classes, not instances. So where should I set the original exception?
    Thanks!
    Edited by: user9355666 on Sep 28, 2010 10:48 PM

    user9355666 wrote:
    I think I'm missing something fundumental, forgive me for being slow...
    This is what I did so far. For the exception wrapper I made a simple class extens Exception that recieve Exception in its ctor and store it. I also subclassed ClassLoader and override its loadClass(). I've registered it as the system classloader. My thinking was to check in that point that if the requested class is instance of Exception and if yes, returning my wrapper class wrapping this exception. But, since loadClass() return class, how can I set in the wrapper the original exception?
    In addition, let's say 2 different places in the code throws NPE, to my understanding the classloader will load NPE only once, so how throwing the NPE in the second time can be detected?you are missing a key point. you should creating a custom implementation of the NPE class which hooks into your detection code in its constructor. from that point forward, anytime any NPE (which is your custom class) is constructed, you can detect it.

  • Webservice invocation - Custom class

    Hi,
    I am new to Jdeveloper and iam trying to invoke a webservice which does insert operation. I am invoking webservice using webservice data control mechanism.
    In my data control pallette i have a method called conInsert(Object,String) where it takes two parameters
    1) first parameter is of type java.lang.Object ( some custom class) - SiebelMessage_ListOfContactInterface_Contact
    2) second parameter is of type java.lang.String - statusObject
    WSDL entry for the conInsert operation:
    <message
    name="ConInsert_Input"
    <partname="SiebelMessage"
    type="xsdLocal0:ListOfContactInterfaceTopElmt"
    </part
    <partname="StatusObject"
    type="xsd:string"
    </part
    </message
    <messagename="ConInsert_Output"
    <partname="SiebelMessage"
    type="xsdLocal0:ListOfContactInterfaceTopElmt"
    >
    Now i need to create a form which accepts above specified fields and submit the form using conInsert (webservice operation). How can i create form accepting first and second parameter ?
    Should i drag conInsert(Object;,String) method from Data control pallette to my jspx page ?
    Can anyone help me with the solution.
    Regards,
    Ahmed.

    Shay,
    I have tried the blog post url by Susan Duncan and i was able to map the fields through backing bean and through creating web service proxy. But while hitting the submit buttion i was encounted with below error.
    JBO-29000: Unexpected exception caught: java.rmi.RemoteException, msg=Error parsing envelope: (1, 1) Start of root element expected.; nested exception is: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.*
    Error parsing envelope: (1, 1) Start of root element expected.; nested exception is: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.*
    I am not sure about why iam getting this error ?
    btw, i have analyzed the sending and receiving packets from http analyzer
    here is the request:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://siebel.com.fmw1" xmlns:ns1="http://www.siebel.com/xml/Contact%20Interface">
    <env:Body>
    <ns0:ConInsert>
    <SiebelMessage>
    <ns1:ListOfContactInterface>
    <ns1:Contact>
    <ns1:Id>332</ns1:Id>
    <ns1:FirstName>asdf</ns1:FirstName>
    <ns1:LastName>asdf</ns1:LastName>
    </ns1:Contact>
    </ns1:ListOfContactInterface>
    </SiebelMessage>
    <StatusObject>asdf</StatusObject>
    </ns0:ConInsert>
    </env:Body>
    </env:Envelope>
    Here is the response:
    HTTP/1.1 200 OK
    Date: Tue, 04 Aug 2009 14:12:04 GMT
    Server: IBM_HTTP_Server
    siebel-error-symbol-1: Unknown Error Symbol
    siebel-error-message-1: Invalid external service source 'WebService'. Check the server configuration or the request.(SBL-UIF-00243)
    Content-Length: 0
    Content-Type: text/xml; charset=UTF-8
    Could you please tell me is anything wrong with my config ? looks like iam not able to reach server???
    Regards,
    Ahmed.

  • Can I dinamicly load a class with custom class loader ?

    Can I dinamicly load a class with custom class loader ?

    Hi,
    I was wondering if you found answer to your question, and also were you using your custom class loader inside a signed applet as I am in a similar situation, and was wondering if you could help me. An example would be great...
    Thanks a lot.
    Regards.

  • Problem loading a custom class in workflow

    Hi.
    my configuration is DB 8.1.7
    workflow 2.6.0
    I want to execute an external java, and to do that i wrote a simple class (based on API specification)
    I receive that error when I run Loadjava on a that very simple class.
    JAVA CLASS OWF_MGR.pippo
    On line: 0
    ORA-29521: referenced name oracle/apps/fnd/wf/WFAttribute could not be found
    here the test class.
    import java.io.*;
    import java.sql.*;
    import java.math.BigDecimal;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.apps.fnd.common.*;
    import oracle.apps.fnd.wf.engine.*;
    import oracle.apps.fnd.wf.*;
    public class pippo extends WFFunctionAPI {
    public boolean execute(WFContext pWCtx){
    ErrorStack es = pWCtx.getWFErrorStack();
    try
    WFAttribute lAAttr = new WFAttribute();
    WFAttribute lIAttr = new WFAttribute();
    loadActivityAttributes(pWCtx, itemType, itemKey, actID);
    loadItemAttributes(pWCtx);
    lAAttr = getActivityAttr("AATTR");
    lIAttr = getItemAttr("IATTR");
    java.lang.Runtime myRun = java.lang.Runtime.getRuntime();
    myRun.exec("dir ");
    lIAttr.value((Object)"NEWVALUE");
    setItemAttrValue(pWCtx, lIAttr);
    catch (Exception e)
    es.addMessage("WF","WF_FN_ERROR");
    es.addToken("MODULE",this.getClass().getName());
    es.addToken("ITEMTYPE",itemType);
    es.addToken("ITEMKEY",itemKey);
    es.addToken("ACTID",actID.toString());
    es.addToken("FUNCMODE",funcMode);
    es.addToken("ERRMESSAGE",e.getMessage());
    return false;
    return true;
    It seems to me that something is not correctly loaded in the DB.
    Thank You.

    Hi Marco,
    I'm not familiar with the "oracle.apps.fnd" package hierarchy, but you can check what java classes are loaded into the database by logging in as the SYS user and issuing the following query:
    select
    DBMS_JAVA.LONGNAME(OBJECT_NAME)
    ,OBJECT_TYPE
    from
    DBA_OBJECTS
    where
    OBJECT_TYPE like 'JAVA%'
    Hope this helps you.
    Good Luck,
    Avi.

  • Sqlite, moving sqlstatements to a custom class

    I'm working on a FB AIR app.
    I have a main.mxml file with a source to a main.as file.
    My main.as file is getting very bloated with sqlstatements. I want to move these to a custom class, but I don't know how to proceed.
    I found an example of a package on this page: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/data/SQLConnectio n.html#begin()
    about a 3rd of the way down.
    The example above is exactly what I want to do, but I don't know how to adapt this for use in my main.as file beyond importing the class and instantiating it. How do I assign my values to the class file? How do I use the class to load up the dataProvider, etc...
    Also, in the example above the class extends Sprite. This sounds like it's meant for a Flash application. Would I still extend Sprite in Flex 4? I have done a couple of simple events, passing data back to the main app with the Flash.Events.Event, so the use of Sprite causes some confusion.
    In a previous post, Amy suggested using Robotlegs. I think I need to get a handle on using Flex before I explore other architectures. I'm just not that sophisticated yet.
    Thanks
    Kristin

    ok, a quick example
    make a new package called utilities and then a new actionscript class called DatabaseManager
    package utilities
         import flash.data.SQLConnection;
         import flash.data.SQLResult;
         import flash.data.SQLStatement;
         import flash.filesystem.File;
         import mx.collections.ArrayCollection;
         public class DatabaseManager
              private var sqlConnection:SQLConnection;
              private var stm:SQLStatement;
              public function DatabaseManager()
                   //connect to database
                   sqlConnection = new SQLConnection();
                   sqlConnection.open(File.applicationStorageDirectory.resolvePath("whatever"));
                   //create tables if not exist
                   stm = new SQLStatement();
                   stm.sqlConnection = sqlConnection;
                   stm.text = "create your table here";
                   stm.execute();
                   //create more tables
              public function getThings():ArrayCollection
                   stm = new SQLStatement();
                   stm.sqlConnection = sqlConnection;
                   stm.text = "your query";
              public function addStuff(stuff:Object):int
    then in your main file you need to import
    import utilities.DatabaseManager;
    instantiate the class, this connects and creates tables
    private var myDB:DatabaseManager = new DatabaseManager();
    then to use it
    var listFromDatabase:ArrayCollection = myDB.getThings();
    insertid = myDB.addStuff(thingToAdd);
    hope that gives you an idea 

  • Pending Class onResult in custom class.

    Ok,
    I have a custom class with private field:
    private var test:Stringint the constructor I load the web
    service:
    pws = new WebService(Constants.getWsURL() + "?WSDL");
    then I call a method on the WS:
    var pcLoadModel = pws.LoadModel();
    pcLoadModel.onResult = pcLoadModel_Succ;
    pcLoadModel.onFault = pcLoadModel_Fail;
    where:
    public function pcLoadModel_Succ(result){
    //some code.
    The problem is that where it says "some code", I cant access
    the members of my class! Why not? in the debugger I clearly see
    that I have left the scope of the instance of the class I was
    working from. I dont understand why this happens.
    Anyone has an answer to this?
    Thanks you :)
    Jp

    i'm not quite following - are you saying you want to access
    panelDiagram in functions other than your addDiagram function? just
    take your variable definition out of your function and make it a
    class variable eg put the following line above your constructor:
    private var panelDiagram:*;
    and in the second line of your addDiagram function use:
    panelDiagram = new diagramClass();
    sorry if this isn't your answer, if it isn't i'm struggling
    to understand the problem.

  • Help understanding custom class to access local sqlite db

    Hi;
    I'm using FB 4.5.
    I'm following a tutorial out of the Adobe Air 1.5 Cookbook. From Chapter 10 in case you're familiar. But I assume there is a common method without having to have the Cookbook in your possession.
    The example employs a custom class, and button presses for all the processes involved in the example. I'm trying to figure out how I can modify this example for my purposes. Loading the dataprovider is the result of a button click.
    I'm new to Flex and OOP is still not a clear picture in my mind, but I can sort of see how this project works, using getter/setter methods.
    Using this custom class, how can I load existing data upon startup?
    Thanks
    Kristin

    I posted this link http://forums.adobe.com/thread/890517?tstart=150
    in this thread http://forums.adobe.com/thread/893508?tstart=30
    which was then continued here http://forums.adobe.com/thread/894123?tstart=0

  • Add button to a datagrid with custom class

    Hi.
    I have a custom class that i put in the dataprovider to a datagrid. And when i column with buttons i get the following error.
    ReferenceError: Error #1069: Property null not found on COMPONENTS.Output.OutputFile and there is no default value.
    at mx.controls::Button/set data()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\Button.as:873]
    at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\3.0.x\framework s\projects\framework\src\mx\controls\DataGrid.as:1646]
    at mx.controls::DataGrid/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\m x\controls\DataGrid.as:1606]
    at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\ mx\core\UIComponent.as:5670]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:519]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:669]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\core\UIComponent.as:8460]
    at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src \mx\core\UIComponent.as:8403]
    What shuld i do?
    Thanks for help.

    If you are talking SE54 and Maintenance Views, when I do an SM30 on the Maintenance View and do SYSTEM->STATUS, I see GUI STATUS ZULG on program SAPLSVIM.  If you look at that status, I see two buttons with dynamic text.  The first one is call GPRF and has dynamic text VIM_PR_STAT_TXT_CH.  You can find a suitable PBO event to set the text of that function code and if that works, find a suitable PAI event to respond to that function.
    I recall finding some documentation on customizing the GUI STATUS but no luck today trying to find it.
    Let us know how it goes.

  • SetMask in a custom class

    Gosh I am having a nightmare I am trying to set a mask on an
    img I have loaded into a movieclip in a custom class. But no matter
    what it ain't working, any ideas. Here is essentially what I am
    trying to do:

    I second that notition. Use the MovieClipLoader class and use
    the onLoadInit handler to apply the mask once the image is
    loaded.

  • Making a call over HTTPS with LoadVars, XML.load(), and WebService - Yes or No?

    Hello, do LoadVars, XML.load(), or WebService support HTTPS-based endpoints, Yes or No?
    BACKGROUND
    ============
    I've been trying to get a LoadVars to actually make a call to an HTTPS endpoint. There is nothing in the documentation that says it can't. I know that there's also XML.load() and WebService class, but from the looks of it they don't do HTTPS.
    During my tests I have absolutely no issues with making calls to the same service over HTTP. When I change it to HTTPS I don't see HTTPStatus or even failures. Also, netstat on my server will show a connection being established with the endpoint when using HTTP but not when using HTTPS. I've also tried setting SSLVerifyCertificate to "false" in my Server.xml and after a restart of AMS it doesn't help, same symptom.
    I've also googled and looked through all Adobe forum posts that I can find:
    https://forums.adobe.com/message/4938426#4938426
    https://forums.adobe.com/thread/1661461
    https://forums.adobe.com/thread/782037
    https://forums.adobe.com/message/74981
    https://forums.adobe.com/message/5107735#5107735
    https://forums.adobe.com/message/7815#7815
    https://forums.adobe.com/message/53870#53870
    https://forums.adobe.com/message/87797#87797
    WebService Class - http://stackoverflow.com/questions/5619776/webservice-and-fms
    The best I found from the posts above is a non-commital answer from adobe staff at https://forums.adobe.com/message/4938426#4938426 and a 3rd party person saying that Webservice doesn't work at http://stackoverflow.com/questions/5619776/webservice-and-fms.
    All I need is an official supported/not-supported from the Adobe staff. Shouldn't be to hard after 5 years or so of ignoring the questions in the forum right?

    Adobe, please provide some details to your current and possibly potential customers, in at least one of the many unanswered posts about making HTTPS requests from AMS.
    P.S.
    realeyes_jun,
    RealEyes Media has been an inspiration to me for many years, and I would like to thank them for their efforts to better the media streaming community.
    Also, would it be possible to please release the source to REDbug?

  • Creating custom classes from a more complex DTD

    Are there any examples of creating more complex custom document types? The sample in the dev. guide and the xml syntax are a good start but not enough.
    If anyone has an example from their own work, I'd appreciate it. You can send them to [email protected]
    Thanks!

    I'm having trouble gaining access to the content of those objects within a multilevel tree structure once the XML file has been loaded into the database. Those attributes off root via an editing tool or jsp/bean are rendered; however, the branched object structures are not. Instead the following is in its place: <MYClASSOBJECT2 RefType="ID">7265<!--ClassObject: MYClASSOBJECT2--><!--Name:Null--></MYClASSOBJECT2>
    Here is some background. All custom classes have been successfully loaded into iFS, including the branching objects, which have been entered as extensions of Document as well as the associated ClassDomain entries. I've read Mark's PencilObject entry of June 23, but I continue to get undesired results. Currently, I am using SimpleXMLRender and am inclined to believe that I will need to customize the renderer for it to recognize the deep structures within my XML. Can you shed any light on my situation? In a nutshell, how do I gain access to the content within my multilevel XML?

  • Creating thread (service)? in storage nodes using my custom classes?

    Is it possible to create one's own thread in a storage node - say, by defining a service with a custom class?
    The service configuration element states
    +"<service-component>      Required      Specifies either the fully qualified class name of the service or the relocatable component name relative to the base Service component. "+
    I have tried specifying my own class (fully qualified class name) here, which is in the classpath and implements com.tangosol.net.InvocationService but it is never loaded, and throws the following exception into my app when it calls CacheFactory.getService(name):
    Exception in thread "main" java.lang.IllegalArgumentException: Unknown service type: Invocation
    at com.tangosol.coherence.component.net.Cluster.ensureService(Cluster.CDB:65)
    at com.tangosol.coherence.component.util.SafeCluster.ensureSafeService(SafeCluster.CDB:14)
    at com.tangosol.coherence.component.util.SafeCluster.ensureService(SafeCluster.CDB:11)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:808)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:294)
    at com.tangosol.net.CacheFactory.getService(CacheFactory.java:644)
    Is this the wrong way to do it? Is there another way (other than something ugly like creating a thread in an invocable)?
    Thanks

    Hi
    Can you explain what you are trying to accomplish in more detail? Are you trying to run a background thread on the member that owns the data?
    In any case your really shouldn't be adding new service types or service components in the cluster configuration file. See this thread Re: <service-name> tag in config XML file
    thanks
    Paul

Maybe you are looking for

  • Firefox 3.6.9 on mac running 10.4.11 does not have option for custom headers when printing.

    I am trying to print web content for a college project, it requires custom headers and footers. Firefox 3.6.9 does not have a custom option in the header/footer lists. In the help pages for Firefox is shows this option. Is this missing only on the Ma

  • Diff in locks DB&APPS

    Hi, What is difference between locks in normal DB and APPS DB?In normal DB we get the user name who has placed a lock and who is trying to get a lock from v$lock ?Why can t we get that same in APPS DB?I mean in apps DB there so many steps to perform

  • ITunes and Aperture import issue - unsolved???

    Trying to import photos from Aperture into iTunes, but iTunes shows incomplete album sizes (should be 50 photos, but instead only shows a count of 23..) and as such does not bring in the whole album on import. I've seen this posted twice here, but bo

  • New to downloading adobe products

    i attempted to download adobe flash player my error message stated there was no actionlist what does this mean and how do i install now?

  • Strange command in terminal

    Hi guys, I've only recently got a macbook pro and I don't know much about it so apologies if this is a stupid question! I looked at terminal today and the information on it has completely changed. Upon startup it says this: caitlins-phone:~ rachel***