[J2EE Design Patterns] - Re: A New J2EE Framwork/MVC Framework And A New Service Orie
by Amirsam
This paper is no image paper !!!!!!!!!!!!!!!!!!!
J2EE and Service Oriented Programming
Authored by: AmirSam Bahador
Level:
Advanced
Contents:
Introduction
- The purpose of compilation this essay
Chapter 1: Basic concepts of J2EE
- Servlet and JSP
- MVC
- MVC or JWMS? That is the problem? Perhaps both!
Chapter 2: Basic concepts of Shine Framework
- What is "Shine Frameworkâ?
- The components of Shine Framework
- Implimentation of an application by Shine Framework
Chapter 3: The objects of Shine Framework
- The types of objects in Shine Framework
Chapter 4: Engineering & Communication items
- The communication of Shine Framework with the other
existing Frameworks
- The major purpose of Shine Framework
Introduction
The purpose of compilation of the this paper
A few years ago, when I was the software architect of a big project with J2EE, I advised some of the modern tools of that time to the project manager. He acknowledged it. Therefore, we began deploying our Enterprise on Java platform. However, we encounterd with many problems, as we got ahead the project. Our tools were included Struts Framework, Spring Framework & Hibernate.
I convinced that MVC architecture is the best option to develop macro projects! However, I believe it now, as well. Couldn't it be more completed? In developed Enterprise projects, an advanced architecture is required to divide the project, technically. The project was successfully finished after one year, but my mind was busy with it for a long time!
Then, I began implementing an Application Framework and registered it in Sourceforge.net as an Open Source Framework. I developed some Enterprise projects & some other J2EE frameworks, as well. I achieved a good result! The velocity of implemention & developing projects increased up to 50%. Subsequently, by cooperation of my elected students who had worked with Application Framework, I established an organization, named J2SOS, to protect & develop this Application Framework.
Fortunately, my students were so skilled that each took a chief task in big J2EE projects.
Their experiences had a practical affect on development of Application Framework as well as the organization.
Therefore, it is required to write down my & my yesterday students (my today co-workers) experiences. This was the outset to write the present paper!
Chapter 1
The basic concepts of J2EE
Purposes
In this chapter, we do our best to introduce J2EE basic concepts.
Servlet & JSP
If you ahve ever worked with JSP & Servlet, you know that Servlet is so proper for processing functions but there are particular problems with it in displaying functions.
JSP is applied reverse to Servlet. Thus, what is the solution? To apply both JSP and Servlet together!
What is MVC?
MVC is an easy way to use JSP & Servlet together. In MVC architecture, the request will be processed by a Class (Servlet) and the appropriate response will be showen by JSP.
n the above Servlet Class, the validation operation, etc will be done.
Nowadays, there are numerous Frameworks which will assist you to use MVC Framework architecture. Struts Framework is the most well-known one.
MVC or JWMS ? That is the problem! Perhaps both!
MVC is a powerful architecture, but it is required an advanced architecture to implement developed projects.
Today, web applications are well developed which complicatethe work for programmers & developers.
To clarify it, see Google site! Google Web Application enjoys numerous services, each have a special service for the users.
For Instance, Gmail service, E-Mail or by SearchEngine, the users can search for websites, pictures, etc.
These services have certaily close communication with each other.
If the services do not use a particular architecture, the Google will encounter with various problems.
In Service Oriented architecture, each part of the program is a service programme. For example, E-Mail service, SearchEngine service, etc.
, .....
for get full this paper plz goto : J2EE And Service Oriented Programming
in :
http://groups.google.com/group/j2sos
Or
http://j2sos.googlegroups.com/web/J2EE_And_Service_Oriented_Programming+(...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199350#4199350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199350
17 years, 3 months
[JBoss jBPM] - DatabaseServerLoginModule question
by jeremiah.lumontod
i have the following tables:
jbmp_id_group
1 G sales organisation
2 G manager security-role
3 G hr organisation
4 G admin security-role
5 G user security-role
6 G support security-role
7 G talentscout security-role
8 G legaladviser security-role
9 G bandmember security-role
10 G recordproducer security-role
11 G artistdevelopment security-role
12 G songwriter security-role
13 G musician security-role
14 G videoproduction security-role
15 G artist security-role
16 G administrator security-role
17 G manager security-role
18 G participant security-role
19 G administrator security-role
jbmp_id_user
1 U user powellb(a)bland.com powellb
2 U manager rumpoleh(a)bland.com rumpoleh
3 U admin memberb(a)bland.com memberb
4 U shipper dredr(a)bland.com dredr
5 U support dredr(a)bland.com support
101 U powellb powellb(a)bland.com powellb
102 U rumpoleh rumpoleh(a)bland.com rumpoleh
103 U memberb memberb(a)bland.com memberb
104 U dredr dredr(a)bland.com dredr
105 U harrisr harrisr(a)bland.com harrisr
106 U lennonj lennonj(a)bland.com lennonj
107 U hendrixj hendrixj(a)bland.com hendrixj
108 U welleso welleso(a)bland.com welleso
109 U monetc monetc(a)bland.com monetc
110 U admin admin(a)bland.com admin
111 U manager manager(a)bland.com manager
jbmp_id_membership
52 M 1 1
45 M 1 5
51 M 2 1
41 M 2 2
50 M 2 3
42 M 2 4
44 M 2 5
49 M 3 3
43 M 3 4
48 M 3 5
46 M 4 3
47 M 4 5
53 M 5 1
54 M 5 2
55 M 5 3
56 M 5 4
57 M 5 5
72 M 101 15
58 M 101 16
73 M 102 15
59 M 102 16
74 M 103 15
60 M 103 16
75 M 104 15
61 M 104 16
76 M 105 15
62 M 105 16
77 M 106 15
63 M 106 16
78 M 107 15
64 M 107 16
79 M 108 15
65 M 108 16
80 M 109 15
66 M 109 16
71 M 110 15
69 M 110 16
67 M 110 16
70 M 111 15
68 M 111 16
userid 1 to 5 can login, the rest cant in jboss 4.2.2 jbpm-3.3.0 mysql. please someone tell me why?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199348#4199348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199348
17 years, 3 months
[JBoss AOP] - javax.naming.NoInitialContextException: Cannot instantiate c
by arpitgadle
Hi All,
I am getting the follwing exception after running my simple stateless bean client.
javax.naming.NoInitialContextException:
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
Here is my configuration
Java 6.0
Tomcat 5.5
JBoss 4.0.3SP1
And i have set the environment variable CLASS PATH to
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\lib\concurrent.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\lib\jboss-common.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\lib\commons-httpclient.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\client\jboss-j2ee.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\server\all\lib\jboss.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\server\all\lib\jboss-remoting.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\server\all\lib\jboss-transaction.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\server\all\lib\jboss-jnpserver.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\server\all\deploy\jboss-aop.deployer\jboss-aop.jar;
H:\jboss-4.0.3SP1\jboss-4.0.3SP1\server\all\deploy\jboss-aop.deployer\jboss-aspect-library.jar;
Kindly help me out
Bye
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199344#4199344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199344
17 years, 3 months
[Remoting] - Re: JBoss Remoting and compression
by doychin
In order to allow compression to work with EJB 2.x invocations I created my own Compression marshaller and unmarshaller which descend from original classes.
The default constructor for both classes now call the constructor that takes one parameter of type Marshaller/UnMarshaller with new InvocationMarshaller()/InvocationUnMarshaller().
I also did new versions of read/write methods which I use to test different variants for calling GZip streams.
>From my experiments I can tell that switching
oos.flush(); and gzos.finish();
does not help.
I'm still getting exceptions for incorrect version in the stream. But I also found a solution which is in the code below.
In order to workaround the other problem with OutOfMemory exception I created new GZip input/output stream classes that descend from the original Java classes.
in my Output stream I added new finish method
public void finish() throws IOException
| {
| super.finish();
| def.end(); // This will release all resources used by zlib
| }
| }
in the input stream I added new method
public void end() throws IOException
| {
| while (available() > 0) { // This tell the gzip input stream to read the extra trailer put by finish method in output stream. This all removes the need to use buffered stream like in 2.x branch
| read();
| }
| inf.end();
| }
|
and I call this new method at the end of read method.
this way I can use original java GZip classes without having to relay on external libraries.
- inf and def are protected fields in Java 1.5 and 1.6
If you want I can provide you with full source code so you can use it to create the necessary updates in 2.x and 2.2 branches.
Doychin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199342#4199342
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199342
17 years, 3 months