J2EE « J2EE « JSP-Servlet Q&A





1. J2EE war file redeployment changes not reflected    stackoverflow.com

I created the the file index.jsp as below

<form action="" method="POST"><br>
    First Name: <input type="text" name="firstName" size="20"><br>
    Surname: <input type="text" name="surname" size="20"><br>
    <input ...

2. java ee background service    stackoverflow.com

You'll have to excuse me if I'm describing this incorrectly, but essentially I'm trying to get a service-like class to be instantiated just once at server start and to sort of ...

5. a pub-sub example with mdb    coderanch.com

7. Concurrency for MDB's    coderanch.com

Guys, The following lines are from O'Reilly's book, In MDB's concurrency refers to the processing of more than one message at a time. If MDB's could process only a single message at a time, then they would practically be useless in a real-world application because they could not handle heavy message loads. They show a diagram where in three message arrives ...

8. WAR    coderanch.com





10. How MDB works    coderanch.com

11. how to run servlets in J2EE without using war file , please help , urgent    coderanch.com

Hi, Let's assume I browse to here: http://java.sun.com/products/servlet/2.2/javadoc/index.html Where in this API does it tell me how to deploy? This is a Programmer's tool to help write servlets. It doesn't at all help me when I want to deploy my servlet. The unfortunate (or fortunate?) thing about deploying "stuff", is that the actual deployment details are implementation details. In what folder ...

12. Problem in MDB instance !!! Help Needed    coderanch.com

HI My MDB is running in OC4J. Say for EX: it has 10 instances. The MDB is picking the Message from Websphere MQ Asynchronously. The problem is My application is online reservation and the user can reserve the ticket and then immediately cancel that ticket. Reservation is one message and cancellation is another message. While the MDB is Asynchronously picking ...

14. Java Mail    coderanch.com

15. Java Mail    coderanch.com

16. javax.mail.MessagingException: [EOF]    coderanch.com





18. Html mail with dynamic contents    coderanch.com

An email is not a web page - it is created when the email is sent, not when it is opened. So any content is static as of the moment you add it to the mail. What you can do is include images that will be resolved at viewing time; if the src attribute of those images points to something on ...

19. is MDB a MOM?    coderanch.com

20. running servlets in weblogic 9.1    coderanch.com

23. Multiple war in an ear file    coderanch.com

24. Can 2 ear files talk to each other    coderanch.com

25. packaging EAR    coderanch.com

hi, this question may be very silly. I have a class say ClassX which referred in my web application module as well as ejb module. But my ejb module (ejb.jar) and web application module(web.war) are both packaged in same ear. Do I need to add ClassX in both war and jar separately? Because both war and jar are finally added in ...

27. Service Layer in J2EE??    coderanch.com

28. MDB Projects and non MDB classes    coderanch.com

29. J2EE war structure    coderanch.com

30. weblogic java:comp question    coderanch.com

31. @RunAs doesn't work with MDB    coderanch.com

32. Problem securing a web service    coderanch.com

33. EAR Files?    coderanch.com

35. MDB - Queue vs Topic    coderanch.com

36. CMT and Connection Objects    coderanch.com

@TransactionAttribute(TransactionAttributeType.REQUIRED) public void someMethod(...) { // obtain con1 and con2 connection objects con1 = ...; con2 = ...; stmt1 = con1.createStatement(); stmt2 = con2.createStatement(); // // Perform some updates on con1 and con2. The container // automatically enlists con1 and con2 with the container- // managed transaction. // } As we have specified TransactionAttributeType.REQUIRED, container will start a transaction (i guess ...

37. Regarding WAR & EAR    coderanch.com

Hi All, I remember that in many J2EE applications, we have a web server, app server and DB call finally. I have a set of questions here... 1. Why do we need 2 servers on the first hand? 2. What is the difference between a web server and an app server? 3. What is the exact flow of request and response ...

38. javax.xml.ws.Service problem    coderanch.com

39. CMT setRollbackOnly(), RollabackException    coderanch.com

[P-189] of EJB3 In Action: "In case of transactions propagated from the client, if our method indicates that the transaction should be rolled back, the container will not only roll back the whole transaction but will also throw a javax.transaction.RollbackException back to the client." a) I tested this scenario, the container is not throwing RollbackException.Moreover nothing of this sort is written ...

40. Adding new Callback method to MDB    coderanch.com

41. Persistent queue email mimemessages    coderanch.com

Hello Im working on a school project with java EE and hibernate. In my project i use a couple of EJB with have the option to send and recieve emails. There is a seperation between the beans who create the mail and the one actually using transport to send it. There are a couple of reasons why I choose to use ...

46. access one EAR from another EAR    coderanch.com

Currently I have an "app1.ear" deployer to server. If I deploy another "app2.ear" to the same server. I want the code in app1.ear to access code in app2.ear, for example, from app1.ear code I want to call an action in app2.ear and display a jsp bundled in app2.ear. Is this doable ? Do I have to bundle app2.ear together with app1.ear ...

