web services

447 byte By GuyPrynoskia at 2007-11-27 7:05:51
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 ...

EJB Question

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 ...

Exception reading response

3713 byte By lildavesflavaa at 2007-11-27 7:06:28
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) ...

Problem while installing

935 byte By kumar385a at 2007-11-27 7:06:51
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 ...

EJB 3.0 Core Spec (Transaction and BMT)

937 byte By shivani.Eartha at 2007-11-27 7:07:42
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 ...

Creating a Simple Web Service and Client with JAX-WS

1385 byte By Ajaxranda at 2007-11-27 7:08:13
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 ...

Connection Exception : Refused

4643 byte By passion_for_javaa at 2007-11-27 7:08:17
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 ...

Exception in thread "main" javax.naming.NameNotFoundException [Root excepti

3039 byte By anuj.singh02@yahoo.coma at 2007-11-27 7:08:29
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 ...

javax.mail.MessagingException: 452 4.4.5 Insufficient disk space; try again

2073 byte By Ravivarmaa at 2007-11-27 7:09:06
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 ...

Retrieving the header field from bounced mail

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 ...

Creating a web service client

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 ...

Message driven bean creation

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 ...

global/local JNDI question

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.

A tricky XML Query with Java.Please guide.

2610 byte By bhuru_luthriaa at 2007-11-27 7:13:10
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 ...

This one hangs

896 byte By burntcandlea at 2007-11-27 7:14:41
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, ...

XML Validation in java for SQL injects and scripts

329 byte By satisataa at 2007-11-27 7:27:14
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 ...

Problem with JasperReports

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: ...

Is Java leaving JSFand moving towards Java FX?

239 byte By gunnerForevera at 2007-11-27 7:31:18
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 !

MDB to listen external destination

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 ...

Problem with Java Mail Program

2903 byte By solve_my_buga at 2007-11-27 7:31:47
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 ...

How to make EJB client without Web Start?

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 ...

How can i add my organization Name

331 byte By muthu2007a at 2007-11-27 7:32:15
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 ...

How to customermize the

223 byte By RajeevSahu_Sahua at 2007-11-27 7:32:21
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.

Validate XML fragment against XML Schema XSD

1076 byte By goerge_goergea at 2007-11-27 7:33:09
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 ...

Is Java leaving JSFand moving towards Java FX?

239 byte By gunnerForevera at 2007-11-27 7:33:30
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 !

How to update a attribute value in java

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 ...

Element tag in the WSDL file.

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 ...

Debugging on sending email

407 byte By vwuvancouvera at 2007-11-27 7:35:24
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 ...

Accessing EJB through a client

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"); ...

JavaMail 1.4 issue

440 byte By polkovnikla at 2007-11-27 7:35:49
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 ...

Reading .msg files using JavaMailAPI

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.

How to get default SMTP server name

147 byte By deepakchandarana at 2007-11-27 7:38:47
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

how to send jms message to mq series

527 byte By tombatorea at 2007-11-27 7:39:25
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 ...

@Embeddable class

6509 byte By evepokuaa at 2007-11-27 7:39:33
Hello everyone,I have 3 entity classes:@Entity@Table(name="CUSTOMER")public class Customerent implements Serializable {.................................................}@Entity@Table(name="ITEMS")..................public class Iteamdetailsent implements ...

Bad file descriptor

300 byte By wilson_onna at 2007-11-27 7:40:00
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 ? ...

Showing message with webservice

3565 byte By passion_for_javaa at 2007-11-27 7:40:38
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, ...

how to handle null pointer exception in ejb3

616 byte By patel123a at 2007-11-27 7:40:50
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); ...

how to write a singleton in JavaEE

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?

problem running the simplemessage application from the javaEE5 tutorial

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 ...

EJB 3.0 integration with JSF

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: ...

how do I use arrays in web services?

99 byte By RALIIYAMAa at 2007-11-27 7:41:29
I have a function which returns an array of byte? How do I declare an array in Web services.

Help urgent ! display database value as selected in drop down list in JSP.

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 ...

Sending a private message on a public Queue

236 byte By peaceinpala at 2007-11-27 7:44:52
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

JAXB Adapters Collection

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 ...

cannot resolve symbol 7 errors location: class javax.mail.internet.Internet

2821 byte By AnkurBhatiaa at 2007-11-27 7:47:19
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 ...

javax.mail.AuthenticationFailedException - Pls Help

4878 byte By leeChaolana at 2007-11-27 7:47:40
This are my codes on my jsp page for sending out an email. <%@ page language = "java" ...

interface to acces ejb

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 ...

Web Services changing to doc/literal what does it mean for clients

493 byte By rconnelliia at 2007-11-27 7:49:16
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 ...

One mail - one attachment

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 ...

gmail connection establishment

198 byte By bolashokrya at 2007-11-27 7:49:50
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