Handling Bounced Emails - 'Errors-To'

334 byte By gill01 at 2007-9-26 8:19:33
I intend to use JavaMail to send emails. If there is an invalid address, the mail bounces back. Normally the mails bounce back to SMTP from but there is something called 'Errors-To' field also which if present causes all bounced emails to be sent to this address.Does JavaMail also support ...

Login Statefull Session Bean

500 byte By danbunea at 2007-9-26 8:19:38
I need to create an instance for a stateless session bean used for login.I want to know if it is possible to make a create method such as:ejbCreate(String user,String password)which checks if the user can be logged in and if not I do not want the session bean created or if it is created then I ...

XPath problems (or XKMS problems)

2810 byte By nemov at 2007-9-26 8:20:21
Hi,I'm working with XKMS (XML Signature) package, and i have found some annoying problem (maybe someone has found it too and has solved it).When i create an XPath expression to point the Signature element of my XML file and try to construct a verifier which will check that signature, i get the ...

Subtopics for Pub/Sub in JMS

589 byte By ksesha at 2007-9-26 8:20:22
Why is support for subtopics by the Provider not mandatory as part of JMS specification? Which vendors currently support Subtopics for Pub/Sub mode of communication?Does the IPlanet Message Queue server support any form of SubTopics for the Pub/Sub?Hierarchical Subtopics as one implementation ...

runclient on win98

1671 byte By benedict1 at 2007-9-26 8:21:03
I'm trying out the converter tutorial. I was able to successfully install and run j2ee, deploytool and ant on win98. Now I'm trying to run the application client.runclient -client ConverterApp.ear -name ConverterClient -textauthThe login screen appears and I enter guest and guest123.The ...

J2EE Deployment of non-ejb components.

245 byte By gkaestle at 2007-9-26 8:21:13
A question. When installing into a J2EE app server - what is the prefered way to install just standard java classes your application uses? Should they be in the classpath, somehow in the jar or ear files?thanks in advance :)

EBJ Limitations?

1305 byte By lance.johnson at 2007-9-26 8:22:00
According to my reading, EJBs have some self-imposed limitations that they must adhere to. I am a little confused why some of these are necessary. The ones I have questions about are.1) Your bean must not use static fieldsI am guessing this is required because multiple beans could be running on ...

jaxb unmarshalling subclasses

331 byte By s_dot_com at 2007-9-26 8:22:07
hi,If I extend the classes generated by jaxb, and unmarshall the root element (using newDispatcher() ... etc )The child elements will be unmarshalled as the original element not the extended one.Any ideas on how to fix it, without casting every timehope my question is clear !Thanks ...

minimalistic web-app: how to deploy?

326 byte By IgorTN at 2007-9-26 8:22:37
suppose, I'm building the simplest web-app which consists only of one html file.how do I deploy it correctly with the deploytool? do I have to create a web-component? if yes, how? it's neither a servlet nor a jsp. it must be very simple but I'm kind of lost, please help!thank you. ...

EJB(Container-managed persistance)

440 byte By manojkumarc1 at 2007-9-26 8:22:38
Hello,I have tryed entity bean using bean managed persistance.this means i have to write code for JDBC conncetion.it is working fine.but there is some in using container-managed persistance in which the conatainer handles the connection.i am using weblogic 4.5.i want to know is this version ...

How do I retrieve elements in a xml document ?

245 byte By footprint at 2007-9-26 8:23:00
I would like to know how to retrieve elements from xml document ?I have created a document already, but how do I proceed from there ?Also, how do I access the values inside, the attributes and value ?Thank you.

can't compile with ant

737 byte By sepidnam at 2007-9-26 8:23:20
Hi everybody.Now I'm reading J2EE Tutorial pdf of sun.(page 48)I get the following error message when I want to compile enterprise bean.--F:\src>ant converterSearching for build.xml ...Buildfile: F:\src\build.xmlinit:BUILD FAILEDF:\src\build.xml:18: Class ...

JAXB: ScanIOException

