Hello Experts,am generating an xml file through a java program using javax.xml.parsers.Following is the format of file (say for eg) generated when i see in notepad<root><tag1>val1</tag1><tag2>val2</tag2></root>which is not required. I want the file to be in ...
Hello,Any body know how to run the EJB program in NetBean.I am using Application server 8.1 and NetBean IDE 5.5.1.While running the source code of EJB(available at http://www.netbeans.org/kb/55/ejb30.html)its giving the deployment discriptor build.xml not found error.How to solve this one.Pls ...
Hi All ,I am using ejb3 along with JBoss 4.2.0 , Java5 and Oracle Toplink as the persistence provider and Oracle 10g . After having deployed my datasource successfully , when I deploy my ear file , I get this error :Please help me out .11:17:51,078 WARN [ServiceController] Problem creating ...
229 byte By
Vansha at 2007-11-27 9:43:51
Hi to all,I m new in EJB i want to how to create first ejb program n how to deploy it on weblogic server also how to run it ? please send me good link for EJB.Expecting for favorable reply Vansh
Hi all,I post data to a server and get response[in xml] back like thisSocket theSock = new Socket(serverhost,80);PrintStream ps = new PrintStream(theSock.getOutputStream()); ps.println("POST /url HTTP/1.0");..SAXBuilder builder = new SAXBuilder(); //==<< get reponseDocument doc = ...
Hi.I'm trying to connect to microsoft Exchange 2007 by using javamail on IMAP.I'm using this code:import java.util.Properties;import javax.mail.Session;import javax.mail.Store;import javax.mail.event.ConnectionEvent;public class MailHandler {/** * @param args */public static void ...
Hi all, In My Enterprise Application I have two EJBs with Local Interafaces.Both the beans are packaged within same EAR.For some functional reason both the beans are dependent on each other i.e. circular dependency.While deployment It shows me following error:Error loading deployment ...
hI GUYSThis is sri, i need to have done an application to send mails programatically, below is the code, can any one fix the bug or give me the code which works fine?Any help will be appreciable!!!!!!Thanks & Regards,Sri.CODEimport java.util.*;import java.sql.*;import javax.mail.*;import ...
363 byte By
txatia at 2007-11-27 9:45:33
Hi,my app has to output an XML file with the results of the process, so I need to create the XML and write it to file.It will be a small XML, and I' ve got the DTD syntax.I use jdk 1.4, and only included libraries.My question is, should I use SAX or DOM? JAXP? how to link with the DTD?Examples ...
Hi GuysIm trying to write a servlet that receives a File and then sends it using JMS.... i have some basic code in place (from examples ive fouond) ...Ive written 2 classes 1) a servlet that receives the file2) a requester that sends the data to the JMS QueueBut there is a couple of things im ...
172 byte By
GYANa at 2007-11-27 9:45:53
Hello to All For creating web service i know abt wsdl , axis not anything elseplz give me some guide line and steps to creating web service from eclips
Hi folks,I am using Kodo for persistence in weblogic 10.0.For data source with (configuration Non-XA , two-phase commit, Global transaction),when enabling transaction Required for my MDBs, i am gettinga class not found exception for my entity class, after all operations.Entity persistence is ...
Hello,I have developed a Webservice Client in Netbeans 5.5 It al works perfect, but how do i change the URL for the ENDpoint or the URL from the webservice?Greetings
Hello Everyone,I am new to Java EE and I am in need of a little assistance. I am in the middle of a JSP tutorial and it is teaching how to apply the <jsp:useBean> tag however I am unsure of where to put my complied bean classes on the server so that it can find them. Is there a special ...
1588 byte By
sat_83a at 2007-11-27 9:49:38
Hi,I have 2 xml files as shown ...
1316 byte By
Solraca at 2007-11-27 9:49:39
I test a simple EJB in OC4J and JBoss, both have problems to use dependecy Injection with EJB. I test dependency injection in a JSF managed bean and.The @EJB(name="application/EJBX/local")run in JBoss and the address of EJB is "application/EJBX/remote or local"To return this object by lookup ...
I have implemented the DummySSLSocketFactory stuff for handling unsinged certs on POP3s ser vers and it works fine, However is I connect to one of these servers before connecting to an IMAPs server I get the following error:javax.mail.MessagingException: java.lang.ClassNotFoundException: ...
can anyone tell me what is the meaning of following error/takeaction.dqlhalfleave= 0.5 Error Message: Operation not allowed after ResultSet closed Cause: null Error code: 0 Error state: S1000 java.sql.SQLException: Operation not allowed after ResultSet closed Error Message: Error during query: ...
I use these program to get the email from my email server:Properties props = System.getProperties(); Session session=Session.getDefaultInstance(props,null);Store store = session.getStore("pop3");store.connect(email_host,username,password);Folder folder = ...
Can I check whether an email has been read?
Hi all,I want to send a html content via email. A html page is having an email link. On clicking the link it should prompt for to address and from address and should send what ever the content in that HTML page as the mail body. Can anybody help me out!!!! Its Urgent...Thank ...
Hi Iam Shishir ,I need to develop an application that sends emails to various email addresses.Is it necessary to install a SMTP mail srever?If so please tell me, where i can get it?I f it is not necessary to install the mail server, then please tell me how to achieve the same objective ?I am ...
245 byte By
p2auljra at 2007-11-27 9:54:15
If I have a stateful session bean that has been passivated and uses an extended entitymanager and has a reference to a managed entity, will the managed entity be detached from the extended entitymanager when the session bean is activated?
144 byte By
boske3a at 2007-11-27 9:55:08
Hi i got one problemI need to send about 20 mails with attachments in the same time.Has anyone has idea how to do it.Thanks
1268 byte By
Solraca at 2007-11-27 9:55:24
Hi, i have a questiom from container transaction.If i have a servlet-->businessdelegate-->sessionejb-->entitybean-->databaseWho begin a transaction ? and when the same finally ?/********* Servlet *********/...call... businesDelagate.actions(XXX);/********* BusinessDelegate ...
168 byte By
Sheni_a at 2007-11-27 9:56:20
Hi,How to do string comparison in XSL by ignoring case.test="($pr= 'yes')I want this conditon return true even if pr is Yes or YES or YEs.
Hi all!In EJB 2.1 the initialization was with create (args) methods. NOw, how is it exploited? Create methods are no more there and there must be a way to send parameters to the stateful session bean when it is newly created...isn't it?Thank you!
hi i am facing one problem related the javamail actully i have using one javamail simple class but the thing is that that class is taking 4 parameter from,to,sub,mess so this class i am calling from my servlet handler so in servlet handler i have created the object of this class and passing 4 ...
How can I sign a single xml document with 2 signatures and be able to verify both signatures as well.ThanksAhmad
346 byte By
ticanoa at 2007-11-27 10:00:46
Hello.I have a problem in Servlet for responding for a request.I think I succeeded getting the soap request in my servlet.And I'm stuck in sending my soap response back.Is there anybody tell me exactly how to send my javax.xml.soap.SOAPMessage instance through HttpServletResopnse?Please help ...
is is possible to have 2 connections to 2 different subscribers with 2 different topics at the same time?
1324 byte By
nag1610a at 2007-11-27 10:01:17
I wish to begin a transaction (JTA) in one method of a statefull BMP EJB, call multiple methods from multiple client calls (which could even be JSPs/Servlets initiated by the user from his browser in a session), all the methods are in same transaction and would process the client input in the ...
1223 byte By
jimfixera at 2007-11-27 10:01:34
Hi all,I'm working on sending Turkish email to our customers, notify them that they need to activate their account before using our product. Email should contain a link that customers will click on, and it should be in Turkish. I store all messages in .properties file. MimeMessage message = ...
1104 byte By
Andremona at 2007-11-27 10:02:44
Let's imagine such experiment:1. we have java-program, which receives mail from some POP3 server.this program simple uses something like this:....msgs = folder.getMessages(1,1);folder.fetch(msgs, fp);....2. Let's imagine, that our test POP3 server has bug: in some moment, when our ...
I'm using the below give code to send mail in Trukish language.MimeMessage msg = new MimeMessage(session);msg.setText(message, "utf-8", "html");msg.setFrom(new InternetAddress(from));Transport.send(msg);But my customer says that he gets sometime unreadable characters in mail. I'm not able to ...
I use to log all outgoing mails in a table and this code executes after successfull execution of Transport.send().Some time some of my customers complain that they are not receiving mails while we have logs in our table. Is there any way to get it confirmed that mail has been sent successfully ...
Hi everyone, I'd really appreciate any help on this matter. I'm trying to build a GUI for a web service. I want the GUI to accept input from the user which is converted to a soap request which is then sent to a server to be processed, and a response is sent back. I want to format the response ...
HI,Is it possible to recieve a new email in Lotus Notes from a Java Application? I am trying to write a application which keeps an eye on inbox for any new email. Anyone has idea to do this using Lotus notes API ? Thank you in advance.
683 byte By
bib1a at 2007-11-27 10:06:07
Hi AllMy company decided to send email to nearly 20000 users on a weekly basis.=> I have the list of email address in a database.? How can I send email to so many addresses. I possible cannot make it into a string and put in to address string of javamail.? Any pointers on how to do this ...
5685 byte By
irbia at 2007-11-27 10:06:48
Good MorningI know that there are several posts regarding issues with javamail. I have viewed them for the past hour. While several of them address my issue I have been unable to locate a solution.Bare with me please, I am making this post very thorough. The other threads I have read are ...
161 byte By
bdighea at 2007-11-27 10:07:11
Hi,How can I send VRFY command to verify email address. Is there any api to do this ?Any code examples would help.TIA,- Bharat
By default, it seems JAXB puts the end tag on the second line. For example:<w:Element w:prefix="c" w:name="Person" w:isReference="false"></w:Element>Is there any way to tell the Marshaller to put the end tag on the same line so the output would be: <w:Element w:prefix="c" ...
341 byte By
JChefa at 2007-11-27 10:10:55
Hi,Currently i'm working on a J2EE Project and in that project i generate someHTML reports. Now I want to allow user to save this report as a Excel File.Is that possible to convert HTML file in Excel file? if yes, Which is better to use ? XML or some third party software?Please ...
Dear All, i am using mhsoftware event calendar while sending emails i am facing following error. with smtp authentication true.... DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]And javax.mail.NoSuchProviderException: invalid ...
hi i have one problem in stringbuffer please anyone solve this problem here my code is there about the stringbufferStringBuffer=msg=null; msg.append("Your leave has been successfully sanction from");msg.append( " "+starttime[j-1]+" To "+endtime[j-1]+" "); after that i have passing msg value in one ...
I have deployed ear file in Jboss and trying to run Java client as described in Sless example on one of the glassfish website. It's something like this:Properties props = new Properties();props.setProperty ...
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept ...
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept ...
2843 byte By
jeganspa at 2007-11-27 10:12:13
Hi All,Sorry if this a repetitive question.When I am trying to access a stateless Session bean from a struts Action class, I am getting NullPointerException. It is a very simple application as I am a newbie in EJB. Please see my code below.My Local Interface:@Localpublic interface ...
1096 byte By
J2EEDeva at 2007-11-27 10:12:42
Hello forum,I have an Enterprise Application EAR1 which is security-enabled (means requires username/password to access the application using J2EE security defined in web.xml). On the same WebSphere Application Server I have another EAR2 which is non-secure (means user need not require ...