standard for EJB

85 byte By aksharam at 2007-9-26 2:47:45
Is there any site or write up about EJB Standard?ThanksRR

indenting the output

205 byte By thotha3 at 2007-9-26 2:47:57
Hi All, My xml output comes as one long line. But I would like to see it indented in the form of a tree for the sake of readability. Is there an api help for this?TIA,sri

Convert JSP to valid XML

385 byte By thomasphlips at 2007-9-26 2:48:06
Does anyone know a good (preferrably free) tool to convert a JSP file to valid XML format?I've tried Tidy, but this tool can convert HTML to XML or XHTML but not JSP to XML. It will check first if my JSP file is valid HTML, which it is not (because there are a lot of JSP tags included, which ...

cannot compile Home interface

814 byte By ajorin at 2007-9-26 2:48:28
doing manual compilation:the message says that it can not find the remote interface which is returned by the create methodI have Win NT 4; J2ee 1.2.1; jdk 1.2.2.008;I have all the *.java sources in one package and all the files start with package com.mycomputer. ...;I am using the -classpath ...

Stateful Session EJB keeps state in multiple JSP sessions

2488 byte By jpreble at 2007-9-26 2:49:04
I have run into a problem when running a simple test JSP/EJB web application that I put together just to try out some concepts. There are 2 JSP pages in the application:Login.jspUserInfo.jspThe login page requests a userID and password and uses a stateful session EJB to perform the login ...

JAXB 1.0 release date?

509 byte By vanitarae at 2007-9-26 2:49:16
According to the JAXB web site, http://java.sun.com/xml/jaxb/index.html:"JAXB 1.0 will be available as an optional package for the Java(TM) 2 Platform, Standard Edition (J2SE(tm)). JAXB may be included in future releases of J2SE or the Java 2 Platform, Enterprise Edition (J2EE )." Does anyone ...

Reentrant

234 byte By PossumKing64 at 2007-9-26 2:49:44
What does Reentrant mean when we are creating the deployment descriptor for an entity bean? I keep seeing statements about loopbacks or callbacks. What exactly does that mean in terms of the entity bean?PossumKing

Can't send mail to outside company

174 byte By dnguyen2 at 2007-9-26 2:50:00
I wrote a javamail program, I can only send mail to internal email address, but not to outside, any reason that could be?Thanks for your help.Dan.

I dont know nothing about XML, but...

566 byte By mikaelkuisma at 2007-9-26 2:50:05
could it fit my purposes...my purpose can be seen here http://forum.java.sun.com/thread.jsp?forum=31&thread=155662I was thinking that I could write the game in a text editor like this... is this XML and how I easily read this in to my game classes? <scene name=church><hotspot ...

How come EJB's are opening more connection to oracle

248 byte By me_elf at 2007-9-26 2:50:08
Hi .my problem is that Oracle db shows there are several open connections to it,where as the only thing that will have oppened a connection to db is ejb'sejb's have container managed persistancethanks in advance

EJB 2.0 and DAO

216 byte By twinans at 2007-9-26 2:51:31
I am curious about the pros and cons of using DAO with CMP in an EJB 2.0 app server. It seems this would not be necessary ... Has anyone tried it? Is it even WORTH trying?Thanks,Tom

urgent

883 byte By siv-viv at 2007-9-26 2:51:58
hi ,i have a jsp page which receives the user name and pass word by two simple methods like getPass()and getuser() , this method works fine by getting the password and username . what i need is that after getting this username and password i need to store them in a xml file which is existing , ...

