Now the project development uses GLASSFISH4 to do the server, has tested several Web project to have the problem, each time edits the source code after the page cannot follow the latest edits the good code display.Once you rerun the Web project, you see publish on the server, and the newly edited code is clicked, and the code that runs the newly edited GlassFish is not restarted, but publish.Prior to learning, development are used Apache Tomcat,
Integration of rails and Java EE
The following is an introduction to the integration of rails and Java EE on the GlassFish v3. GlassFish V3 is the next version of GlassFish V2, focusing on modularity and making it possible to run containers and modules that are not Java EE.
Here is a detailed description of the details:
1. Using JRuby 1.1 (Install rails), foll
Struts2 upload file based on Apache FileUpload components, after importing FileUpload, small file upload is normal, but upload large files but found that there is a limit of 2M bytes, query struts2 official information to be modified struts.xml to set, Set it to 20M by pretending to adjust it.
The problem should have ended, but found that Glassfish also has the Max Post Size limit, so also modified, after restarting the application server, upl
Label:1. Browser input: http://localhost:4848 log in to the GlassFish domain management console, the default user name and password is Amin and Adminadmin. (You can also view the Domain management control center by using the NetBeans Service tab-server--glassfishserver--right-click)2. Create a new database connection pool;3. Create a new JDBC resource, enter the Jndi name, and select the connection pool you just created. of course, if you use NetBeans
GlassfishServer is not widely used in China. It is difficult to find a Chinese post on the Internet if you have any questions. You can search for many answers in English. One of my own development projects uses glassfishV3To deploy the EJB application. The client uses wing to call the remote interface service. Many problems were encountered in the process, and finally the project was finally completed.
If you want your glassfish server to run on the
Take the login project as an example:
Directory structure:
Login
|
| --- Index. jsp
| --- Page. jsp
| --- WEB-INF/
| --- Web. xml
| --- Faces-config.xml
| --- Classes/
Web. xml: The Web container configuration file. You must configure the servler class, mapping, and welcome-list.
Faces-config.xml: Configure navigation rules
Classes/: stores. class files.
Deployment:
1. Switch to login/
2. Execute jar CVF login. War.
3. Copy the. War file to the
Last month we introduced javaee 6 to include jsr330 and jsr299. Roger kitain wrote a blog postDescribes how to use jcdi (JSR 299, ex-webbeans) in glassfish ). InArticleThe following example shows how to use JSR 2.0/JSR 299 for encoding. You will see some annotations that comply with the JSR specifications:@ Inject,@ Qualifier,@ Sessionscoped,@ Applicationscoped.
How can you try this example? I recommend you use netbeans 6.8 M1And the lates
Idea start Error: and cannot deploy Web projectProblems found loading plugins:Plugin "GlassFish Integration" was wasn't loaded:required Plugin "Java ee:ejb, JPA, Servlets" is disabled.The reason for this is the illegal closure of idea.Need to find a folder to install Idea scan to find Disabled_plugins.txtDelete this folder and restart itProblems found loading plugins:plugin "GlassFish integration" was not l
In the last month we introduced Java EE 6 will include JSR330 and JSR299. Roger Kitain wrote a blog post about how to use JCDI in Glassfish (JSR 299, Ex-webbeans). In the article, he describes how to use JSR 299/JSR 330 to encode with a JSF 2.0 guess number example. You will see some annotations that meet the JSR specification: @Inject, @Qualifier, @SessionScoped, @ApplicationScoped.
How do you want to try this example, I recommend that yo
Security is important for an enterprise environment. In the Java EE 5/glassfish environment, you can implement security in the following ways:
Transport Layer Security (TLS)/Secure Sockets Layer (SSL) technology
Authentication (authentication) and authorization (Authorization)
Message-Layer Security (for WEB services in GlassFish only)
This article discusses authentication and authorization. References
:
JMS Messaging for Asynchronous integration
Web Services engine (JAX-WS and/or JAX-RS)
Management capabilities like JMX and a scripted administration interface
Advanced Security, e.g Out-of-the-box integration and 3rd party directories
EAR file instead of ' only ' WAR file support
All of the other "great" Java EE features I can ' t remember:-)
GlassfishOracle develops an official Java container that supports the latest features and has its own web container (no
Tomcat, open source, is just a servlet JSP container.JBoss, open source, is a Java EE application Server, container support servlet, JSP, EJB,JMS and so on. Stable and implementation of all the Java EE API, document Rich.GlassFish, open source, is also a Java EE application Server, support Servlet, JSP, EJB,JMS, etc., start fast, and hot deployment ability is more convenient.WebSphere, WebLogic, closed source software.Comparison of various JEE servers, Tomcat, JBoss,
First, explain what jvm-options can do, and simply say that you can pass parameters while the program is running. Similar to the configuration file, but there is no way to configure the configuration file, you can only use this method.1. Start Gf,start-domain2. Create Jvm-optionsCreate-jvm-options-da= ' true 'create-jvm-options-db= ' abc 'Create-jvm-options-dc= ' 10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3} 'Attention:-D directly after the parameter name;If there are special characters in the string, suc
Software Requirements
To create an EJB 3.0 application build environment, you need to use the following items:
GlassFish v2 b58d
NetBeans IDE 6.0 Nightly from 03.09.2007
Apache Maven 2.0.7
Mevenide2-netbeans plug-ins (NetBeans, MAVEN2 project support)
Assume that the above software is fully installed and functioning properly. The software installation method is to extract the files into the selected directory.
To install the NetBeans MAVEN2 Pro
GlassFish forget the Administrator password resolution 2010-04-21 17:18
Http://hi.baidu.com/5shuang/blog/item/76e3ecfaa7e865d8b58f31d1.htmlMethod One: If the existing domain does not have what you need, delete the existing domain and recreate a domain. If you don't like this approach, see method Two.%sjsas_home%\bin\asadmin Delete-domain domain1%sjsas_home%\bin\asadmin create-domain--adminport 4848 domain1
From now on, remember to create a
Jet Robot (Jet Robot) game released Jet robot is a casual flying game, game screen or more interesting, the robot is very cute, click to fly, let the small robot fly higher the better. Game Introduction Jet bot: In this game, you have to use his jet pack to help as high as possible. But flying is not as simple as it looks. Avoid obstacles on the way, as well as avoiding deadly traps, collecting as much fuel as possible and exceeding everything. Post your score to the online High score table and
The Neon City (Neon) released Neon City is a very classic racing mobile phone game, the game has a new racing, cool special effects and beautiful game lighting screen design. Interested in the small partners to download the Neon City hand tour Try it! This is a good game yo! Game Introduction "Neon City" is a beautiful light-screen racing mobile phone games. In this game, you will be a pilot flying a space fighter. This game uses the famous film Tron'
Jdk1.6 official download _ jdk6 official: http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe
Download jdk6 api chm Chinese reference:Jdk6apichinese reference 070114.rar:Http://chinesedocument.com/upimg/soft/jdk6apichinese reference 070114.rarJava SE 6 API Chinese CHM
JDK is the core of the entire Java, including the Java Runtime Environment (Java runtime envirnment), a bunch of Java tools and the Basic Java class library (RT. Jar ). No matter what Java application server is actually built into a certain version of JDK. Therefore, mastering JDK is the first step to learn java well. The most popular JDK is the JDK released by Sun. In addition to sun, many companies and organizations have developed their own JDK, such as JDK developed by IBM and jrocket of Bea,
wocould you say to them?
This is not your father's J2EE!
If you were scared off of J2EE because it seemed too complex, it's time to take another look. if you 've been attracted to alternative technologies such as spring and hibernate, you'll find yourself of the good ideas from those technologies in Java ee 5.
Take a look at Java ee 5, you'll be amazed at how easy it is.
Try it out!Get started with the Java ee 5 Platform Preview:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.