I have loaded down JEE 1.4 I want to integrate web services with a current application. The current aplication is compile using java compiler 1.4. I run wscompile to create the stubs and it uses java compiler 1.5. So when I try to compile to integrate the two applicaitons I get compiler errors ...
430 byte By
jonnya at 2007-11-27 7:06:08
Hi,I encountered this question and was confused abt the answerWhat do EJB containers NOT provide? 1)Automated support for transaction management 2)Selecting application behavior at assembly or deployment time 3)Support for life-cycle management of EJB components 4)Bean lookup services ...
I am trying to send a mail using java but i keep reciving the following erro java.net.SocketException: Connection resetjavax.mail.MessagingException: Exception reading response;here is my code public void sendMail(String from, String to, String cc, String bcc, String subject, String body) ...
Hi all,I am trying to install "java_ee_sdk-5_01-windows" on windows vista and i am getting installation wizard open and with messageunsupported installation platform detectedyou are currectly attempting to install this product on an unsupported platform and/or patch level.For a list of ...
On Page 342 Core EJB Specs:If the client request is associated with a transaction T1, and the instance is not associated with a transaction, the container suspends the client抯 transaction association and invokes the method with an unspecified transaction context. The container resumes the ...
I downloaded javaeetutorial5 tutorial from this URL.https://sdlc1a.sun.com/ECom/EComActionServlet;jsessionid=5874F5CFDFC12A3F5217CEA1ED76E76CAnd followed the steps to create the web service as mentioned here. http://java.sun.com/javaee/5/docs/tutorial/doc/JAXWS3.html#wp79980But I couldn't make ...
import java.io.*;import java.util.*;import javax.mail.*;import javax.mail.internet.*;import java.util.*;import org.apache.axis.AxisFault;public class Sample {//mail session state related private String m_Username; private String m_PostOfficeHost; private Session m_MailSession; private Store ...
Hi,i'm new to EJB.plz solve my problem Regarding NameNotFoundEXceptioni used Netbeans IDE with J2EE server 8.2.i want to simply print Hello through Session bean.bt i got error when i run my client programcode of interfaces class file and client code is given below.Home interfacepackage ...
I am getting this exception , while my application is trying to send mails. The complete stack trace is belowcom.bp.ebus.downstream.util.ErrorLevelException: javax.mail.MessagingException: 452 4.4.5 Insufficient disk space; try againlaterat ...
380 byte By
Rajessha at 2007-11-27 7:09:51
I am sending email with some custom value set in the email header from my application. When the email get bounced back I am not able to get the custom value from the bounced mail.I think the SMTP server remove the header before it send the bounce message to the sender.Is there any way to get ...
400 byte By
sri1025a at 2007-11-27 7:10:25
I'm trying out a web service client for this web service: http://ws.strikeiron.com/relauto/iplookup?WSDLI have downloaded Apache Axis 2-1.2 version. What are the steps that I need to follow to create the sample client?I'm assuming:1) Use the wsdl2java program to generate the Java classes for ...
844 byte By
vAaka at 2007-11-27 7:10:29
Hi,In different tutorials I read that a message-driven bean which uses a Topic as destination, should exist before any message is send to this topic if it wants to receive this message.However, if I use some print statements, I get the following:PostMessage, before ...
269 byte By
kfaziusa at 2007-11-27 7:11:37
Hi allMaybe it's stupid question, but I'd like to know what is the difference between local and global JNDI. I found this during my EJB3 investigation. I can't find it in any doc, so I ask you as experts :) I hope you'll help me. Thank you in advance.
I have a tricky question here.1).I have an XML that is generated on the fly.XML Generated-Document genereatedDoc =<Trade><Level>10 </Level><Sty> .5 </Sty></Trade>2).I have to add the above XML generated in between another XML document-Main XML ...
OK here are my properties, obviously username etc coveredproperties.setProperty("protocol","smtp");properties.setProperty("type","transport");properties.setProperty("class","com.sun.mail.smtp.SMTPTransport");properties.setProperty("vendor","Sun Microsystems, ...
I have an input coming from xml file.I have to read that input and validate the input against sql injections and scripts.I require help now how to read this xml data and validate against the above two options.I am a java developer.in this context what is marshelling?plz provide the ...
2777 byte By
Tensitaa at 2007-11-27 7:27:21
Hi, im followed all the steps from this site: http://developers.sun.com/jsenterprise/reference/techart/jse8/jasper_reports.html#1 And now Im trying the firts example, I've changed the path of reportSource and ReportDest but I get this error message: net.sf.jasperreports.engine.JRException: ...
Hey all, I was doing some R&D and I have to find out whether JAVA will be continuing its interest in JSF or will they be more interested in enhancing Java FX. I hope some one can answer this question in detail.Thank you !
365 byte By
Ovea at 2007-11-27 7:31:26
two weblogic servers (WL1 & WL2). MDB deployed in WL1. Mesaages will be posted in JMS server of WL2. My requirement is MDB will listen to these messages posted in WL2. How can i implement this using foreign JMS server? or any other idea? or online sample application or materials or ...
Hi Everyone...Please help me to sort out this problem...I am getting this Exception while executing the code pasted below...javax.mail.AuthenticationFailedExceptionat javax.mail.Service.connect(Service.java:306)at javax.mail.Service.connect(Service.java:156)at ...
393 byte By
mbazsa at 2007-11-27 7:32:11
Hi,I've written a client that uses Web Start, but Web Start technology doesn't fit my needs (it's hard to write console appclient as I see)I'd like to know how could I access my EJB's from a simple client application. How can I address them, through JNDI? Does it need programming ...
Hi i had one quick questions in java mailI had sucessfully sent E-Mail but i need to display my organization name in the from Address instead of my from-email ide.g., instead of display aa@yahoo.co.in -- AA EnterprisesWhether it is possbileHlp meVery urgentRegardsMarimuthu ...
I'm using Java mail API to send mails to our customers.My problem is that i don't want to display the Name in received header or it should display of my choice.Please help me out.Thanks.
Hello,I'm not able to find solution to this problem:I have XML document (lets say doc.xml) and it's schema (doc.xsd). doc.xml consist of elements (XML fragment) that represents templates, that are to be edited by user in raw form (user edits pure XML - tags, attributes, etc). And after user ...
Hey all, I was doing some R&D and I have to find out whether JAVA will be continuing its interest in JSF or will they be more interested in enhancing Java FX. I hope some one can answer this question in detail.Thank you !
390 byte By
Antsa at 2007-11-27 7:33:51
Hi All, I have a xml file which looks like <languages><c>10</c><java>1.5</java><vb>7</vb> </languages> now i have to parse the xml and update the value of <java> tag to 1.6,can anyone please provide the code snippet for above ...
683 byte By
robl29a at 2007-11-27 7:34:16
I have the following interface for the webservice:public interface DocumentProvider extends Remote {public void deleteDocument(String documentId) throwsRemoteException;}I use the wscompile command to generate the wsdl file and it creates a complex type like this:<complexType ...
I use Java mail based mail packages, Spring and Seam, to send email out. Followed the normal procedure, the email seems to be sent. But, the recipient never received the email. I am wondering how I can debug the problem. The SMTP host is configured to the local cable email host and it is ...
710 byte By
araoa at 2007-11-27 7:35:47
Hello I have created an EJB project and a client to access this EJB.I am using Eclipse SDK 3.2.2 and Weblogic 9.2In my client I have the code Properties prop = new Properties(); prop.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); ...
Hi,I am using SAP NetWeaver Application server and it supports JavaMail 1.3 . For my application , I need to use JavaMail 1.4 and support gave the idea how to add 1.4 library. However, I am getting the ...
131 byte By
MAYAa at 2007-11-27 7:37:36
Hi,I have all my emails in a .msg file under a backup directory. How can i read it using JavaMailAPI?. Thanks.
Hi, I want to know the name default SMTP server configured in machine. How i can get this through my java code.Help me on this
Hi all,I'm new to JMS and I've been asked to send an xml file to a IBM MQ series message queue.I need to send this message from an application running on a tomcat webserver.Basically, what packages do I need to start with that?Is that possible without installing an MQ client on the ...
Hello everyone,I have 3 entity classes:@Entity@Table(name="CUSTOMER")public class Customerent implements Serializable {.................................................}@Entity@Table(name="ITEMS")..................public class Iteamdetailsent implements ...
Hi all,i am running a working application on 2 windows enviroments using jdk1.3 . One of the enviroment is working fine but the other throws a "Bad file descriptor" while trying to read the manifest.from jar files. Those jar files are the same.what could be the problem ? ...
The requirement is like Dot net environment needs to call a webservice to access mails of a certain user from java mail.I wrote a webservice that connects to IMAP and able to fetch certain message details. The webservice returns a string(say resultString) which includes details like From, Size, ...
hiits very silly question i dont know how to check the object is null or not.this is my code snippet,Query query=em.createQuery("select u from Users u where u.firstname = :username and u.password = :password"); query.setParameter("username",username); query.setParameter("password",passwd); ...
187 byte By
revevera at 2007-11-27 7:40:51
We have a DataCollector which collects and stores data periodically. So this class should have only one instance (or else data will be duplicated in the DB).Anyone any idea?
1684 byte By
dg4a at 2007-11-27 7:41:09
when I try to run this application (simplemessage) using netbeans5.5 and sun application server 9 I get a NameNotFound Exception with following message 14-Jun-2007 13:04:39 com.sun.enterprise.naming.NamingManagerImpl bindObjectsSEVERE: NAM0008 : Invalid Destination: jms/Queue for ...
12963 byte By
Gantua at 2007-11-27 7:41:15
Hi,I have some problem in integrating EJB into JSF.I have Entity class Car.javaAnd Session CarSessionBean.java which implements @Local and @Remote interfaces.Than i have BackingBean.java which i am trying to integrate into JSF.When I am running the program i got following error:JSF1001: ...
I have a function which returns an array of byte? How do I declare an array in Web services.
1210 byte By
newbeana at 2007-11-27 7:43:01
Hi All,My problem is i had resultset from database and i want to display it as drop down.By default it should show the actual database value for that field also user should be able to change it by selecting from drop down. What is happening is it is by default displaying the last value from the ...
Hi,I would like to know if it is possible to send a message on a public Queue, after explicitly indicating who is able to extract it, so that any other client (malicious or not) would not be able to read it.Thank's
4715 byte By
roger_sa at 2007-11-27 7:46:15
Hi,I've followed the example on the link below in order to use Hashtable in my classes. http://weblogs.java.net/blog/kohsuke/archive/2005/04/xmladapter_in_j.htmlMy classes are below:@XmlAccessorType(XmlAccessType.FIELD)@XmlRootElementPublic class ...
Dear Friends,I have created a JAVA SOURCE in PL/SQL (Oracle 9.2.0.5) to send mail in oracle. But when i compile the source code, it prompts me with a message:Warning: Java created with compilation errors.When I use Show Errors, it show:SQL> show errors java source "SendMail"Errors for JAVA ...
This are my codes on my jsp page for sending out an email. <%@ page language = "java" ...
518 byte By
vAaka at 2007-11-27 7:48:21
Hi,Can somebody please help me with the following question.Why is it that when we want to use a ejb from within another ejb, we use interfaces to acces/find this other bean, and not just an object?I have some thoughts on it, like:* does it support lazy creation?* does it deliver the possibility ...
Our web services are changing from RPC-literal WSDL to a DOC-literal WSDL what do clients of our services have to complete? I assume that the client have to recompile with the new DOC-literal binding so that the correct client code gets built? Is this a correct assumption. Or does the client ...
458 byte By
boske3a at 2007-11-27 7:49:29
I have a problem.I want to send mail to different email addresses but to attach only one txt file to one email address.For example: on mail1@somemail.com to attach xx1.txt on mail2@somemail.com to attach xx2.txtand so on.Also i want to automaticly attach these files from some standard folder ...
hi every one ,please I need -as quickly as possible- J2SE code that establish a connection with gmail server (pop3 and smtp) .......... just establishmentthanks for your helping