what is the difference between ejbLoad() & ejbStore()?

65 byte By travprasada at 2007-11-27 11:59:37
<p>what is the difference between ejbLoad() & ejbStore()?</p>

what is use of ejbPostCreate(), what it returns, where exactly can it be in

82 byte By travprasada at 2007-11-27 11:59:35
<p>what is use of ejbPostCreate(), what it returns, where exactly can it be in</p>

JAXB Validation without a Schema

416 byte By shelleyLa at 2007-11-27 11:58:13
Part of the benefit of JAXB is that a schema is not required; annotating Java classes alone allows for XML serialization/deserialization. With the deprecation of the Unmarshaller.setValidating() in favor of the unmarshaller.setSchema() method, however, it seems that validation is only available ...

Jax B converts 'r' into '\n'

326 byte By prasadkumbharea at 2007-11-27 11:58:10
Greetings,My xml file contains special chars such as '\r'.JAXB converts \'r' chars into '\n' while reading xml file.I am reading the values into String variables.How can Prevent that.Do I need to change the variable type in my XSD.Your help is ...

Javamail from Tomcat

934 byte By Paranoid_Fabioa at 2007-11-27 11:57:27
Hello. I have a servlet that must send an email after some data has been processed.I'm my method sendMail(....) i send this mail.The method sendMail works perfectly. If I test the method in isolation everything works fine and the mail is sent.The problem that, in the servlet, the method simply ...

UTF-8 encoded char array?

370 byte By justinlawlera at 2007-11-27 11:57:21
Hi,I have to save a string with UTF-8 encoding (using the sax handler ContentHandler.characters()) method. This takes a char array as a parameter. If I have a string and get the characters from it using:str.toCharArray()this won't return a UTF-8 encoded char array, will it? And how do I get a ...

How to lookup EJB 3 session bean from servlet?

