[JBoss Messaging] - JBoss Installer or Zip?
by rtm333
Dear All,
We have installed JBoss 4.0.5.GA from the zip (jboss-4.0.5.GA.zip) and with the installers (jems-installer-1.2.0.BETA3.jar and jems-installer-1.2.0.CR1.jar). All three (server/default) installations are different. The results from the installers differ only slightly (e.g. in-memory transaction manager). But the results from unpacking the zip seems to be totally different. The files in the zip are dated from 23.10.2006, while the files in the installers are from 17.10.2006. Over 200 files are changed in size and content.
Will the Messaging installation continue to support both AS installations in the future? I remember one case where a Messaging (pre-)release did not work properly with the AS installer variant (when it still was a jboss-installer and not a jems-installer).
The problem with this is, that to install our own application based on the Messaging configuration, we have to modify some configuration files from the installation. This is rather difficult to achieve automatically, if the original files differ depending on the way they have been installed.
Can someone please give some guidance for the recommended and future-proof way to install JBoss AS? We do not make use of the advanced features (e.g. EJB3) that are only available with the installer.
Any comments welcome.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002765#4002765
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002765
19 years, 3 months
[EJB 3.0] - Re: ClassCastException in Stateful Session-Bean
by te-bachi
Ahh... ok! Remote Interface don't work, but Local Interface does!
| import org.jboss.tutorial.stateful.bean.ShoppingCart;
|
| import javax.servlet.http.HttpServlet;
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpServletResponse;
| import javax.servlet.ServletException;
| import javax.naming.InitialContext;
| import javax.naming.NamingException;
| import java.io.IOException;
| import java.io.PrintWriter;
| import java.util.HashMap;
|
| public class TestServlet extends HttpServlet {
|
| protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
| process(request, response);
| }
|
| protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
| process(request, response);
| }
|
| private void process(HttpServletRequest request, HttpServletResponse response) throws IOException {
| PrintWriter out = response.getWriter();
|
| try {
| InitialContext ctx = new InitialContext();
| ShoppingCart shoppingCart = (ShoppingCart) ctx.lookup("MyApplication/ShoppingCartBean/local");
| out.println("Buying 1 memory stick");
| shoppingCart.buy("Memory stick", 1);
| out.println("Buying another memory stick");
| shoppingCart.buy("Memory stick", 1);
|
| out.println("Buying a laptop");
| shoppingCart.buy("Laptop", 1);
|
| out.println("Print cart:");
| HashMap<String, Integer> fullCart = shoppingCart.getCartContents();
| for (String product : fullCart.keySet()) {
| out.println(fullCart.get(product) + " " + product);
| }
|
| out.println("Checkout");
| shoppingCart.checkout();
|
| out.println("Should throw an object not found exception by invoking on cart after @Remove method");
| try {
| shoppingCart.getCartContents();
| }
| catch (Exception e) {
| out.println("Successfully caught no such object exception.");
| }
| } catch (NamingException e) {
| out.println("Exception: " + e.getMessage());
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002764#4002764
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002764
19 years, 3 months