3449 byte By
virgo47a at 2007-11-26 22:16:16
Hi all...I have a serious problem with switching between aforementioned technologies and I'm confused which one works properly. My case is easy - I have XML that starts like this:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE field-specification SYSTEM ...
2065 byte By
talk2keya at 2007-11-26 22:16:43
Hi,I'm trying to send an email using mail APIs. But I'm unable to send the email and getting the following error:javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 ...
Hi AllI have two CMP entities (EJB3) defined over two tables in Oracle 10g XE DB, namely User & UserDetails. UserDetails references User entity in One-to-one unidirection fashion.When I create a new User I have to insert a record using User entity & a corresponding record using the ...
471 byte By
Ni_Mina at 2007-11-26 22:16:46
I used Thunderbird to download my Yahoo Inbox emails, it's saved to a directory on my PC, in it there are the following two files :Inbox[ Huge : 800 MB ]Inbox.msf[ 390 KB ]I know that "Inbox.msf" contains info about the Inbox. There are mostly returned emails in the Inbox with bad addresses.I ...
Hello.I have an ejb 3.0 as a WebService. I deployed it on Jboss 4.05GA, all ok.But when i try to call the service from an application it does't work.XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]Message: Premature end of file.at ...
Hi Below is problem where I am getting stuck..I created java code using a xsd with suppose 4 string tag. Every thing works fine, when i pass a xml with only the 4 string tag.Now the xml with 5 string tag, basically a new string tag has been added which was not added in the scehma. As soon as I ...
2990 byte By
obelixa at 2007-11-26 22:17:52
Hi all,I'm trying to use a gSOAP server and a jax-ws client.I did a first test with WSDLReader to ask the wsdl from the gSOAP server and read it to display all informations.It was ok !Now I try to call a method whit this code :URL url = new URL(" http://localhost:" + port + ...
906 byte By
bkeysera at 2007-11-26 22:21:16
Hi,I have a simple model where a class has a property that is a java.util.List of another object. When I use wsimport to generate the bindings for a client application, it generates the getter, but not the setter for the property. In other words,class A{List<B> collection = null;public ...
I'm new to EJB3 and MDBs and need a little advice regarding running an EJB App Client.My basic scenario is that I use a MDB queue for asynchronis comms with a couple of EJB 3 Entity beans. My problem is that from the App Client I do not have visibility of the Entity bean so that I can ...
Hi friends this is my first message to java forums,I am trying to develope a chat application using J2EE and networks..I don't have the base idea where to start with....Can anybody help me please...?
6335 byte By
erikaa at 2007-11-26 22:22:25
This is my code .I get authntication failed error everytime thoughthe password and userid is correct.pl help me.I need to finish this,pl help.package com.randomtest;import javax.mail.*;import javax.mail.internet.*;import java.util.*;public class Email {private static final String SMTP_HOST_NAME ...
202 byte By
Kanata at 2007-11-26 22:23:08
Hello, I want to develop e-banking system like PayPal.com. I've tried find some information but not successful. I抦 new in this deal. So can anyone advise me tools and information sources?
1967 byte By
fabismta at 2007-11-26 22:24:41
Hello,I am coding a background process to send e-mails. It uses Threads so each Thread opens a connection with a local smtp server and send a configured amount of e-mails.It goes well when there aren't too many Threads, but in opposite to that i receive the following message : DEBUG SMTP: ...
When I write a method that returns object(s) based on an EntityManager query, return em.createQuery("select object(o) from Address as o").getResultList();Is that query actually looking at the database and getting the most recent data? For example, I manually change an address using SQL right in ...
Hi,I developed code for transforming the xmls by using xsl contain java methodsex:<xsl:stylesheet version="2.0" xmlns:jiva="com.seq.sqlxml.xslutil" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="seq" ><xsl:output method="xml" indent="yes" ...
For some reason my client requests don't work. I get a NullPointerException when I call methods on the EJB interface. Do you have any suggestions as to why this fails?Here is the client code:public class HandleDataInput {public HandleDataInput(){}@EJBWVFacadeLocal fl;@EJBWVUpdatePresenceLocal ...
Hello all,I'm newbie and I"m trying to do simple jsp page that calls an entity bean that displays data from a table.This is just a test that I want to do to see how jsp can call a bean that is pulling data from a table. I'm sorry if maybe this is not the right place to post this. But can ...
I抦 just starting out with web services, so please excuse my silly question:Most of the books and tutorials on web services that I抳e read explain XML parsing at great length (JAXB, SAX, StAX and DOM).Although web services do make extensive use of XML in SOAP and WSDL, I can抰 see why I would need ...
567 byte By
kerulea at 2007-11-26 22:27:23
Hi, i dont nkow that i stay in the correct forum. I am development a java swing client application, no web, and i dont know that if there are any patterns for a client of this type.I have readed http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.htmlbut after of Buissnes Delegate ...
268 byte By
rabbiaa at 2007-11-26 22:28:05
HiI wanted to ask a question related to PersistenceContext in JPA. What is the better approach for using a Persistence Context when using container managed transactions i.e. the default Persistence or the Extended Persistence Context?Thanks
63 byte By
bama51a at 2007-11-26 22:28:17
Does anyone know how to maintain XML comments in Castor?
I am not using Java Mail. i have created a program so it will log into any smtp server and will send mail. i need to know how i can attach a file with my e-mail and sent it. thanks!
2220 byte By
HELLOOOOa at 2007-11-26 22:28:44
Dear all,I am trying to build a simple EJB application which involves using SessionBean and EntityBean.The application must allow a user to login and then perform some operations. Depending on what type this user is, they are allowed to perform different operations. The type of a user can ...
310 byte By
ivlad10a at 2007-11-26 22:28:55
I was trying to install some ajax examples and learn how they work.The installer aborted with the message 'Could not find main class. Program will exit'. - both ways - when doubleclicked or when runs after downloading.It seems like I'm missing something in my ...
611 byte By
Ramkoila at 2007-11-26 22:30:29
Hi Every body,I had an xml file ,with using parser i want to read the xml file ,but in my xml file i had an error "&data_12546_norm_589567;"To process this error and read the xml file content in java file.How can i read the xml file using java with out removing the error line.My xml file is ...
Hello!I'm having trouble with the OR-mapping and an inheritance class structure.Here is a code example of what I try to do:@MappedSuperclass@IdClass(CustomerPK.class)public abstract class Customer extendsAnotherNonPersistentAndNotMappedSuperclass {private int custNo;private String name;private ...
1037 byte By
ikkyua at 2007-11-26 22:31:16
Hi all,I have a simple application, the user fill a form with the possibility to add an attachment. That form will become an xml file stored on the server.Later on a parser will build a mail from this xml.My main question is at thi point: how to store the attachment ?I think I have two ...
i wrote the following code also. i didn't get the message id. but i get delivery receieptprops.put("mail.smtp.dsn.notify","SUCCESS,FAILURE ORCPT=rfc822;recip@foo.bar");props.put("mail.smtp.dsn.ret", "HDRS");message.setHeader("Disposition-Notification-To","billg@microsoft.com");if u get any ...
277 byte By
Notty_ra at 2007-11-26 22:32:46
Hi,i am facing problem when i am generating stubs for EJB. I have a method in the entity beans for which Homestub is having a method which is returning null. Not the actual implementation.Please help me on this. Why i am facing such a problem.Thanks
We are building a JCA mail resource adapter. We have the classes we needed including the Message driven beans. We are also using JMS queues into which the MDB listens.Now how should our package structure loook like? Should the MDBs come in a separate package?Right now we have all of this in one ...
(Not really Java-specific, but I can't find a decent XSD-dedicated forum)How do I specify a bunch of child elements where the order is unimportant AND some children occur multiple times?<xs:all> looks to be almost what I would like except you cannot specify an element to have unbounded ...
267 byte By
rabbiaa at 2007-11-26 22:33:40
HiI wanted to ask a question related to PersistenceContext in JPA.What is the better approach for using a Persistence Context when using container managed transactions i.e. the default Persistence or the Extended Persistence Context?Thanks
Dear all,Is this a common practice to access the business methods of entity beans via a Session bean?For example, if I have an AccountBean(EntityBean) which exposed a deposit (double amount) method. And I have a CustomerServiceBean(SessionBean) which also exposes a deposit method. When the ...
1426 byte By
Perryiera at 2007-11-26 22:34:06
I am struggling to understand when it is necessary to declare my own transaction to ensure the data is properly updated. For example, in the following code, which is part of a java bean in the EJB project, KeyFacade is a stateless session bean tied to the entity "Key". it is a standard EJB ...
Hi how can I check that my message has attachment or not?Thank you sumant
I am using one server I don't know which flags are they using for recent or unread messages.It shows unread message when i use web interface of thembut I want to see which flag they are using for unread messageHow can I?thank yousumant
Can I access the address book of account.I want to use that at client side which i m devepoingthank yousumant
Hi All,I am trying to learn EJB's on my own. I installed the WebLogic Server Trial version and then wrote the Home Interface, Component Interface and the Bean Class. Now I started the WebLogic server and tried and create the deployment descriptor.. I am getting the error below even after I set ...
Hi All,I am learning the EJBs for the first time. I tried to search for tutorials and found a few tutorials in SUN website. For some they asked me to install weblogic server. Then in another link they are showing sun application server. Please advise which application server is better or more ...
Hi,Is it possible to put the mail.jar (and activation.jar) in the web application's WEB-INF/lib folder instead of tomcat's common/lib?I did have it working in common/lib but then moved it - due to requirements - and I now get the following error:java.lang.NoClassDefFoundError: ...
how can I move message from Inbox folder to other user created folder
hi all,when i execute the ejb it display import javax.ejb.*;does not exists. i am using jboss4.02. jdk1.5. and ant 1.6.0..plz help me .ERROR REPORT[javac] D:\New project\itracker\src\cowsultants\itracker\ejb\beans\entity\CustomFieldValueLocal.java:4: package javax.ejb does not exist[javac] ...
Hi ,I am learning the basic EJB and trying to write my first piece of code.I wrote a HelloWorld.jar(EJB) and deployed it in Websphere server.Then I wrote a standalone java program with main method to access the EJB client. As per the tutorial..public void callEJB(){try{java.util.Properties env ...
when usingTransformerFactory.newInstance().newTransformer().transform.......is there a way so that it will not add the declaration at the top?so that when i do a toString it will not output <?xml version blah blah>
Hi! My xml file has a simple form like this: <?xml version="1.0" encoding="UTF-8"?><AdressBook><Name>Suzy</Name><Lastname>Love</Lastname><Adress>You street 22</Adress><Phone>911</Phone><Email>loveme@gmail.com</Email> ...
864 byte By
jtjlia at 2007-11-26 22:38:02
I used to find the "core J2ee patterns" useful because it covers the whole picture of a web application. (see here: http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html )However, these patterns were designed in 2002 (or earlier). So I am a bit reluctant to read them now as I do ...
323 byte By
jtjlia at 2007-11-26 22:38:09
If I just want to build a reusable module that does not have any business critical actions, such as a login module, or a blog module, should I use EJB?Also, am I correct that only EJBs can run on distributed servers, and that all other non-EJB components in a web applications can only run on a ...
373 byte By
jtjlia at 2007-11-26 22:38:11
I have just looked at the Java Persistence tutorial and it says each table row of a database can be represented as a Java Persistence entity instance.The definition of an "entity" is very much like how you would define the class of an equivalent DAO. So I am wondering... should DAOs still be ...
hi,i wrote a bean that has a looping function that will sleep for 2secs and then continue to loop. this function is called from the jsp. my problem is that the bean will not be functioning after a period of time. how do i overcome this problem? i need it to be running up to maybe a few ...
I am having a problem with passing exceptions with message security bunding enables. I have a JAXWS EJB 3.0 web service, The service defines methods which throw exceptions. The exceptions are passed correclty when there is no message security enabled. once the security is enabled and an ...