Click here to Skip to main content
15,883,829 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
I download a pattern that it's name is shine enterprise pattern

it has also a document but it's hard to understand


plz somebody study it and answer my question

it said it has a new architecture

download it and it's doc from :

http://SourceForge.net/projects/shine-enterpris/files/
Posted

Find following information useful.

Shine's parts
Shine pattern has been developed for variety of application. This pattern has these parts:
->Maplet: a framework for doing web projects which are coincidence with MVC architecture. This framework helps developers to follow a standard pattern for developing a web application. Maplet helps developers to save time of developing and extending.
->JShooter: a framework that makes reflects oriented programming an easy job for developers. Meanwhile it helps distributing application on the network.
->JConnection: This package helps developers to work with JDBC and Hibernate easier than before.
->Util: This package helps developers in these subjects:
1- File System
2- Runtime
3- Compiler
4- System Information
5- Web Socket
6- MD5
7- Thread
8- Validation
9- XML Parsing
10- Web uploading

On google groups
http://groups.google.com/group/j2sos/browse_thread/thread/f32f7a817c5938e7[^]




HTH
 
Share this answer
 
Comments
john.stalin.java 3-Jul-10 7:59am    
Reason for my vote of 5
exaclty
john.stalin.java what did you mean "SELECT query"?

heartsofsea I had download it and read its doc. It sounds nice! I will search about it more!

JWMS is an architecture like MVC but as you said more complete than it.

I found out it is for developing service oriented programs with more fewer repetitive codes and more managed too. I read your sample code too it is really nice! you know you can have just one class and one or two response pages for each service its really wonderful!

other parts sound to be nice too! I'll tell you every thing new I found about it!
 
Share this answer
 
hi bozorgvar!

my sample worked when I put it in my WEB_INF folder! test it!
 
Share this answer
 
Comments
john.stalin.java 4-Jul-10 16:16pm    
Reason for my vote of 5
thx
yes this is correct men
with in java frameworks you cant make the SELECT query
but in shine Enterprise pattern or JWMS this is possible.
do know more read the doc
refer to http://sourceforge.net/projects/shine-enterpris/files/[^]
and see how it is easy and clear, and better than stuts.
 
Share this answer
 
I found a sample for maplet in shine

it's fantastic !!! there isn't any need to request.getParameter !!!!

here is requset page :

XML
<%@ page contentType="text/html;charset=windows-1256"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
    <title>untitled</title>
  </head>
  <body>
    <form action="http://192.168.0.10:8988/Maplet-Project-context-root/servlet/org.j2sos.jmeu.mypackage.Engine" method="get">
      <P>name :
        <input type="text" name="name"/>
      </P>
      <P>family :
      <input type="text" name="family"/></P>
      <P>
        <input type="submit" value="      OK     "/>
      </P>
    </form>
  </body>
</html>



======================================================================
response page :

XML
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"%>
    <maplet:Service name="name_empty">Name field is empty !</maplet:Service>
    <maplet:Service name="family_empty"> Family field is empty !</maplet:Service>
    <maplet:Service name="both_empty">Name and family fields are empty !</maplet:Service>
    <maplet:Service name="ok"> welcome !</maplet:Service>



=====================================================================

a maplet class :

C#
package org.j2sos.jmeu.mypackage;
import org.j2sos.shine.maplet.*;

public class Engine extends Maplet {
    public String name;
    public String family;
    private String forward;
    public void initialize() {
    }
    public void request() throws Exception {
        if (!(name.equals("")) && !(family.equals(""))) {
            forward = "ok";
        } else if ((name.equals("")) && (family.equals(""))) {
            forward = "both_empty";
        } else if (name.equals("")) {
            forward = "name_empty";
        } else if (family.equals("")) {
            forward = "family_empty";
        }
    }
    public void rater() throws Exception {
        forward("../response.jsp", forward);
    }
}


=============================================================

and a tld file :


XML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
  <tlibversion>1.0</tlibversion>
  <jspversion>1.1</jspversion>
  <shortname>maplet</shortname>
  <tag>
    <name>Service</name>
    <tagclass>org.j2sos.shine.maplet.tag.Service</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
      <name>name</name>
    </attribute>
  </tag>
  <tag>
    <name>SecureService</name>
    <tagclass>org.j2sos.shine.maplet.tag.SecureService</tagclass>
    <bodycontent>JSP</bodycontent>
    <attribute>
      <name>name</name>
    </attribute>
  </tag>
  <tag>
    <name>ErrorService</name>
    <tagclass>org.j2sos.shine.maplet.tag.ErrorService</tagclass>
    <bodycontent>JSP</bodycontent>
  </tag>
</taglib>
 
Share this answer
 
yes you are right

but shine says it has a new architecture (JWMS)

do u know what is it ?

he said it's better than mvc ! is that correct ?
 
Share this answer
 
Comments
Sandeep Mewara 3-Jul-10 16:40pm    
Reason for my vote of 1
Not an answer. Should had been a comment.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900