Pet store architecture question

800 byte By neu9109 at 2007-9-26 5:19:19
Hello,I have downloaded Sun's sample J2EE pet storeenterprise application 1.1.2. I was surprisedto find that in at least two entity beans thatthey loaded model data into the entity beanin the ejbFindByPrimaryKey method:AccountEJB.java:..public String ejbFindByPrimaryKey (String key) throws ...

EJB Container and transaction

116 byte By zahran at 2007-9-26 5:19:45
Hello all,How does ejb container know if a method is being called within a transaction?.

compile java program

709 byte By rrbaker at 2007-9-26 5:20:33
Exception in thread "main" java.lang.NoClassDefFoundError: NonThreadWhy do I get the error above? My source code is below:public class NonThread { public static void main (String[] args) {PrintNumbers p1 = new PrintNumbers(1, 2);PrintNumbers p2 = new PrintNumbers(2, 2);p1.print();p2.print(); ...

Can I use JDOM to parse if I just put the class into a servlet folder witho

498 byte By auwy29 at 2007-9-26 5:20:34
Dear ALL,I am using JDOM to do some parsing of my XML. I can compile it on my own machine since I installed JDOM.But I have to put all my files in a servelt folder at my college which hasn't got J-DOM installed.I placed the jar file into it, and the class which I compiled on my machine but It ...

XML to String and String to XML?

268 byte By pafoege at 2007-9-26 5:21:13
Does anyone know if there is a method that will convert a Dom object to a xml string?Also, just the reverse, when loading a dom, can you load it by passing it a string, rather than a location?I know Microsoft has this in their msxml.

How to retrieve data (xml file) using jsp

179 byte By kazz1982 at 2007-9-26 5:21:42
I am a newbie to xml. I have decided to store my information in the xml file. may I know how can I retrieve my information from the xml file?Thanx in advance.

Display mail image

733 byte By lamdalam at 2007-9-26 5:22:07
Hello,I would like to know how to display an image in the browser ?I got a mail where some image had attach into it. now i m using servlet to build a mail client.I can retrieve text/pain and text/html parts, but i cant find a method to display the attached image in the mail.I can save the image ...

ClassNotFoundException with Xalan under Tomcat 3.2.3

1475 byte By shausch at 2007-9-26 5:23:10
Hello,i want to integrate xalan in my servlet.the source:try {TransformerFactory tfFactory = TransformerFactory.newInstance(); Source xmlSource = new StreamSource(new URL(" http://localhost:8080/..."+ strLang).openStream()); Source xslSource = new StreamSource(new URL(strXSL).openStream()); ...

Migration from iPlanetMessagingQueue to MQSeries

716 byte By harmeet_sw at 2007-9-26 5:23:47
Hi,I have build an application in Java, with JMS using iPlanetMessagingQueue2.0.I want to use MQSeries for the same application.As far as I know, to migrate from one vendor to other I will have to createan administratir object according to the vendor specifications.I have downloaded the 3 trial ...

Applet to an EJB

105 byte By tetoufou at 2007-9-26 5:23:55
How can i get an EJB reference without communicate with a servletthanksFabien

Problem when deploying entitiy bean

519 byte By anandMDK at 2007-9-26 5:24:17
Hi, I have written Entity bean where i am using PrimaryKey Class CheckPK, when i am deploying the entity bean i am getting the following errors. D:\weblogic\examples\ejb\basic\Check\ejbcgen\examples\ejb\basic\Check\CheckingBeanEOImpl.java:56: Incompatible type for =. Can't convert int to ...

Exception thread "main" java.lang.NoClassDefFoundError : javax/mail/Address

368 byte By bahrian at 2007-9-26 5:24:58
Hello all I am geting this exception Exception in thread "main" java.lang.NoClassDefFoundError : javax/mail/Addressplz tell me wat i have to do every thing is set.i have installed mail api exactly according to instructions but i am getting this exception plz give me solution my mail add is ...

is my xsl optimized?

2655 byte By james_mclean at 2007-9-26 5:25:30
Hi All,I am kinda new to the whole world of xml. I was wondering if anyone could help me out by telling me if the following xsl file is optimized or not.XSL:<?xml version="1.0"?><xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output ...

can a util class access a datasource

132 byte By tman191 at 2007-9-26 5:26:04
Can only EJBs access datasource ?i.e - can a util class have static methods that access datasourcethanks

CDATA error. Is it me or Sun?

4137 byte By vy_ho at 2007-9-26 5:26:11
I have a sample xml below and Sun's java source code. When use jdk1.3.1 or 1.4 and jaxp as the parser, I got error when turn on validation. Also, the CDATA section does not show properly when turn of validation (only show: Diagram:). Why "Text" still show for empty spaces when validation turns ...

XML data not displayed with XSL

1561 byte By OmahaLancer at 2007-9-26 5:26:21
I have just started learning XML so bear with me. I have a xml document that I created and want to use a stylesheet to display it in html but it doesn't seem to be working. Here is the xml file:<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="XSL\myXSL.xsl" ...

JMS Exception

243 byte By Tsoy78 at 2007-9-26 5:27:17
People, please help:I am getting the following message:"javax.jms.JMSException: java.io.IOException: Bad portmapper version number: 101". Can anyone tell me what's a portmapper, and how it is possible to change it?

Sending Mail through an application

444 byte By sarwottam at 2007-9-26 5:27:48
Dear FriendsI am developing client server applications. I use RMI Technolgy for some of my applications too.I would like to make my application mail activated. The user should be able to send a mail to a desired location using a standard GUI provided by me.How can I go about it ? Please send ...

JMS over MQSeries -- Security Questions

734 byte By nycelina at 2007-9-26 5:28:21
Hi.I am new to JMS and would like to have JMS over MQSeries. When a message is sent in request/reply, MQSeries currently attaches a header to the message including information such as userID and information regarding the application that sent the message.My Questions:1. Does JMS provide an API ...

XSLT with namespaces

543 byte By varaprashanth at 2007-9-26 5:28:28
Hello everyone:I am using the xalan-j_2_2_D9 from apache to design my style sheets. I was going through the examples that come along with the package and tried out the simple transform program for a style sheet and a corresponding xml file.It was strange really, when I apply the stylesheet to ...

JDOM Xalan org.w3c.dom.Document:

2707 byte By Lenin_tony at 2007-9-26 5:28:43
HI,I am trying to use JDOM is load and render an XML file. However when I try to run the program I get the following below:org.jdom.JDOMException: Exception outputting Document: org.w3c.dom.Document: method createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element; not found Any ...

XSLT Namespaces URGENT

304 byte By varaprashanth at 2007-9-26 5:29:54
Hello everyone:Can anyone give a brief description of the precautions to take when creating xsl's that handle xml documents with namespaces.Do translets handle namespaces? There is a code sample for my problem a couple of topics below.Thanks in advancePrashanth ...

Accessing Javabean on remote server wireless connected

276 byte By pkmuddana at 2007-9-26 5:30:50
I will be grateful if can help me. I am unable to connect to Remote Javabean on server from dedicated client application. Is it possible? If possible does the J2EE allows conection to the server if server is wireless connected from java application

cmp-field persistance problem, (desperately) need help...

7137 byte By verdi96 at 2007-9-26 5:31:27
Hi,I'm dealing with this annoying behavior of cmp-field. Sorry ifthis post is kinda long, I'm new to EJB...Here's my ejb snipplet:public class ProductAttributeBean implements EntityBean{public String productId;public String typeId;public String value;public String url; private EntityContext ...

Calling EJB from JSP deployed on remote machine

271 byte By mhowwala at 2007-9-26 5:32:10
I have an EJB delpolyed on one machine and JSP deployed on another machine. I want to call this EJB from JSP using dynamic downloading of stubs. Can anybody tell me how to do this ? or Where can I get the resouce on this topic ?thanks,Manish.

java.lang.SecurityException:- sealing violation !!! Urgent

1857 byte By shahid_faiz at 2007-9-26 5:32:19
i m writing a client for EJBs which receives XML from EJB, parses it and then use the information. while parsing it gives the following exception.while the same parser is used in EJB deployed in WebLogic works well .... any one know please help me .... Parser: parseSchedule() ...

Accessing EJB components from a Remote Client

923 byte By kbjava at 2007-9-26 5:32:44
Hi,When an web component (Servlet/JSP/Java appl.) need to invoke an business method from an EJB, it first lookup for the registered name from the Application server and obtain the remote reference i.e. the EJB Remote interface. To do this, the client must have got the client-jar file containing ...

Session Beans in an EJB Container

1077 byte By kbjava at 2007-9-26 5:33:44
It is likely that the EJB container maintains a pool of instances of the beans and serve the client calls accordingly. When the client invokes the create method of the home interface, the container instantiate the bean and it's ready. Again when client invokes remove method, the container ...

scope of static variables

626 byte By mgrindel at 2007-9-26 5:35:01
Hi,to get the right understandig of static variables within ejb i have the following question: Having a session Bean "A" which instantiates a class "B" with a static member "c", and session bean "A" is instantiated by two clients running on different machines (i.e. differnet JVMs), is it ...

Servlet instantiate an Applet/Fraem?

251 byte By chadorbaf at 2007-9-26 5:35:37
HiI need help on following:1- How Servlet can execute a command?2- I that possible a servlet instantiates an applet or frame?Would apreciate any command(prefered sample code) on this.Thanks...Ali

XML Coding Style

792 byte By MartinS. at 2007-9-26 5:35:52
I'm planning to use XML to configure a J2ee system, and I've come across what appears to be a coding style issue. The following are equivelent, yet it's normal to see the former, yet it would seem to me that the latter is better, shorter and clearer. I'm thinking of mandating the ...

j2eeadmin not working

240 byte By runtojesus at 2007-9-26 5:36:33
I have j2ee1.2.1 and jdk1.3 installed on my system. I have compiled a JMS class file and have started my j2ee server. When I try and use j2eeadmin, it can't find the command. How do I get that to work? Where is that located?

endElement isn't called SAXParser

5610 byte By vivek_adnan at 2007-9-26 5:36:50
Reply to vivek.pothagoni@delta.compackage com.delta.wdel.sax;import org.xml.sax.helpers.*;import javax.xml.parsers.*;import org.xml.sax.*;import java.io.*;import java.util.ArrayList;import java.sql.Connection;import com.delta.wdel.database.*;import com.delta.wdel.common.*; /** * A Class class. ...

Allowing tags to show using XSL

764 byte By OmahaLancer at 2007-9-26 5:37:14
I have a XML document that has multiple comment elements that look something like this: <GstBk:Comments>Line1 Line2 Line3 Line4 Line5 Line6</GstBk:Comments> But when I try to use the following code: <xsl:value-of select="GstBk:Comments" /> or <xsl:apply-templates ...

WebLogic: Can I use CMP for HTTP/XML calls like I can for JDBC ConnPools

827 byte By chrisaadams27 at 2007-9-26 5:37:19
I have an Entity EJB that I currently persist using WebLogic's CMP with an Oracle Conn Pool and JDBC. I have a new persistance (home-made) storage system that talks XML over HTTP. No real SOAP implementation except in the XML/HTTP communications.Questions: Can I still leverage CMP to persist ...

XSLT TransformerConfiguration Error!! Tomcat

1444 byte By varaprashanth at 2007-9-26 5:37:35
Hi,I am calling the following String dlReturnResult = new String();StringWriter dstringWriter = new StringWriter();PrintWriter dprintWriter = new PrintWriter(dstringWriter);try {TransformerFactory dltFactory = TransformerFactory.newInstance();System.out.println("Reached Check Point ...

How to transform Xml to html which contains javascript

212 byte By deer2000 at 2007-9-26 5:37:36
I know it is useful to use xsl to do simple transformation, but since I need to pass some values into the javascript's functions in html, just don't know how to do that. Any advice is apprciated!!

To generate a XML file against schema

1520 byte By gulugala at 2007-9-26 5:37:45
Hello,I am trying to parse a schema then against the schema to create new DOM object for the new XML file. After going through each element type from the schema DOM and find the type of each element, I could not deal with <xsd:sequence>. I could parse the schema without ...

How to SELECT FOR UPDATE with CMP (Oracle)

663 byte By aberglas at 2007-9-26 5:38:09
The most common database (Oracle) by default uses a scheme that does not fit into any of those isolation levels. A SELECT statement selects data at the start of the transactions, whereas a SELECT ... FOR UPDATE does something quite different. It is essential to do SELECT FOR UPDATEs before ...

difference between stateful and stateless session bean?

81 byte By smallsun at 2007-9-26 5:38:23
What is the difference between stateful and stateless session bean?

Fav J2EE IDE?

76 byte By ygjohn at 2007-9-26 5:38:35
Hi all, which's yr fav Java IDE that supports EJB dev?

Data Manipulation with ContentHandlers

1618 byte By [tone] at 2007-9-26 5:38:48
Okay, I understand that when parsing with SAX, ContentHandlers work on the data thats parsed as it's parsed.What I'm having problems understanding it how to work on the data structurally. For example here is what I'm trying to achieve:I generate a DOM Document based on database results and ...

jaxb script

47 byte By ulrich dinse at 2007-9-26 5:40:34
is there a xjc script for win-nt?

EJB Architecture Question re Statful Session Beans

394 byte By nickredshaw99 at 2007-9-26 5:41:07
Context: Multi-tier web application.I need to store conversational state over several user actions. To achieve this I plan on storing a reference to a Statful Session bean within a JavaBean which is itself stored in the javax.servlet.http.HttpSession object. The Session bean will hold the ...

Attributes Not being picked up by SAX parser

558 byte By proflux at 2007-9-26 5:41:16
Hi,I am having trouble getting my SAX parser to accurately determine the attributes attached to my XML tags.My XML tag looks like:<question type="multiplechoice">The parser comes to this element and calls the startElement method. When I System.out the attributes.getLength() it returns 0. ...

When I installed jms (j2ee1.3) my lookups doesn't work anymore...

3856 byte By rodrigocoronado at 2007-9-26 5:42:03
Hi. I was using j2se 1.3 and performed some lookups on objects from an Oracle 8.1.7.Then, in order to use jms, I installed j2ee 1.3 and j2se 1.3.1. Now my lookups doesn't work anymore, but my lookups on jms objects (por example Queue or QueueConnectionFactory) does work fine. This is the code ...

Field truncation with CMP beans

226 byte By snowbird1 at 2007-9-26 5:42:32
I want to be able to store Strings that are larger than the default 255 characters that are allowed.Do you do this using J2EE deployment descriptors or vendor specific deployment descriptors?Thanks.

Urgent Questions about EJBLocalHome (Please Help)

1736 byte By njing78 at 2007-9-26 5:43:11
I developed an EJB application according to the paper "Enterprise JavaBeansTM 2.0 Container-Managed Persistence "But I faced compiling errors when I compile the CMP entity bean which extends the Local Home Interface. My program is like this:************************import ...

EJB TX breakdown?

2166 byte By butcheri at 2007-9-26 5:43:20
Hi, I am having some interesting TX problems using JBoss 2.2.2.I have areasonably complex TX which does the following:1. Find container entity A.2. For container entity A assign all contained entities to container entityB. (effectively an UPDATE operation on the contained entities table).3. ...

Questions about FindByUserName

564 byte By njing78 at 2007-9-26 5:43:33
I want to develop a CMP entity bean named "User", primary key is userid, and has attributes like username, password and so on. But now I want to develop a method in home interface named findByUserName, other than the normal finder method like findByPrimaryKey and findAll. However, I don't know ...