Java System design Question

Hi,
I am new programmer and have been assigned the task of replacing an old system with a new one . The old system was done using Access 97 VBA. Both the backend(database) and the frontend ( in Access VBA). It is basically a database system which, retrives information, does computation and all that.
Now we plan to change it with a server running linux , mysql database on the same server. I was thinking of doing the whole thing in Java . There will be like 45 people working on the system at the same time , some on the web .. which i plan to use JSP. I want most of the things to look the same so that people using it will not have too much trouble becasue they are used to the old system.
I just need to know if this a good idea ..
I would be very glad if someone could help me with this .. I don't want to make a blunder here ..
Thanks,
sdsouza

"kinda cross posted"??? It was, and then you cross the cross post with cross posted complaints about cross posting. Cross posting really bothers you don't it? Well, see, I don't think you'll ever stop it, unless you rewrite the forums to be more intelligent about postings. So I wouldn't worry about it... give an answer or don't. (I gave one in the other post...)

Similar Messages

  • Java/OO Design question.  Please help!

     

    Brian,
    I'd say your better off trying the
    weblogic.developer.interest.ejb newsgroup
    or alternatively try the discussion forums in
    www.theserverside.com
    or
    http://forum.java.sun.com/
    For what its worth I'd return an empty array rather than an exception as I associate
    exceptions with real errors whereas a search that happens to return nothing is a
    valid result.
    Cheers,
    mairt
    "Brian Snyder" <[email protected]> wrote:
    >
    I'm certain this is not the best forum for my question, but I didn't any
    other
    that seemed obvious.
    I have a design issue/ OO question. Our system has the very common requirement
    of searching. We have build a session EJB which actually performs the search
    and returns a collection of Value Objects back to the client. My question
    is
    this: If the search EJB finds no matching records, what is the correct
    strategy
    for dealing with it?
    1) Throw an application exception, such as "NoDataFound", which the client
    can
    catch and handle appropriately
    2) Simply return a null collection. In which case, the client will have
    to check
    for null, and redirect program appropriately.
    3) Simple return type, such as boolean, for the method -- indicating success
    or
    failure (meaning no records found).
    4) Something entirely different. If so, what?
    Your thoughts on this subject would be greatly appreciated!
    Thanks!
    Brian

  • Java Mapping Design Question

    Hi All,
    I have a Java mapping requrement for which I would like some suggestions.
    I have 3 variables:
         1) price
         2) price factor
         3) pricing condition
    There is already quite a bit of logic determining these.
    The new requirement is that if the price has a precision greater than 2 (eg 1.234 but not 1.23) then:
         1) set price = price * 10
         2) set price factor = 10
         3) set pricing condition = "ZMPE"
    Since it is unclear to me that there is an easy way to modify the current logic, I would rather try to take the current output for these 3 variables and override their values in the way described above. (I did try modifying the current logic but I have found it gave me problems.)
    So is there a simple way that I can take the current values and override them in the way described. For instance can I do this with a single User Defined Function.
    Thanks in advance.
    Cheers
    Gerard

    Hi Gerard - Please check the below screenshot.. (just change the type to result so that it'll be your output parameter.)
    edited : removed "remove context"

  • System Design Question using BPEL

    Our group is currently in the early design phases of a new order extraction and billing process. What we would like to do is to an extraction of order data occur at a time specified on an Extraction Profile (which is defined by the users in a template - the profiles are built at midnight for the next day) Is there any way to have BPEL use these times (defined in the table) as the start point of when to begin the processing? The extractions are mutliple times each day and could be different day to day. We would like to have BPEL orchestrate the processes involved.

    I guess polling is a option you can try.
    You can write a polling process in BPEL to act as triggering point form the table.
    Perform logical compare for the times and terminate the poller if the time does not match.
    If the time match then start the business process and this could act as the triggering point to run the business process.
    You might like to perform a logical delete using a status flag in the table.
    If you do not like to touch the original table, you could create a dummy table to hold the bits that could be joined with the original table for the polling.
    Polling interval could be set based on how much diff you could allow from the scheduled time for triggering the process.
    Every Little Helps
    Kalidass Mookkaiah
    http://oraclebpelindepth.blogspot.com/

  • Some question for Sun Java System

    Dear all:
    I use Sun Java System We Server 7.0 for my project.
    But I have some question on SJSWS 7.0
    My server runtime information
    1. OS is RedHat Enterprise 3
    2. memory: 2G
    3. SJSWS version: 7.0 preview 3
    My questions
    Q1. The speed that download image is slower than the speed that run JSP page . The image's size to smaller than 5 KB. Is it possible to speed up download image
    Q2. My machine has 2GB memory, The system use swap area always. I think it isn't enough of SJSWS 7.0. How much memory size that SJSWS 7.0?
    Many thank for everybody

    first off, please try the Update 1 release in stead of technology preview releases: http://www.sun.com/download/products.xml?id=467713d6
    Q1> So I want to ask it is possible to display image and text at the same time like use Tomcat ?
    there is nothing in the server end (whether it's Tomcat or any other web server) that affects how the content is displayed on the browser.
    Q2>I detect The ram was used over 800M~1G by SJSWS7. My website has 80~150 user in workinghour
    Are you seeing Web Server process measuring so much memory?
    Q3> Is it possible that the admin server use SJSWS7U1 and some or all of node use SJSWS preview 3, because the server is running on line, I can't stop them for update server
    No - you want to switch to U1 anyway, since it's a released version (and is absolutely FREE for production use).

  • Question re: Java System vs. ABAP + Java System

    Hello everyone,
    I posted this message in the EP Implementation forum without realizing there is a dedicated WAS General forum; I apologize to those of you who might have read this already.
    My question is;
    Under what scenario would I want to install my Web Application Server as an ABAP + Java system?
    We have been working with our development Portal server for a few months now with a high degree of success and the WAS Server it sits on is setup as a Java System only.
    I understand that for Portals and using business packages in portal I only need Java WAS.
    I guess I am only left with the question, when or why would I want to install the ABAP engine?
    Would you use that for a different application that sits on WAS other than Portals?
    Are there benefits in installing the ABAP engine that you do not have with a Java only system?
    Thanks in advance for your help,
    ~Henry

    Hi Henry,
    Your ABAP stack in WAS server in nothing but your SAP R/3 System. In earlier versions only ABAP stack was available. But now SAP has combined both JAVA and ABAP stack into one. So, if anyone wants to work on both the things then they can you one single server only. No need to have different servers for that.
    If your purpose solves with the only JAVA stack then you can continue with that. But, if you are going to install new server and you want to work on both ABAP as well as JAVA then better to install WAS 6.40 with ABAP+JAVA stack. So, single server will setisfy your whole requirement.
    I hope you satistied with this answer.
    Regards,
    Bhavik

  • RSBOLAP 018  Java system error in BEx Web Application Designer

    Hello,
    while doing inside BEX Web Application Designer "validation of webtemplate" with
    command "validate on server"  I get following error message of WAD  :
    " Message RSBOLAP 018   description : Java system error : an Unknow Error occured during portal communication"
    My procedure till now was ( please see results as screenshots in attachment) :
    a) ckecking prerequisites for "Java template installer'" --> result "prerequisites.jng"
    b) running "Java template installer" ->  " result templateInstaller.jpg"
    c) running Bex Web Application Designer as mentioned above results in error
       message as mentioned above
    d) running Diagnostic & Support Desktop Tool  --> "result Diagnostic support desktop tool.jpg"
    It says that something is wrong with "BI Mastersystem" because of failed connect to
    message server.
    Please advice me what I should do.
    Thanks in advance
    Regards,
    Oscar

    Hello
    It is obvious that the connection between the ABAP and the Java is not working.
    There should be a JCo RFC from the portal side to the ABAP stack set up and an RFC from the ABAP stack to the portal.
    Check the entries of the table RSPOR_T_PORTAL
    The RFC specified here should be the one mentioned above (ABAP - Java)
    Check the name of the system should be SAP_BW
    Is the parameter icm/host_name_full set on the ABAP stack with the domain name ?
    Connect to the BI portal:
    http://FQDN:5NN00/irj/portal
    Navigate to system administration -> system configuration -> system landscape -> expand "portal content" -> systemlandscape -> SAP_BW
    Right click on SAP_BW - Open - Object
    Here you need to maintain these:
    ITS Description - BW ABAP Logical System Name - Tx SCC4 or BD54
    ITS Host Name  - FQDN_OF_BW_ABAP:port - You can use the value of icm/host_name_full parameter and retrieve port number from Tx SMICM - Services
    ITS Path - /sap/bc/gui/sap/its/webgui
    ITS Protocol  - Select http
    Logical System Name  - BW ABAP Logical System Name - Tx SCC4 or BD54
    Logon Method  -SAPLOGONTICKET
    Message server - BW ABAP FQDN
    SAP Client - BW ABAP Client Number
    SAP System ID (SID) - BW ABAP SID
    Server Port - 39NN
    Web AS Description - BW ABAP Logical System Name - Tx SCC4 or BD54
    Web AS Host Name - FQDN_OF_BW_ABAP:port - icm/host_name_full and retrieve port number from Tx SMICM - Services
    Web AS Path - /sap/bw/BEx
    If everything is set properly then do a test connection.
    Good Luck
    RB

  • LDAP design question for multiple sites

    LDAP design question for multiple sites
    I'm planning to implement the Sun Java System Directory Server 5.2 2005Q1 for replacing the NIS.
    Currently we have 3 sites with different NIS domains.
    Since the NFS over the WAN connection is very unreliable, I would like to implement as follows:
    1. 3 LDAP servers + replica for each sites.
    2. Single username and password for every end user cross those 3 sites.
    3. Different auto_master, auto_home and auto_local maps for three sites. So when user login to different site, the password is the same but the home directory is different (local).
    So the questions are
    1. Should I need to have 3 domains for LDAP?
    2. If yes for question 1, then how can I keep the username password sync for three domains? If no for question 1, then what is the DIT (Directory Infrastructure Tree) or directory structure I should use?
    3. How to make auto map work on LDAP as well as mount local home directory?
    I really appreciate that some LDAP experta can light me up on this project.

    Thanks for your information.
    My current environment has 3 sites with 3 different NIS domainname: SiteA: A.com, SiteB:B.A.com, SiteC:C.A.com (A.com is our company domainname).
    So everytime I add a new user account and I need to create on three NIS domains separately. Also, the password is out of sync if user change the password on one site.
    I would like to migrate NIS to LDAP.
    I want to have single username and password for each user on 3 sites. However, the home directory is on local NFS filer.
    Say for userA, his home directory is /user/userA in passwd file/map. On location X, his home directory will mount FilerX:/vol/user/userA,
    On location Y, userA's home directory will mount FilerY:/vol/user/userA.
    So the mount drive is determined by auto_user map in NIS.
    In other words, there will be 3 different auto_user maps in 3 different LDAP servers.
    So userA login hostX in location X will mount home directory on local FilerX, and login hostY in location Y will mount home directory on local FilerY.
    But the username and password will be the same on three sites.
    That'd my goal.
    Some LDAP expert suggest me the MMR (Multiple-Master-Replication). But I still no quite sure how to do MMR.
    It would be appreciated if some LDAP guru can give me some guideline at start point.
    Best wishes

  • General Design Questions

    Hello,
    I am developing a web application and could use some architectural advice. I've done lots of reading already, but could use some direction from those who have more experience in multi-tier development and administration than I. You'll find my proposed solution listed below and then I have some questions at the bottom. I think my architecture is fairly standard and simple to understand--I probably wrote more than necessary for you to understand it. I'd really appreciate some feedback and practical insights. Here is a description of the system:
    Presentation Layer
    So far, the presentation tier consists of an Apache Tomcat Server to run Servlets and generate one HTML page. The HTML page contains an embedded MDI style Applet with inner frames, etc.; hence, the solution is Applet-centric rather than HTML-centric. The low volume of HTML is why I decided against JSPs for now.
    Business Tier
    I am planning to use the J2EE 1.4 Application Server that is included with the J2EE distribution. All database transactions would be handled by Entity Beans and for computations I'll use Session Beans. The most resource intensive computational process will be a linear optimization program that can compute large matrices.
    Enterprise Tier
    I?ll probably use MySql, although we have an Oracle 8 database at our disposal. Disadvantage of MySql is that it won't have triggers until next release, but maybe I can find a work-around for now. Advantage is that an eventual migration to Linux will be easier on the wallet.
    Additional Information
    We plan to use the system within our company at first, with probably about 5 or less simultaneous users. Our field engineer will also have access from his laptop. That means he'll download the Applet-embedded HTML page from our server via the Internet. Once loaded, all navigation will be Applet-centered. Data transfer from the Applet to Servlet will be via standard HTTP.
    Eventually we would like to give access of our system to a client firm. In other words, we would be acting as an application service provider and they would access our application via the Internet. The Applet-embedded HTML page would load onto their system. The volume would be low--5 simultaneous users max. All users are well-defined in advance. Again, low volume HTML generation--Applet-centric.
    My Questions
    1). Is the J2EE 1.4 Application Server a good production solution for the conditions that I described above? Or is it better to invest in a commercial product like Sun Java System Application Server 7 ? Or should I forget the application server concept completely?
    2). If I use the J2EE Application Server, is this a good platform for running computational programs (via Session Beans)? Or is it too slow for that? How would it compare with using a standalone Java application--perhaps accessed from the Servlet via RMI? I guess using JNI with C++ in a standalone application would be the fastest, though a bit more complex to develop. I know it is a difficult question, but what is the most practical solution that strikes a balance between ease-of-programming and speed?
    3). Can the J2EE 1.4 Application Server be used for running the presentation tier (Servlets and HTML) internally on our intranet? According to my testing, it seems to work, but is it a practical solution to use it this way?
    4). I am running Tomcat between our inner and outer firewalls. The database would of course be completely inside both firewalls. Should the J2EE (or other) Application Server also be in the so-called 'dmz' with Tomcat? Should it be on the same physical server machine as Tomcat?
    5). Can Tomcat be used externally without the Apache Web Server? Remember, our solution is based on Servlets and a single Applet-embedded HTML page, so high volume HTML generation isn't necessary. Are there any pros/cons or security issues with running a standalone Tomcat?
    So far I've got Tomcat and the J2EE Application Server running and have tested my small Servlet /Applet test solution on both. Both servers work fine, although I haven't tested any Enterprise Beans on the application server yet. I'd really appreciate if anyone more experienced than I can comment on my design, answer some of my questions, and/or give me some advice or insights before I start full-scale development. Thanks for your help,
    Regards,
    Itchy

    I can give my opinion on some of these questions and a resource for the others.
    <question>
    1). Is the J2EE 1.4 Application Server a good production solution for the conditions that I described
    Or is it better to invest in a commercial product like Sun Java System Application Server 7 ? Or should I forget the application server concept completely?
    </question>
    Yes, the J2EE 1.4 app server is a good solution for these conditions. Specifically, I would use SJSAS PE 8.0 version or the J2EE SDK. They are free version that will meet your needs. You get the latest J2EE 1.4 platform features. As your needs grow you can transition to an enterprise version of the appserver (SE/EE). If you choose to go commercial please note that SJSAS 7.0 is a J2EE 1.3 platform.
    <question>
    2). If I use the J2EE Application Server, is this a good platform for running computational programs (via Session Beans)? Or is it too slow for that? How would it compare with using a standalone Java application--perhaps accessed from the Servlet via RMI? I guess using JNI with C++ in a standalone application would be the fastest, though a bit more complex to develop. I know it is a difficult question, but
    what is the most practical solution that strikes a balance between ease-of-programming and speed?
    </question>
    I guess you will not know for sure unless you perform some bench mark tests. But my opinion is the ease of development features you gain by using an app server far out weigh any performance increases you may get using a native soluton. Also, it is not clear that a native solution would actually be faster, with the latest JIT compilers Java performance is comparable to C++, your milage may vary depending on your application.
    <question>
    3). Can the J2EE 1.4 Application Server be used for running the presentation tier (Servlets and HTML) internally on our intranet? According to my testing, it seems to work, but is it a practical solution to use it this way?
    </question>
    Yes I would use the app server for both your presentation tier and business tier.
    As for the other issues you may want to look at the Java Enterprise Blue Prints located at: http://java.sun.com/j2ee/1.4/download.html#blueprints

  • Database Connection design question

    Hello, I have a design question. Awhile back I needed to create a database connection to SQL Server, so I created a class to do it
    import java.sql.*;
    import java.io.*;
    import java.net.MalformedURLException;
    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    public class SQLServerConnection
         private static Connection connection = null;
         public SQLServerConnection(String user, String password, String dbName) throws java.sql.SQLException
              getDBConnection(user, password, dbName);
         public SQLServerConnection(String configFileName) throws java.sql.SQLException
              getDBConnection(configFileName);
         private void getDBConnection(String user, String password, String dbName) throws java.sql.SQLException
             DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
             connection = DriverManager.getConnection(
                  "jdbc:microsoft:sqlserver:" + dbName, user, password);              
         private void getDBConnection(String configFileName) throws java.sql.SQLException
              String user;
              String password;
              String dbName;
              try
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder db = factory.newDocumentBuilder();
                   Document doc = db.parse(configFileName);
                   doc.getDocumentElement().normalize();
                   // get the configuration information
                   password = getConfigParameter("password", doc);
                   user = getConfigParameter("username", doc);
                   dbName = getConfigParameter("databasename", doc);
                   getDBConnection(user, password, dbName);
              catch (MalformedURLException murle)
                   System.out.println("Unable to connect to: " + configFileName + " -- " + murle);
                   System.exit(1);
              catch (FileNotFoundException fnfe)
                   System.out.println("Configuration file " + configFileName + " not found.");
                   System.exit(1);
              catch (IOException ioe)
                   System.out.println("IOException: " + ioe);
                   System.exit(1);
              catch (javax.xml.parsers.ParserConfigurationException pce)
                   System.out.println ("Parser Configuration Error: " + pce);
              catch (SAXException saxe)
                   System.out.println ("SAXException: " + saxe);
         private String getConfigParameter(String paramName, org.w3c.dom.Document doc)
              NodeList nl = doc.getElementsByTagName(paramName);
              if(nl != null)
                   Node n = null;
                   for (int i = 0; i < nl.getLength(); i++)
                        n = nl.item(i);          
                        if(n.hasChildNodes())
                             NodeList children = n.getChildNodes();
                             return ((Node)children.item(0)).getNodeValue();
              else
                   System.out.println ("nl is null");
              return "";          
         public void setCatalog(String catalogName) throws java.sql.SQLException
              connection.setCatalog(catalogName);
         public Connection getConnection()
              return connection;
         public void closeConnection()
              try
                   connection.close();
              catch(java.sql.SQLException sqle)
                   System.err.println ("SQL Server Connection failed to close: " + sqle);
    }Later on, I needed to do the same thing for MySQL, so I created a class for that, MySQLServerConnection which is exactly the same as above, except for:
    private void getDBConnection(String user, String password, String dbName) throws java.sql.SQLException
              try
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   connection = DriverManager.getConnection(dbName, user, password);     
              catch(java.lang.ClassNotFoundException cnfe)
                   System.out.println (cnfe);
              catch(java.lang.InstantiationException ie)
                   System.out.println (ie);
              catch(java.lang.IllegalAccessException iae)
                   System.out.println (iae);
         }Later, on, I did the same thing with OracleServerConnection. My question is, I know this is probably not optimal code. For example, I didn't originally have a close connection method, so I had to go in and code one for all 3. I'm assuming that an interface would be a good idea so that if I have to code another database connection class I make sure and include all of the appropriate methods. I'm also assuming that it would have been smart to have a master class, maybe something like DatabaseConnection and extended these classes from that. Am I on the right track? Totally offbase?

    @nclow - I will work on trying the Factory Pattern for this over the weekend and post when I finish to see what you think.
    @abillconsl - just to make sure I understand, you're saying that I just try to connect and it will cycle through the different database connection possibilities and connect when it finds the right one? If it fails all 3, log an appropriate message. One question I have about this is, I thought I was being object oriented by separating the different types of db connections (Oracle, SQL Server, MySql) into different classes. Am I missing the point of OOP by what I was/am trying to accomplish? Going overboard? Also, does your way try and connect to all 3 even if I connected to one already?
    Thx, Grantarchy
    Edited by: grantarchy on May 9, 2008 9:50 PM

  • Design Question: Parent/Child Distribution

    Hi,
    I have what I think is a straightforward design question. I tried
    searching this forum for the answer, but struggled with what keywords
    to use in the searches. (I also struggled with what to put on the
    subject line for this post!)
    Anyhow, here is my question: Given:
    public class Pet {...}
    public class Dog extends Pet {...}
    public class Cat extends Pet {...}
    public class Pig extends Pet {...}
    Which is the better design?
    DESIGN A:
    public abstract class PetOwner {
    private Pet pet;
    PetOwner(Pet pet) {
    this.pet = pet;
    public Pet getPet() { return this.pet; }
    public class DogOwner extends PetOwner {
    public DogOwner(Dog dog) {
    super(dog);
    public class CatOwner extends PetOwner {
    public CatOwner(Cat cat) {
    super(cat);
    public class PigOwner extends PetOwner {
    public PigOwner(Pig pig) {
    super(pig);
    ===============================================
    or DESIGN B:
    public abstract class PetOwner {
    PetOwner() {
    public class DogOwner extends PetOwner {
    private Dog dog;
    public DogOwner(Dog dog) {
    super();
    this.dog = dog;
    public class CatOwner extends PetOwner {
    private Cat cat;
    public CatOwner(Cat cat) {
    super();
    this.cat = cat;
    public class PigOwner extends PetOwner {
    private Pig pig;
    public PigOwner(Pig pig) {
    super();
    this.pig = pig;
    This is a somewhat contrived example, so don't take it too literally.
    My question is where should I put the field that holds a Pet object?
    All pet owners own a pet, so should I put it in the parent class
    (Design A)? Note the constructors for the child classes (e.g.
    DogOwner) are designed so that the correct type of pet is checked
    for. Or should each child class hold its own type of pet (Design B)?
    If the answer is "it depends" (as I suspect it is), then what are
    the questions I should be asking myself in order to decide?
    Thanks very much, in advance!!
    Chris

    eg,
    import java.util.*;
    class Pet {
        private String name = null;
        public Pet( String n ) {
         this.name = n;
        public String toString() {
         return name;
    class Dog extends Pet {
        public Dog( String n ) {
         super( n );
    class Pig extends Pet {
        public Pig( String n ) {
         super( n );
    class Cat extends Pet {
        public Cat( String n ) {
         super( n );
    class PetOwner {
        private Vector pets = new Vector();
        private int dogs = 0;
        private int cats = 0;
        private int pigs = 0;
        public void add( Dog d ) {
         pets.add( d );
         dogs++;
        public void add( Cat c ) {
         pets.add( c );
         cats++;
        public void add( Pig p ) {
         pets.add( p );
         pigs++;
        public boolean isCatOwner() {
         return cats > 0;
        public boolean isDogOwner() {
         return dogs > 0;
        public boolean isPigOwner() {
         return pigs > 0;
        public int numberOfPets() {
         return pets.size();
        public String toString() {
         String s = "";
         Enumeration en = pets.elements();
         while( en.hasMoreElements() ) {
             Pet pp = (Pet) en.nextElement();
             s += pp.toString() + "\n";
         return s;
    public class Pets {
        private PetOwner po = new PetOwner();
        public Pets() {
         po.add( new Dog( "doggy" ) );
         po.add( new Cat( "catty" ) );
        public String toString() {
         String s = "";
         s += po.toString();
         s += po.isDogOwner() + "\n";
         s += po.isPigOwner() + "\n";
         s += po.isCatOwner() + "\n";
         s += po.numberOfPets();
         return s;
        public static void main( String[] args ) {
         Pets p = new Pets();
         System.out.println( p );
    }

  • Sun Java System Web Server 7.0 available

    I am delighted to announce that Sun Java System Web Server 7.0 is now available for download, purchase, deployment, and more.
    This release builds on the highly scalable and stable heritage of Web Server. It features an entirely re-designed Administration interface designed around clusters, easy access to frequently performed tasks, simplification of frequently performed tasks., and a fully scriptable command line interface featuring functional parity with the browser-based interface.
    In addition to the administration changes this release features:
    o Full 64-bit support for Solaris SPARC and Solaris AMD64 platforms
    o Regular expression pattern matching for URL re-writing and mass hosting
    o If/Then/Else constructs within request processing
    o Advanced sed based input and output filters
    o Dynamic loading of Certificate Revocation Lists (CRLs) without requiring daemon restart
    o Elliptic Curve Cryptography (ECC)
    o Built in request mapping for protection against abnormal load patterns and Denial of Service protection
    o WebDAV ACL support
    o Out-of-box Java support for Servlets 2.4, JSP 2.0, JSF 1.1, JSTL 1.1, JWSDP 2.0 based web services
    o Java session failover and recovery within a cluster of peers
    o Integrated HTTP reverse proxy User-Agent
    o Bundled FastCGI client for use with third party scripting environments such as Perl, PHP, Ruby on Rails, etc
    o Enhancement of perfdump, stats-xml, and SNMP as well as more ability to monitor the Java container and the ACL system
    o Much more
    The software can be downloaded from:
    http://www.sun.com/download/products.xml?id=45ad781d
    The documentation is available at:
    http://docs.sun.com/app/docs/coll/1308.3

    If 7.0 was released, how come http://www.sun.com/webserver still only talks about 6.1?

  • How to make weblogic proxy to work on Sun Java system web server 7?

    Hi Every one,
    I am working on upgrade our Sun one 6.1 webserver to Sun Java system web server 7. Our website uses weblogic server to process jsp, web server only send static pages. I did all configurations as on Sun one. But somehow, the webserver does not forward "get jsp page" request to weblogic. The log record is:
    for host 10.78.124.118 trying to GET /home.jsp, send-file reports: HTTP4142: can't find /www/a/WebServer7/docs/bmd9i/home.jsp (File not found)
    home.jsp is at weblogic server.
    And redirect "NameTrans fn="redirect" from="/" url="/home.jsp"" seems does not work. when I type on IE http://32.69.253.131/ (32.69.253.131 is http listener IP), it always shows index.html page under the document root.
    Could some on can help? I am the first time to configurate web server. Thanks in advance.
    The configuration files are like:
    1. magnus.conf
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="/www/a/WebServer7/weblogic6.1sp6/libproxy.so"
    Init fn="wl_init"
    2. obj.conf
    # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    #<Object name="weblogic">
    #Service fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #</Object>
    <Object name="default">
    <Client method="TRACE">
    AuthTrans fn="set-variable" remove-headers="transfer-encoding" set-headers="content-length: -1" error="501"
    </Client>
    #AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="strip-params"
    NameTrans fn="redirect" from="/" url="/home.jsp"
    NameTrans fn="redirect" from="/index.jsp" url="/home.jsp"
    NameTrans fn="redirect" from="/index.html" url="/home.jsp"
    NameTrans fn="document-root" root="$docroot"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/www/a/WebServer7/lib/icons" name="es-internal"
    NameTrans fn="home-page" path="index.html"
    <If $uri =~ "/*.jsp">
    Service method="(GET|HEAD|POST|PUT)" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    #Service method="(GET|HEAD|POST|PUT)" type="text/jsp" fn="wl_proxy" WebLogicCluster="32.69.253.86:7210" ConnectTimeoutSecs="240" ConnectRetrySecs="60"
    </If>
    PathCheck fn="unix-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-compressed" check-age="off" vary="on"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain" charset="iso_8859-1"
    ObjectType fn="set-default-type" charset="iso_8859-1"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="send-error"
    Service method="(GET|HEAD)" type="*~magnus-internal/*" fn="send-file"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    3.mime.types
    I add one line: type=text/jsp exts=jsp

    Quick obvious question - Are you positive you're editing the correct obj.conf? Check the config directory and see if there is a second one called something like <instance>.obj.conf (where <instance> is the name of your configured instance).
    Alternatively you can grep for object-file in the server.xml to see which obj.conf the server is using:
    # grep object-file server.xml
        <object-file>bare-php.obj.conf</object-file>Assuming that you are editing the correct obj.conf file, are you making certain to restart Web Server after making your changes?

  • Design question: Scheduling a Variable-timeslot Resource

    I originally posted this in general java programming, because this seemed like a more high-level design descussion. But now I see some class design questions. Please excuse me if this thread does not belong here (this is my first time using the forum, save answering a couple questions).
    Forum,
    I am having trouble determining a data structure and applicable algorithm (actually, even more general than the data structure -- the general design to use) for holding a modifiable (but more heavily read/queried than updated), variable-timeslot schedule for a given resource. Here's the situation:
    Let's, for explanation purposes, say we're scheduling a school. The school has many resources. A resource is anything that can be reserved for a given event: classroom, gym, basketball, teacher, janitor, etc.
    Ok, so maybe the school deal isn't the best example. Let's assume, for the sake of explanation, that classes can be any amount of time in length: 50 minutes, 127 minutes, 4 hours, 3 seconds, etc.
    Now, the school has a base operation schedule, e.g. they're open from 8am to 5pm MTWRF and 10am to 2pm on saturday and sunday. Events in the school can only occur during these times, obviously.
    Then, each resource has its own base operation schedule, e.g. the gym is open from noon to 5pm MTWRF and noon to 2pm on sat. and sun. The default base operation schedule for any resource is the school which "owns" the resource.
    But then there are exceptions to the base operation schedule. The school (and therefore all its resources) are closed on holidays. The gym is closed on the third friday of every month for maintenance, or something like that. There are also exceptions to the available schedule due to reservations. I've implemented reservations as exceptions with a different status code to simplify things a little bit: because the basic idea is that an exception is either an addition to or removal from the scheduleable times of that resource. Each exception (reservation, closed for maintenance, etc) can be an (effectively) unrestricted amount of time.
    Ok, enough set up. Somehow I need to be able to "flatten" all this information into a schedule that I can display to the user, query against, and update.
    The issue is complicated more by recurring events, but I think I have that handled already and can make a recurring event be transparent from the application point of view. I just need to figure out how to represent this.
    This is my current idea, and I don't like it at all:
    A TimeSlot object, holding a beginning date and ending date. A data structure that holds list of TimeSlot objects in order by date. I'd probably also hold an index of some sort that maps some constant span of time to a general area in the data structure where times around there can be found, so I avoid O(n) time searching for a given time to find whether or not it is open.
    I don't like this idea, because it requires me to call getBeginningDate() and getEndDate() for every single time slot I search.
    Anyone have any ideas?

    If I am correct, your requirement is to display a schedule, showing the occupancy of a resource (open/closed/used/free and other kind of information) on a time line.
    I do not say that your design is incorrect. What I state below is strictly my views and should be treated that way.
    I would not go by time-slot, instead, I would go by resource, for instance the gym, the class rooms (identified accordingly), the swimming pool etc. are all resources. Therefore (for the requirements you have specified), I would create a class, lets say "Resource" to represent all the resources. I would recommend two attributes at this stage ("name" & "identifier").
    The primary attribute of interest in this case would be a date (starting at 00:00hrs and ending at 24:00hrs.), a span of 24hrs broken to the smallest unit of a minute (seconds really are not very practical here).
    I would next encapsulate the availability factor, which represents the concept of availability in a class, for instance "AvailabilityStatus". The recommended attributes would be "date" and "status".
    You have mentioned different status, for instance, available, booked, closed, under-maintainance etc. Each of these is a category. Let us say, numbered from 0 to n (where n<128).
    The "date" attribute could be a java.util.Date object, representing a date. The "status", is byte array of 1440 elements (one element for each minute of the day). Each element of the byte array is populated by the number designation of the status (i.e, 0,1,2...n etc.), where the numbers represent the status of the minute.
    The "Resource" class would carry an attribute of "resourceStatus", an ordered vector of "ResourceStatus" objects.
    The object (all the objects) could be populated manually at any time, or the entire process could be automated (that is a separate area).
    The problem of representation is over. You could add any number of resources as well as any number of status categories.
    This is a simple solution, I do not address the issues of querying this information and rendering the actual schedule, which I believe is straight forward enough.
    It is recognized that there are scope for optimizations/design rationalization here, however, this is a simple and effective enough solution.
    regards
    [email protected]

  • Java System error: SSO not authorized: authorization Failed

    Hi,
    I am getting the following error while opening a  BEx report designer or WAD and iam unable to design any report or create a dashboard
    "Java System Error: Call to FM BICS_CONS_GET_VIEW_DEF_J_PROXY to ProdId ASEP_PORTAL_E01 on host ASEP wiht SSO not authorized . Authentication Failed"
    System Details:
    BI and EP are installed in Same server
    BI Config:
    softwarwe component   : SAP_BW
    Release :  700
    Patch Level: 0021
    Support Pack : SAPKW70021 (SAP NetWeaver BI 7.0)
    EP config:
    SAP NetWeaver BI 7.0 SP Level 15
    Please suggest .

    It seems that something wrong in integration between JAVA Stack (from where you accessing BW report) a BW back end system. Try to run Support Desk Tool:
    http://<your_server>:<port>/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/com.sap.ip.bi.supportdesk.default
    to see what is wrong in this area.

Maybe you are looking for