Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...




Java J2EE Interview Questions
Questions Answers Views Company eMail

How do I enable debugging for the messaging bridge? : BEA Weblogic

963

How do I debug weblogic server using visual cafe 4.1? : BEA Weblogic

1041

How do I call a servlet with parameters in the url? : BEA Weblogic

1003

Can the messaging bridge forward durable subscription messages between separate weblogic server 6.1 and release 7.0 or later domains? : BEA Weblogic

948

How do I publish an xml message? : BEA Weblogic

1091

What is the standard way to create threads, do initialization, etc. Within the application server? : BEA Weblogic

1035

An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception? : BEA Weblogic

1001

Is it ok to add new sessions and subscribers to a queue or topic connection once it has been started? : BEA Weblogic

1152

The multicast ttl setting for a cluster in the weblogic admin console sets which of the values? : BEA Weblogic

1130

How do I call oracle stored procedures that take no parameters? : BEA Weblogic

935

How is security handled in the weblogic j2ee connector architecture? : BEA Weblogic

927

Which is the only method defined in the javax.ejb.handle interface? : BEA Weblogic

934

How do I manage a queue to view and delete specific messages? : BEA Weblogic

1006

Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available? : BEA Weblogic

967

I configured the messaging bridge to use the exactly-once quality of service for two-phase transactions. So why am I getting a quality of service is unreachable error? : BEA Weblogic

1016


Un-Answered Questions { Java J2EE }

I want to use the markerfor playing a video using the jmf.Suppose my video length is of 2 hours.I want it to play ex-15 mintue or 20 mintue and should stop after assigning the time.I am providing my piece of code............please help me.... package com.jha.cdac.lila.praveen; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; import java.net.URL; import javax.media.ControllerAdapter; import javax.media.Manager; /** * * @author vinays */ import javax.media.Player; import javax.media.RealizeCompleteEvent; import javax.media.Time; import javax.swing.JFrame; public class PlayVideo extends javax.swing.JFrame{ Player player; Component center; Component south; // this code is required for playing the video file of mpeg,mp4,mp3,3gp,rm,flv, //wmf,mpv,vob,qt and the asf extension public PlayVideo() { File file = new File("Lesson1.mpg"); try { load(file); // load() } catch (Exception ex) { //Logger.getLogger(LessonNarrative.class.getName ()).log(Level.SEVERE, null, ex); System.out.println("Error while loading file............"+ex); } } //the piece of code given below is used to load the file which user want to play. public void load(final File file) //load the file throws Exception { URL url = file.toURL(); final Container contentPane = getContentPane(); if (player != null) { player.stop(); } // MediaLocator mediaLocator=new MediaLocator (file.toURL()); // DataSource dataSource=Manager.createDataSource (mediaLocator); // player=Manager.createPlayer(url); player = Manager.createRealizedPlayer(url); ControllerAdapter listener = new ControllerAdapter() { @Override public void realizeComplete( RealizeCompleteEvent event) { Component vc = player.getVisualComponent(); player.getVisualComponent(); if (vc != null) { contentPane.add(vc, BorderLayout.CENTER); center = vc; } else { if (center != null) { contentPane.remove(center); contentPane.validate(); } } Component cpc = player.getControlPanelComponent(); if (cpc != null) { contentPane.add(cpc, BorderLayout.SOUTH); south=cpc; } else { if (south != null) { contentPane.remove(south); contentPane.validate(); } } pack(); // //setTitle(file.getName()); //to get the title of Video or Audio File } }; Time tm=new Time(30.4402403); Time tm1=new Time(5.7256199); player.addControllerListener(listener); player.setMediaTime(tm1); player.setStopTime(tm); // player.setMediaTime(new Time(5.0)); //player.setStopTime(new Time(73)); player.realize(); player.start(); } public static void main(String args[]) throws ClassNotFoundException { PlayVideo pv = new PlayVideo(); JFrame f = new JFrame("Lesson1"); f.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { System.exit(0); } }); f.getContentPane().add("Center", pv); f.pack(); Dimension screenSize = Toolkit.getDefaultToolkit ().getScreenSize(); int w = 420; int h = 140; pv.setLocation(screenSize.width/2 - w/2, screenSize.height/2 - h/2); pv.setSize(w, h); pv.setVisible(true); }

4222


Why sessionfactory is used in hibernate?

434


Explain the difference between inner and outer join ?

1049


What is spring framework?

392


What are the types of communication provided by jms?

915


What is treeset in java?

1012


How do I connect my application to talk to a database?

946


Whats the difference between notify() and notifyall()?

1055


Is jms a protocol?

840


Explain wrapper classes in java?

1014


What is the concept of dao? : Spring Boot

490


What is jdbc drivers in java?

940


Name the packages that work with servlet?

1016


What is c3p0?

506


Can we overload the methods by making them static?

1015