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 ...
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 ...
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> ...
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 ...
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: ...
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 ...
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 ...
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 ...
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: ...
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 ...
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!
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 ...
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
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, ...
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" ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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, ...
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 ...
i need to enter® into the database, but when i use documentbuilder it converts it to ® in the xmlwhen i display the xsl fo (<xsl:value-of.......) using that xml the symbol shows up as® in plain text and not the symbolis there any way to get the symbol to ...
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 ...
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 ...
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.
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 ...
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?
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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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