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>
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 ...
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 ...
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 ...
<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>
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 ...
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 ...
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 ...
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 ...
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>
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). ...
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="###" ...
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="###" ...
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 ...
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 ...
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 ...
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", ...
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 = ...
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 ...
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 ...
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 ...
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>
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 ...
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 ...
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
<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>
[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 ...
<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>
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 ...
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 ...
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 = ...
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" ...
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 ...
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 ...
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 ...
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 ...
<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>
<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>
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 ...
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 ...
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 ...
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. ...
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 ...