Problem in sending images

6927 byte By rameshra at 2007-11-26 22:40:59
[nobr]Hi All,I have a problem in sending HTML mail with images.I am able to get the image in my mail if i place the image part and the html part in two different tables I am able to get the image along with the html message but if i use the following code i.e using single table i am not able to ...

Socket timeout takes too long

3285 byte By dan-ba at 2007-11-26 22:43:31
Hi,from inside the EJB container, I call a static method on a POJO, thattries to connect to a remote port. Here's the code for the socket connection:public static boolean isPortConnectable(String hostname, int port) {SocketAddress addr = new InetSocketAddress(hostname, port); Socket socket = ...

JAXB 1.0 and JAXB 2.0 APIs

525 byte By sooty70a at 2007-11-26 22:43:37
Hi, Folks.I've just inherited a test application that was written using JAXB 1.0. The application it tested has since moved onto JAXB 2.0 but the test application has lain dormant for the last 12 months. I now have the task of bringing the test application up to date and as you might expect, I ...

JMS Topic Question

224 byte By ahujava at 2007-11-26 22:44:12
Hi,I posted this in the Java Programming section and was redirected here for this question:Is it possible (or is there a method) to find out all the active JMS topics? I am using activemq. Thanks!

Java EE SDK Installation problems...

3149 byte By rbagdaziana at 2007-11-26 22:44:21
I have been having a great deal of difficulty installing theJava EE SDK application from this downloaded filejava_ee_sdk-5_02-windows.exeThe installation appears to proceed normally for a while then aborts with a dialog that references the installation log. I have tried installing this a couple ...

POP3 UID

397 byte By vrinda_26a at 2007-11-26 22:44:22
Hi,I am using outlook client and pop3 server.I am retriving UID for all messages from my outlook inbox as i need to save them to database into table which has UID as PK.when i do this, i get exception as duplicate PK for some of the msgs.if UID is unique for each message why am i getting ...

Transform creates invalid doctype statement

822 byte By Nickersona at 2007-11-26 22:44:36
I'm creating xhtml pages from xml using xslt. The problem is that the Transformer is producing a DOCTYPE that is missing the required spaces between the publicID and systemID, so SAXParser operations I'm doing on the output fail.xsl:output method="html" version="4.01" ...

JMS Topic Question

236 byte By ahujava at 2007-11-26 22:44:53
Hi,I posted this in the Java Programming and the JBI section and was redirected here for this question:Is it possible (or is there a method) to find out all the active JMS topics? I am using activemq. Thanks!

Missing start boundary

8880 byte By vrinda_26a at 2007-11-26 22:45:19
Hi ,i have Missing start boundary exception while reading message..Following is message information.Can any one let me know how i can fix this problem.Received: from backup1.texterity.com ([68.112.246.59]) by exchange2003.scientificmonitoring.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 ...

javax.mail package is not recognized in (netbeans5.0+bundled tomcat server)

253 byte By sundar82a at 2007-11-26 22:46:40
hi freinds,i successfully done java mailing using weblogic8.1,but i cant use the same java mail coding against (netbeans5.0+bundled tomcat server) the javax.mail package is not recognized any idea to resolve this trouble....?

reference to Queue is ambiguous, both class javax.jms

2297 byte By mastery20a at 2007-11-26 22:48:07
hi i already posted the problem .still i have not got the reply. i am using jboss-4.0.2 ant-1.6.0 jdk1.5.04error reportmakebuilddir:compileclasses:[javac] Compiling 161 source files to D:\New project\build\itracker\classes[javac] D:\New ...

Unique Problem: Returning SOAP+ Attachment using a class based webservice

933 byte By armaghan23a at 2007-11-26 22:48:16
Hi everyone, Im trying to return a Soap+ attachment response back using the following: attachDoc(byte[] bdoc, String sTransactionNumber,String sRequestedType)Where byte[] is the attachment and the 2 string parameters are soap message contents.The attachment is attached successfully to the ...

problem deploying the PetStore 2.0 Early Access