47. Example to write MDB Application    coderanch.com

48. Can MDB listen to multiple topics    coderanch.com

HI I have one basic doubt, can a Message Driven Bean Subscribe to more than One topic, I am thinking of solution, where we have different kind of messages which are sent to different topics( which I can replace by Queues also). Now, I have few MDB's for different user group, and each user group have their own choice of message ...

51. Implementation of MDB with weblogic ?    coderanch.com

52. Email Attachment location    coderanch.com

53. MDB Listenign to remote queue    coderanch.com

Alrighty, so this problem appears to be a configuring issue in the weblogic server. The server the MDB is on has to know where the queues are. You can configure this throught the admin console ->system mod->foreign server. Now to figure out how to configure this correctly... Any experts out there in this area? I'm confused on what goes in the ...

54. releasing connection in CMT    coderanch.com

56. UserTransaction in CMT    coderanch.com

What I meant was what is the point of defining a method with a "not supported" transaction attribute, then start a transaction in the method itself? OK, this will suspend any client transaction before starting your own transaction but I can't think of a reason why you might want to have behaviour like that? I am calling the method updateUser - ...

58. MDB ack    coderanch.com

59. Controlling an MDB task    coderanch.com

Hi All, In my application i have an option for the user to select few inputs and based on the input report will be generation. This report generation is a big task and it can take hours for completion to generate a single report. In the above scenario the user inputs entered are wrapped in a JMS message object and pushed ...

60. Example of service-activator?    coderanch.com

I have a program that uses spring and jms to load messages into a queue. Now I'd like to read them from that queue using a service activator. Try as I might, I'm having no luck at all. The symptom is that the service class doesn't see the queue/or is looking at the wrong queue. I know the service's constructor is ...

62. Java Messaging Service    coderanch.com

63. AutoCummit the Unit of Work inside CMT    coderanch.com

64. Enable Mailing services    coderanch.com

65. i'm trying to create a webservice using netbeans 6.8 for weblogic 10.3.2 and J2EE 5    coderanch.com

my questions is about the wsdl file, because when I use my wsdl file to create an ejb jar project in netbeans 1 of the 3 wsdl operations gets ignored.... [code]

66. Portable EAR    coderanch.com

68. how we create a war file in j2ee    coderanch.com

69. TransactionType in BMT    coderanch.com

70. MDB question    coderanch.com

71. MDB Question in clustered environment    coderanch.com

Hi, Our system (EJB2.1) is deployed in a clustered environment (WAS Network Deployment 6.1), as the attached image illustrated: 1. Same ear file is deployed to two nodes which is on different physical machine. 2. The web server distribute the incoming HTTP request to different node. 3. For every node, the war file and EJB are within one JVM and web ...

72. Weblogic Mbean over JMX    coderanch.com

73. a MDB question    coderanch.com

74. webservice dropping a method and field from my object    coderanch.com

I have a service that retieves an Employee object and a CheckIn object, both are POJO and straight forward. The Employee object returns everything like it should and the CheckIn drops the Integer field checkinID and the get/set methods for that field, I have no clue as to why this would happen. I am new to the webservice stuff and really ...

76. Add service in Enterprise Application    coderanch.com

Hi! Background history: I have some experience in Java SE programming, but I am new to Java EE. I have decided to learn, and thus followed this excellent guide: guide In the application that you get to create in the guide you can add messages and list them. I also figured out how to be able to remove them and how ...

77. Dynamic Web Project in Websphere 7 (RSA 8)    coderanch.com

Hi, i have created a servlet class with doGet()/doPost() methods and a jsp file. I need to populate this JSP with dropdown list data from the database. All i have is a dropdown box on the jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

78. need an ebj ear sample file    coderanch.com

79. Websphere 6.1 and JEE 2.5 compatibility    coderanch.com

82. MDB : dynamic selector    coderanch.com

Hello, I have several servers running the same code but each handling specific messages (they are spread by geographical area and must should treat all messages related to their area) I thought to use a single queue and a message selector to filter the different message. The question is: how to write Java code and deployment plan so that the selector ...

83. CMT or BMT ?    coderanch.com

Hi, I have a question with regards to the usage of CMT and BMT in terms of managing transactions in the web application. I have always felt CMT is safer to use and less work so always would choose CMT in my applications. Are there any drawbacks in using CMT? In what situations one would choose BMT over CMT? Thanks Shanika ...

84. Tranaction problem in CMT based MDB 3.0    coderanch.com

85. Web service binding WID7 Problem    coderanch.com

Hi , I have an problem when I,m trying to communicate with the HTMJAXWSService in Websphere Process Server, I've already connect with the default profile using Derby and it works. Now I configured a new profile with the process tables in Oracle, but it' doesn't work and I don't find anything about. One of the file log incidents throws java.sql.SQLSyntaxErrorException: ORA-00918: ...