147 byte By
joelchou at 2007-9-26 4:59:50
When a producer sends messages to a queue, is thereany way to make sure messages have arrived this queue?Thanks,
Hi All,I am trying to transform a 230 meg xml document and it is taking very long too complete. I am using the TransformerFactory etc in the xalan.jar with the new release of the java extensions. Anyone out there have any ideas/advice that they can give me on how to step this transformation up? ...
Hi All,I am using Sax parser (jaxp1.1), I have directed to validate the xml using setValidating(true), even then it is not validating the data against DTD spec. PLease let me know the possible things to be checked.ThanksSathish
899 byte By
eborisow at 2007-9-26 5:01:11
Hi, I am just getting started with the J2EE tutorial and I am running into a problem when I try to perform the ant converter line. I receive the error "Exception in thread "main" java.lang.NoClassDefFoundError: xml." It's obvious that I'm missing a class somewhere, but I'm not sure where. I ...
1052 byte By
ei96041 at 2007-9-26 5:01:26
Hi,I'm integrated in a team that's developing a J2EE aplication using JRun 3.0.We detected a problem with transactions and created a test case to study the problem. The test case consists of a BMP entity bean with Container Managed Transactions (transaction attribute set to "required" to all ...
1793 byte By
ras1292 at 2007-9-26 5:01:46
import java.io.*;import org.xml.sax.*;import org.xml.sax.helpers.DefaultHandler;import javax.xml.parsers.SAXParserFactory; import javax.xml.parsers.ParserConfigurationException;import javax.xml.parsers.SAXParser;public class XMLTest{I am attemping to compile and run a simple program to open ...
348 byte By
jerch at 2007-9-26 5:01:51
Hi...What's the best way to generate an XML document? DOM? simple string manipulation - using StringBuffer? or other ways you know to generate XML document? Note that the XML document is not going to be written to a file. The XML document generated will be send to another program for ...
969 byte By
wookiee at 2007-9-26 5:02:17
I'm returning a ~3200 element HashMap from an EJB call, on the server side, if I check the amount of memory the HashMap is using, it's only about 500K, but on the client side, as it is receiving the HashMap, the Win2K task manager shows the Java process goes from 13 megs to 290 megs and then ...
I have downloaded and installed the j2ee 1.3 beta version in my linux machine with mandrake 8.0.When I use j2eeadmin to add a JMS destination, for example:j2eeadmin -addJmsDestination MyQueue queue(the same as the command in the JMS tutorial)I got the following ...
I have posted to the JBoss list with this, but as usual, it's like beating a dead horse, so I figured I would try here.The problem is that if I hit a JBoss topic with a bunch of large messages at once (let's say one connection, 10 sessions, each session trying to publish a 4MB message to the ...
194 byte By
sabufeb at 2007-9-26 5:03:43
HiMy SMTP server needs authentication and I want to send email with SMTP server Authentication.Could you pls help me with a sample code thankssabu
1549 byte By
auwy29 at 2007-9-26 5:04:45
Dear All,I am a beginner for XML, and I wrote the following XML. but on Internet Explorer, it just output the following all on one line. How will I be able to make it so that it appears one line below another?I would appreciate any hints, or if someone can point me to an example will be ...
HiI'm doing something which I should hope is relatively straightforward. Instead of duplicating lots of code for all my BMP entity beans, I have an abstract base bean class along with a base remote interface which extends EJBObject. Then, I have my actual EJBs bean class extend this abstract ...
thanks!
2374 byte By
auwy29 at 2007-9-26 5:05:35
Dear All,This is my XML document:<?xml version="1.0"?><?xml-stylesheet type="text/css" href="style.css"?><DisruptionsInfo><Title>Disruptions on the London Underground</Title><noService><between><description>The are no service ...
276 byte By
gary_lo at 2007-9-26 5:05:41
Let's say I want to implement a shopping cart using a stateful session bean, how do I go about passing the state of the bean from one jsp to another one? What I mean is that I need to be able to access the same bean (with its original state) from different jsp.
1782 byte By
er824 at 2007-9-26 5:06:19
I'm trying to set uo the j2sdkee1.3 beta on Linux. When I start the server using the command 'j2ee - verbose', I get the following SecurityError. Any advice would be greatly appreciatedBinding : < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No propertie ...
1102 byte By
Omnigunk at 2007-9-26 5:06:51
http://wrox.com/Books/Book_down.asp?section=11_4&isbn=1861002777&subject=&subject_id=Chapter 13 Source Code I can't seem to compile this WebMail.java file. I have TomCat and servlets.jar is in my classpath too running but to no avail! Do u manage to compile and run it? Can u guys ...
446 byte By
leon5wu at 2007-9-26 5:07:23
Hello,I got the following error when I run my program.org.xml.sax.SAXException: System property org.xml.sax.driver not specifiedat org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)at examples.xml.http.StockClient.main(StockClient.java, Compiled Code)I use JAXP API ...
I have a series of URLs that, when I send via a broswer, return a page of XML code. I then write down specfic variables within certain tags, put these variables into a subsequent URL string, and so on until the server recieving the URL has all the information it needs to send me a map. However, ...
How to write the content of a vector to a BLOB columnsince this vector consists of String,Number and BOLB objects.
1864 byte By
pleamon at 2007-9-26 5:08:00
I'm currently having a problem trying to get my java mail sending correctly through Exchange without turning my exchange server into an open spam relay. I only need to send email, there is no receiving involved and the code segment I am using to do so is below. However, the only way I can get ...
Could anyone tell me where JMS technology is used in an application?
How to send mail to a person thru jsp or java code.I can not use mailto of html,i need to do thru jsp or java code.waiting for your urgent response.....Please let me know if i can be of your help.....Thanks........Avanish
Hi to all I have a simple problem with EJB what i wanted is to get the reference of another Enterprise bean I have used this code in my Bean class Context con = new InitialContext()Context enviroment = (Context) con.lookup("java:comp/env/nameofbean");otherBeanHome home = (otherBeanHome) ...
how i can start with j2ee sdk?
Hi all!I have created an entity bean and I want to make connection to a database using specific DAO interface for cloudscape database. I have studied the PetStore example for Data Access Object but can't get it right.The problem is the use of JNDI names. What resource referenses does my bean ...
3398 byte By
jcshroff at 2007-9-26 5:10:04
Hi,I have a problem on writing data into XML files on Win NT/Tomcat platform from a servlet. This problem has been getting on my nerves for the past few weeks now. It was earlier giving a SecurityException: sealing violation error, when trying to write into the XML file using the Transformer ...
332 byte By
kwbeh at 2007-9-26 5:10:26
hi, i would ask that how we write our output (string) to the email we want to send without acknowledgement. I mean backend write the output and send the the userfrom : suker78@hotmail.comto : suker78@hotmail.comsubject : hellomessage : hello...good morningsomething like this ...
3419 byte By
wkwing at 2007-9-26 5:10:59
XML as a CharArrayReader and perform xslt failed.Error should be at java.io.CharArrayReader.ensureOpen I used jaxp's UseStylesheetPI example, installed at C:\jdk1.3\jaxp-1.1\examples\UseStylesheetPIHow can I hardcode a XML and perform ...
463 byte By
igorart7 at 2007-9-26 5:11:30
I want to run Java application on Personal Java. It uses Java Mail API to send & retrieve messages. I think I use some, but not all, classes from mail.jar, pop3.jar, smtp.jar, imap.jar, mailapi.jar.I have 2 approaches:1. Find even smaller version of Java Mail API *.jar.2. Does it make sence ...
My problem isI am making an online reporting site .I am asking user to fill 3 page report one by one .I am keeping all value in session.Here Also checking at every servlet and jsp whether user is valid or not as guest can see the report but can not fill the report.A valid user can upload ...
I am trying write a program to write an xml file in a servlet. I started to write the code but when I try to add a child to an element I get an error. Here is a sample of my code:Namespace ns = Namespace.getNamespace("TestXML", nameSpace);Element root = new Element("Book", ns);Document doc = ...
I am running on NT 4.0 workstation, build 1381 service pack 5. I followed all the steps to launch the j2ee server, using j2ee -verbose, and receive from the system all "normal" messages, including the final message "J2EE server startup complete." However, at that point, I am left with no system ...
Hi Big-Brains, I'm a starter to JMS and have a requirement for implementing a JMS client to exchange data with a remote message broker using https. I'm not sure whether the above statement make sense at all..please bare me.here are my queries :A) JMS is a specification and does not speak ...
287 byte By
dwpic at 2007-9-26 5:13:28
Greetings Everyone!I just wanted to ask if there was anyone here who could point me to a site/place/link where I could get my hands(eyes) on the Class and Sequence Diagrams for the sample "Pet Store" application? (Version 1.1.2)Thanks in advance.Dan P.
374 byte By
arbredh at 2007-9-26 5:13:45
HiI'll admit I'm a bit of a newbie at Java so this might sound pretty simple. I'm trying to find the API docs for the XmlDocument class. I know the class ships in the J2EE SDK bundle and lives in com.sun.xml.tree but I cant find any documentation on it. Any ideas on where i should look for ...
I've coded a generic threadmanager type service component (within an app. server) that instantiates various EJB's dynamically depending on various criteria that I obtain from a database. My code looks something like this - I run each of these type calls in a seperate ...
i have intresting problem ;)my applet read a big xml files and everything is ok.but when i have a problem for example NullPointerException in my applet the parser is crashedhow can i make that the parser will ignore from that kind of problem :)
380 byte By
Aihua at 2007-9-26 5:15:03
Assumed that there is a xml file generated by a Java Servlet:<Book><Author>God</Author><ISBN>1-111</ISBN>.......</Book>How can I get the value of the node "Book/Author" with JavaScript ?In this instance,its value is "God".I am familiar with JavaScript.Could ...
Hello All,I am getting the following error while Remote Debugging EJB in Weblogic Server through JDeveloper 1.2. This error is shown at the Weblogic Server side:<NT Performance Pack> NATIVE: created IoCompletionPort successfully. IoPort=0x00000200 > Thu Jul 26 19:02:45 GMT+05:30 ...
1497 byte By
Anjali_c at 2007-9-26 5:15:38
My server is running on machine1.We have a class Test which implements MessageListener on another machine2./****************/import java.io.*;import javax.jms.*;public class Test implements MessageListener ,Serializable{Test(){ System.out.println("in test()");}public void ...
Hello,i am developing simple bean managed persistence bean. i want to know how could i use microsoft SQL Server as my database with ejb's in J2EE. i don't want to use cloudscape rather i want to connect through jdbc bridge with sql server. can any body help me out ? i have developed DSN for ...
535 byte By
Goku1 at 2007-9-26 5:16:21
Hi I am currently using JBoss 2.2.2 with tomcat and I wanted to know if there were any better application servers out there with good support.I have heard of Orion but when I used it wasnt very well supported (at that time)I want an application server, which is Easy to set up Easy to understand ...
360 byte By
sharma_r at 2007-9-26 5:16:28
I have used java mail API in my program. My folder is single ie INBOX which is opened after verification of id & password. This inbox displays all messages at POP3 server. I have tried using : getUnreadMessageCount(); but this method returns the total mesages and not the new one. please ...
4793 byte By
sabufeb at 2007-9-26 5:16:29
HiI have a yahoo account and I want to send email through yahoo mail server using my java program. My program supports SMTP server authentication. But when I connect to the yahoo mail server(smtp.mail.yahoo.com) I got this error ...
453 byte By
srferoz at 2007-9-26 5:16:51
i am doing data transfer from one db to another.XML serves as transfer format.One of the tools reads the XML and puts the data collected into DB.IBM SAX parser is used.Can anyone say what shall be the time taken to for reading XML and inserting into DB for a record size of 10,000. the current ...
229 byte By
stone123 at 2007-9-26 5:17:44
Hi, allMy company use DOM to parse XML, however we do not want the parser to replace the external entity from the external DTDs. We just want something like "ö" to stay as what it is. How can we do that?
314 byte By
arcf at 2007-9-26 5:18:07
Hi all! Who will prompt?At sending the letter (JavaMail) In the beginning of the letter lines always are located: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit How to avoid it?-Sincerely-Arcarc@must.ru ...
4579 byte By
goddy_g at 2007-9-26 5:19:04
Hi I am trying to display the Database content to the JTable,My Applet will call the Servlet and the Servlet will do the database query, then it will pass the information through the XML format.I find difficulties to dispaly them.my Code is aas followsApplet Codeimport java.awt.*;import ...