597 byte By nthalia at 2007-11-26 22:48:18
Folks,Pardon the ignorance, but i'm not very conversant with EE apps. Trying to build, deploy and run from the command line gave me this error:deploy:[exec] CLI171 Command deploy failed : Deploying application in domain failed; Error loading deployment descriptors formodule [petstore] -- ...

Mapping enum types for DB with Sun Application Server.

2067 byte By straivera at 2007-11-26 22:50:41
My entity bean uses an enum type the next way:@ Entitypublic class SomeoneEntityBean implements Serializable{private MyEnumType myEnumType;@ Enumerated(EnumType.STRING)public MyEnumType getMyEnumType(){return myEnumType;}public void setMyEnumType(MyEnumType myEnumType){this.myEnumType = ...

NPE in both deployment and verifier

3620 byte By edek234a at 2007-11-26 22:50:53
Hello,Sun Java System Application Server 9.1 (build b33e-beta)I have and .ear nad one of EJB modules is causing NPE both in deployment on AS and in verifier. I cannot go forward, the messages are meaningless. The same happens both during deploying/verifying complete EAR or single EJB jar ...

Schema compile bug in JDK 1.6 ?

4359 byte By jonasPa at 2007-11-26 22:50:55
The below schema and code works with 1.5 but reports the error below with 1.6.The schema also gets a clean run from the w3 checker http://www.w3.org/2001/03/webdata/xsv org.xml.sax.SAXParseException: s4s-elt-schema-ns: The namespace of element 'xs:schema' must be from the schema namespace, ...

Checking if email was read

388 byte By vic_ska at 2007-11-26 22:51:49
Hello,Would anybody happen to know if there is a way to use JavaMail to determine if the recipient has read the email that was sent to them? Here is what I mean:1. An email is sent2. A sender is informed that the receipient has read the emailPlease, let me know what APIs I should use to make ...

help please regarding web services.

500 byte By karthik_reddya at 2007-11-26 22:52:06
hi,I have developed a web service using Jax-rpc. I am trying to invoke the web service using a java application client. i would like to know if two clients from two different machines try to access the web service, are the requests processed concurrently or sequentially. i am using tomcat ...

Accessing SAP

174 byte By krishtrirama at 2007-11-26 22:52:52
Hi all, can any one suggest some means of accessing SAP BW reports from any other application server other than SAP application server.Thanks,Ram.

How to access EJB from a portlet

807 byte By SURYAa at 2007-11-26 22:53:21
hi friends...How to access an EJB from a Portlet. I've tried but its not working u have any idea Plz help me out...The scenario is I have portal running in a machine & appserver(weblogic) running in another machine and want to access EJB from my portal. I have tried with the t3 protocol ...

Parsing Mime message

276 byte By kribora at 2007-11-26 22:53:35
HiWe are using JWSDP 2.0 Web Services in an application we are working on. It requires receiving attachments with mime encoding. Could someone please tell me how to parse the attachments to separate files using JWSDP 2.0 SAAJ.Thanks a lot/Kristofer

diff b/w procedure and method.

991 byte By Sumit_Tyagia at 2007-11-26 22:53:37
Hi! to all!I am new to EJB.I was reading about RMI-IIOP, and got confused in the statement written in the book.It is as follows.*A remote procedure call (RPC) is a procedural invocation from a process on one machine to a process on another machine. RPCs enable traditional procedures to resode ...

Schema generation and multiple-schema validation

1221 byte By aberrant80a at 2007-11-26 22:54:11
I have 2 related questions on xml schemas.The first is whether it is possible to generate a schema dynamically and in-memory. Currently, I have a portion of an XSD fixed, and another portion dependent on configuration as well as mutable from triggers.From what I managed to find out, all I can ...

ADDING xml to the SOAP Message from client

1135 byte By ABC_SUN_a at 2007-11-26 22:54:12
Hi, does anyone know how to add an xml file to the SOAP message passed by the client to the server?I need to send an xml file, I have already tried attachments but they dont meet the purpose. I need to send the xml as part of the soap message in AXIS 1_4.I read this somewhere about SOAPEnvelope ...

provide code in JSF

308 byte By rvnareshkumara at 2007-11-26 22:54:32
hii have two comboboxs are there in first combobox i added Names of the countries in second one i added to the states of the each country. if i select one country name the i want to display the names of the states. plese provide code for that one in Java Server Facesthanks & ...

call stateless EJB3

145 byte By flyinga at 2007-11-26 22:55:07
LocalXX l = (LocalXX) ctx.lookup("XXBean/local")@EJB private static XXBean l;What is the difference between the two methods?

Putting a link in a mail

467 byte By tech_agilea at 2007-11-26 22:55:35
Hi,I making a user registration page. In that till date, a user registers with all the 'said' details and an email is generated to Admin specifying the details of the user and a link which takes the admin to the 'user-add' page in a web application. Now, I need instead of a link, the admin ...

Help! Disable AppServer autostart

132 byte By star_siriusa at 2007-11-26 22:55:49
My AppServer automatically starts on machine boot. How can I disable this? It's urgent please help.Thanks in advance.

Search an other solution to retrieve data xml with DOM

5398 byte By hanimichia at 2007-11-26 22:56:52
hi i have a xml file , i need to retrieve certain data of xml. so i process of this way : public class ParserDOMBegeti{static Document document;//documentstatic Element rootElement;//racine public static void main(String[] args){ try{// cr閍tion d'une fabrique de documentsDocumentBuilderFactory ...

Stax read write unicode behavior

1966 byte By montsiea at 2007-11-26 22:56:56
Hi AllI use the stax event api...I read an input.xml file and write the content to an output.xml file.import java.io.*;import javax.xml.stream.*;public class Main {private static XMLInputFactory inputfactory = XMLInputFactory.newInstance();private static XMLOutputFactory outputfactory = ...

Web Service With Dynamic URL (Very Basic Conceptual Question)

1303 byte By Equitonea at 2007-11-26 22:57:00
Hi everyone,I would like to employ JAX-WS to generate and publish a web service along with a web-based client which uses the service. The problem is: I want to deliver both the server (with its service) and the client to a customer, who will install the server on an internal machine, and who ...

Creating Folder

181 byte By JTable_need_infoa at 2007-11-26 22:57:44
How can I create a new folder on IMAP server.folder,create(int) i found this method but how it work I didn't get Please give some more guidencethank you

Beginner needs help with sql/ejb-ql

1015 byte By balteoa at 2007-11-26 22:58:51
Hello,I have the following question about sql and ejb-ql:key pk action11 I 12 U13 U * 44 I *55 I *66 I67 DMy boss forces me to use a flat table as above. Here is what happened to this table:1. A user inserted a record (key and pk == 1)2. They then updated the same record. You will notice that ...

Please help me very Urgent I appreciate whoever takes me out of this mess

587 byte By newbiej2eea at 2007-11-26 22:59:18
Hi! I have a short term project to develop a web page displaying in a table format. The data for thatcomes from 2 CSVs. and that table format should be exported to Excel. What I am going to do is first CSVs should be converted into XMLs and then merge XMLs and then convert it into HTML. First ...

Asynchronous Web Service using Axis2 and Java2WSDL eclipse plugin

1578 byte By Javanator_primea at 2007-11-26 23:00:05
I am trying to develop a simple web service using Axis2 as the server.I am placing the folder with required classes, META-INF and lib in the repository/services directory in Axis. The service is visible when the server is started and the WSDL file is generated automatically. I am using the ...

how to pass array server to client

247 byte By Ezhil_Ca at 2007-11-26 23:01:23
hi...i want to pass two arrays to the called client program after the completion of server execution ....this sould be in EJB..how to pass messg from server to the called client and also how to pass arrays...thank you..

Confusion about the differences between finder and select method

770 byte By HELLOOOOa at 2007-11-26 23:01:38
Dear all,I discovered the following statement in the "J2EE 1.4 Tutorial - Chapter 27 Container_Managed Persistence Examples" ( http://java.sun.com/j2ee/1.4/docs/tutorial/doc/CMP3.html#wp79761)."A select method can return a persistent field (or a collection thereof) of a related entity bean. A ...

how to create DOM with node and its value

575 byte By lokloka at 2007-11-26 23:01:50
<Order> <Manifest> <Item><ID>101</ID><NAME>Name one</NAME><PRICE>$29.99</PRICE></Item> </Manifest></Order>i can write the code to create a DOM for this one.but how can i write the code to get the DOM as shown ...

Java Technology & XML - null

466 byte By Vetala at 2007-11-26 23:03:25
Hello,I'm trying to read XML file using JAXB.The problem is when I'm trying to parse tag that have XML type xs:time I receve a null as XMLGregorianCalendar from this field because it represented as <TimeTag>14:00:00-06:00</TimeTag> without year-month-day. I can read it properly ...

Enterprise JavaBeans - How to call a EJB method from Session bean method

357 byte By m.parthibana at 2007-11-26 23:03:32
Hi all,I'm new to J2EE programming. I have a simple doubt . I have already created a lookup method for EJB bean in Session bean .My question is how to call a method of an ENTITY bean (say insertRow) from SESSION bean method(Say invoke_insertRow) .Please provide me an example code .Thanks in ...

Java Technology & XML - Validate an existing DOM object .

209 byte By jimmy.coynea at 2007-11-26 23:04:02
Hi All,Does any body know if it抯 possible to validate an existing DOM object with a schema. I have to use JAXP 1.2 so the JAXP 1.3 validation API is out of the question.Thanks,Jimmy

Enterprise JavaBeans - @EJB annotation does not inject a bean (jboss 4.0.5)

406 byte By datuma at 2007-11-26 23:06:08
Hi all,We have a project that runs fine under jboss 4.0.4 and uses lots of @EJB annotations on fields to inject session beans.We're trying to switch to 4.0.5 and suddenly the @EJB annotations no longer work, and the relevant fields are not initialized.(@PersistenceContext annotations work ...

Java Technologies for Web Services - Learning SOA

447 byte By durgakbea at 2007-11-26 23:06:51
Hi All,I am interested to learn on SOA. Can I initiate a discussion thread on this topic where in the experts can share the information that will help the leaners. Does it interest you to start with very basics of SOA's like 1. What is SOA ? 2. What are the technologies that help to acheive ...

JavaMail - How to make a message draft...?

101 byte By JTable_need_infoa at 2007-11-26 23:07:15
I want to store the message as draft in draft folder?How?thank you,sumant

Enterprise JavaBeans - EJB 2 into weblogic 8, help please.. how to invoke

1779 byte By mirentxua at 2007-11-26 23:07:25
helloi have one ejb into weblogic, session ejb stateless.the ejb-jar file has this:<session><description><![CDATA[MiCallejeroSession ...

JavaMail - result file take the whole path of file

3876 byte By NasirMunira at 2007-11-26 23:07:29
I am using Java Mail, and it is working fine. I have a problem though, when I open the attachment, it contains the file path.For example, the attachments should be Result.zip, and then I should get the files if I unzip them. On the contrary, I am getting the folder as a an attachment, that I ...

JavaMail - sending a email to particular address everytime a form is submitted

411 byte By anbr19a at 2007-11-26 23:09:17
Hi,I am a trying to make some enchancements to my previous application. In this application we developed a form using jsp which contains few fields. Once a user fills this form and click the submit button an email should go to admin with a message ( record is submitted by the XYZ person). ...

Java Technologies for Web Services - exchanging database rows between axis server and the client

452 byte By annas24a at 2007-11-26 23:10:47
Hi,I have set up an axis server on my system, which runs oracle database. I now want to return my results to a client. Since my result can have many rows of the database, currently I am creating a comma separated list of my rows as a strings in my server and returning it to the client. Can ...

JavaMail - Java Mail Authentication failed Exception

4161 byte By saravana_na at 2007-11-26 23:11:13
Hi,I used javamail api to send and receive mails from MS Exchange server. Send Mail Program : package com; import java.util.Date; import java.util.Properties; import javax.mail.Address; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import ...

JavaMail - non editable mails

224 byte By Ashitosha at 2007-11-26 23:11:16
hi,I am working on a project where we have to send mails which should not be editable to the receiver.can.i know its a stupid question.but the requirement is placed so.Can any one help meThanks!!!