Calling session bean from within another session bean.

252 byte By aacaina at 2007-11-27 10:58:58
<p>I have a session bean that needs to call another session bean's methods. What is the best way to access another session bean from within a current session bean's. I assume that I would use the local interface for this.</p><p>Thanks in advance.</p>

XMLStreamWriter issue

622 byte By zkajana at 2007-11-27 10:59:24
Hello,I'm using http://java.sun.com/webservices/docs/1.5/api/javax/xml/stream/XMLStreamWriter.htmland when I try to do something likeXMLStreamWriter writer = createXMLStreamWriter(someoutbutbuffer)String somestring = "<abc>hello</abc>writer.writeCharacters(somestring);the someoutbutbuffer ...

JavaPersistence - relationship maping

1168 byte By marcinta at 2007-11-27 10:59:34
DataBase - Postgres 8.2AppServ - Sun Application ServerI use Hibernate.Below is structure of my Postgres db :CREATE SEQUENCE x_id_seq;CREATE TABLE x (id integer NOT NULL DEFAULT nextval('x_id_seq') PRIMARY KEY,ad_typesmallint);CREATE TABLE x2 (fk_x_idinteger NOT NULL REFERENCES x(id) PRIMARY ...

JMS using JNDI

339 byte By ICANa at 2007-11-27 10:59:38
All,I have a fundamental question. Say for example I have given the JNDI binding information to a external application who will read and write from the message server. Would the application able to create the queues (new) on our message server wiht our knowledge. If yes how can we stop them doing ...

Is EJB3.0 supporting ServiceLocator design pattern

133 byte By javamnr948a at 2007-11-27 11:02:41
<p>hi,</p><p>Does EJB3.0 support service locator design pattern.If it supports how we write the code in that ServiceLocator class</p>

MDB working

336 byte By prabhu.ramadasa at 2007-11-27 11:03:29
Hi,I am using MDBs in conjunction with JMS queues in an application. I have a basic question. I know MDBs achieve parallel processing. But how?Are different instances of the MDB created? Or are there different threads?Also how do I get a handle to each thread/instance? Does any app server allow us ...

SAX DefaultHandler throws SAXException trying to get Attributes

903 byte By syg6a at 2007-11-27 11:03:34
I have a class that extends org.xml.sax.helpers.DefaultHandler. In my startElement() method I try to access the Attributes and my program throws a SAXException. I can't imagine why. If I debug my Attributes are all there. But doing something as simple as System.out.println(atts) throws an ...

Lotus Notes with java mail

337 byte By muthu2007a at 2007-11-27 11:05:25
Hi guysI had created a mail program it was successfully sent.,When i am view the mail in outlook or gmail etc., it was clearly displayedbut if i am view the mail in Lotus Notes it was not displayed correctly?Why?What is the ...

Cant get EJB create method to work inside another EJB

3033 byte By Perryiera at 2007-11-27 11:06:07
I am using EJB 3.0 and trying to create a customer record in the database using the following method in another session EJB:customerFacade.create(cust);I continue to get a null pointer error on the above line, even though I have established non null values for EVERY field in the customer table. The ...

Backward compatibility

84 byte By DaveNa at 2007-11-27 11:09:31
<p>I was wondering if jee5 is backward compatibe with j2ee 1.4 pls?</p><p>Thanks</p>

Cant add 3 addresses to DB in a loop?

1738 byte By Perryiera at 2007-11-27 11:13:21
Using the code shown below, I am trying to add 3 different addresses to the database. The code exists in a session ejb. It will only add one address. What is also odd is that it adds the address with the first ID number, but the second type & isPrimary assignment(type=WB & primary=0). ...

Please someone could help me how to build a soap message?

864 byte By Sonecaa at 2007-11-27 11:13:42
The message must be like this: <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body><save_publisher generic="1.0" xmlns="urn:juddi-org:api_v1"><authInfo>juddi</authInfo><publisher publisherID="###" ...

building a soap message like this below, can you help me?

820 byte By Sonecaa at 2007-11-27 11:13:46
The message must be like this:<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body><save_publisher generic="1.0" xmlns="urn:juddi-org:api_v1"><authInfo>juddi</authInfo><publisher publisherID="###" ...

[JAXP] Trying to avoid downloading DTD file once for each new file parsed

1200 byte By AlienQueena at 2007-11-27 11:14:00
Hello all,I'm currently learning JAXP & DOM parsing. And I must admit that it's pretty nice. But I've got only two little problems left.OK, for the first one : I'm used to parse several XHTML files one after the other and in the process, as soon as I open a new file and parse it (code ...

Where is the wscompile utility for Java Web Services Developer Pack 2.0?

785 byte By NM-156a at 2007-11-27 11:14:25
Hi. I am running Ubuntu Linux 7.04. I downloaded and installed tomcat 5.0 for WSDP and then WSDP 2.0. I did so because I am trying to use the wscompile utility to generate the WSDL and JAX-RPC mapping files so that I can create a simple example web service. (It doesn't seem like I should need the ...

Regarding WS-I Basic Profile

343 byte By vinayss78a at 2007-11-27 11:15:14
We will be developing webservices which will be deployed on weblogic 9.2(which supports Basic Profile 1.1). I checked the Basic Profile specs and just wanted to confirm a point:1. Are there any steps a webservice developer has to take to ensure compliance or is everything taken care of ...

[Fixed] Validation issue - Sax

3220 byte By bullita at 2007-11-27 11:15:56
G-dayI use an instance of XMLReader. its config is :parseur = XMLReaderFactory.createXMLReader();// gre les prfixes "xmlns:*"parseur.setFeature(" http://xml.org/sax/features/namespace-prefixes", true);parseur.setFeature(" http://xml.org/sax/features/namespaces", ...

TLS Authentication

3133 byte By Devibalana at 2007-11-27 11:17:38
Hi all,I tried to send a test mail by using the following codeimport javax.mail.*;import javax.mail.internet.*;import java.util.*;//import com.adventnet.nms.smtp.*;public class Main{String d_email = "x@gmail.com",d_password = "xxx",d_host = "smtp.gmail.com",d_port = "465",m_to = ...

Java Code to scrape a hotmail address book

343 byte By jlexjoya at 2007-11-27 11:19:55
Hi all... Can anyone help with trying to scrape a hotmail address book based on the user-id and password given with the help of a java program.. I tried using HTML Unit to do this but the process seems too tedious.. and cant really figure out the hidden variables n stuff in the hotmail ...

want sample code for JavaMail Events

2161 byte By prithvi123a at 2007-11-27 11:22:45
I have wriiten a simple code for sending mail.It works fine, but doesn't give any notification i.e. whether mail is deleivered or not ,wrong value for receiptant.I guess Transport event class can be used for this pusposeI want sample code for JavaMail Events.Please confirm whether i am correct or ...

multithreading doesnt behave itself in tomcat

1799 byte By Vectorizeda at 2007-11-27 11:22:48
Hello everyone, greetings this monday morningI've been working on a web application, and run into a problem which i don't really know where to start with, so i figured i would ask all you veterans (first real job for me) for some advice/helpthe situation:our web app has a pretty pasic MVC ...

WebService Doesn't Update ItSelf

182 byte By Adeea at 2007-11-27 11:23:38
<p>Hi , i have a web service up and running. But the problem is when ever i add any operation or change in parameters it doesn't update itself. Any one has idea.?</p><p>regards,</p>

Java EE service engine optimization

742 byte By ekrisjoa at 2007-11-27 11:24:12
Hi,I saw this statement on the Java EE service engine in relation to Glassfish: "In-process communication between components of application server and JBI components to increase request processing speed."What does this mean exactly, if I let two EJB communicate with eachother over the NMR as a ...

Get row id after EJB create method.

360 byte By JAntona at 2007-11-27 11:25:00
Hi,does any one know how to get an id of new created by CMP ejb row? When I create new object it's id is 0, when i call ejb create it creates new row in DB and crates new ID by increasing the old one, but how can I get this new ID after create has finished?Now I have to look equals by some fields ...

webservice disappear when I restart the weblogic 8.1 server

590 byte By itrahulsonia at 2007-11-27 11:25:09
Hi,AllTools I have Used:web-logic Application Server 8.1 ,Eclipse 3.2 with the WTP2.0 plug-in ,Axis-1.4 I have developed one web service for soap with attachments as well as client to retrieve these attachment and it is working fine, but the problem is that when I deploy the web service on the ...

getting exception-optionaldata exception

1087 byte By arindamdhara at 2007-11-27 11:25:13
Hi,I am trying to read data from a table which is being populated by JMS.Following is the code I have written to extract the data from the column which is of blob datatype. StringBuffer blob = new StringBuffer("select messageblob from jms_messages");Connectioncon= null;String className= null; con = ...

openESB and Axis2 BC

17785 byte By michele81a at 2007-11-27 11:26:06
I all,Petals ESB [1] provides a binding component for Apache Axis2, but I can't deploy it in openESB because of the error below which is related with the addressing module (in axis2 this is typically a classpath error). I don't know whether it is because this BC internally uses it's own servlet ...

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 ...

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 ...

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 ...

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" ...

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 ...

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>

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 ...

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>

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 ...

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 ...

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 = ...

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" ...

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 ...

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 ...

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 ...

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 ...

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>

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>

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 ...

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 ...

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 ...

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. ...

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 ...