568 byte By jPitsme at 2007-9-26 8:23:25
javax.xml.marshal.ScanIOExceptionline 112: java.io.IOException: Le chemin d'accs sp cifi est introuvableat javax.xml.marshal.StreamScanner.next(StreamScanner.java:62)(the specified path cannot be found)Hi, this is the error I get when I try to unmarshall objects from an xml file. If the file ...

Trying to start the j2ee to be the JMS provider but why error

1843 byte By alexgnp at 2007-9-26 8:23:33
Anyone knows why I can't start the j2ee ..which I hope to use it as the JMS provider. I am trying to try the e.g. from JMS tutorial....But it seems that I can't start the j2ee in the first place 'cos error say that I have another instance running...(but I didn't start anything in the first ...

Writing a JavaMail server

736 byte By hdevaan at 2007-9-26 8:23:37
LS,I've been looking into some documentation on the JavaMail API and I've found some example programs (like the course "Using JSP and JavaMail" at the JSP Insider). What I've learned so far is that an array of different email clients have been written (or can be written) with this API.What ...

bean to bean ?...

721 byte By shalini_p at 2007-9-26 8:23:43
hi group!I have two ejbs in one application server like weblogic server 6.0.( Bean1 and Bean2)Bean1 has one method like connection to database using pool connection it is inserting one record in database.Suppose if any exception occurs in the Bean1 method,jus it will come to catch block .(like ...

weblogic server 6.1

628 byte By mirzaasad at 2007-9-26 8:23:51
hi friends, I am new to EJB. So far, i have a little experience with J2EE server. now i want to start working on WEblogic Server 6.1. Is it ok to start with Weblogic 6.1 or I should better have a handson on WL5.0.Secondly, I am still not clear abt how to configure a connectionpool for oracle8i ...

Methods in XML--pL help

1293 byte By smitaunni at 2007-9-26 8:24:02
I have string...as String xstr="<?xml version=\"1.0\"?>\n"+"<UserGroups>\n<u_bit><![CDATA[1]]></u_bit>\n"+"<u_title><![CDATA[public]]></u_title>\n<u_description><![CDATA[Pages are available to all visitors - no restrictions are ...

Servlet brain teaser

711 byte By glpeters at 2007-9-26 8:24:24
If you have a servlet and every time you access the servlet you retrieve the parameters passed to the servlet and store them in a global variable(i.e. private String databaseIP = <value passed>)what happens if two different database ip's are passed to the servlet at the same time when ...

how to send a message with javamail api

108 byte By rossifumi80 at 2007-9-26 8:24:29
Hi, anybody can tell me how i do to send a message with javamail?Thanks.Daniele.

Problems validating XML files

401 byte By Sonett at 2007-9-26 8:25:00
How can I validate an XML file without a DTD reference inside the file and without an internal DTD.I want to execute 'java file.java myfile.dtd myfile.xml' from the command line.I'm using SAX and Xerces2.0. Is there any method likeurixml = args[0];uridtd = args[1];parser.parse(urixml, ...

Perplexity about setters in EJB 2.0

401 byte By JFELFOULY at 2007-9-26 8:25:14
I read the norm carefully and had some practice with BEA WebLogic.One thing leaves me in some perplexity:setter functions need to be abstract. How are we supposed then to verify the parameters, e.g. to check that they are not null, or fall within a given range, and all other sort of business ...

Design issue.

623 byte By tsawan at 2007-9-26 8:25:25
Hi,For a new project, I need to decide whether its suitable to use session beans or a servlet/jsp approach is enough.The java application talks to a legacy C++ application and all the communication is XML over Https.There's absolutely no requirement to handle transaction and security in java ...

Parsing String in XML format

93 byte By zahran at 2007-9-26 8:25:31
Hello,What is the proper way to parse XML String instead of a XML file?.

Exception: org.xml.sax.SAXParseException

332 byte By duaneblock at 2007-9-26 8:25:34
Hi Folks,We are trying to parse against a dtd and we are receiving:org.xml.sax.SAXParseException: Relative URI "C:\SuitabilityHR.dtd"; can not be resolved without a document URI.The path is absolute and named correctly. Can anyone provide some direction around the cause of this exception? ...

Invalid permissions for a executing methods on a BMP

814 byte By jfisher1 at 2007-9-26 8:26:07
The home interface lookup is successful. However the following error is thrown when I attempt to execute a method on the home interface:CORBA NO_PERMISSION 0 No; nested exception is:org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: NoIs there some permission or user setup requirement for ...

XMLReader Abstract Method Error

1718 byte By ConlonP at 2007-9-26 8:26:45
I was receiving a security excpetion when trying to invoke SAXParser's newInstance() method but have since solved that. now, when i try to do the line:XMLReader xmlReader = saxparser.getXMLReader();it gives me the following:java.lang.AbstractMethodError: ...

tutorial

97 byte By samba23 at 2007-9-26 8:26:57
can any body tell me an address of a good xml tutorial apart from the sun.java one.

Startup error of cloudscape database with Java Pet Store

682 byte By JaimeSu at 2007-9-26 8:27:54
I have met with problems when starting up the cloudscape database in Win 98. The scenerio is as follow:e:\>set JAVA_HOME=e:\jdk1.3e:\>set J2EE_HOME=e:\j2sdkee1.2.1change directory:e:\>cd %J2EE_HOME%\bine:\j2sdkee1.2.1\bin>cloudscape -startout of environment spaceout of environment ...

java mail security Acess Exception in JWS

474 byte By msnangare at 2007-9-26 8:29:20
Hi friends ,I am using jws2,0 with external jre option ie.stating jws with httpdnojre -javahome c:\jdk1.3 When I use this option my mailing program throws exception java.security.AcessControlException .But,when I used default jre along with jws2.0 then it works fine .Can anyone guide me to so ...

architecture to choose for new mail notification

631 byte By ranjithT at 2007-9-26 8:29:33
Hi all,The requirement is to get a notification when a new message comes in to the mail server and in response send an SMS message. Need suggestion/opinion on the architecture to be used. 1) Use socket programming to listen to the smtp incomming port and .....2) Use IMAP/POP to keep track of ...

