Hi all,What is the best way to create XML documents (I have to create it element by element, adding attributes and content manually), having Performance as the main restriction? What are the objects I should use in order to achive the best performance?Thanks in advance.Best ...
Does anyone know of a generic 'Message' object that can be used for many means of communication to a specific individual?i.e.SMTPIRC'Web Message' (the list of messages on a portal)etc.thanks,-D
Hello!I have deployed an enterprise application on Sun Java System Application Server Platform Edition 9.0.I know the server is working and that there is nothing wrong with my application.The admin tool says that the location of my application is: ...
992 byte By
dg4a at 2007-11-27 7:50:59
I've created a message driven bean and two physical resources, a connection Factory resource (jms/SimpleMessageFactory) and a Destination Resource (jms/SimpleMessage) I've deployed them in netbeans5.5 to Sun App Server 9 and can see them under JMS Resources in the app server. When I tried to ...
HiAre there any standard methods in Java 1.5 to create XML file from java bean,i can use JAXB or castor to do so, But i would like to know if there is any thing in java core classes,I have seen XMLEncoder, but this is not what i want.Any
2827 byte By
rcauvina at 2007-11-27 7:51:32
I am experiencing weird behavior in my JavaMail program. At first, mail sending works fine through a remote mail server. After the program has been running for a while, though, it starts trying to send messages through localhost.I am creating my session once as follows and use it and only it ...
314 byte By
toysea at 2007-11-27 7:52:25
Could anyone tell me where can i found quality medium size open source projects that uses EJB? I think the fastest way to learn EJB is reading code. There is alot of open source example for JSP / Servlet on http://sourceforge.net but I cannot find any EJB examples in google or anywhere ...
9482 byte By
SDNJavaa at 2007-11-27 7:52:27
I want to parse log files using the SAX parser. In the log file, at the beginning of the file I have normal text that are not in xml tags, then xml tags, followed by normal text not in xml tags. How do I make my program ignore the normal text not in xml tags in the file and just parse the xml ...
I have two EBs related by a one to many relationship. The first of these tables is called Student and has studentId as its key. The second of the tables has a composite key made up of studentID, courseID and semesterID.However, when the tables are generated in NetBeans 5.5, I find that the ...
How to get control of windows dialog box?I'm writing some httpunit code that traverses a website, and upon clicking a link, a windows prompt box is displayed with a question and yes/no options. How do I gain control of this dialog? I need to click yes here to continue. I tried implementing ...
Hi everybody,I have a question and want to get help from you.one stateless bean and one mdb bean on the same container.Expected stateless bean send message to the queue and mdb get respond by onMessage call simultaneous (ie. one prefer situation send one message and retreive one ...
Hi, thereI have some problem about throw an error ......index.jsp//.....int rowCount=adminLogin.loginResult(userName,password); //....AdminLogin.javaimport java.rmi.RemoteException;import javax.ejb.Remote;@Remotepublic interface AdminLogin {public int loginResult(String userName,String ...
Hi everybodyI had copy the java -email receiving from the internet. It should be work fine. I only read the mail from the inbox in Dos prompt.,Now i want ur help to create a file for each messageWhether it is possible ? How it is possible? Pls Pls ...
I have two related entity beans and I am using a servlet to write persistent data to both of them at the same time. When I populate the first bean, the data persists. However, when calling the relevant method of the second EB's session bean, I get NullPointerException errors but I cannot see ...
I am unable to run the SOAP client and server programs.Can anybody help me by providing some simple soap examples of both client and server and also how to deploy them.
Hello!I created a simple web service (jax-ws) using NetBeans 5.5 and deployed the web service to the Sun Application Server 9. The integrated function of NetBeans for testing web services works fine. I can also access the wsdl through the internet browser. But a soap request using Altova XMLSpy ...
705 byte By
queshawa at 2007-11-27 7:55:22
The javadoc for XPath.evaluate(String, Object, QName) says that the second parameter is the context "node or node list for example". I'm familiar with the concept of an XPath context node. What does it mean to pass a node list as the second argument?With Xalan 2.7 and this ...
900 byte By
pcisara at 2007-11-27 7:55:47
Hi all,got question about giving variables to Beansi'v got LoginForm bean with session scope where user login and 'user' entity is set in this bean. on another page i use bean AccountController (scope=request) to addAccount but i don't now how to give the entity 'user' from LoginForm to ...
2664 byte By
sebbera at 2007-11-27 7:56:36
Hi,i'd like to have to following behaviour:@WebMethodpublic int testMethod(ComplexType ct) {return ct.getProcessor().do(5,5);}/// public class ComplexType {Processor p; // + getter + setter ...}public abstract class Processor {public int do(int a, int b) {}}public class ProcessorA {public int ...
Hi All,I read some of your articles, they are really fascinating. I am bugged with a problem of xml transformation using XSL. I tried at lots of places but i am not able to garner much help. I think you will be able to provide me with some thoughts/solution to this.My problem is as follows.I ...
15322 byte By
OhmKu62a at 2007-11-27 7:58:09
Please help me... Thank you.This is CodeTree.java -- Run This Fileimport java.awt.BorderLayout;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JFrame;import ...
Hi All,i have written code to read a xml file to validate it with schemaand it is running fine with jdk1.5 but when i run the same code using jdk1.6it gives the following exception.Please help me to resolve this problem.Thanks in AdvanceSunny Kumar.org.xml.sax.SAXParseException: cvc-elt.1: ...
I am facing a issue with the mail functionality with JAVA Mailing.The problem is that when I am running the stand alone program it is working fine but when same function is called from a JSP it gives Authentication failed Exception.I am attaching the code with the case.testMail() Is the ...
1049 byte By
Kezmana at 2007-11-27 7:58:58
Hallo,I want to send mails via sendmail.but I get this error if I try to send.The reason can be following :in this company there are 2 mail servers mailext and mailintour smtp server ist mailext but this use the mailint's certificate. (also the name is false) can this be a reason? how can I ...
1630 byte By
bastrala at 2007-11-27 7:59:12
Hello,Here is my problem: I need to access my session bean with a web service endpoint, but I need to keep track of my session bean instance each time I call my Web Service.As I can only use annotation @WebService with a Stateless bean (@Stateless) as an example I tried something like ...
Hi there,I wonder if you could help, I've tried searching the FAQ's and around the internet for a solution to this.When I run the code below I get the following error..javax.mail.MessagingException: Could not connect to SMTP host: 172.20.10.110, port: 25, response: -1I can't seem to find ...
i want to send mail to my inbox(i.e) either it could be yahoo or gmail...when i click on submit button of my web page the contents should go to my inbox ...how is it possible..can u plz help me
OK where to startI created an EE Client that accessed my session beans directly. though I wanted to run this client on the application server command line. So what do i do but copy all the ee Jars from /SUNWappserver/lib/ into the java jre. as well as the ejb jar(not the most sensible thing I ...
I know this is not the best location for submitting this but I think the people who knows the answer can be found here. We are in need of a decent email server (well at least good enough), for using with our application server which will be j2ee 5 compatible but all of the stuff I found are ...
Hi All,I am creating an xml file and validating with schema, problem is that code is running fine with jdk1.5 but giving problem with jdk1.6(error).Please have a glance on the following code to solve problem.org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ...
i'm having problme in make a copy of an entity bean..How can i do this!?For example... i created a user like that:User user = new User(); ("User" is an entuity bean)user.setName("testName");userDAO.create(user);This code runs correctly .. but when i try to copy this entity to another its ...
I've installed apache-tomcat-6.0.10 and jdk1.5.0_12I've set the ENV variables:_RUNJAVA = %JAVA_HOME%\bin\java_RUNJAVAC = %JAVA_HOME%\bin\javac_RUNJAVAW = %JAVA_HOME%\bin\javaw_RUNJDB = %JAVA_HOME%\bin\jdbCATALINA_HOME = d:\apache-tomcat-6.0.10CLASSPATH = ...
I get an NoClassDefFoundError on AccessorOrder when i try to call a webservice from a client.The problem is that i can't found AccessorOrder anywhere, that class dont exists.Any ideas ? java.lang.NoClassDefFoundError: javax/xml/bind/annotation/AccessorOrderat ...
Hi,I am parsing an xml using SAX parser; the contains the character &, so the SAX parser is giving the exception "org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup". I sthere any way that i can parse the xml even it has &,< ...
235 byte By
Reegza at 2007-11-27 8:03:16
Hi guys,Some help please. I am looking for Java Web services developer pack 1.2. Its rather urgent. we have code which requires it. i have tried google without much success.can anyone point out a link?thanks
Hi all,iam about to code a web applciation(Appointment system). It will requie a database, email reminders, and JSP pages. I am not familirar with this Enterprise structure for creating applciations. However for some reason I feel that I am supposed to be using EjB for this. I have 3 different ...
Hi,I am having a problem in running SAAJ client for Axis running on Tomcat. My SAAJ code is as follows;SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection = soapConnectionFactory.createConnection(); MessageFactory factory = ...
Hi All,I am creating an xml file and validating with schema, problem is that code is running fine with jdk1.5 but giving problem with jdk1.6(error).Please have a glance on the following code to solve problem.org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ...
Hi All,Please help me out.I am using AJAX and hence the have to display the response obtained from server in javascript variable on the screen and keep on refreshing it.The problem here is that I am getting the entire XML along with tags as string (or Text) from the server as response and now I ...
I have developed a simple eitity EJB (EJB 2.1) using jdeveloper and OC4J as embedded server. When I try to lookup home interface using a simple java client, I am getting javax.naming.NameNotFoundException: Employees not found. What might be wrong?
3508 byte By
Omesha at 2007-11-27 8:07:04
Hi all,I m new bie to XSLT n transformation. I have written a simple java program that uses the javax.xml.transform and javax.xml.parsers package to transform source file using a XSL file provided. When I excuted the program providing XSLT file that worked fine and transformed the XML but when ...
Dear All ,I am trying to deploy make a simple flow as :Servlet > (invokes) Stateless Bean - > (invokes) Entity Bean(persistence object )But I am unable to deploy this Entity Bean on JBoss 4.xx. I have packed this entity bean as an ear . The persistence.xml has following entries :<?xml ...
In father class here is the annotation:@Entity@Table(name = "CONTENT_MEDIA")@Inheritance(strategy=javax.persistence.InheritanceType.JOINED)@DiscriminatorColumn(name="CONTENT_TYPE", discriminatorType=javax.persistence.DiscriminatorType.INTEGER)@DiscriminatorValue("4")In son class here is the ...
684 byte By
caesara at 2007-11-27 8:07:57
Hi all,Just tap into web service technology recently. I google around and found out that there is MTOM. But if by default, without MTOM enabled, how does JAX-WS handle binary transmission by default?for example: one of my web method@webmethodpublic void upload(byte[] ...
334 byte By
A222a at 2007-11-27 8:08:05
Hi everybodyI am using sun java application server 9.1 and I am getting this warning message when I start the serverjava.util.MissingResourceException: Can't find bundle for base name com.sun.enterprise.jbi.serviceengine.core.LocalStrings, locale fr_FRCan someone help me ...
Hi,I want to invoke a remote object ( exposed by RMI on a different host ) from my EJB container. Is there some preferred way or design pattern for doing this, or should I directly lookup the RMI registry and invoke the methods.
167 byte By
Viplava at 2007-11-27 8:08:35
hi all,where does the statefull session store the state in between multiple methods invocations of the client.In which format it will store
I have a set of data which is dynamic.i.e the no. of rows is unpredictable.So, I want to use a <xsl:for-each . My code looks like:><xsl:for-each select="parent::EC-REPORT/TITLE-HEADER"><fo:block line-height="19pt" font-weight="bold" font-size="10pt" keep-together="always" ...
Hi,How are you doing? I am just try to find a better data structure for my XML Document. My XML Document is typically contains one-2-many nodes with in elements. Check a sample below. <task id="Task1" type="Type1" Name="SomeName"><sub-task id="SomeTask"><action id="SomeAction" ...
2123 byte By
StuDeva at 2007-11-27 8:09:48
Hi,I'm using JavaMail for the first time.My SMTP server has a user Id and password so im usingtransport.connect("esmtp.unwired.com.au","name@unwired.com.au","password");But when I send I get the following exception (i have change the email addres but the one I use is valid):-Exception in ...