Any risk getting session bean reference not via lookup?

789 byte By SDLa at 2007-11-27 4:53:38
EJB3.0@Remotepublic interface A { B getBReference();}@Remotepublic interface B extends serializable{}@MessageDrivenpublic class MDB{ @EJB B Ref_from_JMS_OBJMSG; sendObjectMessage(Ref_from_JMS_OBJMSG);}B Ref_from_lookup = (B)lookup(B's JNDI);B Ref_from_remote_call = ((A)lookup(A's ...

Using XML-based object structures to represent data in code/at run-time

1384 byte By GregScotta at 2007-11-27 4:54:14
Hello, I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level ...

java using XPath from xml to xml generation

2195 byte By vittal.reddya at 2007-11-27 4:54:59
Hi I am having xml as input feed, need to look for particular kind of elements, these type element may be more then one in a given document.then extract the attribute value, apply busicess logic using value, create element replace the old element with new.e.g.sample.xml<root> ...

Replacing Element with text using Java iwth XPath

3584 byte By vittal.reddya at 2007-11-27 4:55:17
HiI have to relpace elements which are with name <Link>,with string <?abc id='10' city='xxx' ?><root> <title>Dummy title</title><content type='html'><Link id='100,101'/> Dummy <a href='www.google.com'>content</a> that the <a ...

Error occurred when Create Enterprisejavabean

6934 byte By mojvaformega at 2007-11-27 4:55:37
I've installed every update I can find for ECLIPSE but I cannot for the life of me get it to finish creating the enterprisejavabean. These are the error details.org.eclipse.core.runtime.CoreException: Extended Operation failure: ...

JavaMail Problem with JRE 6.0 using JNI

679 byte By Devoa at 2007-11-27 4:55:56
Hi,I am currently experiencing problems with JavaMail under JRE 6.0. It is a little odd in that it works fine when run as standalone app, but when called through JNI it throws the following exception:java.lang.ClassCastException: javax.mail.util.SharedByteArrayInputStream cannot be cast to ...

CMP Dates and EJB QL

1456 byte By PCampbella at 2007-11-27 4:56:06
I'm writing an EJB system that requires a query similar to the following SQL:SELECT * FROM programmes p WHERE NOW() BETWEEN p.start AND p.stop;I've read that Date types are partially supported, some reports say they work for some types of queries and not others.I can see several solutions, at ...

Sending mail through Java Application in Lotus Notes

492 byte By mohan.rao@sigmainfo.neta at 2007-11-27 4:57:35
Hi,Can any one let me know how to implement sending mail through Java in Lotus Notes? In the code, I have given all the parameters for the mail. mail host, username, password, authentication. It is working fine on the Windows box, but the same thing is not working on Lotus Notes. Is there any ...

Exception when changed Axis-1.3.jar to Axis-1.3_3.jar

11150 byte By manishronya at 2007-11-27 4:58:49
Hi,I was getting memory leak in web service using Axis-1.3.jar. Now i have replaced the axis jar with Axis-1.3_3.jar, but am getting some exceptions:AxisFault faultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: ...

Editing large xml files

476 byte By Ahmad_Khana at 2007-11-27 4:59:21
Hi,I have an xml file of 30M. I use the following code to delete the tags with no childs. But jdom simply does not build the document and with out any exception the application goes out of this method.The same code works fine for smaller file e.g. 9MBs?My question.1. Is there any file size ...

java annotations & xdoclets

159 byte By kbirda at 2007-11-27 4:59:30
do we still need the xdoclets ? (ejb 3.0) can we do the all the xdoclet works still only with the java annotations?can any one clear this thanks!

How to write data to an XML file present under application server

328 byte By adithikumara at 2007-11-27 4:59:31
frnds: can ne one tell me, how to write data in to a file, which is present under a application serverEx: i want to write a string data in to a file test.txt which is present under " http://localhost:8080/<some_webapp>/test.txt"Note:i have deploted a service<some_webapp> under ...

Fax message to email attachments

157 byte By sivarami.m@allfon.coma at 2007-11-27 4:59:36
Can any one help me how fax message will add as a attachment to email.can any one plz help.by sending some sample example.RegardsSivaram

Sun Java Application Server 9

369 byte By Kay14a at 2007-11-27 4:59:53
Hi,I noticed that Sun Java Application Server 9 has a platform edition available. (In the Application Server section of the site it appears that latest version with an enterprise release is version 8.1.)Does anyone know if an enterprise edition is available for version 9? If not yet available, ...

Java 6 WS Newbie Question

3462 byte By jb_revof11a at 2007-11-27 5:01:41
I am currently attempting to run a second Java 6 WS. My first was connecting to Google to to a SOAP-based search. I was able to get an API key and run it through. However, running my second is not working so well.I am attempting to run this SOAP message:<?xml version="1.0" ...

NameNotFoundException - ${j2ee.client} not bound

6745 byte By kevjavaa at 2007-11-27 5:02:14
Good day, all. I'm new to J2EE, so apologies up front if this is a brain-deadquestion. I have done some searching around on the site, and have found similarissues, but none which contain a working solution for me, as far as I can tell.I'm attempting to write a J2EE client application using ...

IMAPFolder.ProtocolCommand

625 byte By imapprotocola at 2007-11-27 5:02:15
It seems one can call directly into the IMAP protocol via this mechanism, but certain operations are not reflected in Javamail. Specifically, I have a class that issues an UNSELECT command, but the response to IMAPFolder.getFullName() is still the folder before the UNSELECT.So, an attempt to ...

Handle Bounce Emails

441 byte By BounceEmaila at 2007-11-27 5:03:00
Hi Folks,I have one requirement to handle bounce emails. After bounce emails are handled, need to classify and store the bounce details in database with failure reason. Due to some security constraints with in the existing environment, we are going for IMAP instead of POP3 account.Is there any ...

class javax.mail.SendFailedException: 553 sorry

1423 byte By GYANENDRAa at 2007-11-27 5:05:49
I have a java mail sending program which is showing the following problem.javax.mail.SendFailedException: Sending failed; nested exception is:class javax.mail.SendFailedException: Invalid Addresses; nested exception is:class javax.mail.SendFailedException: 553 sorry, Authentication failed or ...

JBoss and Tomcat

543 byte By sridhar_rreddya at 2007-11-27 5:06:11
Hi,I am to run my application as 2 parts, the .ear in JBoss and .war in Tomcat. Intention is .war needs to talk to .ear. When the whole thing is put into JBoss, its working fine, but when war in ear is copied/deployed to Tomcat, i get this errorCaused by: java.lang.NoClassDefFoundError: ...

beginner to EJB

319 byte By loguKKa at 2007-11-27 5:06:26
hi, can anyone guide me how to create an simple EJB application with Eclipse & JBOSS? already i worked with jsp, tomcat, eclipse....please guide me some links (other than google search links).... step by step EJB applicaiton creation and run in jboss using ecplise...? thanks for the great ...

Strange output?

1086 byte By Ehsan.Sa at 2007-11-27 5:06:37
Hello,I am using the SAX parser to parse a xml file which can be downloaded from the http://archive.godatabase.org/latest-termdb/go_daily-termdb.obo-xml.gz. The file is a gene ontology. My problem is that from the 25000 terms described in this file, the parser can not read the id node of 100 of ...

Include XML Element value in JSP

241 byte By JChefa at 2007-11-27 5:07:12
Hi,I want to include an XML Element values in JSP Page.How can i Do this? I'm using DOM Parser to fetch data from XML File.If its possible, how can i store values in variables?Please help me.Thanks.

Entity inheritance mapping strategies,the joined subclass

785 byte By kerulea at 2007-11-27 5:07:37
Hi, From Java EE tutorial, i was read that the joined subclass strategies could have a poor performance for extensive class hierarchies because need some joins to get the rows of the database.I am developing an application that use three levels of entity inheritance and i would use this ...

Java Persistence API: Multiple Persistence Units problem

3085 byte By aureliocalegaria at 2007-11-27 5:08:23
Hi,I'm working with Java EE 5 and using the Java Persistence API 1.0. I have two databases, one db2 and one mysql. The connection to them are set properly and I have one table in each of these databases. I also have one Entity class for each table. The issue is that I'm getting troubles to ...

null response!

895 byte By sweeea at 2007-11-27 5:08:47
hi everybody, I've been changing axis2 1.1.2 WeatherSpringService sample. i've only changed the getWeather operation:public String getWeather(){return new String("this is a string");}-and the client:-...EndpointReference targetEPR = new ...

permanently NullpointerException when call entity bean

2554 byte By serkolaa at 2007-11-27 5:09:42
HiAfter i had permanently this problems i try it with another description in this forum.Maybe i get feedbck.....Problem 1:I use sample database 搒ample?coming with the application server (jdbc:derby:sample) and code from the tutorials. I can map the database as entity, create persistent unit, ...

what is meaning of these web services jargons...

591 byte By Legolas.wa at 2007-11-27 5:09:47
HiThank you for reading my postI have a question about some web services jargons and their relations.PortendPointQNameBindingI looked at QName javaDoc and i did not understand anything more thanQName represents a qualified name as defined in the XML specifications: XML Schema Part2: Datatypes ...

&#174 converts to &#174;

362 byte By khan2265a at 2007-11-27 5:10:01
i need to enter&#174 into the database, but when i use documentbuilder it converts it to &#174; in the xmlwhen i display the xsl fo (<xsl:value-of.......) using that xml the symbol shows up as&#174; in plain text and not the symbolis there any way to get the symbol to ...

Issue calling an EJB

660 byte By Sgutierba at 2007-11-27 5:10:40
Hello everybody.I have the following scenario:I have an enterprise application with two EJB modules.I am trying to call an EJB located at a package, from a class in the other package. In netbeans I am using the wizard "Call an enterprise bean" and it creates a lookup method which is supposed to ...

EJB QL: Passing array of enum to SELECT * WHERE a IN () clause

895 byte By Tony_Maia at 2007-11-27 5:10:44
Hello,I am trying to pass an array of enum to EJB QL as followed:em.createQuery("FROM OrderInfo o WHERE o.ordStatus IN (:ordStatus)").setParameter("ordStatus", ordStatsStr)Note that o.ordStatus is of type enum OrderStatus.I've tried to set "ordStatus" as String (i.e. 'OPEN', 'CLOSED'), as ...

How to send mail and attach documents using JMS?

182 byte By PaviEluri20a at 2007-11-27 5:11:33
Hi,I want to send mail to various people and also attach documents in my project. Please tell me how can I do this?\Any help is greatly appreciated,Pavan.

How to Call one EJB from another

558 byte By gopal@tcsa at 2007-11-27 5:11:49
Hi allI am trying to call one EJB in one system from another EJB residing on diferent system...Both are Stateless session beans ...I can't use No-args Intialcontext() as i need to specify the Ip address of other system to be looked up.....So i am using properties ...

DAO and Struts

233 byte By noush@suna at 2007-11-27 5:12:10
I m new to Struts and i wsh to do a stuff in it....I m not clear with the DAOs and Business Delegate model in it and i need a sample code for continuing with wher can i get if anybody culd suggest me a well start point?

how to iterate through xml array in xsl

665 byte By Isaaka at 2007-11-27 5:13:07
Hi,I have xml like this<TIP><ROW><amount> </amount><date></date></ROW><ROW><amount> </amount><date></date></ROW></TIP>and I want to transform it to another xml from xsl by <xsl:for-each> <xsl:variable ...

Problem with IMAP referrals

757 byte By shethala at 2007-11-27 5:13:23
Hi,I am having trouble reading from an Exchange Server. When I try to open the folder, I get the following exception. Could anyone please advice me..com.sun.mail.iap.CommandFailedException: A2 NO There is no replica for that mailbox on this server.[23 May 2007 10:27:51] INFO Stack trace: ...

java.lang.RuntimeException: Service Class not generate

3472 byte By rohanatsun1a at 2007-11-27 5:13:26
I am working on netbeans 5.5 bundled with sun app server 9.I am developing a web service but after deploying when I test do "test operation" then this URL works http://localhost:8080/CalculatorWSApplication/CalculatorWSService?Testerbut when i replace it ...

EJB 3.0 Environment Variables

365 byte By T@koa at 2007-11-27 5:13:41
I am trying to create environment variables within my project, but it doesn't seem to recognize the env-entry within the sun-ejb.jar.xml file. I am using EJB 3.0, which could be the problem... is there a replacement for env-entries? If yes... what is it and how do I use it please? 10x.I am ...

create and xml file

1068 byte By HelenaStarMountaina at 2007-11-27 5:13:43
Hi, I am sorry to use this as a shortcut instead of "doing the work myself", but there is so much info on the web so I do not know where to start. I just want to perform a simple task. I have a java object ...public class MySampleObject {private String name;private String address;private int ...

JMS: failed to open MQ queue (Reason 2035) when trying to receive message

1529 byte By Mike_in_Javaa at 2007-11-27 5:13:59
I'm doing a jms testing (weblogic, mq), already done below items, sending is ok (CURDEPTH is added 1) & also browse, but receiving has some problem: MQJE001: Completion Code 2, Reason 2035.MQJMS2008: failed to open MQ queue. 2035 looks MQRC_NOT_AUTHORIZED, but the application id has been ...

Could not resolve beanClass method from proxy call

4337 byte By RooKeea at 2007-11-27 5:14:02
Hello,I test some stuff with ejb 3.0. It works fine, but with one method I get some exceptions...Here is hole exception:Exception in thread "main" java.lang.RuntimeException: Could not resolve beanClass method from proxy callat ...

Sequential reading of XML file

527 byte By vinu.1001a at 2007-11-27 5:14:10
I have a XML file like:<Element id="test1" type="functional"><description>description of this test</description><steps>Steps </Steps><action name="name1" value="value1"/> </Element>I want to read this file sequentially and perform do something for each ...

Problem with the EntityManager and persist

2276 byte By RooKeea at 2007-11-27 5:14:30
Hello,I wrote a entity bean with generatedValue for ID. I can save the entity in the database with the EntityManager and the method persist. But if I save the object with the persist method, I didn't get the reference with the new ID back to the client...I print the object in the application ...

EJB 3.0 - Stateful... getHandle()?

1616 byte By aureliocalegaria at 2007-11-27 5:17:40
Hello,I just start working with EJB 3.0 and it's much better if we compare with EJB 2.x... It's easier, cleaner, etc. However I'm about to throw all away and return the EJB 2.xI simply cannot efficiently call getHandle() on a stateful session bean. Well, actually withing the bean itself I ...

EJB 3.0 - Stateful... getHandle()?

1616 byte By aureliocalegaria at 2007-11-27 5:17:43
Hello,I just start working with EJB 3.0 and it's much better if we compare with EJB 2.x... It's easier, cleaner, etc. However I'm about to throw all away and return the EJB 2.xI simply cannot efficiently call getHandle() on a stateful session bean. Well, actually withing the bean itself I ...

NoSuchMethodError: NamespacePrefixMapper.getPreDeclaredNamespaceUris2

3153 byte By tvor82a at 2007-11-27 5:17:44
I'm trying to consume a web service using wsimport to create the proxy classes, but when I try to invoke a web service operation, I'm receiving the following error:Even though I have jaxb-impl.jar on the classpath which contains NamespacePrefixMapper.getPreDeclaredNamespaceUris2The web ...

Many-to-Many relationship problem

5438 byte By boots54a at 2007-11-27 5:18:29
when i add a collection to one side of the many-to-many relationship it doesn't add it to the other side. ex. A test has many multiple choice questions, and multiple choice question can belong to many tests(makes creating a final exam easier, so you can use old questions)relevant ...

Parsing XMLTV file with Dom4J

12127 byte By kaderuda at 2007-11-27 5:18:53
Hi,I'm fairly new to Java programming, although I manage to usually do what I want in JSP, since they usually only contain small scriptlets.But when it comes to pure Java programming, I'm don't feel at home. My program below parses an XMLTV ( http://xmltv.org) file, and my intention is to ...

Invalid Column Index error on MQMSG41CMAAMESSAGING table

3431 byte By Thoroldoniana at 2007-11-27 5:18:56
Hi All,I am trying to setup Sun Open MQ 4.1 in high availability mode and I am having some problems. I am using 4.1 with a 10g (10.2.0.3) RAC cluster. I am using the newest driver for that version of 10g database.I get the following error when the application tries to persist messages to the ...

JMS with mysql

293 byte By Tech456a at 2007-11-27 5:19:54
Hi All,Can you anyone help me to setup on my linux machine JMS with mysql. I have installed JMS and mysql.I don't know after that what i need to do. I would like to setup on linux machine JMS with mysql database. Your help will be really appreciatedRegards,Tech456