EventHandler Interface - Properties

Hi-
I'm evaluating ContentDB and like the aspect of having access to the EventHandler interface. In review of the sample code in the devkit for the DocumentOutbox example, where is the property SENT_ITEMS_FOLDER_NAME actually defined? I guess the more general question is where do you define a custom EventHandler's properties? In the audit config tool script, there is no corresponding entry. I'm assuming that it should be somewhere configurable once the custom event handler has been deployed but the doc or sample doesn't address it or I have overlooked it.
Any help is appreciated.
Thank you,
John

In the DocumentOutbox example, this folder name is hard coded into the class(snippet included below), but in theory you should be able to develop something that uses a properties file to set the parameters at load time instead of embedding them into the code.
/// private members
* The "sent-items" folder name. Default is "sent-items".
private String m_SentItemsFolderName = "sent-items";
* The maximum number of items in "sent-items" folders. Default is 50.
private int m_MaxSentItems = 50;

Similar Messages

  • EventHandler interface in version 10.1.2.3

    Hi every body,
    I would like to invoke a BPEL process for specific events occurring in OCS. Especially events that cannot be cached with the standard workflow initiation like document upload or document check in...
    For this I would like to user the EventHandler interface. I would like to create an implementation of this interface that launches my BPEL process.
    Unfortunately I have not found any example of how to deploy EventHandler classes, where do I to deploy it ?
    Does any body have any pointer to some documentation on how to create and deploy an EventHandler classes.
    On the other hand I have think to regularly launch a BPEL process that read a report created with the AuditManager classes. But I am not comfortable with that solution that is not event driven.
    Any help would be appreciated
    Emmanuel

    Hi Emmanuel,
    There is an example of a custom event handler provided with the Content DB development kit and api samples package. Content DB was released-to-manufacturing today - so the example should be available for download in a day or so.
    In terms of invoking a bpel process from Java - checkout the following link:
    http://azur.typepad.com/bpel/2005/12/questioni_am_bu.html
    cheers
    Matt.

  • Setting interface properties in zone definition?

    Hello,
    is there any way to set interface properties in a zone definition?
    In my case I want to set the zone's interface in the deprecated state.
    While I can do this from the global zone (ifconfig ce0:3 deprecated) without problems, I would like to ensure that the interface is in that state if the zone boots up.
    Googling around didn't show any usable results.
    Thanks,
    Joern

    I opened a case with sun and got the following workaround:
    It is not possible to set interface properties within the zone and it isn't possible to set any properties in the zonedefinition.
    It is possible however to make a smf service that has dependencies to the zone service.
    In the method script you could manually set the desired interface in the deprecated state.
    Regards,
    Joern

  • Lookup Local Interface from client app

    I have had an entity bean running using the remote interface.
    When I convert over to using a local interface I have problems
    with the jndi lookup. My environment is JDK 1.4, J2EE 1.3.1, Win 2k.
    The deployment using the J2EE RI works fine.
    I need to know what changes to the client code I need to make
    to locate the bean using lookup().
    I have tried two versions of the lookup:
    // same as the version which workds for the remote interface
    Properties p = new java.util.Properties();
    Context ctx = null;
    p.put (javax.naming.Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.cosnaming.CNCtxFactory");
    p.put(javax.naming.Context.PROVIDER_URL,
    "iiop://localhost:1050");
    ctx = new InitialContext(p);
    Object objref = ctx.lookup("LocalSPIConnector");
    cat.debug ("GOT THE OBJ REF");
    spiHome = (ServiceProviderBeanLocalHome)
    javax.rmi.PortableRemoteObject.narrow (objref,
    ServiceProviderBeanLocalHome.class);
    cat.debug ("AFTER NARROW");
    I get the following exception;
    javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosN
    aming/NamingContext/NotFound:1.0
    In the J2EE RI I can see that this JNDI is associated with the bean.
    Is there a different context factory to be used?
    I have tried to use the initialContext and then lookup
    various forms of the JNDi name:
    a. LocalSPIConnector
    b. java:comp/env/ejb/LocalSPIConnector
    c. java:comp/env/LocalSPIConnector
    d. the classpath to the home interface
    All these fail as the name has not been bound

    Thanks for the reply.
    I have simpliefied the lookup to the following:
    Context ctx = new InitialContext();
    spiHome = (ServiceProviderBeanLocalHome) ctx.lookup ("ServiceProviderBeanEJB");
    I still get the following exception:
    javax.naming.NameNotFoundException: ServiceProviderBeanEJB not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:174)
    I looked up the deployment descriptor from J2EE RI and took the name
    to lookup from the ejb-name:
    <ejb-jar>
    <display-name>localSPIJAR</display-name>
    <enterprise-beans>
         <entity>
              <display-name>ServiceProviderBeanEJB</display-name>
              <ejb-name>ServiceProviderBeanEJB</ejb-name>
    I presume that this is the correct name to use.

  • How to use local interface in my easy code ?

    hi everybody
    I work on an ejb project. My code is like that to test remote interface (and it works) :
    public class TestStudent {
       Properties properties;
       public TestStudent() {
          properties = new Properties();
          properties.put("java.naming.factory.initial",
          "org.jnp.interfaces.NamingContextFactory");
          properties.put("java.naming.factory.url.pkgs",
          "org.jboss.naming:org.jnp.interfaces");
          properties.put("java.naming.provider.url", "jnp://localhost:1099");
          properties.put("jnp.disableDiscovery", "true");
       public static void main(String[] args) {
          TestStudent beanStudent = new TestStudent();
          beanStudent.createBean();
       public void createBean() throws EJBException {
          try {
             InitialContext context = new InitialContext(properties);
             Object object = context.lookup(StudentHome.JNDI_NAME);
             StudentHome studentHome = (StudentHome) PortableRemoteObject.narrow(object,StudentHome.class);
             Student student = studentHome.create();
             student.setName("pirlouit");
             System.out.println(student.getId());
             System.out.println(student.getName());
          } catch (NamingException e) {
             throw new EJBException(e);
          } catch (RemoteException e) {
             throw new EJBException(e);
          } catch (CreateException e) {
             throw new EJBException(e);
    }Then I do quite the same thing to test local interface like in the following code but it doen't work :
    public class TestStudent {
       Properties properties;
       public TestStudent() {
          properties = new Properties();
          properties.put("java.naming.factory.initial",
          "org.jnp.interfaces.NamingContextFactory");
          properties.put("java.naming.factory.url.pkgs",
          "org.jboss.naming:org.jnp.interfaces");
          properties.put("java.naming.provider.url", "jnp://localhost:1099");
          properties.put("jnp.disableDiscovery", "true");
       public static void main(String[] args) {
          TestStudent beanStudent = new TestStudent();
          beanStudent.createBean();
       public void createBean() throws EJBException {
          try {
             InitialContext context = new InitialContext(properties);
             Object object = context.lookup(StudentLocalHome.JNDI_NAME);
             StudentLocalHome studentLocalHome = (StudentLocalHome)object;
             System.out.println("studentLocalHome is null ? "+studentHome.equals(null));
             StudentLocal student = studentLocalHome.create();
             student.setName("pirlouit");
             System.out.println(student.getId());
             System.out.println(student.getName());
          } catch (NamingException e) {
             throw new EJBException(e);
          } /*catch (RemoteException e) {
             throw new EJBException(e);
          }*/ catch (CreateException e) {
             throw new EJBException(e);
    }The print of "student local home is null ?" give me 'true' which is not the answer I want ... so here is the problem. How can I get my entity bean using local interface ?
    For the moment 've got the exception (which appears on instruction "StudentLocal student = studentLocalHome.create();") :
    Exception in thread "main" java.lang.NullPointerException
         at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
         at $Proxy0.create(Unknown Source)Please help !! Thank you very much !

    Write a JSP to test Local Interface. You cannot call Local Interface from a remote JVM.
    Jay
    http://www.javarss.com - Java News from around the world.
    Visit JavaRSS.com and add above signature to your messages. Thanks!

  • PowerShell: How do I reliably set the IP address on an interface when the interface is not connected ?

    Hello all,
    I am in a bit of a bind - no pun intended.  I would like to know how to reliable set the persistent IP address of an interface that may be disconnected when the address is set.  I can set an address and it will be stored in the ActiveStore but
    that does not really help if I need it next time I reboot.  I have tried using netsh and WMI but they don't seem to create a persistent address on the disconnected interface.  Now if I us ncpa.cpl I can do it all day long so it must be possible.
     In fact if I do it that way the registry settings change. So, I figured I would go that route (modifying the registry) but, alas, that does not work either - upon reboot the address shown in the interface properties show a blank IP address, gateway,
    and netmask.  It is interesting that it is using a static address though. 
    Thanks for your help
    Robert
    Robert Thompson

    Look in the Gallery for numerous examples of setting a static address on an interface.
    http://gallery.technet.microsoft.com/site/search?query=static&f%5B2%5D.Value=static&f%5B2%5D.Type=SearchText&f%5B0%5D.Value=networking&f%5B0%5D.Type=RootCategory&f%5B0%5D.Text=Networking&f%5B1%5D.Value=clientside&f%5B1%5D.Type=SubCategory&f%5B1%5D.Text=Client-Side%20Management&ac=2
    ¯\_(ツ)_/¯

  • Where to package my interfaces

    It seems that the general rule to making a GUI application is to seperate the "Business Logic" from the "Presentation Logic". From this, I'm guessing I'll need to package all my GUI stuff together, and all the business logic layer stuff together.
    The GUI will then talk to the Biz lay through an interface right?
    This is not a single file right? Would this would be a set of interfaces all packaged together? If so, where is the most common place to package it?
    Or perhaps I'm completely wrong... any suggestions appreciated, thanks!!!

    It seems that the general rule to making a GUI
    application is to seperate the "Business Logic" from
    the "Presentation Logic". This is absolutely true.
    From this, I'm guessing I'll
    need to package all my GUI stuff together, and all the
    business logic layer stuff together.If you mean the package names and structure then I would had adapted this structure:
    1. I will have a package under which I will put the application common classes and interfaces.
    com.myapp.common.eventhandler.EventHandler (interface)
    com.myapp.common.eventhandler.AbstractEventHandler (default implementation)
    com.myapp.common.form.Form (interface)
    com.myapp.common.form.AbstractForm (default implementation)2. Create for each subject area its own package:
    com.myapp.product.AddNewProductForm
    com.myapp.product.AddNewProdcutEventHandler
    com.myapp.sales.PriceListEeventHandler
    com.myapp.sales.PriceListEeventHandler
    The GUI will then talk to the Biz lay through an
    interface right?As I illustrated through my previous example, you should have common interfaces and you might need to create Abstract classes that encapsulates the common implementation for these interfaces, then for each GUI Form or Web Page you will create its specific implementation class which inherits from the abstract class.
    Finally if you were asking about the deployment packaging:
    1. Create for each EJB its own jar file then bundle these Jar files under one module jar file, which represents the EJB module.
    2.Package the web application (JSP, Servlets, HTML, Images, CSS, and Java script) in one Web module WAR file.
    3. Package your client application module in its own jar file.
    4. Assemble the EJB module Jar, Web module War, and Client module Jar in one J2EE package which will be an EAR file so that your whole package will be assembled in one EAR file at the end.
    Try the "Application Assembly Tool" which comes with WebSphere. It will organize your application and facilitate this kind of integration.
    - Sherif.

  • Ghost network interfaces installed

    Some failed installation process have managed to setup > 1000 "Local Area Connections" on  my Windows 7 64-bit installation.
    These do not show using device manager, devcon or other Windows tools. Even if I display hidden ones.
    The only way I can list them is to use the GetIFTable function from the Windows iphlpapi library. When I list the devides, the output is typical like this for one of the > 1000 interfaces:
    Index[484]:      499
    InterfaceName[484]: \DEVICE\TCPIP_{D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}
    Description[484]:
    Type[484]:       Other
    Mtu[484]:                0
    Speed[484]:      0
    Physical Addr:
    Admin Status[484]:       2
    Oper Status[484]:        Non Operational
    I have tried to remove these by searching for the ID in the name (D8911FFA-82B2-4A3D-83B2-D97EC9740F9E) in registry.
    I find typically this entry matching the above ID:
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}]
    [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\{D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}\Connection]
    "DefaultNameResourceId"=dword:00000709
    "DefaultNameIndex"=dword:000001f4
    "Name"="Local Area Connection* 500"
    I delete all the registry value/keys matching D8911FFA-82B2-4A3D-83B2-D97EC9740F9E in registry. After I have deleted all, I do a search and find no entries matching this.
    My thought is that this interface should now be gone. I do another registry search to ensure that there are nothing matching D8911FFA-82B2-4A3D-83B2-D97EC9740F9E in registry.
    BUT the problem is that the interface is still there when I run GetIFTable - with the same ID. Even if I reboot the computer it is there.
    Where is this interface defined? If it is not in registry - where can I find it to delete it? I've done a search for file name and file content with the ID but can not find any match - except in some old log file (setupapi.app), where the device was first
    installed:
    >>>  [DIF_INSTALLDEVICE - ROOT\DNI_DNEMP\0000]
    >>>  Section start 2012/11/14 08:08:30.360
          cmd: C:\Windows\system32\svchost.exe -k netsvcs
         cci: NdisCoinst: Guid of the adapter is {D8911FFA-82B2-4A3D-83B2-D97EC9740F9E}
         cci: NdisCoinst: IfType 1, Characteristics 0x29, IsIrdaDevice 0, PhysicalMediaType -1, MediaType -1, IsBridge 0, FoundGuidInDownlevel 0, EnableDhcp 2
         cci: NdisCoinst: Connection name is Local Area Connection* 500
         cci: NdisCoinst: Allocated NetLuidIndex is 1
         dvi: {Writing Device Properties}
    !!!  dvi: Add Service: Binary 'C:\Windows\system32\DRIVERS\dne64x.sys' for service 'DNE' is not present.
    !!!  inf: {Install Inf Section [DneMP.ndi.NTamd64.Services] exit(0xe0000217)}
    !!!  inf: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  dvi: Error while installing services.
    !!!  dvi: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  dvi: Cleaning up failed installation
    !!!  dvi: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  dvi: Cleaning up failed installation (e0000217)
    !!!  dvi: Class installer: failed(0xe0000217)!
    !!!  dvi: Error 0xe0000217: A service installation section in this INF is invalid.
    !!!  cci: NdisCoinst: NcipOpenDriverRegistryKey failed with error code 0xe0000204
    !!!  cci: NdisCoinst: NcipOpenDriverRegistryKey failed with error code 0xe0000204
    !!!  cci: NdisCoinst: DIF_INSTALLDEVICE Post-processing called with InstallResult 0xe0000217
    <<<  Section end 2012/11/14 08:08:30.421
    <<<  [Exit status: FAILURE(0xe0000217)]
    Any ideas? I would like to delete these non-working interfaces. They slow down the computer on certain software using GetIFTable function.

    Good news : the problem seems to be solved. Less good news (for those who encounter the same problem)...I am not sure how I did it :S
    I don't remember doing anything special between when I wrote the previous post and now, except that at some point, I went into Control Panel -> Network and Sharing Center -> Change Adapter Settings. Then I right-clicked the adapter "Microsoft Virtual
    WiFi Miniport Adapter" and selected "Disable".
    I did this because I saw in another forum, that this would prevent it from creating more 6to4 Adapters. However, right after doing it, I checked and the ISATAP Adapters were still here. It was only some moments later, I was checking the network interface
    properties again with a test program using GetIfTable2, when I noticed the ISATAP adapters had disappeared. And even after a reboot, they haven't come back, and my programs now start in a reasonable time. So, the problem seems to be solved for me.
    So, to anyone encountering this problem, maybe you could try disabling the Virtual WiFi Miniport, and then reboot or wait like 1 hour. If that doesn't work...then I don't know :S

  • DERS Interface

    Hey There,
    I have wrote some java code below (using NetBeans IDE 6.0.1) for a graphical user interface. When I open the JavaApplication7 Executable Jar File from the JavaApplication7 Project Folder I created (C:\JavaApplication7\dist\JavaApplication7.jar) to run the interface.
    I notice that the text fields and the text area seem to jump downwards a little, does anyone know what might be the cause of this?
    This is the code:
    package newpackage7;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    //import javax.swing.JOptionPane;
    public class NewClass7 extends javax.swing.JFrame{
        public NewClass7() {
            //prolog.loadProlog("",0,1);
            initiateComponents();       
        }//end constructuor NewClass7()
        //declare interface properties
        //public final LpaIS prolog=new LpaIS();
        /*public String GlobalCheckSyntaxFile="";
         * public String GlobalEditFile="";
         * public String GlobalLoadFile="";
         * public final LpaIS CheckSynatxProlog=new LpaIS(); */
        private javax.swing.JPanel innerPanel;
        private javax.swing.JMenuBar MainMenuBar;
        private javax.swing.JMenu FileMenu;
        private javax.swing.JMenuItem NewScenarioMenuItem;
        private javax.swing.JMenuItem OpenScenarioMenuItem;
        private javax.swing.JMenuItem SaveScenarioMenuItem;
        private javax.swing.JMenuItem ClearOutputWindowMenuItem;
        private javax.swing.JMenuItem ExitMenuItem;
        private javax.swing.JMenu ScenarioMenu;
        private javax.swing.JMenuItem EditScenarioMenuItem;
        private javax.swing.JMenuItem CheckSyntaxScenarioMenuItem;
        private javax.swing.JMenuItem OpenScenarioGeneratorMenuItem;
        private javax.swing.JMenu RunMenu;
        private javax.swing.JMenuItem RunSimulationMenuItem;
        private javax.swing.JMenuItem MakeQueryMenuItem;
        private javax.swing.JMenu HelpMenu;
        private javax.swing.JMenuItem ReadMeMenuItem;
        private javax.swing.JMenuItem AboutMenuItem;
        private javax.swing.JLabel TitleLabel;
        private javax.swing.JLabel AlgorithmLabel;
        private javax.swing.JLabel ScenarioLabel;
        private javax.swing.JLabel GoalLabel;
        private javax.swing.JLabel TimeLabel;
        private javax.swing.JLabel PredicateLabel;
        private java.awt.TextField AlgorithmTextField;
        private java.awt.TextField ScenarioTextField;
        private java.awt.TextField GoalTextField;
        private java.awt.TextField TimeTextField;
        private java.awt.TextField PredicateTextField;
        private javax.swing.JButton SearchButton;
        private javax.swing.JButton HoldsButton;
        private java.awt.TextArea OutputWindow;
        private void initiateComponents() {
            getContentPane().setLayout(null);
            setTitle("Dynamic Environment Reasoning System");
            setSize(new Dimension(1025, 703));
            setResizable(false);
            setDefaultCloseOperation(NewClass7.EXIT_ON_CLOSE);
            //getContentPane().setBackground(new java.awt.Color(150,207,141));
            getContentPane().setBackground(new java.awt.Color(170,255,140));
            //setVisible(true);          
            //setUndecorated(true);
            innerPanel = new javax.swing.JPanel();
            innerPanel.setLayout(null);
            innerPanel.setBackground(new java.awt.Color(160,255,140));
            //innerPanel.setBackground(new java.awt.Color(0,0,0));
            //innerPanel.setBorder(new javax.swing.border.CompoundBorder());
            innerPanel.setBorder(new javax.swing.border.TitledBorder(new javax.swing.border.TitledBorder(null, "", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 12))));
            getContentPane().add(innerPanel);
            innerPanel.setBounds(20,70,975,580);
            MainMenuBar = new javax.swing.JMenuBar();
            setJMenuBar(MainMenuBar);
            FileMenu = new javax.swing.JMenu();
            FileMenu.setBorder(new javax.swing.border.EtchedBorder());
            FileMenu.setText(" File");
            FileMenu.setFont(new java.awt.Font("Bookman Old Style",1,14));
            FileMenu.setPreferredSize(new java.awt.Dimension(49,20));
            MainMenuBar.add(FileMenu);
            NewScenarioMenuItem = new javax.swing.JMenuItem();
            NewScenarioMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            NewScenarioMenuItem.setText("New Scenario");
            NewScenarioMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            NewScenarioMenuItem.setPreferredSize(new java.awt.Dimension(120,20));
            FileMenu.add(NewScenarioMenuItem);
            OpenScenarioMenuItem = new javax.swing.JMenuItem();
            OpenScenarioMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            OpenScenarioMenuItem.setText("Open Scenario");
            OpenScenarioMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            OpenScenarioMenuItem.setPreferredSize(new java.awt.Dimension(120,20));
            FileMenu.add(OpenScenarioMenuItem);
            SaveScenarioMenuItem = new javax.swing.JMenuItem();
            SaveScenarioMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            SaveScenarioMenuItem.setText("Save Scenario");
            SaveScenarioMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            SaveScenarioMenuItem.setPreferredSize(new java.awt.Dimension(120,20));
            FileMenu.add(SaveScenarioMenuItem);
            ClearOutputWindowMenuItem = new javax.swing.JMenuItem();
            ClearOutputWindowMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            ClearOutputWindowMenuItem.setText("Clear Output Window");
            ClearOutputWindowMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            ClearOutputWindowMenuItem.setPreferredSize(new java.awt.Dimension(170,20));
            FileMenu.add(ClearOutputWindowMenuItem);
            ExitMenuItem = new javax.swing.JMenuItem();
            ExitMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            ExitMenuItem.setText("Exit");
            ExitMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            ExitMenuItem.setPreferredSize(new java.awt.Dimension(120,20));
            FileMenu.add(ExitMenuItem);
            ScenarioMenu = new javax.swing.JMenu();
            ScenarioMenu.setBorder(new javax.swing.border.EtchedBorder());
            ScenarioMenu.setText("Scenario");
            ScenarioMenu.setFont(new java.awt.Font("Bookman Old Style",1,14));
            ScenarioMenu.setPreferredSize(new java.awt.Dimension(73,20));
            MainMenuBar.add(ScenarioMenu);
            EditScenarioMenuItem = new javax.swing.JMenuItem();
            EditScenarioMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            EditScenarioMenuItem.setText("Edit Scenario");
            EditScenarioMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            EditScenarioMenuItem.setPreferredSize(new java.awt.Dimension(110,20));
            ScenarioMenu.add(EditScenarioMenuItem);
            CheckSyntaxScenarioMenuItem = new javax.swing.JMenuItem();
            CheckSyntaxScenarioMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            CheckSyntaxScenarioMenuItem.setText("Check Scenario Syntax");
            CheckSyntaxScenarioMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            CheckSyntaxScenarioMenuItem.setPreferredSize(new java.awt.Dimension(180,20));
            ScenarioMenu.add(CheckSyntaxScenarioMenuItem);
            OpenScenarioGeneratorMenuItem = new javax.swing.JMenuItem();
            OpenScenarioGeneratorMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            OpenScenarioGeneratorMenuItem.setText("Open Scenario Generator");
            OpenScenarioGeneratorMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            OpenScenarioGeneratorMenuItem.setPreferredSize(new java.awt.Dimension(200,20));
            ScenarioMenu.add(OpenScenarioGeneratorMenuItem);
            RunMenu = new javax.swing.JMenu();
            RunMenu.setBorder(new javax.swing.border.EtchedBorder());
            RunMenu.setText("  Run");
            RunMenu.setFont(new java.awt.Font("Bookman Old Style",1,14));
            RunMenu.setPreferredSize(new java.awt.Dimension(74,20));
            MainMenuBar.add(RunMenu);
            RunSimulationMenuItem = new javax.swing.JMenuItem();
            RunSimulationMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            RunSimulationMenuItem.setText("Run Simulation");
            RunSimulationMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            RunSimulationMenuItem.setPreferredSize(new java.awt.Dimension(130,20));
            RunMenu.add(RunSimulationMenuItem);
            MakeQueryMenuItem = new javax.swing.JMenuItem();
            MakeQueryMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            MakeQueryMenuItem.setText("Make Query");
            MakeQueryMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            MakeQueryMenuItem.setPreferredSize(new java.awt.Dimension(110,20));
            RunMenu.add(MakeQueryMenuItem);
            HelpMenu = new javax.swing.JMenu();
            HelpMenu.setBorder(new javax.swing.border.EtchedBorder());
            HelpMenu.setText("  Help");
            HelpMenu.setFont(new java.awt.Font("Bookman Old Style",1,14));
            HelpMenu.setPreferredSize(new java.awt.Dimension(77,20));
            MainMenuBar.add(HelpMenu);
            ReadMeMenuItem = new javax.swing.JMenuItem();
            ReadMeMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            ReadMeMenuItem.setText("Read Me");
            ReadMeMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            ReadMeMenuItem.setPreferredSize(new java.awt.Dimension(77,20));
            HelpMenu.add(ReadMeMenuItem);
            AboutMenuItem = new javax.swing.JMenuItem();
            AboutMenuItem.setBorder(new javax.swing.border.EtchedBorder());
            AboutMenuItem.setText("About");
            AboutMenuItem.setFont(new java.awt.Font("Bookman Old Style",0,14));
            AboutMenuItem.setPreferredSize(new java.awt.Dimension(77,20));
            HelpMenu.add(AboutMenuItem);
            TitleLabel = new javax.swing.JLabel();
            TitleLabel.setFont(new java.awt.Font("Arial",1,16));
            TitleLabel.setText("  Dynamic Environment Reasoning System");
            //TitleLabel.setHorizontalTextPosition(SwingConstants.CENTER);
            TitleLabel.setBackground(new java.awt.Color(200,255,100));
            TitleLabel.setBorder(new javax.swing.border.EtchedBorder());
            getContentPane().add(TitleLabel);
            TitleLabel.setBounds(600,20,340,30);
            AlgorithmLabel = new javax.swing.JLabel();
            AlgorithmLabel.setFont(new java.awt.Font("Bookman Old Style",0,13));
            AlgorithmLabel.setText("Selected Inference Algorithm:");
            innerPanel.add(AlgorithmLabel);
            AlgorithmLabel.setBounds(20,10,210,30);
            ScenarioLabel = new javax.swing.JLabel();
            ScenarioLabel.setFont(new java.awt.Font("Bookman Old Style",0,13));
            ScenarioLabel.setText("Selected Scenario:");
            innerPanel.add(ScenarioLabel);
            ScenarioLabel.setBounds(260,10,170,30);
            GoalLabel = new javax.swing.JLabel();
            GoalLabel.setFont(new java.awt.Font("Bookman Old Style",0,13));
            GoalLabel.setText("Selected Goal:");
            innerPanel.add(GoalLabel);
            GoalLabel.setBounds(460,10,170,30);
            TimeLabel = new javax.swing.JLabel();
            TimeLabel.setFont(new java.awt.Font("Bookman Old Style",0,13));
            TimeLabel.setText("Selected Time:");
            innerPanel.add(TimeLabel);
            TimeLabel.setBounds(630,10,170,30);
            PredicateLabel = new javax.swing.JLabel();
            PredicateLabel.setFont(new java.awt.Font("Bookman Old Style",0,13));
            PredicateLabel.setText("Predicate:");
            innerPanel.add(PredicateLabel);
            PredicateLabel.setBounds(810,10,170,30);
            AlgorithmTextField = new java.awt.TextField();
            innerPanel.add(AlgorithmTextField);
            AlgorithmTextField.setBounds(40,60,100,20);
            //AlgorithmTextField.setVisible(true);
            ScenarioTextField = new java.awt.TextField();
            innerPanel.add(ScenarioTextField);
            ScenarioTextField.setBounds(270,60,100,20);
            GoalTextField = new java.awt.TextField();
            innerPanel.add(GoalTextField);
            GoalTextField.setBounds(470,60,100,20);
            TimeTextField = new java.awt.TextField();
            innerPanel.add(TimeTextField);
            TimeTextField.setBounds(640,60,100,20);
            PredicateTextField = new java.awt.TextField();
            innerPanel.add(PredicateTextField);
            PredicateTextField.setBounds(820,60,100,20);
            SearchButton = new javax.swing.JButton();
            SearchButton.setFont(new java.awt.Font("Bookman Old Style",1,13));
            SearchButton.setText("Search");
            innerPanel.add(SearchButton);
            SearchButton.setBounds(280,100,90,20);
            HoldsButton = new javax.swing.JButton();
            HoldsButton.setFont(new java.awt.Font("Bookman Old Style",1,13));
            HoldsButton.setText("Holds");
            innerPanel.add(HoldsButton);
            HoldsButton.setBounds(830,100,80,20);
            OutputWindow = new java.awt.TextArea();
            Font equalSpacedFont = new Font("Monospaced",Font.PLAIN,14);
            OutputWindow.setFont(equalSpacedFont);
            OutputWindow.setEditable(false);
            innerPanel.add(OutputWindow);
            OutputWindow.setBounds(40,160,900,400);
        }//end initiateComponents()
        public static void main(String args[]) {
            //displays interface
           //new NewClass7().show();
           NewClass7.setDefaultLookAndFeelDecorated(true);
              SwingUtilities.invokeLater(new Runnable() {
                   @Override
                   public void run() {
                        NewClass7 nc7 = new NewClass7();
                        nc7.setVisible(true);
        }//end main()
    }//end NewClass7Thank You,
    ~ Floetic ~

    for those reading this thread, it's cross-posted all over the internet.
    "I want an answer, and I want it now!!!"

  • Rs480 windows-sata installation problem

    Hi all,
                Whenever I try to install windows in my system I press the F6 button and loads the sil3112 sata driver. The first time I tried this worked(win xp with no sps) and I got to install windows. But after sometime I decided reinstall windows. This time when I tried to install windows(win xp with sp1) with the usual procedure like loading the sata driver through F6 method it didnt work. When I reach the partitioning blue screen and when I give prompt to format the drive or partition it windows say that “however the disk does not contain a windows compatible partition” and thus have to exit.
                The same thing happened when I tried to install xp 64bit with sil drivers given in msi site.
    Please do help me with this problem.
    My mobo specs are given below.
    <<< System Summary >>>
      < Processor >
        Model:                         AMD Athlon(tm) 64 Processor 3000+
        Speed:                         1.79GHz
        Model Number:                  3000 (estimated)
        Performance Rating:            PR2687 (estimated)
        Type:                          Standard
        L2 On-board Cache:             512kB ECC Synchronous, Write-Back, 16-way set,
                                        64 byte line size
      < Mainboard >
        Bus(es):                       ISA X-Bus PCI USB FireWire/1394
        MP Support:                    1 CPU(s)
        MP APIC:                       No
        System BIOS:                   Phoenix Technologies, LTD 6.00 PG
        Mainboard:                     MS-7093
        Total Memory:                  447MB DDR-SDRAM
      < Chipset 1 >
        Model:                         Micro-Star International Co Ltd (MSI) ???
                                       (5950)
        Front Side Bus Speed:          1x 199MHz (199MHz data rate)
      < Chipset 2 >
        Model:                         Advanced Micro Devices (AMD) Athlon 64 /
                                       Opteron HyperTransport Technology
                                       Configuration
        Front Side Bus Speed:          2x 995MHz (1990MHz data rate)
        Total Memory:                  512MB DDR-SDRAM
        Memory Bus Speed:              2x 199MHz (398MHz data rate)
      < Video System >
        Monitor/Panel:                 Samsung Samtron 40Bn
        Adapter:                       ATI RADEON Xpress 200 Series
      < Physical Storage Devices >
        Removable Drive:               Floppy disk drive
        Hard Disk:                     ST320413A (19GB)
        Hard Disk:                     ST380817 AS SCSI Disk Device (75GB)
        CD-ROM/DVD:                    SONY DVD-ROM DDU1622 (CD 40X Rd) (DVD 5X Rd)
      < Peripherals >
        Serial/Parallel Port(s):       1 COM / 1 LPT
        USB Controller/Hub:            Standard OpenHCD USB Host Controller
        USB Controller/Hub:            Standard OpenHCD USB Host Controller
        USB Controller/Hub:            USB Root Hub
        USB Controller/Hub:            USB Root Hub
        FireWire/1394 Controller/Hub:  VIA OHCI Compliant IEEE 1394 Host Controller
        Keyboard:                      Standard 101/102-Key or Microsoft Natural PS/
                                       2 Keyboard
        Mouse:                         PS/2 Compatible Mouse
      < MultiMedia Device(s) >
        Device:                        Realtek AC'97 Audio
      < Network Services >
        Adapter:                       Realtek RTL8139/810x Family Fast Ethernet NIC
    <<< Mainboard Information >>>
      < Mainboard >
        Manufacturer:                  Micro-Star
        MP Support:                    1 CPU(s)
        MPS Version:                   1.40
        Model:                         MS-7093
        System BIOS:                   05/13/2005-RS480-SB400-6A666M4DC-00
      < System Memory Controller >
        Location:                      Mainboard
        Error Correction Capability:   None
        Number of Memory Slots:        4
        Maximum Installable Memory:    2GB
        Bank0/1 - A0:                  None None None None DIMM 512MB/64
        Bank2/3 - A1:                  Empty
        Bank4/5 - A2:                  Empty
        Bank6/7 - A3:                  Empty
      < Chipset 1 >
        Model:                         Micro-Star International Co Ltd (MSI) ???
                                       (5950)
        Bus(es):                       ISA X-Bus PCI USB FireWire/1394
        Front Side Bus Speed:          1x 199MHz (199MHz data rate)
        In/Out Width:                  16-bit / 16-bit
      < Logical/Chipset 1 Memory Banks >
        Power Save Mode:               No
        Fixed Hole Present:            No
      < Chipset 2 >
        Model:                         Advanced Micro Devices (AMD) Athlon 64 /
                                       Opteron HyperTransport Technology
                                       Configuration
        Bus(es):                       ISA X-Bus PCI USB FireWire/1394
        Version:                       1.02
        Front Side Bus Speed:          2x 995MHz (1990MHz data rate)
        Maximum FSB Speed / Max Memory:2x 1000MHz / 2x 200MHz
        In/Out Width:                  16-bit / 16-bit
        IO Queue Depth:                4 request(s)
      < Chipset 2 Hub Interface >
        Type:                          HyperTransport
        Version:                       1.02
        In/Out Width:                  16-bit / 16-bit
        Speed:                         2x 995MHz (1990MHz data rate)
      < Logical/Chipset 2 Memory Banks >
        Bank 0:                        512MB DDR-SDRAM 3.0-3-3-3CL 2CMD
        Channels:                      1
        Speed:                         2x 199MHz (398MHz data rate)
        Multiplier:                    1/9x
        Width:                         64-bit
        Refresh Rate:                  5.00µs
        Power Save Mode:               No
        Fixed Hole Present:            No
        Notice 224:                    SMBIOS/DMI information may be inaccurate.
        Tip 2511:                      Some memory slots are free so the memory can
                                       be easily upgraded.
        Warning 100:                   Large memory sizes should be made of
                                       Registered/Buffered memory.
    <<< CPU & BIOS Information >>>
    << Processor 1 >>
      < Processor >
        Model:                         AMD Athlon(tm) 64 Processor 3000+
        Speed:                         1.79GHz
        Model Number:                  3000 (estimated)
        Performance Rating:            PR2687 (estimated)
        Type:                          Standard
        Package:                       FC µPGA939
        Multiplier:                    9/1x
        Minimum/Maximum Multiplier:    9/1x / 9/1x
        Generation:                    G8
        Name:                          M1F Athlon 64 (K8 ClawHammer) 90nm ?GHz+ ?V
        Revision/Stepping:             1F / 0 (108)
        Stepping Mask:                 DH8-D0
        Microcode:                     MU0FF041
        Core Voltage Rating:           1.400V
        Min/Max Core Voltage:          1.400V / 1.450V
        Maximum Physical / Virtual Add:40-bit / 48-bit
        Native Page Size:              4kB
      < Co-Processor (FPU) >
        Type:                          Built-in
        Revision/Stepping:             1F / 0 (108)
      < Processor Cache(s) >
        Internal Data Cache:           64kB Synchronous, Write-Back, 2-way set, 64
                                       byte line size
        Internal Instruction Cache:    64kB Synchronous, Write-Back, 2-way set, 64
                                       byte line size
        L2 On-board Cache:             512kB ECC Synchronous, Write-Back, 16-way set,
                                        64 byte line size
        L2 Cache Multiplier:           1/1x  (1791MHz)
      < Upgradeability >
        Socket/Slot:                   Socket 939
        Upgrade Interface:             Unknown
        Supported Speed(s):            3.00GHz+
      < Processor Power Management >
        Processor Throttling Enabled:  Yes
        Throttle Range:                34% - 100%
    <<< PCI(e), AGP, CardBus Bus(es) Information >>>
    << Generic >>
    << Interface >>
      < System Buses >
        PCI 64-bit Bus(es):            1
        PCI 66MHz Bus(es):             1
        PCI Bus(es):                   3
        Interface Version:             2.20
      < Interface Properties >
        Config space access mechanism :Yes
        Config space access mechanism :No
        Cycle generation mechanism 1 s:No
        Cycle generation mechanism 2 s:No
    <<< Video System Information >>>
    << Video Adapter >>
    << Primary Display Driver (display) >>
      < Video Adapter >
        Model:                         ATI RADEON Xpress 200 Series
        Chipset:                       ATI RADEON Xpress 200G Series (0x5954)
        RAMDAC:                        Internal DAC(400MHz)
        Video BIOS:                    BK-ATI VER008.020I.030.000
        VGA Compatible:                No
        Total Memory:                  64MB (64MB Video) (118MB System)
        Texture Memory:                182MB
        Supports DIME Texturing:       Yes
      < Video BIOS >
        Date:                          04/12/20
      < Current Video Mode >
        Mode:                          1024x768 16M+ TrueColour (32-bit)
        Current Refresh Rate:          60Hz
        Virtual Desktop Size:          1024x768
      < Video Driver >
        Model:                         ati2mtag.sys
        Version:                       6.14.10.6490
        Expected Windows Version:      4.00
        Video Acceleration:            Yes
        Screen Saver Active:           60 minutes(s)
        Screen Saver Name:             C:\WINDOWS\System32\logon.scr
        Low Power Saving Active:       No
        Power Off Saving Active:       No
    <<< Sound Card Information >>>
    << Wave Input Devices (Recording) >>
    << Realtek AC97 Audio >>
      < General Information >
        Device Name:                   Realtek AC97 Audio
        Manufacturer:                  Microsoft
        Version:                       5.10
        Product ID:                    101 / 1
    With regards and concern,
    Cherian

    Quote from: Ui30 on 04-July-05, 19:41:11
    Why not install like you did before, not using a slipstreamed version? It may do the trick!
    Are you runnign single SATA? (I didn't find it in your summary, may looked over it ... maybe you can give your specs like in my signature )
      i'll try you way.but its difficult to get a pure xp. i'll have to dig hard for that.
           for ur 2nd question. i am not running a single sata. i have one sata 80gb and another 20 gb ide.is that a problem

  • Error while activating badi - ME_PROCESS_PO_CUST

    hi,
    i have written the code in the process_header and process_item separately and when i try to activate the class, it is giving warning msg
    In type group MMCNT
    'In unicode programs the '-' character cannot appear in names as it does here in the name "MMCNT_EKKO-BEDAT", "MMCNT_EKKO-WKRUS",  "MMCNT_EKKO-KDATE".
    i activated it, and the class gets activated, but when i try to activate the badi, it is giving error message "Implementation class contains errors".
    How to rectify the error and check whether my badi works or not?
    plz help me.
    thanks.
    Sakthi sri.

    In class interface, properties tab, i removed the check mark of unicode checks active and now i can activate the badi.

  • Ejb3 bean not bound

    Hi I am new to EJB . Now in our project we are using ejb3 and persistance. So tried
    a simple program which I found out from net. But when I am trying to run I am getting
    bean not bound. And in JBoss console it is showing error like
    ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS State: NOTYETINSTALLED
    These are all my files.
    Book.java
    package de.laliluna.library;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.SequenceGenerator;
    import javax.persistence.Table;
    @Entity
    @Table(name="book")
    @SequenceGenerator(name = "book_sequence", sequenceName = "book_id_seq")
    public class Book implements Serializable {
         private static final long serialVersionUID = 7422574264557894633L;
         private Integer id;
         private String title;
         private String author;
         public Book() {
              super();
         public Book(Integer id, String title, String author) {
              super();
              this.id = id;
              this.title = title;
              this.author = author;
         @Override
         public String toString() {
              return "Book: " + getId() + " Title " + getTitle() + " Author "
                        + getAuthor();
         public String getAuthor() {
              return author;
         public void setAuthor(String author) {
              this.author = author;
         @Id
         @GeneratedValue(strategy = GenerationType.TABLE, generator = "book_id")
         public Integer getId() {
              return id;
         public void setId(Integer id) {
              this.id = id;
         public String getTitle() {
              return title;
         public void setTitle(String title) {
              this.title = title;
    }BookTestBean.java
    package de.laliluna.library;
    import java.util.Iterator;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless
    public class BookTestBean implements BookTestBeanLocal, BookTestBeanRemote {
         @PersistenceContext(name="FirstEjb3Tutorial")
         EntityManager em;
         public static final String RemoteJNDIName =  BookTestBean.class.getSimpleName() + "/remote";
         public static final String LocalJNDIName =  BookTestBean.class.getSimpleName() + "/local";
         public void test() {
              Book book = new Book(null, "My first bean book", "Sebastian");
              em.persist(book);
              Book book2 = new Book(null, "another book", "Paul");
              em.persist(book2);
              Book book3 = new Book(null, "EJB 3 developer guide, comes soon",
                        "Sebastian");
              em.persist(book3);
              System.out.println("list some books");
              List someBooks = em.createQuery("from Book b where b.author=:name")
                        .setParameter("name", "Sebastian").getResultList();
              for (Iterator iter = someBooks.iterator(); iter.hasNext();)
                   Book element = (Book) iter.next();
                   System.out.println(element);
              System.out.println("List all books");
              List allBooks = em.createQuery("from Book").getResultList();
              for (Iterator iter = allBooks.iterator(); iter.hasNext();)
                   Book element = (Book) iter.next();
                   System.out.println(element);
              System.out.println("delete a book");
              em.remove(book2);
              System.out.println("List all books");
               allBooks = em.createQuery("from Book").getResultList();
              for (Iterator iter = allBooks.iterator(); iter.hasNext();)
                   Book element = (Book) iter.next();
                   System.out.println(element);
    }BookTestBeanLocal.java
    package de.laliluna.library;
    import javax.ejb.Local;
    @Local
    public interface BookTestBeanLocal {
         public void test();     
    }BookTestBeanRemote.java
    package de.laliluna.library;
    import javax.ejb.Remote;
    @Remote
    public interface BookTestBeanRemote {
         public void test();
    }client part--> FirstEJB3TutorialClient.java
    package de.laliluna.library;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import de.laliluna.library.BookTestBean;
    import de.laliluna.library.BookTestBeanRemote;
    * @author hennebrueder
    public class FirstEJB3TutorialClient {
          * @param args
         public static void main(String[] args) {
               * get a initial context. By default the settings in the file
               * jndi.properties are used. You can explicitly set up properties
               * instead of using the file.
                Properties properties = new Properties();
                properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                properties.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces");
                properties.put("java.naming.provider.url","localhost:1099");
              Context context;
              try {
                   context = new InitialContext(properties);
                   BookTestBeanRemote beanRemote = (BookTestBeanRemote) context
                             .lookup(BookTestBean.RemoteJNDIName);
                   beanRemote.test();
              } catch (NamingException e) {
                   e.printStackTrace();
                    * I rethrow it as runtimeexception as there is really no need to
                    * continue if an exception happens and I do not want to catch it
                    * everywhere.
                   throw new RuntimeException(e);
    }I have created persistance.xml and application.xml under META-INF folder.
    persistance.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
    <persistence-unit name="FirstEjb3Tutorial">
    <jta-data-source>hsqldb-db</jta-data-source>
    <properties>
    <property name="hibernate.hbm2ddl.auto"
    value="create-drop"/>
    </properties>
    </persistence-unit>
    </persistence>application.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
         <display-name>Stateless Session Bean Example</display-name>
         <module>
              <ejb>FirstEjb3Tutorial.jar</ejb>
         </module>
    </application>and in hsqldb-ds i have configured the driver and connection
    <datasources>
       <local-tx-datasource>
          <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
          <!-- Datasources are not available outside the virtual machine -->
          <jndi-name>ejb3ProjectDS</jndi-name>
          <!-- For server mode db, allowing other processes to use hsqldb over tcp.
          This requires the org.jboss.jdbc.HypersonicDatabase mbean.
          <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>
          -->
          <!-- For totally in-memory db, not saved when jboss stops.
          The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
          <connection-url>jdbc:hsqldb:.</connection-url>
          -->
          <!-- For in-process persistent db, saved when jboss stops.
          The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
          -->
         <!-- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url-->
         <connection-url>jdbc:hsqldb:data/tutorial</connection-url>
          <!-- The driver class -->
          <driver-class>org.hsqldb.jdbcDriver</driver-class>
          <!-- The login and password -->
          <user-name>sa</user-name>
          <password></password>
          <!--example of how to specify class that determines if exception means connection should be destroyed-->
          <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
          <!-- this will be run before a managed connection is removed from the pool for use by a client-->
          <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
          <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
          <min-pool-size>5</min-pool-size>
          <!-- The maximum connections in a pool/sub-pool -->
          <max-pool-size>20</max-pool-size>
          <!-- The time before an unused connection is destroyed -->
          <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
          <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
          <idle-timeout-minutes>0</idle-timeout-minutes>
          <!-- sql to call when connection is created
            <new-connection-sql>some arbitrary sql</new-connection-sql>
          -->
          <!-- sql to call on an existing pooled connection when it is obtained from pool
             <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
          -->
          <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
             <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
          -->
          <!-- Whether to check all statements are closed when the connection is returned to the pool,
               this is a debugging feature that should be turned off in production -->
          <track-statements/>
          <!-- Use the getConnection(user, pw) for logins
            <application-managed-security/>
          -->
          <!-- Use the security domain defined in conf/login-config.xml -->
          <security-domain>HsqlDbRealm</security-domain>
          <!-- Use the security domain defined in conf/login-config.xml or the
               getConnection(user, pw) for logins. The security domain takes precedence.
            <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
          -->
          <!-- HSQL DB benefits from prepared statement caching -->
          <prepared-statement-cache-size>32</prepared-statement-cache-size>
          <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
          <metadata>
             <type-mapping>Hypersonic SQL</type-mapping>
          </metadata>
          <!-- When using in-process (standalone) mode -->
          <depends>jboss:service=Hypersonic,database=localDB</depends>
          <!-- Uncomment when using hsqldb in server mode
          <depends>jboss:service=Hypersonic</depends>
          -->
       </local-tx-datasource>
       <!-- Uncomment if you want hsqldb accessed over tcp (server mode)
       <mbean code="org.jboss.jdbc.HypersonicDatabase"
         name="jboss:service=Hypersonic">
         <attribute name="Port">1701</attribute>
         <attribute name="BindAddress">${jboss.bind.address}</attribute>    
         <attribute name="Silent">true</attribute>
         <attribute name="Database">default</attribute>
         <attribute name="Trace">false</attribute>
         <attribute name="No_system_exit">true</attribute>
       </mbean>
       -->
       <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
       <mbean code="org.jboss.jdbc.HypersonicDatabase"
         name="jboss:service=Hypersonic,database=localDB">
         <attribute name="Database">localDB</attribute>
         <attribute name="InProcessMode">true</attribute>
       </mbean>
    </datasources>.
    Edited by: bhanu on Dec 2, 2008 9:45 AM

    Hi jadespirit ,
    I have the same problem in the same Book example ,my ejb3 project name "BaseHotele" so i follow what u said and this is my persistence.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence>
    <persistence-unit name="FirstEjb3Tutorial">
    *<jta-data-source>java:BaseHoteleDS</jta-data-source>*
    <properties>
    <property name="hibernate.hbm2ddl.auto"
    value="create-drop"/>
    </properties>
    </persistence-unit>
    </persistence>
    But it didn't work i have always HotelTestBean not bound!!
    Help PLEASE i think that i had a mistake in the persistence.xml:i have 2 days searching for solutions without a good result!!!!!!!!!!!!!

  • Why does AddWatermark make file so big?

    I have created a 600 x 253 72 dpi gif file.  It is only 36kb in size.  When I take a 7 page 220kb PDF file and do a cfpdf action="addwatermark" to the file, it grows from 220kb to a whopping 1.3 MB!
    Strangely enough, if I open the same file in Adobe Acrobat Professional and manually add the exact same gif file as a watermark to the exact same PDF file, the result file actually got SMALLER!?!?!
    You don't believe me?  Try it yourself.
    Image file: https://www.calcerts.com/images/logo_main_watermark_color.gif
    Original PDF: https://www.calcerts.com/BB4031.pdf
    PDF File after doing a simple addwatermark: https://www.calcerts.com/BB4031_WTF.pdf
    PDF File if I add the image as a watermark in Adobe Acrobat Professional 8: https://www.calcerts.com/BB4031_AdobeWatermarked.pdf
    The code I used was this:
    <cfpdf action="addwatermark"
      source="d:\BB4031.pdf"
      destination="d:\BB4031_WTF.pdf"
      image="D:\images\logo_main_watermark_color.gif"
      opacity = 2
      foreground = "yes"
      rotation = 0
      showonprint = "yes"
      overwrite="yes"
      position = "0,250"
      >

    rotflmao!!!
    ok, Qui-Gon.....  Teach a man to fish, and that sort of thing, right?
    I found the Page Number footer code in the CFC, did not think to look there.  I thought it would have been in the CFM.  So that's done, thanks.
    I added (and modified) the footer info into the Watermark example:
    --WATERMARK CODE WORKS, SO I WON'T WASTE YOUR TIME POSTING THAT--
    //add the javaloader dynamic proxy library (and my iText jar) to the javaloader
    libpaths = [];
    arrayAppend(libpaths, expandPath("/CustCFX/javaLoader/support/cfcdynamicproxy/lib/cfcdynamicproxy.jar"));
    arrayAppend(libpaths, expandPath("/CustCFX/javaLoader/itext/iText-2.1.7.jar") );
    //we HAVE to load the ColdFusion class path to use the dynamic proxy, as it uses ColdFusion's classes
    loader = createObject("component", "CustCFX.javaLoader.JavaLoader").init(loadPaths=libpaths, loadColdFusionClassPath=true);
    //initialize the building blocks used by the custom page handler 
    textColor = loader.create("java.awt.Color").decode( "##000000" );
    BaseFont = loader.create("com.lowagie.text.pdf.BaseFont");
    textFont = BaseFont.createFont(BaseFont.COURIER, BaseFont.WINANSI, BaseFont.EMBEDDED);
    //intialize the page event handler component 
    eventHandler = createObject("component", "CustCFX.betterPdfPageEventHandler.PdfPageEventHandler").init( font=textFont, fontSize=8, textColor=textColor);
    eventHandler.setFooterText( "My Cool Footer - The Force is with ME!!!");
    //we can pass in an array of strings which name all the interfaces we want out dynamic proxy to implement
    interfaces = ["com.lowagie.text.pdf.PdfPageEvent"];
    //get a reference to the dynamic proxy class
    CFCDynamicProxy = loader.create("com.compoundtheory.coldfusion.cfc.CFCDynamicProxy");
    // create a proxy that we will pass to the iText writer
    eventHandlerProxy = CFCDynamicProxy.createInstance(eventHandler, interfaces);
    // adding content to each page 
    i = 0; 
    while (i LT totalPages) { 
       i = i + 1; 
       // Prepare to place image on OVERcontent 
       content = pdfStamper.getOverContent( javacast("int", i) ); 
       // Only needed if you are changing the opacity, blending, etcetera .. 
       content.setGState(gState); 
       // Center the watermark. Note - using deprecated methods for CF8/iText 1.4 compatability 
       rectangle = pdfStamper.getReader().getPageSizeWithRotation( javacast("int", i) ); 
       x = rectangle.left() + (rectangle.width() - img.plainWidth()) / 2; 
       y = rectangle.bottom() + (rectangle.height() - img.plainHeight()) / 2; 
       img.setAbsolutePosition(x, y); 
       content.addImage(img);
       content.saveState();
       content.beginText();
       NOW WHAT?!?!
    I tried: content.setPageEvent( eventHandlerProxy ); like in the Footer example, but that errored out.  I understand what is SUPPOSED to happen here, but I am not getting the syntax.  At this point, I need to apply the eventHandler to the content.  But what everything I have tried has errored out.
    One thing that I have learned is that syntax is EVERYTHING with script (that's why I love ColdFusion so much, it's much more foregiving for us non-purebread programmers. 
    so once I hvae initiate the beginText, what is the syntax for applying the eventHandler to content?

  • How to change the application title in apex while importing it ..

    Hi ,
    I have an issue here. As per the requirements I need to change the application title in Apex while
    importing it from One instance to another instance.
    Ex: My application title is WATERFALL PORTAL in iWATERFALL instance ,it must be changed to PUAT PORTAL if im Importing it to PUAT instance.
    This change has to be done Dynamically. Without Entering it Manually.
    Kindly help me out and Will be Great for your Assistance.
    Thanks,
    Vishal

    1001804 wrote:
    Hi ,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1001804".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have an issue here. As per the requirements I need to change the application title in Apex while
    importing it from One instance to another instance.Please clarify what you mean by "application title". The Application Name in the application definition? The displayed Logo in the user interface properties?
    Ex: My application title is WATERFALL PORTAL in iWATERFALL instance ,it must be changed to PUAT PORTAL if im Importing it to PUAT instance.
    This change has to be done Dynamically. Without Entering it Manually.Also clarify what you mean by "instance". An "APEX instance" refers to the APEX installation in a database. The "APEX instance" does not have a specific name property, and would therefore usually be referred to using the database name. Or do you mean the APEX workspace containing the application?

  • ASYNC - BPM - SYNC

    Hi,
    I am trying to send a SELECT message to a JDBC adapter.
    SEND
    mode: SYNCHRONOUS
    Synchronous Interface: mis_select
    Request Message: select_req
    ResponseMessage: select_res
    mis_select is a Synchronous Abstract Inteface
    select_req -> mi_select_req is a asynchronous abstract interface
    select_res -> mi_select_res is a asynchronous abstract interface
    When I try to activate my integration process I get the following error:
    Message to be sent select_req and synchronous interface mis_select are not of the same type.
    And the same for the response mesage.
    I have looked at the message types in both interfaces and they are the same type as the synchronous interface.
    Anyone knows what this error is about ?

    Hi Hans,
    I have a similar JDBC receiver step in one of my ccBPMs.
    I think there's a possibility that your Synchronous Abstract Interface is defined backwards. i.e. The request is the response and the response is the request.
    From what I see, the "Output message" (in sync.Abs.Interface properties) should be the select (called <b>request message</b> in BPM step properties) and the "Input message" should be the response (called <b>response message</b> in BPM step properties).
    Best Regards,
    Ofer

Maybe you are looking for

  • Software update will not allow me to download iTunes 12.0.1

    The iTunes version that I already have shows me in "About iTunes" to be version 12.0.0.140, which I don't believe is the same as 12.0.1.  Every time I try to download the updated version, all it does is bring out of the download and then runs the cur

  • What is the use of abap query?

    hi sap gurus, good morning to all, what is the actual relecance of abap query ? i know that we can generate simple reports but what kind of reports ? give some examples plz. regards, balaji.t 09990019711

  • More Belle Experience

    I've had two working weeks with Belle.  Here's some more feedback for you Nokia. The upgrade process SUCKS.  You made progress with Anna, being able to do things OTA and keeping your apps and settings.  But Belle's Computer only upgrade?  It was bugg

  • Black screen all the time

    i think my screen has gone as when the phone is switched on the keypad lights up but the screeen itself stays black and it allows calls in and i can anwer them just not see whats on the screen can the screen be fixed ? xx

  • Adobe flash 10 RC released for linux

    http://blogs.adobe.com/penguin.swf/2008/08/10rc1.html YEAHHHHHHHHHH