Where to put utility jar (used by EJB's and war)

930 byte By jesper1 at 2007-9-26 2:52:01
Hello all,In many cases when you create a web application including EJB's and a WAR file packaged together in an EAR file, you need some utility classes that are used in the EJB's as wel as in the servlets in the WAR. The utility classes might for example be value object classes that servlets ...

New bee help!!!

1002 byte By siv-viv at 2007-9-26 2:52:15
hi ,i have a jsp page which receives the user name and pass word by two simple methods like getPass()and getuser() , this method works fine by getting the password and username . what i need is that after getting this username and password i need to store them in a xml file which is existing , ...

Connecting to Cloudscape

801 byte By gary_lo at 2007-9-26 2:52:18
Hi,I'm just wondering whether it's possible to run the full version of cloudscape database downloaded from www.cloudscape.com on a separate machine from the Sun's Reference Implementation of J2EE Server. If this is possible, what are the configurations please? I know that this architecture ...

upload attachment from client?

350 byte By eltho1 at 2007-9-26 2:52:31
I had writtern a servlet prog which send mail withattachment of a file , it is looking the file form local drive.If i access the servlet from another pc while sending , it is looking the local path obviously i will get the file not found error.how to solve this ? guide me !thanks ...

help me sun!!!!!!!!!1

1002 byte By siv-viv at 2007-9-26 2:54:06
hi ,i have a jsp page which receives the user name and pass word by two simple methods like getPass()and getuser() , this method works fine by getting the password and username . what i need is that after getting this username and password i need to store them in a xml file which is existing , ...

Newer in XML Techonology

382 byte By jusbe at 2007-9-26 2:54:24
Hi Friends,I'm newer in XML in Java Technology.Where I find a good samples and good documentations...and, I'll really appreciate if somebody send me a java sample to parse a simple xml, ...

getting PortableRemoteObject exception

797 byte By jtmolecule at 2007-9-26 2:55:58
HiI'm using J2EE1.2.1 deploytool application to deploy a very simple container managed EJB. I have a very simple client that locates the home object and does one create method. I used to be able to locate the home object with the same codegetting the context, context.lookup and then using the ...

Deploytool freeze making client Jars

779 byte By llturro at 2007-9-26 2:56:05
I'm running j2ee 1.3 beta 2. This, with j2ee 1.2 doesn't happen.I create the Application from the deploytool.Then I add a new Web Component, which is already working under Tomcat 4.0. Every verifies OK.But when the deploytool shows the message "Making client JARS..." then stops. There isn't ...

Uncaught exception java.lang.NoClassDefFoundError

1515 byte By rittu_kumar at 2007-9-26 2:56:31
When I am trying to run the following code in Visual Age for Java.Properties p = new Properties();if (this.initialContext == null) {try {if (this.portNumber != null) {String url ="IIOP://" + this.hostName + ":" + this.portNumber + "/";System.out.println("Using provider URL of: " + ...

JavaMail and Outlook/Exchange 2000

1538 byte By adwillia at 2007-9-26 2:56:39
Hi I know that there have been many simular requests to my question, but I have not found many answers, so I will post my question in the hopes that there is a good answer.1) I can send email both within and outside of my domain, but I am unable to read mail. I get following error ...

Handle multiple xml files as input?

261 byte By neelimap at 2007-9-26 2:56:45
I have a java parser which uses JDOM and translates xml file to a flat file. Currently it handles one file at a time. I want to handle if there are multiple such files. Have anyone of you encountered that? Could you please help? Thanks.....

Help! Getting Errors While Using XALAN

475 byte By bigwheeler at 2007-9-26 2:56:53
Hey Everybody, I'm trying to create an instance of the XSLT processor using the following line:org.apache.xalan.xslt.XSLTProcessor processor =org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor( );But when I try to compile, javac says it "can't resolve symbol" and points to the "." before ...

latest verson

64 byte By humah at 2007-9-26 2:59:46
what is the latest verson for JavaBeans these days

Urgent: User credentials

737 byte By aymen at 2007-9-26 3:00:26
HelloThis is urgent. I have a simple HTML form page, that passes say a user and password field to another JSP or Servlet (doesnt matter), the JSP or Servlet looks up an EJB which recieves the user and password as arguments. The EJB performs a JDBC connection and returns whether it cosuceeded or ...

Problem in a composite primary key

262 byte By georba at 2007-9-26 3:00:36
I have a CMP Entity Bean which has two dependent objects which have siple primary keys, but that EntityBean needs the primary key of that objects to be referenced and identify. What is the way to perform it?any help pleased.Thank you.

Who understand how Local Interfaces work ?

845 byte By Marchioni at 2007-9-26 3:01:03
I'm studying Local Interfaces - I'd like to starta discussion on this topic.Local interfaces exist to provide a "local" viewof the bean and to avoid costly remote calls, but howdo I know that it has consistent values ? In other words,if client access a "local" copy of the Bean, ...

how to deal with notfound exception with findByPrimaryKey?

284 byte By jtmolecule at 2007-9-26 3:01:13
Hi,I want to know how I can use the method findByPrimaryKey in a Container Managed EJB and not have it return an exception if it didn't find the row in the database? Can I just make it so it returns a null and not come out as an exception?Thanks.jt

WebServices

698 byte By backmask at 2007-9-26 3:02:12
Hi everyoneI am going to investigate how webservices could be used for banks as my Master Thesis. I have been looking around on java.sun website but I am would like some help with a few questions.First thing I have found out is that servlets seams to be the way to connect webservices(JAXM,JAXP) ...

startElement method not Called

927 byte By asho_kk at 2007-9-26 3:03:47
Hi All,I am trying to parse an XML by extending DefaultHandler.... InputSource input = new InputSource(new ByteArrayInputStream(fileContent)); SAXParserFactory spf = SAXParserFactory.newInstance(); spf.setValidating (false); XMLReader xmlReader = null; SAXParser sp = spf.newSAXParser(); ...

Which is the way to take JNDI info about some Entity Bean?

256 byte By georba at 2007-9-26 3:04:07
I'm trying to take the JNDI reference of an Entity Bean for using in a lookup method in a dimanical way. i.e I have to choose one of any possible Entity Beans depending of the JNDI reference of them.Any help needed...Thank you.

How can an entity bean access a custom connection pool?

278 byte By buruccha at 2007-9-26 3:04:31
Is there any way for entity beans to access a shared context like how servlets/jsp can access servlet context for global information?My entity bean needs access to a LDAP connection pool created by a servlet. Could JNDI provide an alternate solution?

How to master good design with EJB and JSP?

295 byte By dragon_east at 2007-9-26 3:05:37
I use JSP to calling EJB. But the .jsp file is complex and it's difficult to maintain...I just want to work higher efficent with EJB,JSP and JavaBean. I want to know is there a good design with EJB and JSP? and is there any good material about MVC for EJB,JSP and JavaBean?

Parsing...

259 byte By sumanth_kumar at 2007-9-26 3:08:12
Hi, I am new to XML and want to know how to parse if I have something like this "<ROW ACC_NO="10802001" REFR_NO="0443310043" TRAN_TYP="TR" TRD_PX=".00000" > </ROW>" in my input xml file. Urgent .. PlSumanth

Java SDK1.3 Enterprise Edition Vs. Standard Edition

240 byte By thunderBolt at 2007-9-26 3:08:32
What's the difference between the two? I am currently using the standard edition. I just started learning how to develop enterprise java beans. Would it be better if I use the Enterprise edition instead?

CMP EJB in 1.1/1.2..., mapping problems

1090 byte By jpilgrim at 2007-9-26 3:08:48
Hello,I'm a little bit confused by all these different EJB specifications and products...I want to use CMP EJB, because as far as I understand this topic, the container should do a lot of work for me (transaction management, connection pooling) and all tutorials tell me to prefer CMP ;-)Now ...

PageNotFound when using servlets as clients for EJB

2098 byte By jtmolecule at 2007-9-26 3:09:21
Can anyone help me? I have a container managed EJB. I'm using servlets as my client. I placed my EJB's in a jar file and my servlets and html pages in a WAR file. I deployed them using J2EE's deploytool. I can access my html files but not my servlet files. It always says file not found or a ...

Attaching a file from client to server java mail program

471 byte By manian97 at 2007-9-26 3:10:50
Hi all,You may come across this problem earlier. My mail program running in server and when clients try to upload a file from their local(client) and when trying to send mail , my server not able to find the file. Is it required to use file uploader thing to load the file from client to server ...

SAX?

381 byte By mikaelkuisma at 2007-9-26 3:10:53
TestXML.java:78: cannot access org.xml.sax.InputSourcefile org\xml\sax\InputSource.class not foundDocument doc = builder.build(new File(filename));^1 errorSo where can I get this package.BTW, i have created my own kindof serialization program using JDOM and reflection. I was about to test it ...

How Can I find the deployment descriptor in my Linux?

388 byte By georba at 2007-9-26 3:11:29
I need to see the field "ejb-name" of an EJB for processing in a method but because of I need to tract it using the apache xerces API for XML files, first I need to Know where is allocated the deployment descriptor of my EJBs. What is the call I need to perform to get the real path of my ...

How to create a mailbox like INBOX

191 byte By metalcure at 2007-9-26 3:12:01
Hi all!I want to cennect to my mail server and create other mailboxs like INBOX with java mail API.But I don't know how to start.Your help will be grateful appreciated!

Problem in receiving e-mail (Javamail)

1148 byte By isam_hk at 2007-9-26 3:12:04
Please help I found the error of "no provider for pop3" when I run the following program in my office (using proxy to internet but the pop3 a/c is work for my outlook to rcv e-mail). However, that's no error prompt out when running at home but nothing to display even there are two msgs in my ...

DTD Creation using Java from XMLSchema

265 byte By rkumarraj at 2007-9-26 3:12:07
Dear FriendsCan anybody solve my problem.See friends i have the Schema With the help of that schema i want to create DTD Using Java .If u peoples have any solution please forward me sample code or tell me where i can get the information.

Sending Parameter and Data via POST to Servlet

5543 byte By FrankSch at 2007-9-26 3:13:04
Hi,I want two things done. I want to contact a servlet via HttpUrlConnection and send both Parameters and XML data.The XML data sending just works fine with getOutputStream on the HttpURLConnection. I can receive the data in the servlet with request.getInputStream.But what is to be done to set ...

Problem in getiing From Id while receiving mail

453 byte By achintya77 at 2007-9-26 3:13:13
I am trying to receive mails from my IMAP server, I can get Message subject, message body but I can not get the From ID i.e. E-mail address of person who has sent me the mail. I am useing message.getFrom(), to read the IDI get answer something like this : ...

weblogic ejbc error (very urgent)

464 byte By amtanoli at 2007-9-26 3:13:17
hi,i am trying to deploy an entity bean, but after compiling the source code weblogic ejbc gives an error message "In EJB beanManaged, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient."while everything goes fine with the example code ...

use XPath to select one of the node?

3384 byte By calvinchoi at 2007-9-26 3:13:38
Can I use xpath to draw <param-value>/mnt/VISL/stats/stats/clarent2</param-value>only?I have tried to use ApplyXPath sample, but I don't know what xpath value I should use?I tried /doc/servlet/init-param/param-valuebut it certainly draw other tag with the same namePls ...

Releasing handle on XML file

1588 byte By jcshroff at 2007-9-26 3:14:20
Hi,I need to know how do you release a handle on an XML file after parsing it. I am using the JAXP API for XML processing, in a Java servlet running on Java Web Server. I am creating the XML document object through the DocumentBuilderFactory, DocumentBuilder and Document interfaces. After ...

Developed Complete Mail System

369 byte By webchella at 2007-9-26 3:14:26
Hi All I have completed the whole Email System by using the Java Mail API's. It has the features like, Send, Recieve, Multiple Folders, HTML Composing, Block Sender, Sorting, Filters, Address Book, etc. If any java programmer wants help on Javamail then mail me at. webchella@hotmail.com ...