Update XML File

178 byte By MZL at 2007-9-26 8:30:23
Hi, I want to create program for updating existing XML file. Does anybody know any example programs about that? It will be appreciated. Mariya

Access Datasource from Servlet Engine (Tomcat)

3977 byte By noel_william at 2007-9-26 8:30:47
Hi,I'm using datasource connections in my beans and event in servlets.. It works fine in JRun 3.1 environment.But when I port to J2EE1.3 its throwing this exception...I just want to understand whether it is a limitation in J2EE1.3 & Tomcat environment or it is a security problem or do I ...

CRLF characters in CDATA section

888 byte By billRoberts at 2007-9-26 8:30:51
I am trying to store a string in a CDATA section of an XML file. Many of my strings have CRLF characters (i.e. ASCII 13 + ASCII 10) and these are causing problems.I create a DOM, then write the DOM out to a file - it looks like a reasonable XML file (with line breaks in the CDATA section where ...

Sending Mail

162 byte By joemac72 at 2007-9-26 8:30:59
I need to know how to send a text mail message thourgh a NetWate server with the SMTP gateway. Is this possible and if so how can it be implemented?

Calling method on Stateful bean from another statefull bean

1140 byte By kingric at 2007-9-26 8:31:11
Hi all,I have a stateful session bean (LoginBean) that is used to create connections for various databases. This bean has methods to create the connections and to return the connections. I then have another stateful that needs to call the getConnection method on the Login bean. My question is ...

can someone help me please !?

2084 byte By noel_william at 2007-9-26 8:31:13
Hi,I'm using datasource connections in my beans and event in servlets.. It works fine in JRun 3.1 environment.But when I port to J2EE1.3 its throwing this exception...I just want to understand whether it is a limitation in J2EE1.3 & Tomcat environment or it is a security problem or do I ...

How many users one EJB server can handle?

280 byte By dudenko at 2007-9-26 8:31:25
How many concurrent users can be served by one EJB server? After which point claster of servers should be created?I know that it depends on application, but can someone estimate some rough average?Real numbers from working application are very welcome.

Running the J2EE tutorial examples failed

1628 byte By vayssade at 2007-9-26 8:31:36
Hi,I installed jdk-1.3.1_01 and j2sdkee-1_3-linuxthen running the examples of the tutorialexamples works when the client is run from the SAME machinethan the J2EE server is runningwhen trying to run the client from another machine, it fails with acryptic error (by the way java error reporting ...

Urgent!!! how to trap bounced back mails thru java mail

116 byte By kapiltaran at 2007-9-26 8:31:41
Hi,I want to trap a bounced back thro java mail. Is there any way out. Please help. Its urgent.

How to identify bounced mails thru java mail?

338 byte By kapiltaran at 2007-9-26 8:31:49
Hi everyone,I have a Javamail program through which I m sending and receiving mails. I want to identify bounced mails from the ones I receive. Is there a way in the Javamail API or the SMTP protocol to detect if the mail recd is a bounced one? Some header or something?Any inputs will be ...

How to identify a BMP bean.......

422 byte By nagsen at 2007-9-26 8:32:25
Hi,I have a database table which has a combination keys as a primary key. There is no such one unique column in the table, but its combination of 2 columns that makes a primary key.My question is, how would I identify an entity bean(BMP) in memory by using EntityContext.selectPrimayKey() ...

multiple connections in one transaction

369 byte By silmx at 2007-9-26 8:33:01
I try to access from inside a transactional method of a session bean two methods of another entity beans that are creating and closing two connections.There came an ROLLBACK exception with message: connection allready open ....How can I access another entity methods from one transactional ...

new to j2ee, where to put a servlet?

372 byte By kateemerson at 2007-9-26 8:33:26
Hello,I am very new to J2EE, and I will much appreciate if you can help me.With j2ee, which directory should I place a servlet, not JSP? Also how can I address the URL of the servlet? I tried putting a servlet in the repository directory where complied JSP files are saved, but it didn't seem ...

New system w/ database access.

1071 byte By pagalvin at 2007-9-26 8:33:47
Greetings,I work for a consulting company and we are hoping to secure a project for a client that will provide for them some fairly simple data entry programs. There will be a pretty high volume of data entry.The data must all go into a database and they have a strong preference for MS SQL ...

Problem with XML and XSLT, help...

2306 byte By tedjop at 2007-9-26 8:34:28
Okay, I have this XML doc (called stocks.xml):<?xml:stylesheet type="text/xsl" href="stocks.xsl" version="1.0" encoding="UTF-8"?><portfolio><stock><symbol> SUNW </symbol><name> Sun Microsystem </name><price> 12.95 ...

How many clients(specify in no.) concurrently access Weblogic server

157 byte By manojkumarc1 at 2007-9-26 8:34:47
helloi want to know how many clients can concurrently access a application server. for example:weblogic server or java webserver.

where to place images

630 byte By chandt at 2007-9-26 8:34:50
Hi,Where can I put my image directory? For example, my application requires functionality to upload and display various images. These images can't be jar'd with the WAR file, because they are dynamic. But the problem is: How to get a file system reference? I have tried a bit of sneakiness. In ...

calling one bean from another

698 byte By thman at 2007-9-26 8:34:51
Hi,Iam new in EJB. I got some doubts While calling one bean from another. I used the EJB1.0 method context.getEnvironment() to pass the environment to the InitialContext() but i found that it is deprecated and i need to use java:home/comp/env. i dont know how to use it. I know it is the JNDI ...

JAXM and SOAP

666 byte By krausest1 at 2007-9-26 8:36:03
Hi all,I'm trying to create SOAP messages with JAXM to communicate with a .NET soap server. I ran into several problems and I hope you can help me:1. The message must start with "<?xml version=\"1.0\" encoding=\"utf-8\"?>". If I print my message I can see that it's missing. How to add ...