917 byte By maximuszena at 2007-11-27 11:57:01
public class Test extends HttpServlet {private static final long serialVersionUID = -1L;@EJBprivate T2Facade t2fl;public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {T2 t2 = new T2("hello");t2fl.save(t2);LogUtil.log("t2.getId() = ...

Fetching the number of Unread messages from the gmail

129 byte By pratqba at 2007-11-27 11:53:41
<p>Is it possible to fetch the number of unread messages from the gmail server? If yes kindly tell how? Expect fast responses</p>

Authentication failed Exception.... please help....

2943 byte By Santosh_Gadagojua at 2007-11-27 11:53:25
i am new to javamail.....this is my first application in javamail....sendingmail.javaimport javax.mail.*;import javax.mail.internet.*;import java.util.*;public class sendingmail{public static void main(String s[])throws Exception{Properties p=System.getProperties();p.put("mail.smtp.host", ...

Help dealing with nodes

729 byte By delphosbeana at 2007-11-27 11:50:01
Hi!I'm trying to parse an XML document in order to store the various elements into Oracle DB tables.In the document, I have a node like...<ElementList><Element elem_code="AA"><Name>A Name</Name>... etcIn Java, I write something like...NodeList listOfElements = ...

Glassfish EJB Error

5951 byte By amattasa at 2007-11-27 11:49:54
SEVERE: "DPL8011: autodeployment failure while deploying the application : Error loading deployment descriptors for module [CI] -- Cannot resolve reference Unresolved Ejb-Ref com.stryker.cmf.accountrolebean.AccountMgrBean/mailer@jndi: @null@com.stryker.cmf.cimailer.CIMailer@Session@nullThis is the ...

Java Web Service Client

896 byte By EdLaFavea at 2007-11-27 11:49:34
I'm trying to write a Java client to connect to a web service using Axis 1.4 (choose this by default, perhaps I should use something else?). The web service has a URL of the form " http://domain.com/directory/service.asmx" and I'm trying to call a method of the form MethodName(String stateAbbr). I ...

retrieve mail from Gmail account with pop3?

411 byte By rumenegotina at 2007-11-27 11:48:47
I want to retrieve e-mail from my account on Gmail in my application, but I have a problem. I cant establishe a connection with pop3 server...Do you have an example (full) in Java code for retrieving a mail from Gmail account.I used the example from JavaMail Api 1,4 Specifications, but I have a ...

EJB Question

407 byte By amattasa at 2007-11-27 11:48:46
If I have a local EJB bean which has two classes and an interface:Class:AccountRoleBeanAccountMgrExceptionInterfaceAccountRole (Local)And I use it in a webapp, it appears I have to import both the interface and the exception class.And I'm injecting the class as @EJB AccountRole accountRoleIt seems ...

FATAL ERROR: 'Could not compile stylesheet'

588 byte By dvpka at 2007-11-27 11:48:16
Hi I have problem with the code i am using Eclipse IDE when i build it doesnt show any errors but when i run i show arun time error as:ERROR: 'null'FATAL ERROR: 'Could not compile stylesheet'javax.xml.transform.TransformerConfigurationException: Could not compile stylesheetat ...

Xml Parsing with Symbol

204 byte By redangera at 2007-11-27 11:47:09
<p>Hello, </p><p>I have a element with name ClientId and having value as:- rohan&meta.</p><p> It gives Sax Parser Exception.</p><p> So is there any trick for string with value having symbol &.</p>

How to extract information from a DOM object without specifying the TAG Nam

277 byte By mskamala at 2007-11-27 11:46:30
<p>Respected All</p><p>Can I extract value of tag from DOM object without specifying the xml tag element name or traverse it like arraylist or vector , if it is a tree of node then there is any way to traverse the tree to extract its values</p><p>please comment or any idea</p>

XML Newbie - Help Processing Files!

781 byte By calmB4storma at 2007-11-27 11:46:25
I'm not exactly sure if "process" is the right word, so I'll describe what I mean. There are two XML files ( http://xml.pinnaclesports.com/xmlfeed.asp and http://208.138.39.112/XMLLineFiles/Baseball.xml) that are constantly updated online, and I want to be able to compare certain numbers in the ...

JAXB Marshalling without UnMarshalling

119 byte By senakuloa at 2007-11-27 11:45:53
<p>Hi,</p><p>Using JAXB can I Marshall an java object to xml directly without Unmarshalling it first?</p><p>Thanks.</p>

servlet execution

238 byte By j_stara at 2007-11-27 11:44:29
<p>Hi! Please try to answer my question : if there are 3 methods in the servlet as service,doGet and doPost then which one gets executed first and does the request get passed to other method?</p><p>Message was edited by: </p><p>j_star</p>

Probably Simple XML toString

457 byte By RogerFGay1a at 2007-11-27 11:43:48
I've been trying to convert an xml document to a string, but I'm having a problem converting. I'm reading the XML from a file.Document document = builder.parse(new File(filename));And I'm sure that works. I can parse the result. But then I try to return what I've read using:return ...

i cant delete messages

335 byte By urosarioa at 2007-11-27 11:42:55
hi, we have a sun java entreprise system 2005 Q4.i've problem with space in disk. it seems the messages never deleted from my system.we use microsoft outlook to download messages to pc and delete them from the server, i access from web and the messages are gone, but stiil in the disk.what can i ...

JavaMail jar file

643 byte By Rob_Ha at 2007-11-27 11:42:47
I created a program with JavaMail that worked like I wanted it to in Eclipse (after I added the jars to my classpath), but I cannot seem to get it to work in a jar file. I use the following file as the Manifest file:Manifest-Version: 1.0Class-Path: *.jarCreated-By: 1.5.0 (Sun Microsystems ...

More Questions about the Correlation Set in BPEL workflow

997 byte By kew98a at 2007-11-27 11:42:18
I have created a workflow, it is waiting in a loop to reveive 5 messages, after a message recieved and processed, it goes back to wait for another message, it loops until all 5 messages are received. What happens if new message comes in during the privous one is still in processing (at this moment, ...

Problems with Embedded classes mapping

3028 byte By jdroza at 2007-11-27 11:42:16
Hi,I'm experiencing problems for table generation with the following case:a class declares two fields; one of them typed as a subclass of the other; both fields annotated with @Embedded; the subclass uses the annotation @AttributeOverride to avoid column names duplication.When the tables are ...

How to use xPath to extract a element from a xml stringin BPEL workflow?

658 byte By kew98a at 2007-11-27 11:42:13
I have a xml string passed into the BPEL workflow, and I need to extract the value of "serviceOrderGuid" (see the xml string below), how I can use BPEL mapper to do this? I am using NetBeans 6.0/M10.ThanksKebin<Parameters ...

XML prerequisites?

321 byte By plinkochipsa at 2007-11-27 11:41:55
Newbie to XML question: What is required to run XML on a Windows XP SP2 desktop? (i.e. JRE, VM, etc.). I take XML samples and can run as html, but not xml. An Open XML Editor I am now using also points out root errors (for syntactically correct XML examples). Couldn't find a reference on-line. Any ...

org.xml.sax.SAXParseException: Premature end of file.

1065 byte By dan1234a at 2007-11-27 11:41:29
hi im getting org.xml.sax.SAXParseException: Premature end of file. with following codepublic void parseURI(InputStream inStream) { inStream = new DataInputStream(inStream);if (inStream != null) {log.doDebugLogging("inStream available !!!");} else {log.doDebugLogging("inStream null ...

Is it possible to return to page and send mail asynchonous

646 byte By jposthuma at 2007-11-27 11:41:18
Hi,In my webapp I post a registration form to a servlet from my first jsp page. The servlet then sends an email to the user and forwards the user to the second jsp page.Without sending the email the user is transferred from the first jsp page to the second jsp page in less than a tenth of a second. ...

Run time error: WebServices with Annotations

1965 byte By PavanKumarGuptaa at 2007-11-27 11:40:32
Hi all,Here is my code (HelloImpl.java)package hellojaxws;import javax.jws.WebService;import javax.jws.WebMethod;@WebService()public class HelloImpl {private String msg = "Hello, ";public void HelloImpl () {}@WebMethod()public String sayHello(String name){return msg + name + "...";}}web.xml<?xml ...

Some important question about JPA!!!

1180 byte By wangld7xa at 2007-11-27 11:40:01
Hi there, I have a web application written in Java 1.4I want to move this to Java 1.5 using JPA but after review old code I've got some stuck:1. This application have a function that get Lists from a table:Collection getList(String className, string tableName)That do follwing tasks:Get set of ...

conflict on port 80 shutdown the Sun Java Application Server

516 byte By rinoa_fftsya at 2007-11-27 11:39:02
I have a webapplication(in JSP) running on Sun Java Application Server in Fedora Core. I set the http listener of Sun Java AppServer to port 80. so instead of accessing my application in port 8080, it is access thru port 80.its ok for some span of time (my application is working fine) then suddenly ...

Communication between 2 Enterprise ARcives

239 byte By Leelavathia at 2007-11-27 11:38:34
<p>Hi,</p><p>I have 2 EARs each with separate functionalities. Now i have to use the service provided by the first EAR say Example1.EAR from the second EAR say Example2.EAR. Is there anybody here to help me out?</p><p>Thanks in advance</p>

Platform edition of javax.jms

297 byte By Deepak2001a at 2007-11-27 11:37:59
<p>Hi,</p><p>After going thru Sun site, I found out that JMS platform edition is available only for the Solaris, Linux and Windows platform. Any idea if it is also available for the HPUX platform.</p><p>Also let me know if JMS Enterprise edition support HPUX or not.</p><p>Thanks,</p><p>Deepak</p>

Does income xml request get validated against wsdl?

627 byte By weichen_davida at 2007-11-27 11:36:58
Hi, there:I'm using document/literal web service. My question is: Does income xml request get validated automatically against wsdl complex type xml schema? If not is there any configuration way we can set to validate income xml request automatically?I searched posts in this forum, it seems the ...

Eclipse Europa with Sun Application Server 9

381 byte By darbvina at 2007-11-27 11:35:28
Does anyone know if Europa supports version 9.0_01 of the Sun Application Server? And, if so, how to get it setup?In Europa, I see the following, perhaps one of these is the one I should choose?Sun Application Server 8.1Sun Application Server 8.2GlassFish V1 Java EE 5GlassFish V2 Java EE 5GlassFish ...

EntityManager and Collections (Many-To-One relationship)

1497 byte By unobriania at 2007-11-27 11:34:06
I have an entity (InvalidAddress) with a many to one relationship with another entity (ServiceRequest). I am trying to add an InvalidAddress entity to the InvalidAddressCollection owned by ServiceRequestInvalidAddress invalidAddress = new InvalidAddress();//perform setters on ...

Web services & XML files

382 byte By sche4a at 2007-11-27 11:33:38
I am trying to develop a web services with XFIRE and Tomcat, this web services will use an XML file to store some data, I have integrate this file in the web services project, but when I invoke the service, I get an exception that the file don not exist. I know very well that the problem is about ...

run ANT task in xp local machine & deploy to remote websphere on unix

962 byte By sunprabua at 2007-11-27 11:33:05
Hi,I need to write ANT script for deploying to remote websphere server which is running on unix. Local machine is xp here i need to run ant scriptI written sample code but i am not sure about this<project name="InstallApp" default="installapp" basedir="."> <taskdef name="wsInstallApp" ...

Deploy problem ..

10920 byte By Reona at 2007-11-27 11:33:01
this is my main jsp page<html><head><title>Welcome to login screen</title></head><body><form method = post action = "Usebean.jsp"><table><tr><td>Login</td><td><input type = text name = login></td></tr><tr><td>Password</td><td><input type = ...

Need help on coverting sql statement to NamedQueries

351 byte By thomas1031a at 2007-11-27 11:33:00
hi, all,I have a problem on converting the following SQL statement returning last 10 records from an Oracle database.The SQL statement is as followings:select * from (select * from TABLE1 where ATT1 = 1 order by ATT2 desc) where rownum<11However, how should I convert this statement into ...

calling ejb from another ejb

711 byte By George_.Smitha at 2007-11-27 11:32:48
HiI have an ejb project with 2 stateless session beans : 1) ValidateBean2) ValidateFacadeBean.I created a reference for the first bean (ValidateBean) so i can access it from the second bean (ValidateFacadeBean). the name of the reference is : "ejb/Validation"within the ValidateFacadeBean, i am ...

Where to get javax.jms package..?

282 byte By Deepak2001a at 2007-11-27 11:30:48
<p>HI, i am not seeing javax.jms package neither in Java API 1.4 nor in Java API 1.5. But when i googled i found this package to be part of Java API 1.3. Well, what should i do to make this package available.</p><p>Please also refer good books on JMS.</p><p>Thanks,</p><p>Deepak</p>

javax.mail.SendFailedException: Sending failed

7579 byte By yogeshjoshijia at 2007-11-27 11:30:24
[nobr]when i execute my code given below it works fine on my machine but when i execute same code on different machine i got exception:->javax.mail.SendFailedException: Sending failed; nested exception is:javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first ...

J2EE API download

139 byte By java4sivakumara at 2007-11-27 11:30:17
<p>plz anybody tell me where i can find the link to download the j2ee api and for the jsp api</p><p>my mail id:mailtosivakumar@sify.com</p>

Accessing DataSources via JNDI remotely or from out-of-container vm's

343 byte By Andres_Gleza at 2007-11-27 11:28:24
Hi.Jboss allows making its DataSources available for JNDI remote access: http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSourcesGlassfish also: http://javahowto.blogspot.com/2006/08/access-glassfish-datasource-remotely.htmlThe specs says anything about this? Is this ...

Can weblogic client takes empty arrays being returned.

6308 byte By jadeite100a at 2007-11-27 11:28:21
Hi All:I am using weblogic 9.2 to generate the web service client code.Here is my build.xml file to build the java client code:[QUOTE]<project name="webservices-TEST" default="client"> <taskdef name="clientgen"classname="weblogic.wsee.tools.anttasks.ClientGenTask" /> <target name="client" ...

Cant undeploy faultly app without AppServer but cnat start AppServer

358 byte By bob-upa at 2007-11-27 11:28:07
I missed a step in setting up Petstore. This has resulted in me deploying a faulty application. It seems that I cannot undeploy the application without starting the Application Server 9. But I cannot start AS 9 without doing something about the faulty application.I guess I need to manually remove ...

Using a returned SOAP array

2296 byte By Scott_Sauyeta at 2007-11-27 11:27:45
This feels like a ridiculous question, but Google is not being any help.How do I actually use a value returned as an instance of a subclass oforg.xmlsoap.schemas.soap.encoding.Array? I am trying to use XFire for the client code calling another system. I have the code generating properly from the ...

XMLStreamReader byte location missmatch

1402 byte By Flossya at 2007-11-27 11:27:35
Hello,I am trying to parse a XML file and want to store the byte positions of start and closing tags so I can later use RandomAccessFile to get a particular xml element. This should be used to access very big xml files. I want to be able to pull out a arbitrary xml element given only the xpath ...